Re: [flexcoders] Re: Extending a component

2007-04-25 Thread André Rodrigues Pena

yes! exaclty! thank you Doug

On 4/25/07, Doug Lowder <[EMAIL PROTECTED]> wrote:


  All you need to do is have your MXML component reference the class
you want to extend and set the XML namespace to the extended class's
location. For example, if your resizable title window class
is ./mycomponents/ResizableTitleWindow.as, you could have:


...


OR:




If ResizableTitleWindow.as is in the same directory as your
application, then the namespace location to use is simply "*".

BTW, this is the same thing that happens when you declare something
like . TitleWindow.as is an AS3 file in the mx
namespace that extends Panel (defined in Panel.as ).
Also, I don't
think it matters if the class you are extending is defined in AS or
MXML; either should be fine.

HTH,
Doug

--- In flexcoders@yahoogroups.com , "André
Rodrigues Pena"
<[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> My problem is:
>
> I have a MXML component (already implemented) that extendeds
TitleWindow
>
> its code was something like
>
> ListOperations.mxml
>
> 
>  xmlns:mx="http://www.adobe.com/2006/mxml";
> layout="vertical"
> width="700"
> height="400"
> title="List Operations"
> showCloseButton="true"
> initialize="init()"
> >
> MY CODE HERE
> 
>
> OK, but I needed a resizable TitleWindow, so I took a look in google
> and I found an actionscript implementation of TitleWindow that
allows
> resizing, so I made some modifications and finally I got exactly
what
> I was looking for.
>
> Although I still have a problem. I have my own TitleWindow
> implementation but now I need my MXML component above to extend MY
> TITLEWINDOW, which is in AS3 shape, not the standard TitleWindow.
>
> Is there a way to do this? Or will I be forced to re-implement my
> component extending my own TitleWindow?
>
> Thanksss
>
> --
> André Rodrigues Pena
>
> LOCUS
> www.locus.com.br
>







--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


[flexcoders] Re: Extending a component

2007-04-25 Thread Doug Lowder
All you need to do is have your MXML component reference the class 
you want to extend and set the XML namespace to the extended class's 
location.  For example, if your resizable title window class 
is ./mycomponents/ResizableTitleWindow.as, you could have:


...


OR:




If ResizableTitleWindow.as is in the same directory as your 
application, then the namespace location to use is simply "*".

BTW, this is the same thing that happens when you declare something 
like .  TitleWindow.as is an AS3 file in the mx 
namespace that extends Panel (defined in Panel.as).  Also, I don't 
think it matters if the class you are extending is defined in AS or 
MXML; either should be fine.

HTH,
Doug

--- In flexcoders@yahoogroups.com, "André Rodrigues Pena" 
<[EMAIL PROTECTED]> wrote:
>
> Hi all,
> 
> My problem is:
> 
> I have a MXML component (already implemented) that extendeds 
TitleWindow
> 
> its code was something like
> 
> ListOperations.mxml
> 
> 
>xmlns:mx="http://www.adobe.com/2006/mxml";
>   layout="vertical"
>   width="700"
>   height="400"
>   title="List Operations"
>   showCloseButton="true"
>   initialize="init()"
> >
> MY CODE HERE
> 
> 
> OK, but I needed a resizable TitleWindow, so I took a look in google
> and I found an actionscript implementation of TitleWindow that 
allows
> resizing, so I made some modifications and finally I got exactly 
what
> I was looking for.
> 
> Although I still have a problem. I have my own TitleWindow
> implementation but now I need my MXML component above to extend MY
> TITLEWINDOW, which is in AS3 shape, not the standard TitleWindow.
> 
> Is there a way to do this? Or will I be forced to re-implement my
> component extending my own TitleWindow?
> 
> Thanksss
> 
> -- 
> André Rodrigues Pena
> 
> LOCUS
> www.locus.com.br
>