PDA

View Full Version : no entry point? How does it start then?


backroomwebdesign.com
08-18-2009, 02:32 AM
Feeling retarded, I know this is a simple one.

Playing with Box2DAS3, and the project is very simple Ive been able to take the helloWorld and make it do stuff, however....

There is no entry point to the program and Im wondering what starts it all. There is a .fla with 3 symbols, no code in the symbols, no code in the timeline / on different layers etc... There is an .as file that is a package which imports stuff and defines a class with a constructor as well as other functions. I can not find the point of entry.

EDIT: Ive made an identical folder with identical filenames and symbol / linkage names. As far as I can tell theyre identical, however mine does nothing, not even spit an error out.

senocular
08-18-2009, 03:28 AM
The entry point for Flash applications is the constructor of the document class. The document class is the class from which the main timeline (root) is instantiated.

In a FLA, with nothing selected, you can specify the document class in the properties panel.

backroomwebdesign.com
08-18-2009, 04:50 AM
Well crap, that makes sense now. Thanks again, superma, er I mean Senocular. :-)

Flash Gordon
08-18-2009, 05:26 AM
and just FYI you can use the applicationComplete handler if you are in Flex.