I just wanna know if it is possible to pause a playing SWF file in adobe flex?
I have an SWF Loader and it plays my SWF file however, it does not have any capability (or built in function) that pauses the file.
Can anyone help me with this please? I'll appreciate some code to start with. 🙂 Thanks in advance.
Best Answer
You can use the
stop();
The following is an example of a swf playing and control is given to the play and pause and gotoandstop buttons.
For completeness I have placed in the method for @Embed (it is not possible to get the original swf directly via SWFLoader [runtime vs compile time] but you can you can load the Bytes from a Class)
I am sure now that it is the embed that was giving the problem sorry for any confusions. So if you need your swf as part of your file below should the trick.
The last way you can achieve getting assets into your flex workspace is to use SWC Assets Method.
Good Luck ! :D