Hi...I'm trying to make a photo album that is dynamically created by taking pictures from an array and placing them in their own movie clip on the stage when the movie is started....for some reason when I use this code:
I get the 3 seperate movie clips spaced and sized how I want them and they are located at the proper x's and y's.....my question is this...
Why doesn't the "with" statement in my first code segment do the same as the 3 separate "attachMovie" I am using in the 2nd code segment......also, how do I make the first code segment work using the "with" statement...as I want to minimize my code....more so for learning purposes...than for speed purposes. Thank you
Question
SubZero123123
Hi...I'm trying to make a photo album that is dynamically created by taking pictures from an array and placing them in their own movie clip on the stage when the movie is started....for some reason when I use this code:
I get "Pic2" on top of the 2 other pictures....and the properties of the movies clips are not set either (the _x, _y, _xscale, _yscale).....
however when I use this code:
I get the 3 seperate movie clips spaced and sized how I want them and they are located at the proper x's and y's.....my question is this...
Why doesn't the "with" statement in my first code segment do the same as the 3 separate "attachMovie" I am using in the 2nd code segment......also, how do I make the first code segment work using the "with" statement...as I want to minimize my code....more so for learning purposes...than for speed purposes. Thank you
Link to comment
Share on other sites
0 answers to this question
Recommended Posts