Loading versus get URL

Can anyone out there clarify which is better method for loading swf files? Is it more efficient to use the LoadMove Action and load it into level 0? or to use the get URL function and define the swf path that way?

-Thanks,
Brock

if you want to load a swf without changing(loading again) the html page, use loadMovie.

But if you are passing variables such as FlashVars, use getUrl.

I would go with getUrl, it is more safe than loadMovie level 0, when comes down to variables and such

:slight_smile:

loadMovie() loads to an empty movie clip, making it easier to position where you want it on the stage and on what layer.

loadMovieNum() loads to an empty level, making it easier if your movie is going to replace everything on that level.

getURL to link to swf file… ummm, you can do it, but I don’t really recommend it.

I don’t even know if I made sense there, I am kinda out of it.

getURL to link to swf file… ummm, you can do it, but I don’t really recommend it.

I thought that you´re saying loadMovie to a swf versus getUrl to a html page, not a swf file. :frowning:

… my turn

Id say have a base level controller swf in level 0, then load your swfs into other levels (not 0 which would replace the controller swf) and use level 0 to control and manage the loaded swfs any way you need to. ie, once a new swf has loaded, dont replace it with a new loaded swf, load a new one on a higher level and keep the previous level there for referencing (or quickly going back to). It can reside below it or be hidden with _visible = false. the level 0 controller can have a constant menu-bar like interface which could control swf navigation… or be hidden completely itself. It all depends on what you have and how it needs to be presented.

but yes, Id say use loadMovie (or loadMovieNum) over getUrl for loading new movies.

… of course you may want a new html page to load (using getURL) if your movies are completely different… ie, different in size and function and have no relation to each other.

I think that sums it up! :slight_smile: