Xmlui object doesnt seem to work properly. What am I doing wrong?

Hi,
I created a javascript which loads up an UI in Flash. I would like to make a dropdown menu or a list, with a variable set of members. The items this dropdown list should depend on the selection made in another dropdown list.
I can call functions in the ui on create and when the focus was changed, but I cannot edit the control elements in the ui because I can't get the fl.xmlui.getControlElement method to work as described in the API:
To reproduce this I created the following XML exampleUI.xml:
<dialog title="testDlg!" buttons="accept, cancel">
    <script>
        function fillList(){
            var elem = new Object();
            elem = fl.xmlui.getControlItemElement("menuItem0");
            fl.trace("menuItem0 label = " + elem.label + " value = " + elem.value);
            var elem = new Object();
            elem = fl.xmlui.getControlItemElement("testList");
            fl.trace("testList label = " + elem.label + " value = " + elem.value);
            var elem = new Object();
            elem = fl.xmlui.getControlItemElement("testLabel");
            fl.trace("testLabel label = " + elem.label + " value = " + elem.value);
            var a = fl.xmlui.get("testLabel");
            var b = fl.xmlui.get("menuItem0");
            var c = fl.xmlui.get("testList");
            fl.trace("testLabel = " + a + " menuItem0 = " + b + " testList = " + c);
    </script>
    <grid>
        <columns>
            <column />
            <column />
            <column />
        </columns>
        <rows>
            <row align="center">
                <menulist id="testList" control="testlist" label="bla" editable="true" oncreate="fillList()">
                    <menupopup>
                        <menuitem id="menuItem0" label="herp" value="derp"/>
                    </menupopup>
                </menulist>
                <textbox id="testLabel" value="John"/>
            </row>
        </rows>
    </grid>
</dialog>
and the following javascript exampleJS.jsfl:
var xmlUi = fl.getDocumentDOM().xmlPanel(fl.scriptURI + "/../exampleUI.xml");
If I execute exampleJS
the ui is started and the callback oncreate of the menulist is launched. This is the output of the fillList() function:
menuItem0 label =  value =
testList label =  value =
testLabel label =  value =
testLabel = John menuItem0 = undefined testList =
I would have expected something like this:
menuItem0 label = herp  value = derp
testList label = bla value = derp//currently selected item
testLabel label = testLabel value = John
testLabel = John menuItem0 = derp testList = derp/*currently selected item*/
I have no idea what I'm doing wrong. I would be very grateful for any kind of clue.
cheers,
Martin

I use message and all other messages are non-sms. When I try to message these two accounts, they automatically use sms, everything I do is the same. The non-sms messages go through just fine (including pictures). The sms messages (no pictures) are always rejected; they have never gone through. They have never been able to send messages to me either (although they can send to others). I have a Verizon cellular data plan.

Similar Messages

  • Input monitor doesn't seem to work.  What am I doing wrong?

    I recently loaded Logic Pro 9.1.5 & the input monitor seems to have no effect.  I an play files, but if I connect an instrument, I cannot monitor the input or hear the metronome.  Am I missing something?

    see this support article:
    Troubleshooting Home Sharing

  • I bought an IR receiver and an Apple Remote, and I can't get it to work. What am I doing wrong?

    I bought an IR receiver and an Apple Remote, and I can't get it to work. What am I doing wrong? The receiver is a Lenovo eHome OVU430006/01 USB IR Receiver.

    Hello,
    You would need to pair the Apple Remote with the receiver. So I would use the generic Mac/PC receiver and follow these instructions:
    http://support.apple.com/kb/HT1619
    If that doesn't work then check in System Profiler to see if the IR receiver has been recognized by the PowerBook's hardware. You may require the install of drivers for this device to be recognized.
    Best of luck

  • HT204380 I have an iphone4S and I can't get FaceTime to work. What am I doing wrong????

    I have an IPhone 4S and I can't get FaceTime to work.
    What am I doing wrong??????

    FaceTime uses Wi-Fi and recipient must also have FaceTime and on Wi-Fi.
    Also FaceTime sever could be down.

  • I am trying to copy songs to an sd card for a digital photo frame. I changed my setting in iTunes to mp3 format before I downloaded the song but it didn't work. What am I doing wrong? Any suggestions? I would be very grateful!

    I am trying to copy songs to an sd card for a digital photo frame. I changed my settings in iTunes to mp3 format before I downloaded them but it did not work. What am I doing wrong? When I play the sd card in my mac or on a lenovo laptop it works but not in the photo frame. I would be grateful for any ideas as to what I am doing wrong.

    Unfortunately you've discovered too late how important it is to maintain an up-to-date backup of your iTunes library (and all other data of value).  You could, before wiping the drive, have considered making use of a commercial data recovery service that could (albeit at considerable cost) have extracted your library from the hard disk, even if virus infected.
    In the absence of that option, you will need to restore the content of your library from its original sources:
    Depending on your location, you may be able to re-download any iTunes Store purchases that are still available on the Store
    Likewise, most digital purchases from Amazon (including auto-rip copies of purchased CDs) should be available from the Amazon Cloud and via the Amazon Music application - the same may be true of other commercial sources for digital downloads
    Content imported from your CDs will have to imported again
    The specific situation that you describe regarding the music imported from your friend's external HDD suggests that either the source is badly organized and/or originates from a source other than iTunes (other media players may use alternative tags for information like artist, title, album, etc. that are not wholly consistent with how iTunes handle these).  Without details of the issues you're seeing it is difficult to suggest a remedy other than going through the media album-by-album, track-by-track, and correcting the inconsistencies.
    In the absence of a backup or access to the original library data there is no option other than painstakingly recreating your library as described above.  As you do so, you'll now realize how important creating and maintaining backups are - in my case I have at all times three separate duplicates of my library, in two different locations, where none is ever more than a week old compared to the content of my master library.

  • WRT54G does not work or what am I doing wrong?

    My setup: DSL -> 2wire modem router (bridge mode, firewall shutdown) ->WRT54G -> LAN with 1 IPPBX, 1 wired PC and 3 wireless PC.
    VoIP is running fine within our LAN, we have 2 SIP trunks running fine, But we just cant make an external softphone to work properly from WAN (outside the LAN).
    As long as I know, the simplest way to explain what a firewall does is 'everything requested from the inside should be wellcomed, anything unsolicited from the outside should be disallowed UNLESS explicitly told otherwise' this is, why the heck do we have unreachable ports althought we have allow those to receive extern traffic?
    Please check the pdf´s (snapshots) here:
    http://travelexpress.com.mx/download/router/status.pdf
    http://travelexpress.com.mx/download/router/router_firewall.pdf
    http://travelexpress.com.mx/download/router/router_forward.pdf
    http://travelexpress.com.mx/download/router/scanner.pdf
    http://travelexpress.com.mx/download/router/scanner1.pdf
    All those are for showing current setup, firewall, port forwarding and the results of a port scanner wich shows that efectively, we cannot use our extern SIP client because the WRT54G is blocking it...
    Thanks in advance as we are urged to fix this ASAP

    Yes. NAT is a function in the router. Just like the firewall. But still, both are different functions of the router. The firewall filters traffic to the router. NAT is responsible for mapping IP addresses. The reason why unsolicited packets from the internet won't get into the LAN is because NAT cannot deliver those packets and not the firewall rejecting some incoming connection. NAT does not filter. NAT tries to deliver and if it does not know where it drops it. But not because it wants to filter something.
    The settings on the router are correct. But as I have mentioned before, forwarding a port does not mean it's open or accessible. There are still other factors which could cause the port to be closed...
    Regarding the modem: you can check that if you connect a computer directly to the modem, open a port on the computer and then do the internet port scan again.
    I also explained how to check with telnet if TCP port 5060 on the IPPBX is really open or not. Why don't you just do this test? It would be much easier and faster, giving relevant answers. I don't mind whether asterisk usually uses both protocols on 5060 or not. Maybe it does. Maybe not. Maybe it can be configured. Whatever. Enter "telnet 192.168.1.69 5060" into a command prompt window of a computer connected to your LAN and you see if the port is open or not. Then we know something for sure instead of thinking about what should be or should not be...
    Also do the same telnet test with port 23 and 80 and then use the internet port scanner to scan for tcp port 23 and tcp port 80. Then we could see if anything goes through or not instead of discussing theory...
    I did not say you have to set up a lab setup. I only explained that you were mixing NAT functions and firewall functions of the router. The NAT function may look like some firewall in certain respects but it is still a different function with a completely different purpose.
    I also can't say if the IP settings are all correct. Maybe the IP address is correct but the gateway address is not. Or the DNS server.
    The subject of this thread is "... or what am I doing wrong?". It's impossible to comment on something if you don't give the details which would allow to verify that you have set it up indeed correct...

  • HT204053 I have a just purchased my first iPod touch and i cannot transfer my music from my laptop to the iPod. The sync button doesn't appear to work.  What am i doing wrong? Please help this frustrated Grandma. I am trying to keep up with technology!

    I have just purchased my first iPod touch and I cannot transfer my music from my laptop. The sync button does not appear to work. What have I done wrong? I am a grandma trying to keep up with technology please help.

    Connect it to your computer and restore it as a new device. Then chose what music you want to sync with it and do so just like your Touch does.

  • Keyer edge tool does not work. What am I doing wrong?

    When I am trying to soften the edge on my green screened image I try to use what they call the edge tool.
    But it does nothing to the edge of the image, it makes the entire keyed image more transparent or more opaque...  this is totally useless... I thought I remembered this working in a previous version but maybe not...
    what am I doing wrong? Or is it just not working correctly.
    Thanks for any help.
    FCPX 10.0.5  OSX 10.6.8

    Do you see the Multifox item to open a new window in the File of Firefox menu?
    You will see a "New Identity Profile" (Ctrl+Alt+M) in the "Firefox > New Tab" menu and in the File menu (press F 10 if the menu bar is hidden) and in the context menu if you right-click a link.<br />
    Choosing that menu entry will open a new window with a new set of cookies marked multifox-profile-2 in the cookie manager.
    It is possible that there is a problem with the file(s) that store the extensions registry.
    Delete the files extensions.* (e.g. extensions.sqlite, extensions.ini, extensions.cache) and compatibility.ini in the Firefox profile folder to reset the extensions registry.
    *https://support.mozilla.org/kb/Profiles
    New files will be created when required.
    See "Corrupt extension files":
    *http://kb.mozillazine.org/Unable_to_install_themes_or_extensions
    *https://support.mozilla.org/kb/Unable+to+install+add-ons
    If you see disabled, not compatible, extensions in "Tools > Add-ons > Extensions" then click the Tools button at the left side of the Search Bar (or click the "Find Updates" button in older Firefox versions) to check if there is a compatibility update available.
    If this hasn't helped then also try to delete the addons.sqlite file.

  • HT1146 Just started using Apple mail.  Trying to set up email folders with Company/Company P.O. and it won't work.  Went to Edit and added special characters and it still won't work.  What am I doing wrong or can this not be done.

    Just started using apple mail.  Trying to set up email folders with example:  Company/Company P.O.  It won't let me do it.  It will not allow / or . .  What am I doing wrong or can this not be done.  I tried to use the Edit menu and adding the special characters, but it still won't work.  Please advise.  mmather

  • I have a flash form that doesnt seem to work properly

    Basically i need someone to help in getting a flash form
    within a flash site to work properly by going over the action
    script with me.

    um.. can u post what ya have
    more detail into the problem your having

  • When I try to add motion to a photo, the image just becomes white and won't display properly--what am I doing wrong?

    Although the photo settings display properly and seem to indicate what I want will happen (the sliders work and I can set start and end times, etc.) as soon as I click the check box for "ken burns effect" the image becomes white and stays that way unless I undo my actions.  Very frustrating.  If accepted, it stays white and does not show the original image when the movie is played.  What is going on here?

    On the right hand side of the Photoshop window I used the Levels under "Add and adjustment". The tag for the photo in the upper left corner says IMG_3639 copy.psd@25% (Levels 1, Layer Mask/8)

  • Why is my server not working?  What am I doing wrong?  settings are posted.

    Ok, I'm so overwhelmed, but not willing to give up! I would like to set up this server in my home through our Comcast Cabel modem on a mac mini. Our IP has not changed in 2 years with comcast. If I get this working, I plan to move this server, and go live in our company office, which DOES have a static IP address. But I need to set this up and start testing all the solutions like VPN, iCAL, ICHAT, and Address Book.
    VPN has been my main service to set up first and test! IF I can get that to work, I hope to get the others to work as well. It's also the first mission critical. I think my DNS settings are somehow off either at Network Solutions or something on my server...
    I've been using "help" from various responses to other problemshere in these discussions and other places, and now, I'm just overwhelmed and confused, so it's now my turn to post the problem and ask for help!
    I'll post this with REAL IP information, because I think it will help other people in the same situation. Also, once I get this to work, I plan to move it a new location, and then request a change of my home IP from comcast....
    I welcome and REALLY appreciate any help. I'm at wits end... normally, I can figure these kinds of tech puzzles, but I could use guidance here!
    Thanks!
    Ethan-
    I bought and installed OS X server 10.6. on a brand new Mac Mini.
    Here is the story. The domain I bought and own is bostonbecker.com
    Network Solutions is where I bought and manage the domain. It allows me to change the DNS from theirs to another one, so I have it pointing to a hosting company we use called PaeTec. I can't find a place that lets it point the domain to my home router IP address.
    so inside Network Solutions, the domain name servers are
    HDNS1.FAST.NET
    HDNS2.FAST.NET
    The above domain name servers are given to me from dedicated hosting company to point to their computers.
    To control that dedicated server from the hosting company, we login to that system via PLESK via Safari.
    So, using Plesk, I've logged into our dedicated server, opened the settings for bostonbecker.com and created the following under the control for DNS settings:
    In the picture above, the ip address 24.60.63.216 is my home comcast assigned IP address that never seems to change. the IP address 209.92.71.43, is something else, I don't really know, I think ti's from my dedicated server company. that record was there by default when I first set up bostonbecker.com with PLESK. I left it there.. I also left hdns1.fast.net as the value for bostonbecker.com because I did not know what to do with it.
    Ok... Now lets come to my new server inside my house with Mac OS X server
    Here are my settings:
    Below are some basic checks I did in Terminal:
    Here is the VPN settings panel:
    Below is the L2PT settings
    Below is the PTPP Setings:
    Below is the iChat server settings:
    Below is the router settings I'll change my IP address for security once I get this to work!
    Below is a snap shot of the port forwarding on the D-link gaming router:

    Hello,
    Why are you handing out 192.185.2.1 through 192.185.2.10 in your VPN Addresses
    Should this 192.168.0.XXX through 192.168.0.XXX and out of range on what the router is handing out?
    Why don't you try making your Server 192.168.0.2 using your router as the gateway of 192.168.0.1
    Set your router's DHCP scope 192.168.0.10 through 192.168.0.100
    Set your VPN addresses for L2TP 192.168.0.101 through 192.168.0.149
    Set your VPN addresses for PPTP 192.168.0.150 through 192.168.0.199
    Thanks,
    ebrind
    Message was edited by: ebrind

  • Want to make a report on Custom Object 4 and 3...what am i doing wrong?

    My Custom Object 4 has a field which refers to an item of type Custom Object 3. I want to write a report that shows What Custom Object 3 each Custom Object 4 is related to.
    So i went to the report builder, clicked the "Advanced Custom Objects" reporting, and made a really simple report that has:
    Custom Object 4: Name | Custom Object 3: Name
    When i preview it, it says "No Results". But that's not true. All my Custom Object 4 objects refer to a Custom Object 3 object. What's going on here? Can custom objects 4-15 not interact with 1,2, and 3 in reports?
    Thanks!
    -Kevin Green

    Hi, Yes, it is weird but that is how it is. May be fixed in next release. To hide the column, choose column properties -> column format tab -> Click the field "Hide this column"
    -- Venky CRMIT

  • IWEB updates not uploading properly, what am I doing wrong?

    I am new to iWEB using FileZilla as FTP and Globat as domain.
    Some updates to my iWEB site do not get loaded to the domain, such as format (colors, underlining) for the hyperlinks. Some of these changes do work. Couldn't get the root cause for it, although I do changes uniformly.
    Besides, there is a delay between some minutes to a day or two for larger changes to show up in the site (such as a hyperlink to a 110MB file) although I could see in FileZilla this file after I uploaded it.
    Followed Old Toad's advice and deleted iWEB cache/preferences file, moved iWEB domain file to the desktop and returned it back - at no avail.
    Globat support was contacted and they told me that any change recorded at FileZilla takes place immediately at the domain.
    What should I try next?
    Appreciate your help on it!

    Moving to Illustrator forum.
    Regards,
    Romit Sinha

  • I can't seem to figure out what I am doing wrong any suggestions?

    I will admit right off that I am a newb. I have done some programming with C++ but I have just started with JAVA.
    here is the problem. I am writing a program for a course I am in and I have it basically put together but no matter what I do I cant seem to figure out the correct input command to retrieve keystrokes.
    I will post the source code and then the error from netbeans 4.1 debug report:
    package assignment_one;
    import java.io.*;
    import java.util.*;
    /* @author Justin Jackson
    * a program to calculate total gross earnings
    * for one week*/
    public class Main {
    public Main() {
    public static void main(String[] args) {
    InputStreamReader charReader = new
    InputStreamReader(System.in);
    BufferedReader keyboard=new
    BufferedReader(charReader);
    int i; //test to see if loop or end
    int iBasePay; //base pay rate
    int iTotRegHr; //total hours up to 40
    int iTotOtHr; //total hours over 40
    float fTotPay; //total pay
    float fOtRate; //calculated overtime rate
    System.out.println("To calculate a paycheck, please press 1");
    System.out.println("To exit, please press 2");
    i = keyboard.read();
    if (i == 1){
    System.out.println("Please enter the base pay: ");
    iBasePay = keyboard.read();
    System.out.println("Thank you.");
    System.out.println("Please enter the total hours up to 40: ");
    iTotRegHr =keyboard.read();
    System.out.println("Thank you.");
    System.out.println("Please enter any hours over 40: ");
    iTotOtHr = keyboard.read();
    System.out.println("Thank you.");
    fOtRate = (iBasePay * 1.5f);
    fTotPay = (iBasePay * iTotRegHr) + (iTotOtHr * fOtRate);
    System.out.print("The total wage is: " + fTotPay);
    if (i == 2){
    System.out.println("Thank you for using this program ... Goodbye.");
    else {
    System.out.println("I am sorry, that is not a valid option");
    error report:
    init:
    deps-jar:
    Compiling 1 source file to /home/justin/Assignment_One/build/classes
    /home/justin/Assignment_One/src/assignment_one/Main.java:32: unreported exception java.io.IOException; must be caught or declared to be thrown
    i = keyboard.read();
    /home/justin/Assignment_One/src/assignment_one/Main.java:36: unreported exception java.io.IOException; must be caught or declared to be thrown
    iBasePay = keyboard.read();
    /home/justin/Assignment_One/src/assignment_one/Main.java:39: unreported exception java.io.IOException; must be caught or declared to be thrown
    iTotRegHr =keyboard.read();
    /home/justin/Assignment_One/src/assignment_one/Main.java:42: unreported exception java.io.IOException; must be caught or declared to be thrown
    iTotOtHr = keyboard.read();
    4 errors
    BUILD FAILED (total time: 1 second)

    Just like the message says you need to
    1) Declare it to be thrown or
    2) Catch java.io.IOException.
    For case one add throws java.io.IOException to your main:
    public static void main(String[] args) throws java.io.IOException {For case two put your code inside of
    public static void main(String[] args) {
      try {
         //your code here
       } catch (java.io.IOException ex) {
          ex.printStackTrace();
    }

Maybe you are looking for

  • [SOLVED] Japanese Input in Terminal? (urxvt)

    I'm using uim+anthy and after a quick "space+shift" I can type Japanese anywhere just fine-- except in my terminal (rxvt-unicode-256color-- Japanese characters are displayed properly by the way) My ~Xdefaults: *antialias: true *hinting: true *hintsty

  • Purchasing Creative Cloud in a country where it is not available

    I live in Bangladesh, a country where Adobe Creative Cloud is not available for purchase. Many people here who need it use the crack version. However, I would like to be able to use the version Adobe is offering on its site. Would it be possible for

  • How to get the alert context from scom event into incident description?

    Hello, I user SCO for creating incidents of SCOM events. My problem ist that in some events the most interesting information is standing in AlertContext. But I cannot add this text to the descritipn field of our incident tool. If I user the published

  • Secure downloads: how do I get old Word to open them on new iMac?

    I had MS Office X and installed it (via data wire from old iMac) on my new iMac. The problem is that the new MS Office that is preinstalled wants to open all my downloaded documents. They are now downloading as "secure download" and my old version wo

  • Booting from a Novell Linux CD

    Why can't I boot my new iMac (intel core2 duo) from a Novell Linux based CD (Zenworks) that would allow me to image my other iMacs?