Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

array is emptied when print action called 1

Status
Not open for further replies.

sarak

Programmer
May 3, 2001
25
US
I have an array in my main timeline, which is added to when the user clicks on certain buttons. I have a print button in my main timeline too, which has an action attached (currently using "print(0, "bmovie")", though variations/simplifications don't seem to make a difference). When the button is clicked a print dialogue box pops up like it should. However, when I return to the movie after printing or simply dismissing the dialogue box, the array has been emptied. Is there any way to keep this from happening? Thanks in advance for any tips!

(Not sure that it matters, but I'm using Flash MX on a Mac running OS X.)
 
Why don't you try backing up the array before you use the print command, then just load the array back into your movie.

You can do this by sending it to a file or just packing it into another identical array (maybe?). If the array isen't too large then you could try sending bits or the array to diffrent single variables.

As a thought - using a MAC might have sommit to do with it as I use flash MX on my Windows ME and have never encountered such a problem. Bandit,

immortal.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top