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

Loop flv in Animate

New Here ,
Mar 02, 2016 Mar 02, 2016

Hello everybody,
I've a question about how is possible put in loop a flv in Animate?
I tryed like that:

  • Import a movie *.mov into library
  • add in a level that code As3

import fl.video.VideoEvent;

myVideo.addEventListener(

VideoEvent.COMPLETE, completePlay);

function completePlay(e:VideoEvent):void {

myVideo.play();

}

import fl.video.VideoEvent;

fl_video.autoRewind = true; // fl_video being the name of the video component

fl_video.addEventListener(VideoEvent.AUTO_REWOUND, doLoop);

function doLoop(e:VideoEvent):void

{

e.target.play();

}

  • named a movie in propriety: myVideo

but don't work!

Thanks in advance for your help!!!

Cheers

Giulio

TOPICS
ActionScript
943
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 ,
Mar 02, 2016 Mar 02, 2016

if you want your mov on a timeline, just loop the timeline that contains the video.

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 ,
Mar 02, 2016 Mar 02, 2016

Thanks Kglad for your reply,

but when I import my video (mov) on Animate the istance is a FLVPlayback and if a drag the in stage is one frame, so start the movie and stop without the loop.
How is possible with a command As3 create the loop?


Thanks in advance

Giulio

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 ,
Mar 03, 2016 Mar 03, 2016
LATEST

assign your flbplayback instance and instance name (in the properties panel), eg, flv_pb.

you can then use:

flv_pb.addEventListener(Event.COMPLETE,completeF);

function completeF(e:Event):void{

flv_pb.seek(0);

flv_pb.play();

}

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