-
Drop-down Menu Problems
Alright, so I have a movie clip, inside the movie clip is a button with a few layers in the main timeline. In the actionscipt it says:
on(rollOver){
gotoAndStop(6);
}
On frame 6 I have the main button, and the second drop-down button attached to it in the layer underneath the main button. The main button has the actionscript:
on (release){
loadVariables("day.txt","_root");
}
and the drop-down button has the script:
on (release){
gotoAndPlay("Blog Archive", 1);
}
I also have a roll-off box underneath all this to reset everything if the mouse leaves that area:
on (rollOut) {
gotoAndStop(1);
}
My problem is, the main button works like a charm, but the drop-down button doesn't do anything other than look pretty and change colors when you click on it.
I've looked at all my scene names, and double checked frame references... but I don't know why the second button won't work.
I was even suggested using:
on (release) {_parent.gotoAndStop(INSERT FRAME NUMBER);
}
But still no luck... Any suggestions?
Life would be so much easier if we just had the source code...
-
Well for one thing you can't target scene names from movie clips. In fact you should never target scene names...
You should target a labeled frame instead. Label the targeted frame in the targeted scene with a unique label, add _root, and target the labeled frame...
code:
on(release){
_root.gotoAndplay("frame_label");
}
But you may also have another problem with your overlapping buttons... Could only tell by looking at your .fla, zipped up and in MX only format, not MX2004.
-
Thanks, worked like a charm!
Life would be so much easier if we just had the source code...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|