# \[AS1 to AS2\] Need urgent help PLEASE!

**URL:** <https://forum.kirupa.com/t/as1-to-as2-need-urgent-help-please/308572>\
**Category:** flash\
**Created:** [April 26, 2010, 9:46am UTC](https://forum.kirupa.com/t/as1-to-as2-need-urgent-help-please/308572 "2010-04-26T09:46:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cikcantek](https://avatars.discourse-cdn.com/v4/letter/c/b5a626/32.png) [@cikcantek](https://forum.kirupa.com/u/cikcantek)\
**Post date:** [April 26, 2010, 9:46am UTC](https://forum.kirupa.com/t/as1-to-as2-need-urgent-help-please/308572/1 "2010-04-26T09:46:43Z")

</div>

Here it goes, I’m trying to make a game. sort of like a coloring object.  
I found these script but it was for Flash 5. now I want to add this script to my Flash 8 games. I found its not working if the player set to Flash 8. but if set in Flash 5, its working but many my other movie clips like loading page not working. So i think its better to change this to AS2 instead of I need to change my others script from AS2 to AS1.

I will paste the AS below.

function colorit(obj)  
{  
\_root.housecolor = new Color(obj.colorz);  
if (\_root.brushcolor.getRGB() != 16777215)  
{  
\_root.instruction.gotoAndStop(“Step04”);  
\_root.housecolor.setRGB(\_root.brushcolor.getRGB());  
\_root.Brush.thart = 0;  
\_root.colorArray[\_root.dish.i] = \_root.brushcolor.getRGB();  
\_root.brushcolor.setRGB(0x16777215);  
\_root.okwin.gotoAndStop(2);  
\_root.ding.start();  
} // end if  
} // End of the function  
color101 = 0x16711680;  
color102 = 0x16764771;  
color103 = 0x10235904;  
color104 = 0x13026246;  
color105 = 0x10875837;  
color201 = 0x15672320;  
color202 = 0x16760320;  
color203 = 0x3237375;  
color204 = 0x2171937;  
color205 = 0x10276608;  
color301 = 0x10877852;  
color302 = 0x16711680;  
color303 = 0x16777116;  
color304 = 0x16775665;  
color305 = 0x16751310;

colorArray = new Array();  
brushcolor = new Color(brush.colorstick);  
brushcolor.setRGB(0x16777215);

HELP ME PLSS… :puzzled:
