Drakon
09-27-2003, 09:56 AM
Hi everyone! Been into flash like from a week now on, and still find some things strange. Besides those things, i might have some 2 concrete questions.
1. I have a movie clip that's suposed to work like a button. I mean got inside some text box and an actual button to get the hand icon when mouseover it. Above this layer containing the buton is a layer with a rectangular shape wich i set to be a mask. The buttons layer conforms and get's it's place into the rightbottom of that mask layer.Ok .Now at frame 1 this buton is set to invisible . The button then gets duplicated in a while(the original buton is named spawner)
while(nr<vect.length)
{
var dup="button" add nr;
spawner.duplicateMovieClip(dup,-nr);
setProperty(dup,_x,100);
setProperty(dup,_y,140+25*nr);
nr++;
}
No matter what deph level i set those buttons do not get affected by the mask. I see them all. I tried also: spawner.duplicateMovieClip(dup,nr);
2. The sec questions is like: if i started to draw some things in diferent layers and come up with something like a menu bar and added the actionscript to it, can I put all this in a movieclip so i can use it in more projects? If i select all the stuff, and say convert to simbol->movie clip all the stuff colapses into one layer and the action script is gone. Let's say that the actionscript would be no problem but still i don't fancy the ideea of having to copy paste those shapes and carefully rearange them in there own layers in the new clip.
3. Ok, ok so my mind poped another question, just hope to be the last one or i'll never finish this post or i'll make u guys fall asleep reading:)
Sometimes if i tell a movie clip to go to _x=0 _y=0 it gets on the stage like it puts the center of that movie at those coords. And is true, i see that circle with a cross in the middle of that movie. Now i guess i could work around it and instead of seting _x=0 i could say _x=movie._width/2(if that works) -i rather do the math myself. But i found somewhere(can't seem to remember where) i think they were using an "allign layer"? didn't pay much attention to that. So is it posible to set something in the align pannel and not have to again move all things so that the little target like simbol to be in the upright corner?
Ok, thaks for reading, guys!
1. I have a movie clip that's suposed to work like a button. I mean got inside some text box and an actual button to get the hand icon when mouseover it. Above this layer containing the buton is a layer with a rectangular shape wich i set to be a mask. The buttons layer conforms and get's it's place into the rightbottom of that mask layer.Ok .Now at frame 1 this buton is set to invisible . The button then gets duplicated in a while(the original buton is named spawner)
while(nr<vect.length)
{
var dup="button" add nr;
spawner.duplicateMovieClip(dup,-nr);
setProperty(dup,_x,100);
setProperty(dup,_y,140+25*nr);
nr++;
}
No matter what deph level i set those buttons do not get affected by the mask. I see them all. I tried also: spawner.duplicateMovieClip(dup,nr);
2. The sec questions is like: if i started to draw some things in diferent layers and come up with something like a menu bar and added the actionscript to it, can I put all this in a movieclip so i can use it in more projects? If i select all the stuff, and say convert to simbol->movie clip all the stuff colapses into one layer and the action script is gone. Let's say that the actionscript would be no problem but still i don't fancy the ideea of having to copy paste those shapes and carefully rearange them in there own layers in the new clip.
3. Ok, ok so my mind poped another question, just hope to be the last one or i'll never finish this post or i'll make u guys fall asleep reading:)
Sometimes if i tell a movie clip to go to _x=0 _y=0 it gets on the stage like it puts the center of that movie at those coords. And is true, i see that circle with a cross in the middle of that movie. Now i guess i could work around it and instead of seting _x=0 i could say _x=movie._width/2(if that works) -i rather do the math myself. But i found somewhere(can't seem to remember where) i think they were using an "allign layer"? didn't pay much attention to that. So is it posible to set something in the align pannel and not have to again move all things so that the little target like simbol to be in the upright corner?
Ok, thaks for reading, guys!