|
Tips & Tricks
Loading an Applet Invisibly
If you load an applet using the few simple lines of ActionScript given in Loading Applets, you can't add an example._visible=false line to this code and expect the applet to load invisibly its visiblity can only be set when it's fully loaded. You might use the loaded event to set its visibility, but that's messy. The better solution is to use an extra MovieClip like this:
createEmptyMovieClip("example", 20);The added code is highlighted in bold type. Create a sub-clip inside the main clip, then hide the main clip and load the applet into the sub-clip. Because the applet's parent clip is hidden, the applet will also be hidden (until you choose to set example._visible=true).
|