Flash Ques.
- Started
- Last post
- 3 Responses
- cndtn
If I have this code here:
on (release) {
_root.P2._visible = 0;
}How do you add more movie clip names, like how are they seperated
You can see my clip name is P2, but without repeating the code how do I have it include P2, P3, P4, P5 so it treats all of them the same instead of having a bunch of action layers repeating it for each individual movie clip?
I know it's rough for the non code headz out here
thanks
- alloyd0
Create an Array to store all of the mc names.
Create a loop to execute code for all in array.
var clipArray:Array=[P1,P2,P3];
my_btn.onRelease=function(){
for(i=0;i
- alloyd0
all the code didnt go thru for some reason...
Just look up an array and a for loop in the help section...
- CyBrainX0
You could set up a for loop
on (release) {
for (i=1; i=howeverMany; i++) {
_root["P"+i]._visible=0;
}
}