Closed Bug 510384 Opened 15 years ago Closed 6 years ago

API Additions for String, Number and XML

Categories

(Tamarin Graveyard :: Virtual Machine, defect)

x86
All
defect
Not set
major

Tracking

(Not tracked)

RESOLVED WONTFIX
Future

People

(Reporter: cpeyer, Unassigned)

References

Details

I would like to ask Adobe Flex Developer team to support some additional API's what currently missing in Flex 2 and 3. That makes my live and other developers easier.
Thank you very much.

Number:
isNaN(*) //instead isNaN(Number(String))
isNumber(*) //See bug ASC-2943

Additional API's:

String
compareToIgnoreCase
equalsIgnoreCase
startsWith
endsWith
toCharArray():Array
trim():String
ltrim():String
rtrim():String
isEmpty():Boolean //ignore white spaces, tabs, new lines - example: validate text in mx:TextArea component See bug SDK-14797

Array
clone():Array
contains(Object)

XML/XMLList:
addItemAt();
removeItemAt();
concat(XML)


Advantages:
1) I don't need to tell my team to use my API instead of use Adobe SDK function, For example if I will override isNaN() - bug ASC-2943
2) The Flex developer who starting a new project or moved to another company doesn't need to copy his/her API handler from an old project. The first reason that is illegal.
3) Some API(s) what I listed above, required to use for\while loops, what works slower using ActionScript. I would recommend implementing those API(s) in Flash Player as native functions. 

This bug transferred from: http://bugs.adobe.com/jira/browse/ASC-3663
Flags: flashplayer-qrb?
Blocks: AS3_Builtins
Flags: flashplayer-qrb? → flashplayer-qrb+
Target Milestone: --- → Future
Tamarin isn't maintained anymore. WONTFIX remaining bugs.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.