PDA

View Full Version : emptyMovie clips


samWhisker
01-21-2006, 01:57 PM
Ok I need some help, I have this script that should work here it is…


on (press) {
gotoAndPlay(2);
this.createEmptyMovieClip("colour01", 32);
colour01 = function () {
lay01 = new Color(_root.template.templateLoad.layout1Circle.la y01);
lay01.setRGB("0xFF2200");
lay02 = new Color(_root.template.templateLoad.layout1Circle.la y02);
lay02.setRGB("0x00ffFF");
};
templateLoad.attachMovie("layout1Circle", "layout1Circle", 1);
colourLoad.attachMovie("colour01", "colour01", 1);
}


So I basically need to load a movieclip called layout1circle, which in turn has 2 movieclips, they are just black boxes one called lay01 and one called lay02. (these are located as u can see from root.template.templateLoad.layout1Circle.lay02) now I basically need to change the colour of these boxes and my understanding is that using a new colour function is the best way of doing this. Now the script will eventually be imported using #include function (not important right now!) so I need the colour script adding to an empty movie clip which I created called colour01. then attaching to colourLoad. can i attach createded empty movie clips???

So long story short should the above script not load layoutcircle one and change the colour of lay01 and lay02?? Yes no, cant understand why it don’t work, am I not addin the script to a function correctly?

Any help would be much appreciated

Cheers sam :cool: :cool: :cool: :cool:

eggnogg
01-21-2006, 03:14 PM
dont you need a function name?
colour01 = function () {