zeroing out Flash data
- Started
- Last post
- 5 Responses
- mr_flaco
I'm loading data into one specific swf at different times in the movie to build menus and submenus, etc. I am having an issue replacing data in a submenu - the new php call is successful, yet the movie still displays the old data. Is there a way to zero out specific data efficiently before the next call? Will loading vars to an mc and then removing that mc kill the data inside it? BTW, I'm using MX, and not 2004...
- unfittoprint0
I usually create an object to 'store' all the xml/php retrieved data. I then insert inside the onLoad event for the LoadVars (or XML object) something to 'clean' old data, like:
delete myObject;
- mr_flaco0
I suspected so, thanks!
- ********0
that's genius unfit
- Mick0
Just a quick quez unfit... does removing an instance of the MC from the timeline have the same effect?
- unfittoprint0
yes. if the variables were created/stored inside the MC.
And that MC should've been created using either attachMovie() or createEmptyMovieClip() functions. Only then you can use removeMovieClip() to delete it...