flash actionscript:
Why not change the script of the swfs being loaded into the main swf?
--
Dan Mode
*THE online Radio*
http://www.tornadostream.com *Must Read*
http://www.smithmediafusion.com/blog *Flash Helps*
http://www.smithmediafusion.com/blog/?cat=11 [quoted text, click to view] "BeniRose" <webforumsuser@macromedia.com> wrote in message
news:e8446n$cr$1@forums.macromedia.com...
> Hey guys. I'm currently working on a project where all the content movies
> are
> seperate SWF files (because they handle the content differently on each
> "page")
> and I'm loading them into my main movie depending on which link they
> click.
> Right now I'm having problems getting my included (content) movies working
> properly in my main movie. They work perfectly when I publish them as
> their own
> SWFs, but as soon as I load them in my main movie they don't work. This is
> because the levels (depths) are different when they're loaded into my main
> movie (_root is no longer the _root of the included SWF, but now the _root
> of
> the main movie). So I thought maybe I should load my container movieclip
> into
> level5 and then in my included SWF call _level5 anywhere I used to call
> _root.
> However I'm having problems with this. Here's my code for including the
> SWF
> content movies:
>
> var container:MovieClip = createEmptyMovieClip("container", 5);
> container._x = 515;
> container._y = 121;
> var mcLoader:MovieClipLoader = new MovieClipLoader();
> mcLoader.addListener(this);
> mcLoader.loadClip("News.swf", container);
>
> However, If I trace(container._level) it says _level0, even tho I put 5 in
> the
> depth parameter. Am I doing something wrong. Is there anyway to load an
> SWF
> into it's own environment so "_root" in any actionscript in the included
> content movie is the root of the content movie and not of my main movie?
> Any
> and all help is appreciated and thanks a lot guys!
>
> ~Ben~
>