Book a Demo

Author Topic: Generating Code for ActionScript 3  (Read 2618 times)

laschmoove

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Generating Code for ActionScript 3
« on: June 30, 2006, 12:44:43 am »
Good morning,

I am trying to generate AS3 code from my model. The classes are generated correctly, but the pakage information is missing. What I'd like to achieve is something like the following:
Code: [Select]

package src.com.bk.core
{

import mx.core.Application;

import mx.controls.Label;

import mx.containers.Canvas;



public class Main extends Canvas

{

   public function Main()

   {
   

   
var l:Label = new Label();



l.text = "Hello World";



trace(l.text);



addChild(l);

   }


}//end Main
}


Can anybody tell me how I can get the package beeing declared through code generation?

Thanks for your support,
B.

laschmoove

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Generating Code for ActionScript 3
« Reply #1 on: June 30, 2006, 04:59:58 am »
I'd like to excuse me. The topic is not a new one. The solution has already been explained here.