Skip to main content
Participant
April 21, 2009
Question

Convert AS2 to AS3.

  • April 21, 2009
  • 1 reply
  • 451 views

This script is from the livedocs site.  Any help getting this to work as AS3 would be greatly appreciated.

import mx.video.FLVPlayback;
var my_flvPb:FLVPlayback;
my_flvPb.autoPlay = false;
my_button.label = "Seek to point2";

function clickMe(){
  my_flvPb.seekToNavCuePoint("point2");
}
my_button.addEventListener("click", clickMe);

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
April 21, 2009

that is as3.

do you have an flvplayback component on-stage with an instance name of my_flvPb?

gandemAuthor
Participant
April 21, 2009

Yes, I have an flv playback component on the stage- my_flvPb

I keep getting a compile error- 1172: Definition mx.video:FLVPlayback could not be found.

I'm pulling this from the following link: 

http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=00001038.html