I need code to get this working for as3. This doesn't work, it just stops and doesn't got to my frame label "alice" anyone have any ideas?
thanks!
Code:
/**
Requires:
- FLVPlayback component on the Stage with an instance name of my_FLVPlybk
stop();
//as 2.0
import mx.video.*;
var listenerObject:Object = new Object();
listenerObject.complete = function(eventObject:Object):Void {
_root.gotoAndStop("alice");
};
my_FLV1.addEventListener("complete", listenerObject);
my_FLV1.contentPath = "holder.flv";*/
//actionscript 3.0
this.stop();
import fl.video.*;
var flvPlayer:FLVPlayback = new FLVPlayback();
addChild(flvPlayer);
flvPlayer.source = "http://www.helpexamples.com/flash/video/water.flv";
video1.addEventListener(VideoEvent.COMPLETE, onPlaybackComplete);
function onPlaybackComplete(ev: VideoEvent):void {
gotoAndStop("alice");
}