Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Stop Looping in SWF Loader

New Here ,
Dec 27, 2007 Dec 27, 2007
Hi i'm new to AS, I am trying to use the AS3 Loader class to pull in a SWF file that should only play once.

How do I get this thing to stop looping?!

Code is below.
TOPICS
ActionScript
738
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 28, 2007 Dec 28, 2007
what's looping? the main timeline of movie.swf or some movieclip(s) within movie.swf?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 30, 2007 Dec 30, 2007
Its a swiff loaded by another swiff, the embedded video is what keeps looping. Normally, in the actual video swiff, I can set the loop to false using the embed tag attributes, but this doesn't work when applied to another swiff which is loading another.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 30, 2007 Dec 30, 2007
LATEST
you must explicitly stop the video stream. if you're using the flvplayback class to start the video's play, you'll need to apply the stop() method to that class instance.

you can access the main timeline of your external swf by referencing the content property of your loader (and casting that as a movieclip). from there, use the path to your flvplayback instance and apply a stop() when the playheadPercentage of your flvplayback instance reaches 100.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines