PDA

View Full Version : buttons


Anu123
04-10-2009, 09:04 AM
hi friendz this is anu here..

How to give link for scene vt using flash?

im giving this script for that but its not working....

here is my script..

on (release) {
gotoAndPlay("about us", 1);
}
plz help on this...:confused:

thanks in advance..

kkbbcute
04-10-2009, 01:04 PM
Welcome to AS.org! :)

Firstly, make sure that the code is placed on the button.

If that's not the problem then there are two things you should do to solve your problem. Firstly, don't use scenes! Scenes usually cause massive problems with frame navigation, so don't use them, as they are usually unecessary anyway. Secondly, use MCs to act as buttons instead of buttons!

You can always usev this code:
buttonName.onPress = function():Void {
gotoAndPlay("someFrameHere");
}

Put the code on the frame, where buttonName is the instance name of your MC.;)