This is just a quick and rough example, and it's for instances rather than
subclasses (which may have a compile-time check, I'll have to experiment on
the weekend when I've more time). Also, please note that I think this is
probably a bad-thing (TM) but it's always fun to poke around where Adobe
don't want us :)

http://www.gfunk007.com/flex/evil/

There are probably nicer ways to do this, but we very quickly run into
overriding things that upset the byte code verifier :'(

-Josh

On Thu, Jul 31, 2008 at 4:07 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>  There is one pattern where you declare a new default property for the
> MXMLComponent, new children get stuffed in there, and when you get
> instantiated you add those children.  It works, but feels rough around the
> edges.
>
>
>
> Changing the compiler to "add" any children won't really work if you are
> trying to insert the children between a menubar and status bar.
>
>
>
>
>  ------------------------------
>
> *From:* [email protected] [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Josh McDonald
> *Sent:* Wednesday, July 30, 2008 4:36 PM
> *To:* [email protected]
> *Subject:* Re: [flexcoders] Can we subclass Application yet?
>
>
>
> Alex,
>
>
> I definitely understand the need for this, but I'd use components is all. I
> can see how it'd be useful though. I'd have to poke around inside the
> generated actionscript, but I'm sure this could be hacked up without *too*
> much shenanigans to work with the current compiler. I might take a look at
> that over the weekend along with some component lifecycle stuff I want to
> put together to blog about.
>
> -Josh
>
> On Thu, Jul 31, 2008 at 9:25 AM, Alex Harui <[EMAIL PROTECTED]> wrote:
>
> Template apps, just like html templates.  I want every app to have a
> control bar and a accordion, etc.  Sounds like Tracy has a way, so maybe
> that'll work for this customer.
>
>
>
>
>
>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>
> 
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]

Reply via email to