ive searched the forums, and google, and nothing seems to be wrong:
[AS]on (rollOver) {
_root.oldman.gotoAndPlay(“1”);
}
[/AS]
the buttons are in their own movie clip, and so is oldman… i just cant figure it out :h:
thanks in advance
ive searched the forums, and google, and nothing seems to be wrong:
[AS]on (rollOver) {
_root.oldman.gotoAndPlay(“1”);
}
[/AS]
the buttons are in their own movie clip, and so is oldman… i just cant figure it out :h:
thanks in advance
make it like this
_root.the movie clip oldman is in.oldman.gotoAndPlay(“1”);
remember _root always and im mean ALWAYS refers to the main timeline.
*Originally posted by Booyaka *
** _root always and im mean ALWAYS refers to the main timeline. **
Only if the _root in question is on _level0 e.g. if I load a sound clip into _level3 and call _root from within the loaded clip then it will reference _level3 not _level0
oh yeah.
lol doh
nice catch jsk.
_root.the movie clip oldman is in.oldman.gotoAndPlay(“1”);
well the thing is, oldman is the movie clip, oldman isnt really in anything cept oldman
gotoAndPlay(“1”) will gotoAndPlay a frame label, and frames cannot be given labels that are just numbers.
gotoAndPlay(1) however will gotoAndPlay frame #1 of that clips timeline.
Hope this info helps.
UUUURRRRRRRGGGGGGGGGGG!!!
What does _root do??? What are levels? The layers? I’ve looked in the references… but I still don’t get it! Someone
please help me =(
http://www.kirupa.com/developer/actionscript/tricks/root_parent_this.htm
Basically:
_root = First timeline in the hierarchy
_parent = 1 timeline up in the hierarchy from the timeline you are currently on
this = timeline you are currently on
beta, thanks for that, its a good thing to know,
but with or without the quotation marks, it still won’t work… i have the _root command working other places in the site, but for some reason it wont work here
Odd.
Can you post up a .fla so we can have a look?
BTW: As a recommendation as you get used to targeting, I recommend relative addressing using _parent and such, this makes your code more portable and it will still work when you load that movie into another movie.
yea sure, the .fla is real big and ugly right now ( far from done ) but ill have it up in a few minutes
ok, here it is: newsite17.fla
try making any button goto the oldman
You never gave your oldman clip an instance name.
You need to right click on the stage and open the properties panel, and in there give it the instance name “oldman” (no quotes)
Instance names are incredibly useful because instead of it targeting a clip name, it targets the instance name, therefore you can have more than once instance of the clip out at 1 time and target them seperately.
ah, i got the instance name confused with the movie clip name,
thanks alot for the help :player:
:: Copyright KIRUPA 2024 //--