Re: [flexcoders] Re: Custom containers in Flex 2

2006-08-23 Thread Michael Schmalle



Heh,On that note :: I reread what I wrote and noticed something that some might not see right off the bat.this part ;override protected function updateDisplayList({   super.updateDisplayList
(...   mySlider.move(...   mySlider.setActualSize(...}Should be (since you are doing this at runtime not createChildren();override protected function updateDisplayList({   super.updateDisplayList
(...   if (mySlider)   {      mySlider.move(...      mySlider.setActualSize(...   }}
Always protect dynamic stuff like this. Then dumb runtime erros like this become a thing of the past.:)Peace, Mike
On 8/23/06, thunderstumpgesatwork <[EMAIL PROTECTED]
> wrote:












  



The documentation has most of this covered... See this topic on
creating Advanced Visual components, and all the sub-topics. Read
several times. Example is in there too.
http://livedocs.macromedia.com/flex/2/docs/1721.html

This page specifically has an example on overriding the layout
mechanism of the VBox container:
http://livedocs.macromedia.com/flex/2/docs/1737.html

Here's a thread in flex-coders discussing the "correct" way to
dynamically add child components to a custom container:
http://groups.yahoo.com/group/flexcoders/message/47695

That should be enough to get you going (if you read, try, re-read, etc...)

good luck!
Thunder

--- In flexcoders@yahoogroups.com, "jgraham_us" <[EMAIL PROTECTED]> wrote:
>
> Any tips, tutorials or examples on creating custom containers anyone 
> can point me to?  
> 
> Looks like the main methods to override are updateDisplayList() and 
> measure().
> 
> 
> Anything else?
> 
> Basically I am looking at doing some sort of canvas then implementing 
> an autolayout feature for it.
>


  













-- What goes up, does come down.

__._,_.___





--
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
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  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.



  






__,_._,___



[flexcoders] Re: Custom containers in Flex 2

2006-08-23 Thread thunderstumpgesatwork
The documentation has most of this covered... See this topic on
creating Advanced Visual components, and all the sub-topics. Read
several times. Example is in there too.
http://livedocs.macromedia.com/flex/2/docs/1721.html

This page specifically has an example on overriding the layout
mechanism of the VBox container:
http://livedocs.macromedia.com/flex/2/docs/1737.html

Here's a thread in flex-coders discussing the "correct" way to
dynamically add child components to a custom container:
http://groups.yahoo.com/group/flexcoders/message/47695

That should be enough to get you going (if you read, try, re-read, etc...)

good luck!
Thunder


--- In flexcoders@yahoogroups.com, "jgraham_us" <[EMAIL PROTECTED]> wrote:
>
> Any tips, tutorials or examples on creating custom containers anyone 
> can point me to?  
> 
> Looks like the main methods to override are updateDisplayList() and 
> measure().
> 
> 
> Anything else?
> 
> Basically I am looking at doing some sort of canvas then implementing 
> an autolayout feature for it.
>






--
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/