It is a very interesting find, Derek. I haven't noticed that.
_____
Derek Vadneau wrote:
Now the docs say that import by itself doesn't include the classes, but I
used this code:
import mx.controls.Button;
import mx.controls.List;
import mx.controls.Tree;
import mx.controls.DataGrid;
import mx.containers.Accordion;
trace(_global['mx']['controls']['Button']);
I played with it a little. (Flash 8.0/Mac OS X.4.6)
import mx.controls.Button;
import mx.controls.List;
// import mx.controls.Tree;
// import mx.controls.DataGrid;
// import mx.containers.Accordion;
trace(_global['mx']['core']['UIObject']); // Output: [type Function]
trace(_global['mx']['controls']['Button']); // Output: undefined
trace(_global['mx']['controls']['List']); // Output: undefined
// import mx.controls.Button;
import mx.controls.List;
import mx.controls.Tree;
// import mx.controls.DataGrid;
// import mx.containers.Accordion;
trace(_global['mx']['core']['UIObject']); // Output: [type Function]
trace(_global['mx']['controls']['List']); // Output: [type Function]
trace(_global['mx']['controls']['Tree']); // Output: undefined
// import mx.controls.Button;
import mx.controls.List;
// import mx.controls.Tree;
import mx.controls.DataGrid;
// import mx.containers.Accordion;
trace(_global['mx']['core']['UIObject']); // Output: [type Function]
trace(_global['mx']['controls']['List']); // Output: [type Function]
trace(_global['mx']['controls']['DataGrid']); // Output: [type Function]
// import mx.controls.Button;
// import mx.controls.List;
// import mx.controls.Tree;
// import mx.controls.DataGrid;
import mx.containers.Accordion;
trace(_global['mx']['core']['UIObject']); // Output: [type Function]
trace(_global['mx']['controls']['Button']); // Output: [type Function]
trace(_global['mx']['containers']['Accordion']); // Output: undefined
Good luck,
Fumio Nonaka
mailto:[EMAIL PROTECTED]
http://www.FumioNonaka.com/
My books<http://www.FumioNonaka.com/Books/index.html>
Flash community<http://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