« Return to Thread: Re: How to build?

Re: Re[2]: How to build?

by mkieveras :: Rate this Message:

Reply to Author | View in Thread


Hello jana,

>- nardik.fla source contains all game movieclips and the command
>"app=new Nardik();" in the first and the only frame;
...
> C:\> mtasc -swf nardik.swf -main -header 320:240:12 nardik.as

You have a constructor call in the timeline to start the application
and you use -main static function to start it a second time.
Don't know if this is the problem, but try without '-main'.

2. Try creating a simple text field at the beginning of your
constructor to see if it runs at all (from http://www.mtasc.org):

  // creates a 'tf' TextField size 800x600 at pos 0,0
  _root.createTextField("tf",0,0,0,800,600);
  // write some text into it
  _root.tf.text = "Hello world !";


Hope this helps,
------------------------------------------------------------------------------
Matthias Kievernagel                                      Software development
mkiever/at/web/dot/de                             http://mkiever.home.tlink.de
------------------------------------------------------------------------------

--
MTASC : no more coffee break while compiling

 « Return to Thread: Re: How to build?