Question

I have created a Flash Slide Presentation. It includes a 5 min FLV with synced images. I have also created buttons to skip to various cuePoints as well as a play and pause btn. The swf is loaded (component) into my home page.

How do I disable the auto play when it downloads the swf? I would like the user to be able to hit play to start the swf. Plus I’m sure it will get annoying when the user goes back to the home page and it starts to play.

Also at the end of the swf it just starts from the begining, I would like it just to stop.

Here is the actionScript that I used for the Flash Slide Presentation

var uses_screens:Boolean = true;

function seekToCuePoint( cueName ) : Void
{

var c = display.findCuePoint( cueName );
display.seekSeconds( c.time );
findNextButton( c.name )

function synchVideoToInterace( cueName:String ):Void
{

if(!display.playing ){
display.play();
}
// Show associated content on screens or labeled frames
if( uses_screens ){
currentSlide.gotoSlide(this[ cueName ]);
}else{
gotoAndStop( cueName );
}
// Update the higlight position
findNextButton( cueName );
}
// Layout the button highlight when requested
function findNextButton( cueName:String ):Void
{

var cueBtn = this[ cueName+"_btn" ];
if( cueBtn != undefined )
{

if( highlight_mc == undefined ){
this.attachMovie(“ThumbOutlineSelected”,“highlight_mc”, 100);
}
highlight_mc._x = cueBtn._x;
highlight_mc._y = cueBtn._y;
}
}

var videoEventHandler:Object = new Object();
videoEventHandler.cuePoint = function( evt:Object ):Void
{
// Get the cue name from the event object
synchVideoToInterace( evt.info.name );
}
videoEventHandler.fastForward =
videoEventHandler.rewind = function( evt:Object ):Void
{
// Get the cue name of the nearest cue point
var nearestCue = evt.target.findNearestCuePoint(evt.playheadTime);
synchVideoToInterace( nearestCue.name );
}
display.addEventListener(“cuePoint”,videoEventHandler);
display.addEventListener(“fastForward”,videoEventHandler);
display.addEventListener(“rewind”,videoEventHandler);

if( uses_screens ){
var slideEventHandler:Object = new Object();
slideEventHandler.revealChild = function( evt:Object ):Void{
evt.target.gotoAndPlay(1);
}
addEventListener(“revealChild”,slideEventHandler);
}

display.PlayButton =playbtn;
display.pauseButton=pausebtn;

Thanks for your help