[flexcoders] Reusing code blocks

2006-06-28 Thread mthielman11
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.






 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/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/
 





RE: [flexcoders] Reusing code blocks

2006-06-28 Thread Mac Martine










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: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of mthielman11
Sent: Wednesday, June 28, 2006
7:58 AM
To: flexcoders@yahoogroups.com
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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






Re: [flexcoders] Reusing code blocks

2006-06-28 Thread Darron J. Schall
Yes, through the concept of base states.  Build a state that has the 
components you want shared between multiple sub-states, then when you 
add a new state in Flex Builder change the Based On drop down to be 
the state that contains the Canvas and Accordian.

-d

mthielman11 wrote:

 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.

  




 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/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/