This content has been marked as final. Show 7 replies
what code is used to create your array, where is it created and where do you return when you "...come back to scene1"? is your array the child of a movieclip that doesn't exist in scene2?1 person found this helpful
i used this code in scene1, frame1
var aparat:Array = new Array();
i come back to scene1 frame1
(both scene1 and scene2 have 1 frame each)
well, if you return to that frame where you initialize aparat you're going to re-initialize aparat and loose all data stored in it.1 person found this helpful
to remedy use:
thank you kglad
there is no way to store those data in "aparat" array, am i right? i always loose data in aparat?
the code above prevents you from re-initializing aparat (and prevents you from losing its data) when you return to that frame.1 person found this helpful
the above code initializes aparat exactly one time by checking to see if it exists. if aparat doesn't exist it is initialized as an array. if aparat does exist the code does nothing.
thank you soo much kglad i just understood what you mean ..
thank you so much
its really powerful technique