I didn't make it but I have the .FLA file. The first frame is just a
movie clip with a button in it. When the button is pressed, the movie
clip plays. Do I need to set the movie clips timeline to 1? How can I
access this specific component? I tried to embed the symbol using...

[Embed(source="assets/Tile_Flip_Front.swf", symbol="button_mc_break")]

...but I get a couple of errors. Is there a valid way to do this?

--- In [email protected], "Battershall, Jeff"
<[EMAIL PROTECTED]> wrote:
>
> Do you know if the animation is in fact done via timeline?  If it is
> not, gotoAndPlay(1) isn't going to do you much good.
> 
> Jeff
> 
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of kenny14390
> Sent: Thursday, May 29, 2008 2:23 PM
> To: [email protected]
> Subject: [flexcoders] Re: Replaying an Embedding SWF
> 
> 
> I got the AS: 
> 
> (tileFront.content as MovieClip).gotoAndPlay(1);
> 
> However, the SWF is still not visible after it has already run.
> 
> 
> --- In [email protected], "kenny14390" <kenny14390@> wrote:
> >
> > I searched this topic and actually found your blog post about it. It's
> 
> > still a bit unclear how to access the timeline. Do you get the content
> 
> > property of the SWFLoader instance, cast that to a MovieClip, then 
> > access the MC's root property? I cannot access the timeline in this 
> > way.
> > 
> > --- In [email protected], "peterent" <pent@> wrote:
> > >
> > > Once the SWF has been loaded you can access its root timeline
> > through the loader's content.
> > > Having the root timeline will let you execute the function:
> > gotoAndPlay(1) - making the SWF
> > > move the playhead back to the first frame and start playing it 
> > > again. --peter
> > > 
> > > --- In [email protected], "kenny14390" <kenny14390@> wrote:
> > > >
> > > > I've got a SWF file that is embedded in the Flex app. When the
> SWF is
> > > > clicked, it does an animation and fades away. How can I get the
> SWF to
> > > > revert to its default state? I've tried resetting the source of 
> > > > the SWFLoader to the same SWF file, but it does not load. I've 
> > > > also
> tried
> > > > creating a second SWFLoader with the same source, but there must 
> > > > be something preventing the same file from being loaded more than 
> > > > once. The only way the SWF starts over is when the entire app is 
> > > > reloaded. What can I do? I could modify the FLA itself or the Flex
> > implementation.
> > > >
> > >
> >
> 
> 
> 
> ------------------------------------
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>


Reply via email to