i tried it and its not working !
again - i m using flex 1.5

here is my code:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application backgroundColor="#FFFFFF"
xmlns:mx="http://www.macromedia.com/2003/mxml">
      <mx:Script>
      <![CDATA[
     
      function replay(){
            mySwf.content.gotoAndPlay(1);
      }
     
      ]]>
      </mx:Script>
      <mx:Image source="images/swfTest.swf" id="mySwf" />
      <mx:Button label="replay" click="replay()" />
</mx:Application>

my swf is 20 frames with stop on frame 10.


--- In [email protected], "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> I don't have a ready example, but the key to this is the "content"
property. 
>
> <mx:Image id="mySwf" src="" .../>
>
> Then in as:
> mySwf.content.gotoAndPlay(10);
>
> or var sValue:String = mySwf.content.myPublicProperty;
>
> Tracy
>
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf Of shemeshkale
> Sent: Wednesday, May 24, 2006 6:01 AM
> To: [email protected]
> Subject: [flexcoders] how do i control a .SWF file inside flex?
>
> hi,
> i want to implement a swf file inside flex 1.5 and the control it from
> flex.
> i want to tell this swf to gotoAndPlay(10), gotoAndStop(98)... etc.
>
> how do i do this?
> can u point me to an example?
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to