PDA

View Full Version : [FMX]Why doesn't this do anything?



λ
April 12th, 2003, 11:55 AM
on (release){
skehintoolbar.data.exists = true;
skehintoolbar.data.persontype = "developer";
_root.gotoAndPlay ("developer", 1)
}

The above code is on a button in a movieclip in the main stage, but when I click the button, nothing happens. It's supposed to go to a new scene, with content designed for developers. skehintoolbar is a local SharedObject:


skehintoolbar = SharedObject.getLocal("skehintoolbar");

eyezberg
April 12th, 2003, 04:17 PM
because buttons nested in clips do not work bith scenes, put a frame label in the frame you want to go to and use that instead; ALWAYS!! (gotoAndPlay("labelName"))

λ
April 12th, 2003, 04:19 PM
Thanks eyezberg, I really needed that. That's just the sort of simple but hard to figure out thing that's really annoying.:trout:

eyezberg
April 12th, 2003, 04:41 PM
spent a week once trying, before getting the Moock book and read that..buy it!

λ
April 12th, 2003, 05:08 PM
I just got it last saturday, but i was busy during the week so I haven't readit properly. Seems like a really good book though.