Click to See Complete Forum and Search --> : Action script in A movieclap within a movieclip
xzerox_xzerox
11-22-2006, 05:03 PM
Hi
I have this actionscript that i want to ad to a movieclip called "bgcolor" in a movieclip called "main".
on (release) {
myColor=new Color(_root.main.bgcolor);
myColor.setRGB(0x000000);
}
My question is: Does it work to write _root.main.bgcolor?
Thanks guys
this.Alex
11-25-2006, 01:18 AM
its like this
on (release)
{
colorchange = new Color("/ball");
colorchange.setRGB(0x55FF);
}
that changes a movie clip from green to blue if you started with a green mc.
ill post a fun file if u want me to.
blanius
11-26-2006, 08:52 PM
My question is: Does it work to write _root.main.bgcolor?
That looks fine. or _parent.main.bgcolor will refer to a clip called bgcolor in main in the root or parent timeline.
this.Alex
11-26-2006, 11:22 PM
Heres the source file it works rember that flash is scase sensitive.
all ur code was right but that works in flash 8 you need to use no big caps in KM only if you need to because it wont work any other way just download the source file =).
flashkit.com
Copyright WebMediaBrands Inc., All Rights Reserved.