> 
> * AS3 does support the ability to extend builtin objects by adding
> prototype methods.  Yes, you give up something
> (strong type checking)
> but it's no worse than in AS1 when it worked.  Actually AS1,
> AS2, and AS3 all support this.
> 

duh !!
I was so used to do some "hacks" to circumvent the AS2 compiler
to allow such addition inside prototype that I didn't even tryed
to directly add such methods to the prototype with AS3.

Lol the tree hidding the forest :)

all is working, ok I lost the compile-time static type check,
but as all this methods are heavyly unit tested, not really a problem.

> 
> * I suppose if you recompiled playerglobal.as with new methods
> in it, and took pains to add those methods as prototype methods,
> you could get back some of the lost compile-time checking.
> The bytecode you generated would still be compatible with
> prototype methods added on the fly at runtime.  
> 

that's the goal, and it already working with AS2

1) update the intrinsic class
   by adding intrinsic methods
2) include the files containing the prototype
3) you have added methods with compile-time check

> I have no idea if we're looking at providing the playerglobal source
> (maybe we are since we're hoping to provide the framework source)
> but I can't imagine it will be a well-documented feature as to
> how to adjust it and re-compile...  I'll forward this to PM
> though and they can take it under consideration.
> 

even with almost no documentation (just the basic :))
I would like a lot to be able to do that, well if possible...

but at least now I'm not blocked in what I planned to code.







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

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


Reply via email to