I'm trying to map a Vector of Strings and assign the returning Vector to a variable, but the result from the map() is null...
If I use an Array instead of a Vector.<String> the problem disappears...
Here's the code:
private var validPhotoExtensions:Vector.<String> = Vector.<String>(["jPG", "jpeg"]);
var toLowerCase:Function = function(item:String, index:int, vector:Vector.<String>) : String
var str:String = String(item).toLowerCase();
var bla:Vector.<String> = new Vector.<String>();
// The value of bla will be nul...
bla = validPhotoExtensions.map(toLowerCase);
Where can I do that?
I have searched jira and found this issue reported there. But they marked it as external and moved the issue to bugzilla where it was closed and marked as a duplicate of a Vector.filter() issue. This last issue has been marked as resolved but I don't understand if the Vector.map() issue has really been solved because, if it is, in which version of flash or in which flex sdk is it correct?
Someone filed it for you: >
It may not be fixed until we ship FP 11.
Europe, Middle East and Africa