sure... it is as simple as this:

// gets the loaded SWF
var theContent:MovieClip = bulkLoader.getMovieClip(path);

// creates a movieclip that will hold the loaded content
var movieHolder:MovieClip = new MovieClip;

// add the content to the movieHolder clip
movieHolder.addChild(theContent);

// down the line we tell "the content" to play
MovieClip(theContent).gotoAndPlay(2);

now "theContent" has to fire a method that will be used by the main shell
that holds the movieHolder and theContent....

On 3/18/08, Sidney de Koning <[EMAIL PROTECTED]> wrote:
>
> In AS3 your dynamic loaded content is placed in a sanbox, where you
> have limited functionality.
> Can you show the code of how you are loading that specific item?
>
>
> S.
>
> On Mar 18, 2008, at 5:27 PM, Helmut Granda wrote:
>
> > AS3, compiled with Flash IDE.
> >
> > On 3/18/08, Sidney de Koning <[EMAIL PROTECTED]> wrote:
> >>
> >> AS2, AS3, AIR? Tell us more!
> >>
> >>
> >> On Mar 18, 2008, at 5:02 PM, Helmut Granda wrote:
> >>
> >>> Hi All,
> >>>
> >>> I have a small dilema with calling an event from a loaded SWF,
> >>> either
> >>> through a direct call or dispatching an event.
> >>>
> >>> Basically my main application loads different SWFs to a container
> >>> and there
> >>> is about 20 of them but one (and only one) needs to interact with
> >>> the
> >>> application.
> >>>
> >>> I tried to put a simple function call callToParent() but of course
> >>> it gives
> >>> me errors at compile time. whining that the method doesnt exists.
> >>>
> >>> Any suggestions? I know the long way to go around to this is to
> >>> create a
> >>> custom class that will load the content in to that class and then
> >>> make the
> >>> calls frorm there but I was wondering if there was an "easier" way
> >>> around
> >>> it.
> >>>
> >>>   TIA
> >>
> >>> _______________________________________________
> >>> Flashcoders mailing list
> >>> [email protected]
> >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >>>
> >>
> >> _______________________________________________
> >> Flashcoders mailing list
> >> [email protected]
> >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >>
> >
> >
> >
> > --
> > ...helmut
> > _______________________________________________
> > Flashcoders mailing list
> > [email protected]
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
...helmut
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to