PDA

View Full Version : Scenes : Buttons not linking to correct scene


davestewart
09-13-2005, 08:57 AM
Morning.

I have been given the task of creating an interactive world map with office locations plotted in each country.

I have created a frontend with roll-over buttons to link to each country. Once selected you jump to a scene (say NAmerica) and then are promted with each city which may have multiple offices. Clicking on one of these buttons will take you to a new scene (Atlanta) which will list the offices that you may click on (clicking will call text into a html txt box).

All is working fine until yesterday, I am now putting in South America and when i put the script on the button :

on (release) {gotoAndPlay("_SouthAmericaSelection", 1);

}


: it doesn't jump to that scene but rather the scene before it (at the mo, NAmerica).

Can anyone tell me why this is happening. I have tried renaming the scenes, changing the order but to no avail.

Time is tight for me on this project so if anyone can help me on this I would be truely greatful.

Dave..

bearsark86
09-13-2005, 09:46 AM
can u try:
on (release) {
_root.gotoAndPlay("_SouthAmericaSelection", 1);

}

u can visit tis link if u wanna knoe more...
http://www.senocular.com/flash/tutorials/faq/#varreference

davestewart
09-13-2005, 10:05 AM
can u try:
on (release) {
_root.gotoAndPlay("_SouthAmericaSelection", 1);

}

u can visit tis link if u wanna knoe more...
http://www.senocular.com/flash/tutorials/faq/#varreference

Morning. TY for your input on this, unfortunately this didn't work, browsed through the site and managed to understand as much as i could but couldn't find anything that would help me (must mention that I am still a ActionScript Noob and big words scare me :)

If anyone else has a solution, would definetly help me here. Seems that all the struction of the buttons (links to scenes) are knackered. The sub buttons that link to scenes work fine, but this text is on words created as buttons, where as the first part (where I'm having trouble) is on wmf files. This should not cause an issue should it?

pixel_vixen
09-13-2005, 10:17 AM
I've just had a similar thing happen to me in MX :(

My site was functioning just fine, all the buttons went to the correct scenes until suddenly I added a scene and whammo -- buttons suddenly lost their correct destination scenes somehow -- Could it be a naming issue? I renamed my scenes and some buttons still did the wrong thing :(
Am I such an idiot?

I have been using

on (press) {
gotoAndPlay("about",15);
}


as a code basis for all buttons. Is this a similar problem to yours?
(About is a scenename, 15 is the frame# I want to get to in that scene.)

davestewart
09-13-2005, 10:26 AM
its 100% exactly that. I have added some scences an now its not working...

How did you get around that then, as I have to add the new scenes.

oldnewbie
09-13-2005, 01:17 PM
Never target scene names in your Flash life again, but always but labeled frames, and add the targeted timeline to your path...

on(release){
_level0.gotoAndPlay("frame_label");
}

See post #7 in this thread...

http://www.actionscripts.org/forums/showthread.php3?t=76267