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:

<mine:ResizableTitleWindow xmlns:mine="mycomponents.*" ...>
...
</mine:ResizableTitleWindow>

OR:

<ResizableTitleWindow xmlns="mycomponents.*" ...>
</ResizableTitleWindow>

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 <mx:TitleWindow .../>. TitleWindow.as is an AS3 file in the mx
namespace that extends Panel (defined in Panel.as <http://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 [email protected] <flexcoders%40yahoogroups.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
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:TitleWindow
> xmlns:mx="http://www.adobe.com/2006/mxml";
> layout="vertical"
> width="700"
> height="400"
> title="List Operations"
> showCloseButton="true"
> initialize="init()"
> >
> MY CODE HERE
> </mx:TitleWindow>
>
> 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

Reply via email to