scharlton22,
> that seems very complec compared to how I understood it to work?
What dz showed you is one of many ways to load content in AS2.
Personally, I use dz's approach more often than the more simplified
MovieClip.loadMovie() method, because the MovieClipLoader approach lets me
know when content has loaded. That becomes very important if you want to
use ActionScript to manipulated loaded content once it arrives.
> How do I actually create a blank movieclip, or am I dumb? What you
> have provided me does that?
dz's suggestion creates a blank movie clip with ActionScript
(this.createEmptyMovieClip()), but you can just as well create a movie clip
in the Library by hand. Again, for what it's worth, I usually create blank
movie clips with ActionScript, but the choice is yours.
It really depends on whether or not you want to know when your content
is loaded. If you use loadMovie(), you won't know -- unless you write
additional ActionScript that lets you know. If knowing is important to your
project, I recommend MovieClipLoader, same as dz does. If you prefer an
older approach, you can read about it (and the other) here:
http://www.quip.net/blog/2006/flash/how-to-tell-when-external-swf-loaded
David Stiller
Adobe Community Expert
Dev blog, http://www.quip.net/blog/
"Luck is the residue of good design."
rather than using loadMovie, I'm suggesting that you use the MovieClipLoader
class. The link I provided is the complete code that creates a blank movie
clip and loads the swf into it. It allows you to do something while the swf is
loading, and something once it has finished. So where you have your code,
replace it with the script that can be found at the link, and change
mcLoader.loadClip("swfName.swf", container); to
mcLoader.loadClip("PageSwfName.swf", container);
Cor - 09 Jul 2008 08:47 GMT
I am looking for an example how to do this in AS30 with classes.
Can you show me or direct me to one?
TIA
Kind regards
Cor