Re: [Flashcoders] import statement and accessing a class in AS3
Thank you, Geoffrey. I referred the ActionScript 3.0 Language Reference and understood the difference of 'import' directive between 3.0 and 2.0. Also, I saw Adobe Flash 9 Public Alpha/Configration/ActionScript 3.0/implicitImports.xml, in which classes are defined to be imported implicitly into Flash IDE. The following packages are imported: implicitImport name = adobe.utils.*/ implicitImport name = flash.accessibility.*/ implicitImport name = flash.display.*/ implicitImport name = flash.errors.*/ implicitImport name = flash.events.*/ implicitImport name = flash.external.*/ implicitImport name = flash.filters.*/ implicitImport name = flash.geom.*/ implicitImport name = flash.media.*/ implicitImport name = flash.net.*/ implicitImport name = flash.printing.*/ implicitImport name = flash.system.*/ implicitImport name = flash.text.*/ implicitImport name = flash.ui.*/ implicitImport name = flash.utils.*/ implicitImport name = flash.xml.*/ _ Geoffrey Williams wrote: You must always import your classes in external AS files. In Flash, the flash.* sub packages are automatically imported. Thank you, Fumio Nonaka Phone: +81-42-397-9452 Fax: +81-42-397-9452 mailto:[EMAIL PROTECTED] http://www.FumioNonaka.com/ My bookshttp://www.FumioNonaka.com/Books/index.html Flash communityhttp://F-site.org/ ___ 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] import statement and accessing a class in AS3
In ActionScript 3.0, a class can be accessed just by the name of the class without the import statement in a timeline. // timeline: _level0 // frame action (ActionScript 3.0) // import flash.display.MovieClip; trace(MovieClip); // output: [class MovieClip] On the other hand, a class cannot be accessed by its fully qualified class name in a class definition. // ActionScript 3.0 class definition file: Test.as package { // import flash.display.MovieClip public class Test { function Test() { trace(flash.display.MovieClip); // ReferenceError } } } Are the behaviors above the specification of ActionScript 3.0? Thank you, -- Fumio Nonaka mailto:[EMAIL PROTECTED] http://www.FumioNonaka.com/ My bookshttp://www.FumioNonaka.com/Books/index.html Flash communityhttp://F-site.org/ ___ 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
Re: [Flashcoders] import statement and accessing a class in AS3
Hej, jag är på semester (tillbaka igen 14/8), jag nås på 070-9949770 Hälsningar /Simon ___ 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
RE: [Flashcoders] import statement and accessing a class in AS3
You must always import your classes in external AS files. In Flash, the flash.* sub packages are automatically imported. This is working as intended. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Fumio Nonaka Sent: Thursday, July 13, 2006 1:50 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] import statement and accessing a class in AS3 In ActionScript 3.0, a class can be accessed just by the name of the class without the import statement in a timeline. // timeline: _level0 // frame action (ActionScript 3.0) // import flash.display.MovieClip; trace(MovieClip); // output: [class MovieClip] On the other hand, a class cannot be accessed by its fully qualified class name in a class definition. // ActionScript 3.0 class definition file: Test.as package { // import flash.display.MovieClip public class Test { function Test() { trace(flash.display.MovieClip); // ReferenceError } } } Are the behaviors above the specification of ActionScript 3.0? Thank you ___ 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