PDA

View Full Version : Navigating to a specific frame



coyotekel
March 26th, 2003, 08:40 AM
I have a back button that should take you back from the first frame of one url to the last frame of another. However I can't figure out how to do this. It always brings you to the beginning.

tried this:

on (release) {
getURL("about :history.back(-1)");
}

but this won't always work because they can get there from a menu so the last thing in the history will be that menu instead of the last page of the section before.

tried this:

if(back == "true"){
gotoAndPlay(27);
}

as the variable that is checked at the start of my movie to see if it was opened from another movie

and:

on(release) {
getURL("introduction2.html?back=true", "_self");
stopAllSounds();
}

and this on the back button from the other movie

still not working. any ideas. totally stumped and desperate!!

basically i just need to figure out a way to navigate to a specific frame in a different url. :*(

Guig0
March 26th, 2003, 09:22 AM
are you sure of what youŽre atempting is possible?

i neve seen any code like this:
getURL("about :history.back(-1)");



and the last frame of a url?? you mean last frame of your movie :q:

coyotekel
March 26th, 2003, 09:24 AM
I don't know if it's possible but I'm determined to figure it out. It's gotta be.

I've never seen anything like that history-1 code either. Was suggested to me by someone else.
:sure: Kel

coyotekel
March 26th, 2003, 09:44 AM
oh and i do mean the last frame of my movie.

:)

Guig0
March 26th, 2003, 09:55 AM
why donŽt you use that?

on (release) {
_root.gotoAndStop(1);
}

to got to the first frame, and:

on (release) {
_root.gotoAndStop(#);
}

# = the number of your last frame, to got to your last frame.

:q:

coyotekel
March 26th, 2003, 09:58 AM
it's a different movie. not the one i'm in. i need to navigate between them.

Guig0
March 26th, 2003, 10:08 AM
can you explain the situation :q:

coyotekel
March 26th, 2003, 10:22 AM
Well I've got a drop down menu that you can use to get from movie to movie. Each movie is made up of 10+ frames each containing a movie clip, continue & back buttons. It's a training thing with voice overs.

Ok back to my point. The first module needs to be broken up into two parts but it's already built into one. So the easiest thing would be to change the menu to make it look like it's two parts but just have a new link that would take them to the middle of the it. (hence, making it look like two parts)

The movies are pulled up in html windows.

Does this make any sense at all? :crazy:

Guig0
March 26th, 2003, 11:41 AM
nope (-:

can you post your fla(s) :q:

coyotekel
March 26th, 2003, 11:46 AM
No I just went through it and split it up. I'm showing it off this afternoon so I've got to finish it. Wish me luck. And thanks for all your help. This is my first one to ever show.:cowboy:

Guig0
March 26th, 2003, 11:59 AM
np ;)

can you supply a link :q: :beam:

coyotekel
March 26th, 2003, 12:01 PM
Let me get my feedback first. I'm a bit nervous. I will this afternoon. Would you view it and tell me "honestly" if it sucks?

Guig0
March 26th, 2003, 12:54 PM
yep. if you want a honest review iŽll give you one ;)

just send me the link. =)