Problem with map() Vector method

I'm trying to map a vector of strings and assign vector is a variable, but the result of the map() is null...

If I use a table instead of a vector. < String > the problem disappears...

Here is the code:

private var validPhotoExtensions:Vector. < String > = vector. < String > (["jPG", "jpeg"]);

var toLowerCase:Function = function (point: String, index: int, vector: Vector. < String >): String
{
var str:String is String (item) .toLowerCase ();.
return str;
};

var bla:Vector. < String > = new Vector. < String > ();

The value of bla will be nil...

bla = validPhotoExtensions.map (toLowerCase);

Looks like the fix will be available in the next version of player!

That was very frustrating.

Tags: Flex

Similar Questions

  • Problem with the substring method

    I cannot using the substring method results in an "if" statement  To isolate the problem, I run the following code on the 9550 Simulator:

        String buff = "abcdef";
        String B = "";
        B = buff.substring(2, 3);
        Dialog.alert("B = " + B + ",  size = " + B.length());
        if (B == "c") Dialog.alert("Test passed");
        if (B != "c") Dialog.alert("Test failed");
        if (buff == "abcdef") Dialog.alert("xyz passed");
    

    When running I get the message "B = c, size = 1" message tracking "Test failed". and "xyz happened."  This last post seems to indicate that the "if" test is not having problem with channels.

    I tried to copy B on another channel and use it and adding spaces to the front and back and then cut, but none of those who have helped.  I even tried to change the test to B == buff.substring (2.3), but that no longer works.  When I change line 3 to B = 'c', I get the message "Test."

    Can someone tell me what is happening here?

    This seems to be the result wanted for me. The substring is only the letter c, because you start to position 2 (the third character because it is zero-based) and go down to 3 (which is impossible), but you check with the equality operator (==) and not the .equals of the String class that actually controls the characters method, then the test is a failure.

  • Problems with arguments, vector + AIR NativeProcess 'not supported'. &lt; String &gt;

    I want to create an AIR application that will execute a call from style of command line (extendedDesktop) on an .exe file with an argument that is passed to it.

    I followed the example of setting as shown on this page to reference Adobe. However, when I try to create a vector. < String > I get error "error #1007: instantiation attempted on a non-constructeur.»

    This occurs on the following line:

    var processArgs:Vector. < String > = new Vector ["< String >"] ();

    I also tried without the declaration of arguments and calling just the .exe without arguments, and I get the error "" the NativeProcess could not be started. "" Not supported in the current profile. "" I have several put supportedProfiles in place in my folder (including desktop computers and extendedDesktop) but don't know how to test and debug the file in Flash Builder with rights of extendedDesktop. "

    Hello

    In my opinion, Adobe docs aren't clear on the requirements of "NativeProcess" during the creation. All the articles/docs, you find via references to research that we need to ensure that this descriptor is modified, which includes:

    extendedDesktop

    for example; http://www.Adobe.com/devnet/air/Flex/articles/air_screenrecording.html

    While it seems to be necessary only for generation of deployment to ensure that the application is built in 'extended' profile that Active native installer and access to the native process.

    In any case running Flash Builder with integration of built-in adl should allows you to test in my opinion (as I never had to manually change the descriptor creation/trials).

    I suggest you to make sure that all things are built as planned and start the new thread on the creation of problems with Flash Builder and adl (as it seems that he is not running in the correct privileges - so you are not able to test/author some features). I assume that you use the administrator account on your machine (and Flash Builder has been installed and then run under the same account).

    (note: I'm on Mac)

    Kind regards
    Peter

  • Problems with maps

    Hello

    I am trying to use a google map in my application, find like here: [http://obiee101.blogspot.com/search/label/MAPS]


    But I have a problem:

    If I put this line in the prefix: function GetMapAdress)
    shows me the icon of the first city of my table

    Now if I put the line in the story me turns out to be only the last city of the table icon

    This passage for this?

    Forgive the English

    Hello
    Check it out, use it...
    and then tell us what is happening...

    First of all, I use the instructions in the blog you mentioned... but I had some problems with Internet Explorer...
    So, I used the one I mentioned... try it...

    Or, before you do anything, have you tried other browsers?

    If the answer to the question..., close it and give the appropriate points...

    I hope I helped...

    ///////////////////////////////////////
    http://greekoraclebi.blogspot.com/
    ///////////////////////////////////////

  • Problem with setwhereclause stripped method - error Houston-27122

    Hi Comunity I'm new in ADF BC and Jdeveloper I'm trying to create an implementation of my VO with many different methods is the filter using this.setwhereclause ("miCustomFilter");
    It works well, but when an onload jspx page appears the following error.

    Houston-27122: error SQL durante the circus of the sentencia.

    Any suggestions, thanks.

    Published by: user10243802 on 10-Aug-2008 14:28

    Hi user

    Your problem is very common in your paycheck VO the SQLStatement
    and change the positional style of binding for JDBC.

    Good luck.

  • Problem with (map ISOTAP of Microsoft) wireless adapter

    I have a problem getting my wireless connection works, I can get online using a cable, but not with the radio.

    I checked the network adapters in the Device Manager and one of them that Microsoft ISATAP Adapter has a small triangle against it, in properties it says "this device does not work properly because Windows cannot load the drivers for this device. (Code 31)

    I tried to download the drivers but without success, I get a message saying that windows already has the latest drivers installed. I tried to uninstall it but could not get another to install, I eventually do a system restore to the date of his last load updates, but he did to reinstall one that works yet with the same error code. I tried many times to get a download that works, but no luck, anyone have any ideas?

    Hello

    1. which version of the operating system are you using?

    2. What is brand and model computer?

    I suggest you consult the site mentioned below:

    Windows wireless and wired network connection problems

    http://windows.microsoft.com/en-US/windows/help/wired-and-wireless-network-connection-problems-in-windows.

    When you try to update the drivers such as suggested in the link, try to update the wireless network card drivers.

    If you use the Vista operating system, I suggest you consult the site mentioned below:

    On a Windows Vista-based computer or on a Windows Server 2008-based computer, the Microsoft ISATAP map appears with a yellow exclamation mark next to it in Device Manager, and you also receive an error message

    http://support.microsoft.com/kb/932520.

  • Problem with the Paint method

    Hello guys,.

    I develop a map-like application,

    the screen contains key components of towing,

    -on the upper part is an ObjectChoiceField where the user can select a card

    - and below which is on the plan that the user has selected

    The problem is that I use the paint method to allow the user at the image of pain, what causes my ObjectChoiceField to disappear. Any help? Please be easy on me, I'm totally new

    Example Code:

    private static final int HORZ_SCROLL_FACTOR   = 10;
        private static final int VERT_SCROLL_FACTOR = 10;
        int left = 0;
        int top = 0;
        int maxLeft = 0;
        int maxTop = 0;
    
        final String choices[] = {"3", "4", "5", "6", "23"};
        private ObjectChoiceField choiceField;
    
        private BitmapField imageOutputField;
        Bitmap bitmap;
    
        public NetworkingMainScreen() {
    
            setTitle("AUC Maps");
            imageOutputField = new BitmapField();
            choiceField = new ObjectChoiceField("Pick a Map:", choices)
            {
                protected void fieldChangeNotify(int context)
                {
                    getURL();
                }
            };
    
            add(choiceField); // doesn't appear
            add(new SeparatorField()); // doesn't appear
    
            add(new LabelField("Map retrieved:")); //doesn't appear
            add(imageOutputField);
    
        }
    
        protected void paint(Graphics graphics) {
            if (bitmap != null) {
                graphics.drawBitmap(0, 110, imageOutputField.getBitmapWidth(), imageOutputField.getBitmapHeight(),
                        bitmap, left, top);
            }
        }
    

    You try to create a screen where you can move an image larger than the screen?

    Try this:

    http://supportforums.BlackBerry.com/T5/Java-development/create-a-scrollable-image-field/TA-p/444955

    Have the user choose the card before arriving at the screen or use more menu items.

    The moving image field must focus to work properly. This scrolling while being able to focus on the ObjectChoiceField image will be delicate.

  • Problem with the getCharIndexAtPoint() method.

    Just try to set up a basic script to detect the text when the user clicks on it. The following code:

    trace (caesar_txt.getCharIndexAtPoint (300,300));

    GetCharacter();

    function getcharacter()

    {

    trace (caesar_txt.getCharIndexAtPoint (300,300));

    }

    Produced these results:

    42

    TypeError: Error #1009: cannot access a property or method of a null object reference.

    to fl.text::TLFTextField/getCharBoundaries()

    to fl.text::TLFTextField/getCharIndexAtPoint()

    at Untitled_fla::MainTimeline/getcharacter()

    at Untitled_fla::MainTimeline/frame1()

    If the first command the trace, the character index in this point (42) is returned, but as soon as the trace command is called in a function he faces a null object reference, apparently in the getCharBoundaries method. The field of text in question exist on the stage, it is not created in the code, but I doubt it would be a problem. Appreciate any help you could give me.

    I think you found a bug. I can reproduce it. The reason I think this is a bug is disable Word wrapping (select textfield, go to pass container and flow, defined behavior "Multiline no film"). The bug seems to only happen with active wordWrap.

    I produced the TLFTextField with code and also placed on stage to hand, the two error if the word wrapping is enabled.

    Disable word wrapping made your mistake disappear?

  • Problems with the Vector container flash.geometry.Points class

    to import flash.geom.Point;


    Hello!

    I'm writing a game using the new Vector class.  Then vector consist of flash.geom.Point (s).

    However, when I try to use the concat function to return another vector with a series of Points at the end of the vector, I'll get:

    TypeError: Error #1034: Type coercion failed: cannot convert flash.geom::Point@bce8901 to __AS3__.vec. Vector. <>*.
    to the vector. <>* $/ castToThisType()

    Action script says I'm trying to convert a vector to a vector.  I don't see how this is the case.

    In the example below, I said adjoiningPoints be:
    var adjoiningPoints:Vector. < Item >;

    When I call
    Path.Concat (myNextPoint);

    I get the above error.  To remedy the problem, added the extra lines, declaring "iAPath."  When I work with berries, everything works fine. The sets are completely filled with points and there is no error.

    Can anyone help


    public void getConnectingPath (pArray:Array): vector. < Point >
    This function returns a vector of points which consist of the vertices of a path that will be
    Plug the current "PollyG", in another array of cancers (Philippe), using the shortest path.
    {

    var path: vector. < Item >;
    var adjoiningPoints:Vector. < Item >;
    var wPath:Vector. < Item >;
    var pathsCue: as = new que();
    var endFound:Boolean = false;

    var aPath:Array

    path = new Vector. < Point > ();
    aPath = new Array();

    aPath.unshift (pathList [pathList.length - 1]);
    Path.unshift (pathList [pathList.length - 1]) ;// add the starting point;
    adjoiningPoints = getConnectingVertexes (Philippe, pathList [pathList.length - 1]);
    for (var i = adjoiningPoints.length - 1; i > = 0; i--)
    {
    var iPath:Vector. < Item >;  individual path.
    var iAPath:Array
    var myNextPoint:Point;

    myNextPoint = adjoiningPoints [i];

    iAPath = aPath.concat (myNextPoint);
    Path.Concat (myNextPoint);
    iPath = path.concat (myNextPoint);
    pathsCue.addItem (iPath);

    }
    }

    Thank you

    You cannot use concat with other types of data. That's what indicates the error. myNextPoint is the Point and concat() expects array (vector).

    While the docs of vector is not an example, Array is managed in the same way, so this is where they show how to use concat() for table:

    http://www.Adobe.com/LiveDocs/Flash/9.0/ActionScriptLangRefV3/array.html#concat ()

  • Problems with map graphics on my Satellite A60-672

    I have a Satellite A60-672 which graphics by ATI. Repeatedly at startup until it broke down and the system crash online said whenever it is ATI technologies. I sent ATI and they said that there is nothing to do with them.

    I tried Toshiba, but none of the work address by e-mail. The crash system tells me to uninstall the software, but given that I put on, I mistrust all this as it may ruin the functioning of my laptop.

    Currently, my laptop works very well with this ongoing problem. This happened to someone else or we know how to contact toshiba.

    Thank you

    Sounds like a driver problem, you just need to download the Toshiba display driver, uninstall your old ATI driver with the ATI Control Panel, restart and reinstall again.
    don't worry this will cause anything on your laptop in addition to repairing damaged files that crash. It is a simple operation.

  • Problem with maps blackBerry Smartphones

    My "BOLD" works correctly with all the features, I can receive emails (with service BIS) and navigate, but when I try to open cards there is an error as "you do not BIS or BES service" and cards feature does not work.

    Software version: v4.6.0.166

    Thank you

    Contact your operator on the subject, if you have a data plan, for sure, you can use blackberry maps.

  • problems with mapping

    Hello

    I need advice on the matter from validate the mapping.

    I need to validate the mappings for a location if the values of any user defined dimension not returned mapping logical I need gray on the fish.
    Currently, if some user-defined dimension members are not showing all the values that they are null even then the fish is gold I mean, you can't limit the fish to validate for the dimensions defined by the user. is it possible to only out gray?
    Help, please

    Thank you
    Mahesh

    Mahesh,

    It would probably be better done outside of a script to Import DataPump. The ImportAction script can be more appropriate since its events are cancellable, which allows
    you ignore everything that import the events downstream and do not reach the phase of import before engendering long processes such as mapping. Subsequently, StartMapProcess of the ImportAction event is coded to the stop status and set to fail when one or several locations exist in the entity (table) field data source but not in the table of location search. Maybe it's not exactly what you need, but it should be close enough. This code has not been tested for accuracy.

    Sub ImportAction(strEventName)
         If LCase(strEventName)="startmapprocess" Then
              strWorkTable = "[" &API.State.GstrActiveWorkTableName& "]"' WorkTable is temp table for applying mapping rules, etc.
              strTblLU = "[dbo].[Location_Type_LookUp]"' Your lookup table
              ' Query to pull Locations that exist in source data, but not in the Location lookup table
              strSQL = "SELECT DISTINCT entity FROM " &strWorkTable&_
                       " WITH (NOLOCK)" &_
                       " WHERE NOT entity='' AND entity IS NOT NULL" &_
                       " AND NOT EXISTS (" &_
                                       "SELECT * FROM " &strTblLU&_
                                       " WITH (NOLOCK)" &_
                                       " WHERE " &strTblLU& ".[Location]=" &strWorkTable& ".[entity]) " &_
                         "ORDER BY entity"
              Set rs = DW.DataAccess.farsFireHose(strSQL, False)
              With rs
                   Do While Not .EOF
                        strMsngLoctns = .GetString(2,20,,vbCrLf)
                        strErr = strErr & strMsngLoctns & vbCrLf
                   Loop
                   .Close
              End With
              If Not strErr="" Then
                   strErr = "PLEASE NOTIFY THE FDM ADMIN THAT THE FOLLOWING LOCATIONS " &_
                            "ARE MISSING FROM THE LOCATION TYPE LOOKUP TABLE:" &vbCrLf&vbCrLf& strErr &vbCrLf&vbCrLf
                   RES.PstrActionValue = strErr' Set the error message
                   RES.PlngActionType = 2' Display the message in a new window
                   RES.PcolScriptInfo.Item("ScriptInfo").ColFlds.Item("Cancel").varValue = True' Abort the remaining Import events
                   strLoc = LCase(Trim(RES.PcolScriptInfo.Item("ScriptInfo").ColFlds.Item("Location").varValue))
                   strCat = LCase(Trim(RES.PcolScriptInfo.Item("ScriptInfo").ColFlds.Item("Category").varValue))
                   strPer = LCase(Trim(RES.PcolScriptInfo.Item("ScriptInfo").ColFlds.Item("Period").varValue))
                   API.MaintenanceMgr.mProcessLog CStr(strLoc), CStr(strCat), CStr(strPer), 1, False, "Location Type missing from lookup table", Now()' Set process status = fail
              End If
         End If
    End Sub
    
  • Problems with mapped drives folder does not properly?

    • Hello, I have my readers mapped times PC on my network for single, however when I try to access it from the group main wokk PC that I use the most, it does nothing, except if I click on it above the folder box, I stored shortcuts in and re-fresh from hitting a few or several times, then he at that time goes crazy and does nothing and says does not on the storage folder, I used store it in, what am I doing wrong? It works sometimes, but I can't count on them to work when I need them too to help ideas everyone, thanks in advance., Teltom1

    Hi Teltom1,

    You try to access the shared computer using the UNC (Universal Naming Convention) path. The syntax is as follows.

    \\computername\sharename

    See also:

    How to troubleshoot a network home in Windows XP

  • problem with map

    Hello

    I want to show 10 property of single page on the map, but I don't have a solution.

    I take latitude and longitude for each property of the webservice.but my code I show single property

    the map on 10.

    Code:

    mapping class extends screen
    {
    double lat, lon;
    int latitude and longitude;
       
    MapView mapview.
    mappage()
    {
           
          
    for (int i = 0; i)<>
    {
    MapView = new MapView();
    LAT = double.parseDouble (main.lati [i]);
    Latitude = (int)(lat*100000);
    LON = double.parseDouble (main.longi [i]);
    Longitude = (int)(LON*100000);

    mapview.setLatitude (latitude);
    mapview.setLongitude (longitude);
    mapview.setZoom (5);
    Invoke.invokeApplication (Invoke.APP_TYPE_MAPS, new MapsArguments (mapview));
         
    }
    }
    }

    Please help me as soon as possible.

    Thanks for the reply

    I have sloved it myself.

  • problem with the vector

    Hello

    I write code for getting value of the vector and store in an array of strings.

    but when I convert it to a string, it shows me classcastException.

    so please help me to solve it.

    Code:

    String [] items = new String [data7.size ()];
    System.out.println ("size =" + data7. Size());
    While (f<>
    {
     
    elem [f] = (String) data7. ElementAt (f);
                            
    System.out.println("Data="+elem[f]);
                           
    ++ f ;
    }

    Note: here donnee7 is a vector.

    Gets the collection of data, to edit and store again

Maybe you are looking for