Re: [flexcoders] Re: defining more than one class in a simple .as file (ref)

2009-10-18 Thread Baz
me?


On Fri, Oct 16, 2009 at 1:31 PM, Tracy tr...@nts3rd.com wrote:



 Please do not hijack threads. Unless your post is directly applicable to
 another, start a new topic.

 Do not just change the subject line. It confuses some threaded readers,
 like yahoo's html version.

 Tracy


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, dennis
 den...@... wrote:
 
  I want to create more than one class in a single .as file, but finally
 this
  is not allowed!
 
 
 
  I read at
  http://livedocs.adobe.com/flex/3/html/help.html?content=basic_as_2.htmlthe
  follow rule:
 
  In a single ActionScript file, you can define only one class in the
  package. To define more than one class in a file, define the additional
  classes outside of the package body.
 
 
 
  Implementing by this way, the additional classes doesn't belong to the
  package (specified in the .as), but belong in the default package
  something that I do not want it.
 
 
 
  Of course, the other way Is to implement the class in another .as of the
  same package but this will have as result so many .as files (doing
 nothing
  in particular).
 
 
 
  So, I just want to clear, there is no way to have more than one class of
 the
  same package in the same .as file???
 
 
 
  dennis
 
  ...we are what we are doing... P Think! before you print.
 

  



[flexcoders] Re: defining more than one class in a simple .as file (ref)

2009-10-16 Thread Tracy
Please do not hijack threads.  Unless your post is directly applicable to 
another, start a new topic.

Do not just change the subject line.  It confuses some threaded readers, like 
yahoo's html version.

Tracy

--- In flexcoders@yahoogroups.com, dennis den...@... wrote:

 I want to create more than one class in a single .as file, but finally this
 is not allowed! 
 
  
 
 I read at
 http://livedocs.adobe.com/flex/3/html/help.html?content=basic_as_2.html the
 follow rule:
 
 In a single ActionScript file, you can define only one class in the
 package. To define more than one class in a file, define the additional
 classes outside of the package body.
 
  
 
 Implementing by this way, the additional classes doesn't belong to the
 package (specified in the .as), but belong in the default package
 something that I do not want it.
 
  
 
 Of course, the other way Is to implement the class in another .as of the
 same package but this will have as result so many .as files (doing nothing
 in particular).
 
  
 
 So, I just want to clear, there is no way to have more than one class of the
 same package in the same .as file???
 
  
 
 dennis
 
 ...we are what we are doing...  P Think! before you print.