1. If you know the fully-qualified name
of a class that is linked into your SWF, you can create an instance of it as
follows: import flash.utils.getDefinitionByName; ... var buttonClass:Class =
Class(getDefinitionByName("mx.controls.Button")); var b:Button = new buttonClass(); 2. Instead of using _global, declare and
use static constants, properties, and functions on any class, similar to
Math.PI. For example, declare a MyData class, with vars like employees, then do import MyData; ... dg.dataProvider = MyData.employees; - Gordon From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of karthikeyanik Hi, -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|