Skip navigation
pixelstag
Currently Being Moderated

Error looping f4v

May 20, 2011 9:04 AM

Hi All,

 

I'm trying to loop a f4v but I keep getting an error.  I have imported a f4v into my library and I now have a FLVPlayback in my library.  I have added this to the stage and named it "video_test".

 

I have added the below actionscript to my timeline:

 

video_test.autoRewind = true;
video_test.addEventListener(VideoEvent.COMPLETE,replay);
function replay(evt2:VideoEvent):void{
    video_test.play();
}
stop()

 

Whenever I test the movie I'm getting this error:

Scene 1, Layer 'actions', Frame 1, Line 2    1119: Access of possibly undefined property COMPLETE through a reference with static type Class.

 

Any ideas would be greatly appreciated!!

 
Replies
  • Currently Being Moderated
    May 20, 2011 12:04 PM   in reply to pixelstag

    Instance name and class name cannot have the same name. Names have to be unique.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 7, 2011 7:13 AM   in reply to pixelstag

    add

     

    import fl.video.*;

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points