View Full Version : As3 Help.

01-23-2010, 04:54 PM
Ok so I started working on as3(action script 3.0) so anyways i'm trying a little button thing game and when it starts it's supposed to stop on this specific frame where the movie clip StartPage is heres the code for some reason it doesn't work it just runs like normal.
import flash.display.MovieClip;
public class Main extends MovieClip
var startPage:StartPage;

public function Main()
startpage = new Startpage;

01-27-2010, 02:28 AM
i'm not sure what you're trying to do. you don't have any buttons or stop code.

all you have done is made a package, imported some functions, made a class, a variable, and another function that adds a child to the variable.

can you try and explain better what you're trying to achieve?

01-27-2010, 01:39 PM
When you add a movieclip to the display list it auto plays. You need a stop code like Scarecrow mentioned... startpage.stop();

..or in your movieclip put stop(); on the first frame.

02-01-2010, 09:26 AM
I Am Alohaoi \o/