What are the differences between importing a class in an mxml file
versus declaring the same class in a tag? For example, what will be
the differences in the ways I can use the objects declared below:

A) 
<mx:Panel xmlns:mx="http://www.macromedia.com/2003/mxml";
xmlns:view="com.desktop.view.*">
<mx:Script><![CDATA[import com.desktop.view.ClassA;]]></mx:Script>
...
</mx:Panel>

B) 
<mx:Panel xmlns:mx="http://www.macromedia.com/2003/mxml";
xmlns:view="com.desktop.view.*">
<view:ClassA id="classA"/>
...
</mx:Panel>

Does the import only allow you to use static fields/methods within a
class while a tag declaration allows you more flexibility than that?
What other distinctions are there between the two methods of declaration?

Thank you.





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to