Yes, I was able.

The issue is if you are loading into Flex some SWF published under FP 8 or
lower, it loads into AVM1Movie class instance (which is a child of the
DisplayObject). So it has no frame navigation abilities.

So you need to publish your SWF file under FP9 to be able to control it
using gotoAndPlay from Flex or AS3.

Another possible solution is using AVM2Loader from the Vegas AS3 library
(search the Google for). It hacks the loaded stream to fix the publish
version on the loaded SWF file.

Regards,
Igor

On Wed, Feb 27, 2008 at 5:58 PM, Noah Winecoff <[EMAIL PROTECTED]> wrote:

> Thank you very much for responding.
>
> Were you able to seek (gotoandplay) a specific frame/page in the PDF? if
> so how did you do it? My code shows that there is only one frame in the SWF
> so my gotoAndPlay doesn't do anything.
>
>
> On Wed, Feb 27, 2008 at 7:27 AM, Igor Sadovskiy <[EMAIL PROTECTED]>
> wrote:
>
> > Hello Noah.
> >
> > I tried to load the created with pdf2swf SWF file info Flex and it works
> > fine for me.
> >
> > You need to specify -T 9 option to create swf file targeted FlashPlayer
> > 9.
> >
> > Regards,
> > Igor
> >
> >   On Wed, Feb 27, 2008 at 4:56 AM, Noah Winecoff <[EMAIL PROTECTED]>
> > wrote:
> >
> > > I am having problems loading an SWF file created by pdf2swf with
> > > actionscript 3.
> > >
> > > Does anyone have a simple code sample showing the loading of an SWF
> > > file created by pdf2swf and going to a specific frame?
> > >
> > > Does anyone know if Actionscript 3 is supported now?
> > >
> > > My test code:
> > >
> > > import flash.display.*;
> > > import flash.events.*;
> > > import flash.net.URLRequest;
> > >
> > > var movie:MovieClip = new MovieClip();
> > > var loader:Loader = new Loader();
> > >
> > > var request:URLRequest = new URLRequest("C:\\book4.swf");
> > >
> > > addChild(movie);
> > >
> > > loader.load(request);
> > >
> > > movie.addChild(loader);
> > >
> > > trace(movie.totalFrames);
> > >
> > > movie.gotoAndPlay(2);
> > >
> > >
> > > Thanks in advance.
> > >
> >
> >
>

Reply via email to