hello :)

see the example in the reference of the AS3 class :

http://livedocs.adobe.com/flex/2/langref/flash/display/Loader.html

See the example in the end of the page

In the completeHandler callback method you can test the type of the
"event.target.content" reference :)

Example

private function completeHandler(event:Event):void
{
     trace("completeHandler: " + describeType(
event.target.contentType ) ); // import the flash.utils.describeType
method in the header of your code.
}



and read :

http://livedocs.adobe.com/flex/2/langref/flash/display/AVM1Movie.html

.. after, open Flex or Flash CS3 and copy the code and test it with an
external swf in AS2 and AS3...

It's easy to test it :)

EKA+ :)


2008/4/3, Sidnei Vladisauskis <[EMAIL PROTECTED]>:
>
> Hi ekameleon ,
>
> tks for your help, but was you have a exemple??
>
> tks again.
>
>
> On Thu, Apr 3, 2008 at 12:17 PM, ekameleon <[EMAIL PROTECTED]> wrote:
>
> > hello :)
> >
> > yes when you use the Loader class.. inside your reference you can find
> the
> > "content" reference who is the reference of the Bitmap or MovieClip,
> > etc...
> > if the external swf is a AVM1 file the type of the reference is AVM1.
> >
> > Use the Loader class and test the content property when the external swf
> > is
> > loading.
> >
> > EKA+ :)
> >
> > 2008/4/3, Sidnei Vladisauskis <[EMAIL PROTECTED]>:
> > >
> > > Hi,
> > >
> > > I´m developing my new portfolio in AS3 for learn.
> > >
> > > I need load swf AS2 into the movieclip in my swf AS3.
> > >
> > > I researched, but I don´t find one documentation for this.
> > >
> > > I find a reference using AV1Movie Class?
> > >
> > > is it correct for load a swf AS2?
> > >
> > > But how to use this class with Loader class?
> > >
> > > Tks.
> > > _______________________________________________
> > > Flashcoders mailing list
> > > Flashcoders@chattyfig.figleaf.com
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> >
> > _______________________________________________
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> >
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to