PDA

View Full Version : Button component


toobit
06-27-2007, 07:05 PM
Not to be to beginner but I seriously dont know how to get info on action script that makes components work. Action script is everywhere, althought there are no tutorials that show basic functions for components.

Im trying to get a "button component" on click go to another part of the flash movie and start playing. Very basic. Here is my code thats not working. Unreal how hard i have looked and cant find basic stuff.:(

Anyone help?



on (click) {gotoAndPlay("Scene 2, 1");

}

LOLFlash
06-27-2007, 08:31 PM
I wouldn't recommend you use components for framed movie. The drawn buttons from Common library work much nicer .
I think Macromedia designed components to work in Flash Form application. In forms I have no problems with them.
But if you want:

On(clock){
this._parent.gotoAndPlay(9);
}