for (int i=0; i<5; ++i)
{
cout << "smap!" << endl;
}
import flash.events.EventDispatcher; import fl.video.*; thePlayer.source = "splash.flv"; This is the part that is kinda funky var theCuePoint:Object = new Object(); theCuePoint.time = 0.001; theCuePoint.name = "main_video"; thePlayer.addASCuePoint(theCuePoint); function splashCuePoint(evt:MetadataEvent):void { loadVideo(); } thePlayer.addEventListener(MetadataEvent.CUE_POINT, splashCuePoint); function buttonClick(evt:MouseEvent):void { loadVideo(); } theButton.addEventListener(MouseEvent.CLICK, buttonClick); function loadVideo():void { thePlayer.source = “main_video.flvâ€; thePlayer.play(); theButton.enabled = false; theButton.visible = false; }
This is the text.
[ftf w=”400″ h=”400″ def=”as2.xml” auto=”true”]import flash.events.EventDispatcher;
import fl.video.*;
/*thePlayer.source = “splash.flv”;*/
var theCuePoint:Object = new Object();
theCuePoint.time = 0.001;
theCuePoint.name = “main_video”;
thePlayer.addASCuePoint(theCuePoint);
function splashCuePoint(evt:MetadataEvent):void {
loadVideo();
}
thePlayer.addEventListener(MetadataEvent.CUE_POINT, splashCuePoint);
function buttonClick(evt:MouseEvent):void {
loadVideo();
}
theButton.addEventListener(MouseEvent.CLICK, buttonClick);
function loadVideo():void {
thePlayer.source = “main_video.flvâ€;
thePlayer.play();
theButton.enabled = false;
theButton.visible = false;
}[/ftf]