PDA

View Full Version : open new URL on specific frame label


momoto
12-20-2001, 04:28 PM
I use a button to open a new URL on the same browser, but how can I open a specific frame label on a new page?

Do anyone know how to do it?

Thank you! ;)

Billy T
12-21-2001, 12:23 AM
would be a lot easier if you used loadmovie rather than geturl...

momoto
12-21-2001, 12:43 AM
Actually what I'm doing is use a button to open a new URL on the same browser, on the new page, I just use a button to go back to the previous URL but want to go to special frame label. 'cos there're so many buttons on the first page, like a menu, it's complicated to use the "loadMovie" to go back and next.

Don't know if I made myself clear enough to you. But so appreciated of your help.

Billy T
12-21-2001, 04:58 AM
i still dont see why you cant use load movie just as easily.....unless you are wanting to use the forward and back buttons on the broswer?

Ricod
12-21-2001, 07:38 AM
Pssst ! <whisper> Billy T ! If thats the case, suggest him to take a look at Robert Penner's back button code.</whisper> :)

Billy T
12-21-2001, 07:49 AM
Hey I just had a brilliant idea!!

Maybe you should check out Robert Penner's back button code.

There's some info on it here

http://www.werkstatte.com/newkenny/DOWNLOADS/backBtn/

;)

Ricod
12-21-2001, 07:55 AM
That Billy T ! He never stops amazing me ! He's a genius ! Why didn't I think of that ? Must be the cereal he eats ...

:)

Billy T
12-21-2001, 08:10 AM
actually its the sweat-shop full of actionscripting monkeys that I own but I'm prepared to take the credit :p

Ricod
12-21-2001, 08:27 AM
Indeed ! If it wasn't for u, they'd still be lost in the jungle of unknowing saying nothing more but "ook !". But now they state :

myMessage = "ook !";

And so we are able to commuicate with each other ! :)

Billy T
12-21-2001, 08:37 AM
:p

its an amazing age we live in...

momoto
12-21-2001, 04:45 PM
Thanks for Billy T and the whispering man Ricod.

My case is kind of hard to describe here. The button to open new URL and the button on the new URL are all in swf. I made the button to open the new URL, but when I back to the previous page, I want to go to a specific frame label on the swf of the first page.

I'm a real beginner of scripting, so could you guys suggest me any other way for me? Maybe I'm not quite fully use of Billy T's Robert Penner's back button code.....

:confused:

Ricod
12-21-2001, 04:50 PM
<whisper>Billy, shall we tell him about passing variables from one thing to the other ? And that we've got lots of tutorials ? If thats the case, that would suggest he didn't looked there first and that he ignored this forums rules ... and that we would need to send that gorilla after him. The silverback with the spikes-as-digits.</whisper>

momoto
12-21-2001, 11:36 PM
ok guys. I'm new to scripting and I did read the tutorials related to variables before. But it's kind of difficult for me to apply to my case. And I'm running out of schedule now, I just hope to find a easilest way to do the actions. And I have to check if I got the php support to "loadVariables".

Billy T
12-22-2001, 01:04 AM
ok here is how I would do your thing...

base movie - 1 frame that has a loadmovie action that loads the first scene into level1 and a variables movie into level 5.

Whenever a button is clicked you load another movie into level1 - this will replace the previous movie that was in there. The button will also send some info to the level5 variables clip that will record where the user has gone.

When the user clicks the back button it loads the original clip and sends some more info to the variable clip. In the first frame of your original clip it checks the state of various things in the variable and jumps to the appropriate frame

Using the get url as you are makes its very difficult to store any variables as any that you have are been wiped whenever you load a new movie (unless you are storing them on a database or something and I dont know anything about that)

I'll upload a little scoring thing I made for someone recently - it uses the concepts described about and may be of some use to you

cheers

momoto
12-22-2001, 01:52 AM
I appreciate your help, thanx.

I'll try your file out. :)