David, Thanks, I am always interested in the way Actionscript is interpreted into byte-code. But what I am really looking for is some help with the sparx systems enterprise architect tool itself. I figured as it is a UML tool with inherent Actionscript generation that people on this list would be using it and know what I mean. I actually found what I was looking for last night anyway so no biggie.
Jim p.s. is anyone using this tool? I just started and it looks fantastic. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Rorex Sent: 23 March 2006 02:29 To: Flashcoders mailing list Subject: Re: [Flashcoders] [OT] Sparx Enterprise Architecht generatingActionscript On 3/22/06, jim <[EMAIL PROTECTED]> wrote: > > Hi all, > > I started playing with EA getting it to generate Actionscript. I need to > know how to place an import statement into a class like: > > import com.something.MyClass; > > I see it can handle doing this as I have reverse engineered one of my > projects and on regenerating the code the import statements are still > there > but I cannot see where it is in EA. > > Any help would be great. > Jim > > I don't know what Sparx EA is, but I know this about import statements: When your movie is compiled, 'import' statements do not actually generate any code. The following two examples will produce exactly the same swf bytecode: 1: import com.something.MyClass; x = new MyClass(); 2: x = new com.something.MyClass(); So you don't really need import for anything, it is just to make the typing easier when writing classes. FYI: Just because you import a class, does NOT mean it will be compiled. You actually have to reference it somewhere, either via a new statement, or referencing it directly. hope this helps, -David R _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com