View Full Version : links & paths
notafridge
01-07-2002, 09:24 AM
im havin trouble gettin my head round all this path stuff...
ive got a movie clip, and in that movie clip i need a button link to the main stage with the frame label "PT1".
i cant work out how to link the button..can anybody help???
Ricod
01-07-2002, 09:46 AM
on (release){
_root.gotoAndPlay("PT1");
}
pixelwit
01-07-2002, 09:47 AM
I'm not sure what you mean by needing a button to "link to the main stage", but you can try putting this on your button:
on (release) {
_root.gotoAndStop("PT1");
}
Hope this helps,
-PiXELWiT
http://www.pixelwit.com
pixelwit
01-07-2002, 09:48 AM
Rico_D is on it again.
Curse my slow typing.
-PiXELWiT
http://www.pixelwit.com
Ricod
01-07-2002, 10:44 AM
Normally others beat me to it ... but not this time ! :D *would be swinging his jacket on top of a table if he wore one*
notafridge
01-07-2002, 11:02 AM
ok...need that in flash4.
cant work out how to get that command without it putting some crap before it.
i tried goto
i tried on mouse event...
sorry bout this guys, looks like you hooked yourself a real retard here...
Ricod
01-07-2002, 11:26 AM
ehrm ... wasn't that :
[code]
..\gotoAndPlay("PRT1");
[\code]
notafridge
01-07-2002, 11:39 AM
now im completely lost!!!!!
when u choose 'on mouse event' u have several options at the bottom.
ie. on realease, on rollover, on roll off etc.
you need to click on your button and bring up the actions for it. then put the actions inside there.
BLEEDA
notafridge
01-07-2002, 12:01 PM
"you need to click on your button and bring up the actions for it. then put the actions inside there. " - sorry but this just made my head shrink!!
right, so...(bear in mind im on flash 4 NOT 5)
got on mouse event - i knows that bit, got it set to on release.
not clear on the next bit you said though..
i understand that i need to put some actions in there somehow, but im buggered if i know how.
i really need a step by step guide through it coz i really dont understand!!.
im not sure about flash 4
when u bring up the actions can you set it to 'expert' with the little arrow and drop down menu on the right hand side?
if you can, copy the origonal code that Ricod typed and then paste it into the actions window.
BLEEDA
notafridge
01-07-2002, 12:18 PM
nah - nothin like that.
im gonna have to go and get flash 5 by the looks of it.
Ricod
01-07-2002, 12:21 PM
If I recall correctly ..\ = now _root, thus the path to the main timeline is ..\ ... wait, in Flash 4 u use tellTarget I believe. code would then be :
tellTarget(..\){
gotoAndPlay("PT1");
}
notafridge
01-07-2002, 12:31 PM
WAHOO!!!!!
thanks guys
momoto
01-09-2002, 01:24 AM
My question is very similiar to notafridge's.
If my movie clip need a button link to the another htm, with the frame label "PT1". Then how can the path being set?
I got the "getURL" works, but it can't stop on the specific frame label???
Do you guys know how???
notafridge
01-09-2002, 07:57 AM
you want gotoframe rather than geturl dont you????
momoto
01-09-2002, 04:17 PM
cos I have 2 movies which I can only use the button to link them.
do u want to load 1 movie into the other on a different level using loadMovie. u can the refer to the main movies _root and then any instances u have using _level0 instead of _root. the other movies (swf) _root can be refered to as _level1
u can then control them both from within each other
would that do it for u?
BLEEDA
momoto
01-10-2002, 04:29 PM
Noooo, they're in 2 different URLs. I'm not just want to load the Movie, I want to link to another URL as well.
Ricod
01-11-2002, 08:24 AM
What do u mean go to the specific frame ... do u mean in the original swf ? Or to a specific frame in the loaded swf ?
If u want to go to a specific frame on the main timeline while the new html file is loaded have a button with the following :
on(release){
getURL etc.
_root.gotoAndPlay("SomeFrame");
or if u want to go to a specific frame in the loaded swf :
Send a variable to the swf that tells it where to go to. Then in the loaded swf u'll need a loop that checks wether or not the possebli frames are loaded and if so to check the value of the before said variable. Like, if u have the framelabels "blahBlah" and "whatEver" u could have a variable like : jumpTo = "blahBlah";
Then just state : gotoAndPlay(jumpTo);
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.