Hello, exploring a little more in depth how Flex2 compilation work I found in ..\Flex2alpha1\plugins\zorn.codemodel_2.0.197\resources
2 very interesting files Global.as and playerglobal.as I don't know for others but for me these 2 files are more valuable than anyother AS3 documentation It help a lot to read these codes and their comments (even internal API SCRUB :)) to have a better understanding of how things are built. My concern about those files is that I was looking for if in ActionScript 3 we can do something like that ------------------------------------------------- namespace StringExtension; StringExtension extend(String) function scramble():String {...} StringExtension extend(String) function unscramble():String {...} use namespace(StringExtension); var x:String = "abc".scramble(); ------------------------------------------------- as described here http://www.mozilla.org/js/language/es4/rationale/miscellaneous.html If we can not do that in AS3, can we at least have access to the makeplayerglobal script to build Global.abc and playerglobal.abc ? or can we vote to add some methods (very needed) to the Global object ? the rational behind that: Either with the Java framework or the .NET framework we have access to very usefull core class methods indexOfAny (String, Array), String.format, equals, etc. I think it could be usefull to system programmers to be able to implement such core methods to Global.as and perharps playerglobal.as it would reduce the platform shift a lot if you were used to code in .NET/Java And as I love to see a StringBuilder class in AS3, I would love also to be able to use String::equals, String::copyTo, String::copy etc. When I see in Global.as ---------------------------- /** * @private Central API */ public native function endswith(endString:String):Number; // Central API ---------------------------- but I don't see any "startswith" method I really wonder how I could add such a method with AS1, it's easy , you juste need to define it in the prototype with AS2, it's a little less easy, but you can still do it you modify the intrinsic class, and you include a AS1 file which implement the functionnality with AS3 ? what option do we have ? Even if I understand fully that those core objects need to be native and not overloaded to assure speed , I would like to have an option to add to them the logic is simple when I look to the .Net String class I don't care if the class is sealed/final all the options that I find usefull are already defined in the class but when I look to the AS3 String class I feel stuck because a lot of basic and usefull methods are missing if we could augment the Global.as and playerglobal.as AS3 programmer could implement something as Mono but for Flex2. zwetan ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/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/