Hi everyone,
I’ve created this Flash Application in MX 2004 and it has a slight memory issue - meaning it can eat up to 250mb of ram.
Basically here is how it works.
Application loads with about 200 ‘dots’ on the screen. Behind each dot is a picture that is loaded using the loadClip command. When a dot has a mouse hover over it, it sets off an event for the dot to regrow.
Each dot is a movie clip, containing a few layers:
Action script
Button
Layer with external picture
mask to make external picture round.
Each movie clip is on the main stage, has an instance name, the first frame of the action script layer of the movie runs though a for loop to load the external picture into the dots. (each dot has a instance name)
So basically what im asking is.
Is there an easy way to
a) load an external picture from a folder into a movie clip than when pressed will antimate
b) not hog 250 mb of ram.
I’ve been looking around and trying to work out if i need to ‘delete’ the instance or something. Heres what it looks in the debugger comes up with, if its any use:
Before mouse over:
_global
_level0
_level0.dotA1.PicMC
_level0.dotA1.instance1
After/during mouse over:
_global
_level0
_level0.dotA1.PicMC
Then it finished with:
_global
_level0
_level0.dotA1.PicMC
_level0.dotA1.instance392
Like I said there is around 200 dots, but to jump from 1 to 392 is a bit extreme isn’t it?
Any thoughts, comments or suggestions welcome.
Thanks
Andrew Bob