PDA

View Full Version : to unloadmovie or to make it invisible?


C!
02-11-2002, 12:05 AM
Hi All,

I have a philosophical flash question ? (Well...)

I made a main movie that preload many swf each has the first frame blank
so it's transparent on the main movie.

I have many boutons that calls those movies to make it go to a label.
all works fine, when i push another boutton ask all the unuse
level to be invisible, works fine too.

My question, should i unloadmovie loadmovie, thoses movies instaed
of making it invisible, is there any drawback, memory use, etc...

TIA

C!

Jesse
02-11-2002, 04:19 AM
Assuming your loaded movies are parked on a blank frame which doesn't run any intensive actionscript the memory consumption of such a movie, espcially when it's invisible will be almost nothing. I would advocate leaving them on the stage, just invisible, because then they don't need renderring and Flash just ignores them basically.

C!
02-11-2002, 01:41 PM
thank you Jesse !

It's apreciated !


Tourlou



C!

Tink
02-11-2002, 02:57 PM
in that case, what scenario's would u use unloadMovie?

when u didn't need the movie any longer and thats it???????

if u do unload a movie doesn't it stay cached in the users comp anyhowz?

cheers

BLEEDA

Jesse
02-12-2002, 12:00 AM
When possible you sholdn't rely on cache. You would use unload movie when your base movie has serious scripting of its own, and you want to maximize resources, or if you were unable to park the other movies for some reason, or if the other movies had large libraries and the like when I believe can clog Flash. In general if you want to go without using unloadMovie then you should make the movies you're going to set invisible as low-resource-consuming as possible, even when they are running, not parked.

Tink
02-12-2002, 09:24 AM
cheers

makes sense!

apprentice
02-22-2002, 11:38 PM
As someone new to scripting, I know this might sound obvious, but I assume that if a movie has clickable buttons and is made invisible that the buttons are disabled automatically?

Jesse
02-23-2002, 01:58 AM
Yeah, assuming you use _visible and not _alpha.