Stick Page Forums Archive

As3 Help.

Started by: DarkCloud | Replies: 3 | Views: 553

DarkCloud

Posts: 164
Joined: Dec 2009
Rep: 10

View Profile
Jan 23, 2010 11:54 PM #540043
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.
package
{
import flash.display.MovieClip;
public class Main extends MovieClip
{
var startPage:StartPage;

public function Main()
{
startpage = new Startpage;
addChild(startPage);
}
}
}
Scarecrow
2

Posts: 9,168
Joined: Oct 2005
Rep: 10

View Profile
Jan 27, 2010 9:28 AM #541068
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?
CGIllusion
2

Posts: 617
Joined: Aug 2005
Rep: 21

View Profile
Jan 27, 2010 8:39 PM #541113
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.
ALOHAOI

Posts: 1
Joined: Feb 2010
Rep: 10

View Profile
Feb 1, 2010 4:26 PM #542496
I Am Alohaoi \o/
Website Version: 1.0.4
© 2025 Max Games. All rights reserved.