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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to jump to a cue point when your buttons are on a different scene?

Status
Not open for further replies.

hunter141072

Technical User
Oct 2, 2006
2
MX
hi guys!!!
well, im new here and more or less new with action script, that´s why i want to ask you this:

im making a flash movie which is going to have a video with cue points, what i wanted to do is to create a menu of buttons in one scene let´s say scene 1 and the video is in scene 2, what i want is that when you press one of the buttons who are in the menu of scene 1 it takes you to the cue point on the video which is on scene 2, think of it like one of those chapter selection menus that you see on dvds, now my problem is that i don´t know what i have to do in order to let the button know that i want it to jump to the cue point, i´ve been able to do this if the buttons are on the same scene where the video is, but when i try to make this with the buttons on a different scene i can´t jump to the cue point, so far i´ve only been able to make the button go to the video and play it but it doesn´t go to the cue point, this is driving me mad please can anybody here tell me how to do this??? i have found hundreds of ways to do it with the buttons on the same scene but none with the buttons on a different scene, thanks!!!!
 
hi!!! well, it´s not easy because the flv is very big, however i just realized that i can have the video in the same scene, but the problem is still the same: i want to move to a cue point when i press a button that is on frame 1, but the video is on frame 2, no mather how i do it the button refuses to jump to the cue point unless the button is on the same frame as the video, why is this happening?? this is the code that im using:
on (release) {
var c = this._parent.display.findCuePoint("introduction");
this._parent.display.seekSeconds(c.time);


this only works if the button is on the same frame where the video is, but if the button is one another frame this doesn´t work, everything is on the same scene now so i don´t understand why this doesn´t work, please im getting mad for this!!

thanks!!!
 
You probably can't target display if it's not also on the frame the button is. Can't you have display off-stage or invisible on the frame the button is, and then simply move display back to the stage on the second frame, or change it's visibility on the second frame...

If it still doesn't work, try to post a link to your .fla without the FLV.

Regards. Web Hosting - Web Design
03/13/05 -> OLDNEWBIE VS FLASHKIT
 
Another approach would be:
1. Store the cue point as a global variable on button press
2. Go to the next frame
3. When FLV is loaded and ready, seek to the cue point stored in the variable

Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top