Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

on click, move to defined frame #

Status
Not open for further replies.

saw15

Technical User
Jan 24, 2001
468
US
I am very new to Flash, and have stopped the movie in my flash file, but want to continue when the user clicks the screen.

When the user clicks, I want to move to a selected frame and then stop again, repeating with each click etc.

Any help is appreciated.
 
In short, I am playing a movie clip and then providing some animation etc afterwards.

I am using stop();, to stop the animation etc. Once everything is stopped, I want to be able to click on the screen again and advance to a individual slides, so I can talk about each, clicking through each one.

I have the movie and animation working as expected, now I just need to know how to advance to specific frams based on each click of the screen (similar to powerpoint).

Thanks.
 
If everything is on the main timeline, you could try this...

On the first frame of your movie...

this.onMouseDown = function(){
nextFrame();
};

The above would move the playhead to the next frame and stop, until another click.

Or...

this.onMouseDown = function(){
this.gotoAndStop(X);
};

The above would move the playhead to the frame number (change X for the frame number...) and stop, until another click.

Or...

this.onMouseDown = function(){
this.play();
};

The above would have the movie play until another stop(); was encountered on the timeline.


Regards. Web Hosting - Web Design
03/13/05 -> OLDNEWBIE VS FLASHKIT
 
Just what I needed, thanks.

Appreciate the quick response.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top