Hi,
I am embedding an swf containing video in my document class like:
Code:
[Embed(source="/assets/panorama_video.swf")]
private var videoAsset:Class;
...
var videoMat:MovieClipAsset = new videoAsset();
to use the video in a Papervision3D scene (not important for this).
How can I tell the document class that the video has completed playing?
Code in video swf:
Code:
player.addEventListener(VideoEvent.COMPLETE, onVideoComplete);
function onVideoComplete(evt:VideoEvent):void{
....?
}
Can I use dispatchEvent in someway? How can I call a function in the document class from within the embedded swf?
thanks!
JerryJ.