Add the common Canvas to a ‘base state’. Then create two more states, and in the Create States dialog, choose “Based on” “Base State”. Your new state will then include all the components as your base state until you make changes to that state

 


From: [email protected] [mailto:[email protected]] On Behalf Of mthielman11
Sent: Wednesday, June 28, 2006 7:58 AM
To: [email protected]
Subject: [flexcoders] Reusing code blocks

 

Ok I have a MXML file that has 3 states. All of them have one coommon canvas in common
that holds an accordian. It should look the same in all 3 states. Is there a way to only define
the accordian (and canvas) container once and have it appear on all thre states??

Right now in the code the accordian is there 3 times which seems a bit bloated to me.

__._,_.___

--
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
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to