have a look at
http://livedocs.adobe.com/flex/201/html/ascomponents_advanced_148_08.html
it talks about the necessary methods to override that you will need.  In
your case it appears you want to override createChildren() and
updateDisplayList() me thinks.

DK

On 8/29/07, Graham Pearson <[EMAIL PROTECTED]> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I am trying to understand how to create a custom component in
> actionscript using the container of HBox along with the controls of
> label and combobox within Flex 2.01. I have already built the flex
> project strictly with flex components which can be viewed at
> http://triton.k12homeworkhotline.ws/ClientBeta/index.cfm but for this
> version I would like to create my own components in actionscript.
>
> What I have so far is the following code:
> package myComponents {
>   import mx.containers.HBox;
>   import mx.controls.Label;
>   import mx.controls.ComboBox;
>
>   public class SelectSchoolBuildings extends HBox {
>     public function SchoolBuildingLabel():void {
>       var SchoolBldLabel:Label = new Label();
>       SchoolBldLabel.text = "Select School Building";
>   }
>
>
> What I am unsure about is how to get this label to be displayed on my
> stage when I publish the project. I have been trying to follow various
> examples on livedocs and other places however when I try to run all of
> those examples, I get error messages and unable to get the examples to
> work. So is their anyone who can give me some detailed information or
> resources on how to get this to work. Are their any Educational
> Instructors on this list that might be able to assist a fellow educator?
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.4 (MingW32)
> Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iQEVAwUBRtYkI3njLHMPlkANAQKzNQf+IMiGHoLvlRVMWXJxS/NJkqTvlgBMsM98
> Hy6pe/lvoZAlTthrvcXAcpCTeKFLsmnHnp5tnliC5ZMCn9u9dI24ngZlv6IddTVh
> acPS6JzFcmCjrYqa1CDqXlN6+w9TMuRQscNT73udm95SLiVBm2VspZQ2yLSXOvo7
> JGxAxnkszxht9Ptlh+jS2GlfER7UhAyt6I9M2VcsDeh5cBsrC20bQxbm4BPAYUNE
> +M0yFQWtAIpsvcCdHwag1OGF/kKn6/5TfhGW7GOY9LRyZdYHqrSVeu9RCitECCU7
> WZc9F4Ejx1anuK1C4AHFzgVuOfH0BrBxSvZq84wj4+E5SY5MwKfJkQ==
> =K11N
> -----END PGP SIGNATURE-----
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:4554
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37

Reply via email to