preload everything
Out of context: Reply #15
- Started
- Last post
- 17 Responses
- urban100
jysta... not quite following you in your method to load twice. If you load the swfs into their container mc then you wouldn't be loading into levels necessarily... just depths within the container. also the use of levels in AS is typically bad practice (no longer used in AS3) in favor of using OOP and dot access for objects.
it's preferred to load your content into their own parent container rather than separate levels, which will make managing and accessing those objects in your actionscript elsewhere a nightmare. for example, in the method i described you could have something similar to (if you loaded all the items into a parent 'content_mc' movieclip and 'this' refers to the parent of 'content_mc', which could be _root depending on where you initialize it):
this.content_mc.mc1
this.content_mc.mc2
this.content_mc.snd1
this.content_mc.xml1- also some users may turn off browser caching, in which case it would not be cached the first time it was loaded and it would have to be loaded again.urban10