Why is a Number NaN?

I have created a variable with the data type number:
var opaque = Number;
I assign it the value from a XML file:
opaque = myXML.FILL;
The value in the XML file is:
<FILL>0.4</FILL>
the trace for "myXML.FILL" shows 0.4
the trace for "opaque" shows NaN (not a number).
I'm puzzled.

Eureka!
The equation "opaque = myXML.Fill" (fill = myXML.Fill, mud = myXML.Fill; iI changed the name a few times) resides inside the function that processes the xml file. This function is triggered by: scrollLoader.addEventListener (Event.COMPLETE, processXML); which means it doesn't start before all the xml data is downloaded, which takes longer than it takes to read the rest of the code. That means the variables were traced long before the data they're supposed to hold was available, and the objects that needed the data were built without that information (shape objects).
Solution: I build those object inside functions that are triggered from inside the xml processing function and then place those objects into their MovieClips that are outside any function, i.e. permanent. That way they cannot be created before all data is available. Works like a charm.

Similar Messages

  • I just bought a adobe photoshop elements 12 for windows in the store , why the serial number on the box is invalid ?

    i just bought a adobe photoshop elements 12 for windows in the store , why the serial number on the box is invalid ?

    Hi,
    Does your serial number have 24 digits starting with 1057?
    Note: Please don't quote your number as this is a public forum
    If your number is not like that it may be a redemption code. See if the following helps.
    http://helpx.adobe.com/x-productkb/global/redemption-code-help.html
    If you need help in finding a serial number inside the box, please see here
    http://helpx.adobe.com/x-productkb/global/find-serial-number.html
    If you still need help, then you will have to contact Adobe. Look at the end of the page I first gave and you should see "Still need help" - click on that.
    Good luck
    Brian

  • HT4623 Why my phone number is not registered with iMessage?

    Hi Mark, I have 2 iphone but about Why my phone number is not registered with iMessage? I try on/off my iphone but i didn't sucessfull

    Turn imsg off/on.
    If that doesn't work, I would than backup your data (considering the troubleshooting steps already listed) and "Erase all content and settings" on the device and setup as a new iphone and test imsg out in factory default. Try to activate your phone in factory default. If it shows your number / activates, there may be something in your current settings preventing imsg from operating / activating. If it does not activate, get in touch with carrier.
    http://support.apple.com/kb/HT4137 <--- Follow this
    Restore from backup after troubleshooting this.

  • In the info bar at the bottom of the iphoto window, why is the number of items different from the total

    In the info bar at the bottom of the iphoto screen, why is the number of items different from the total?

    What version of iPhoto and system are you running? What mode are you in, i.e. Events, Photos?
    If it's the Photos mode the number at the bottom will represent the number of photos displayed in that mode or the number of photos selected in that mode. The number will match the number next to the photos mode only when there are no photos in that mode that are selected. 
    If you click on the Events icon and then back on the photos icon the numbers should match.
    OT

  • Why do the number of active JMS connections increase?

    <strong>Problem</strong>
    - Number of active JMS connections and current JMS messages increases until the Weblogic instances crash with an OutOfMemory exception
    <strong>Setup</strong>
    - Weblogic v9.2.3, Cluster with 4 Nodes
    - A JMS Message is sent from a MDB in Weblogic to a distributed queue which has a member on each of the 4 Weblogic nodes. The session is created as follows session = connection.createSession(false,Session.AUTO_ACKNOWLEDGE), the message delivery mode is set programmatically to persistent and the delivery mode override of the queue setup is set to persistent too
    - Standalone JMS client processes: each one is attached to <strong>all</strong> 4 nodes. Each one uses a unique JMS message selector so that we have more than one queue consumer for one queue but every message is exactly dedicated to one queue consumer. We us weblogic.jar for the clients.
    - Use of Weblogic auto reconnect feature. JMS client code:
    Connection connection = this.connectionFactory.createQueueConnection();
    final WLConnection wlconnection = (WLConnection)connection;
    wlconnection.setReconnectPolicy(JMSConstants.RECONNECT_POLICY_ALL);
    wlconnection.setTotalReconnectPeriodMillis(-1);
    wlconnection.setReconnectBlockingMillis(-1);
    <strong>Remarks and Questions</strong>
    - There are no pending JMS messages which is good
    - In our setup, each JMS client is connected to all 4 nodes as the messages are not distributed to all nodes: if a message is put to Queue A but the client is only connected to Queue B, the message is NOT transfered from Queue A to Queue B. We set the parameter "Forward Delay" to 5 seconds with no effects. Is this the normal behavior?
    - Not all JMS clients are visible in the Weblogic console under JMS Services -&gt; JMS Servers -&gt; [Server] -&gt; Monitoring -&gt; Active Connections. Which one are visible? Which one are not visible? There are also clients where the number of connections is not zero but stays constant; we know that as several independent clients on different hosts are started and the IP adress is visible in the Weblogic console. Why....?
    - What reasons can lead to increasing connections? Is this due to client or server problems? Do we have to acknowledge the message in the onMessage(Message) method of the client JMS consumer? So far as I know, we don't have to.
    - Are the increasing number of current messages due to the increasing number of JMS connections?
    - May the RECONNECT_POLICY_ALL policy produce this problem?
    Any hint is appreciated.
    Peter
    Edited by: pkeller on 23.10.2008 17:08

    To answer the question about the forwarding of messages from one queue to another myself: As mentioned at http://forums.bea.com/thread.jspa?threadID=400000611, the forwarding for queues does only work if all queue consumers are attached to the same queue. This means that our setup is OK.
    But the main question is still unanswered: why do the number of active JMS connections increase? I forgot to mention that
    - all messages arrive at the clients and that no exceptions are visible in the log
    - if you kill the client, the connections are still visible in the Weblogic console!?
    Please help as this problem is very urgent.
    Peter
    Edited by: pkeller on 24.10.2008 09:06
    Edited by: pkeller on 24.10.2008 09:10

  • Why must the number of states on all pages be equal?

    Hi,
    I'm building a complete interactive website in Fireworks CS5 using Master Pages, States and Behaviors for some neat interactivity on the mockup.
    My question is why must the number of states be equal on all pages? I have a Master Page with a simple rollover effect on all the links, but on the Profile page I have a popup where you can insert tags. To create an interactive popup on the Profile page I need a couple of states for that popup on the Profile page. As soon as I add more states to the Profile page it loses the content from the Master Page, even if I tell all the layers in the Master page to "share on all states", when forcing the Profile page get's disconnected from the Master page.
    There has to be a simpler way of doing this!
    Thanks!

    There is no way of doing what you want in Fireworks. It's not an HTML editor and can't generate more than rudimentary interactive objects. To create more sophisticated interactive objects you need have some knowledge of coding and use software like Dreamweaver or Flash.

  • TS3899 Why is the number of e-mails higher on my iPhone than in my e-mail when I log into it on my computer?  The difference between the 2 keeps climbing.

    Why is the number of e-mails higher on my iPhone than in my e-mail when I log into it from my computer?  And how do I fix it?  The number keeps climbing on my phone, making the difference between the two greater.

    You're welcome.
    In order to have the account's Sent mailbox synchronized with the server with the Mail.app on your Mac and with the iPhone's Mail application, you must store the account's Sent mailbox on the server with each. The same applies to the account's Drafts and Trash mailboxes.
    With store sent messages on the server deselected for the account preferences with the Mail.app on your Mac, create an "On My Mac" location mailbox. At the Mail.app menu bar go to Mailbox and select New Mailbox. Choose On My Mac for the mailbox location - which will be stored locally on your computer's hard drive and enter a name for the mailbox. You can name this mailbox MobileMe Sent. Select OK to create the mailbox, which will be available under "On My Mac" in the Mail.app mailboxes drawer.
    Select your MobileMe Sent mailbox. Select a sent message in the mailbox and at the menu bar go to Edit and choose Select All. Follow this - at the Mail.app menu bar go to Message and select Move To and then select the new On My Mac location mailbox in the window provided. This will move all messages from the account's locally stored sent mailbox to the newly created On My Mac location mailbox. When this transfer has been completed, re-select store sent messages on the server for the account preferences.
    Now do the same with the newly created On My Mac location mailbox where all sent messages were transferred to. Select a message in the mailbox and at the menu bar go to Edit > Select All. At the menu bar go to Message > Move To and select your MobileMe account's server stored Sent mailbox under Sent in the window provided. This will transfer all messages stored locally on your computer's hard drive from the newly created "On My Mac" location mailbox to the account's server stored Sent mailbox. These messages will no be available when accessing the account with the iPhone's Mail application.

  • Why is the number "1" when setting up the dial fat thickness did not change the font? Is it possible to adjust the font in the thick klavioture typing?

    Why is the number "1" when setting up the dial fat thickness did not change the font? Is it possible to adjust the font in the thick klavioture typing?

    paulcb wrote:
    Using the Bold Text Accessibility option does make the keypad numbers a little bolder.
    Yep - I was only looking at Text Size.
    But still, not sure what the deal is. The "1" is just as readable as any other number on the keyboard regardless.

  • Why ipad serial number in settings is not the same as the serial number in the back?

    I took an ipad mini for screen replacement, everything was succesful. The customer calls me back claiming that the ipad wasn't his ipad. He went to store and claims that the serial number  that shows on info of the ipad does not match the serial in the outer frame (the one in the back). I didn't check that on my procedure due to that I didn't turn on the ipad and in the recieving yes i wrote the serial number that is in the back. I check on several forums and some people where asking the same issue but in case of a purchase in a store or online, that their serials didn't match. I would like to know if someone have found this issue on any product, ipad, iphone, ipod or whatever other, having this issue with serials.

    Here we work with repairs for devices that does not have waranty (expired or other issue). In this case, I did the screen replacement. No other ipad was on my station, the ipad arrives, i took it change the glass, put everithing back, give to customer. Thats it. The job was done by me, the customer test his ipad in front on me, works fine, everything ok. Few days pass and he came back saying that it wasn't his ipad, he brings the box that the ipad came and ask me why the serial number does not match the serial number in the box (sorry NOT in the back of the ipad).
    There were no other part changed only glass. After 7 years working on this, thats the first customer complaining about a work done here. After this I was curious and look for more information and some forums, also one port here is claiming that the serial number on the device is not the same as the box where it came.
    I just want to make sure that there are possibilities that there could be such mistake during the packaging process.
    Thanks for the replies

  • Why my phone number for showing up on iMessage

    why my phone number for showing up on iMessage

    Hi,
    Actually that is not true
    The Message Beta app Synced Apple ID iMessages but not iMessages sent to the iPhone Number.
    This effectively made those iPhone to iPhone conversations private.
    It did seem the Mountain Lion advertised that the iPhone Number syncing would happen on release but we had to wait to OS X 10.8.2 and iOS 6
    I dis the Mac OS first and then the iOS devices.
    I got pop up messages to say the Message app on the Mac would be using the iPhone Number (with Accept or Not options)
    I was able to keep my second iPhone Unlinked from the Messages app.
    I know some people are waiting on updating the Mac OS for some non Apple Apps to be updated.
    Others are waiting on the iOS front for something to replace Maps with.
    9:46 PM      Thursday; November 8, 2012
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • HT2513 why does a number appear next to my ical calendar group and appear next to the icon in the dock?

    Why does a number appear next to my ical calendar group in ical and also next to the ical app in the dock?

    <https://discussions.apple.com/message/5100651#5100651>
    <https://discussions.apple.com/message/10207700#10207700>

  • Why is the number of photos in the Photos app different than the number of photos in iPhoto on the Mac?

    I have an iPhone 4S and a MacBook Air. On the MacBook Air, in iPhoto, the number of photos is 3,563 (this is the number that appears next to the word Photos under library in the left hand pane). When I synch my phone with iTunes, I've selected Synch Photos from iPhoto and the number that follows that line is 3,546 photos. I have checked All Photos, albums, Events, and Faces.
    On my iPhone under Settings, General, About, there are 4,293 Photos shown (the Camera Roll is empty).
    I don't understand why these three numbers are not identical. Anyone know?

    What version of iPhoto and system are you running? What mode are you in, i.e. Events, Photos?
    If it's the Photos mode the number at the bottom will represent the number of photos displayed in that mode or the number of photos selected in that mode. The number will match the number next to the photos mode only when there are no photos in that mode that are selected. 
    If you click on the Events icon and then back on the photos icon the numbers should match.
    OT

  • Why is the "Number of Rows" for a report seem to be cached in the session?

    When I change the Number of Rows in any given report that this change doesn't immediately take effect. After much poking around and gnashing of teeth -- I found that I have to go into Manage Session State and Remove State for my session before these changes go into effect.
    Can anyone explain why this setting would be stored in the users' session state and why when I login and get a new session_id this setting seems to persist.
    Thanks,
    Jason

    1. if you login with a new session, the pagination should be reset and the new number of rows should be displayes - which version do you use. I just checked on apex.oracle.com and it worked.
    2. You should try using reset pagination option to see what happens.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494
    -------------------------------------------------------------------

  • Why is the number 2 displayed?

    Hi all,
    I´m confused trying to work out why the code arg2 in
    hash signs displays the number 2? I can´t see a 2 anywhere- Is
    the fntest doing a len function? Thank-you very much

    <CFFUNCTION NAME="fnTest" OUTPUT="YES">
    <CFARGUMENT NAME="arg1">
    <CFARGUMENT NAME="arg2">
    #arg2#
    </CFFUNCTION>
    <cfoutput>#fnTest[1,2]#</cfoutput>
    This code produces an error, as it should. Coldfusion
    complains of an "Invalid CFML construct found on line 9 at column
    20.". The offending line is the cfoutput line.
    As Dan rightly hinted, you shouldn't call a function with
    square brackets, but with normal brackets, so: fnTest(1,2) or
    fnTest(arg1=3,arg2=5) or fnTest(arg2="myVar") ,..., and so on. The
    last example, where just one variable is passed, is possible
    because arguments are optional by default. However, we cannot do
    fnTest() because the function explicitly requires arg2.

  • Why did my number of posts get reset?

    I have a few hundred posts since 2006.  Suddenly a couple days ago the number was reset to 0.  I didn't create a new account.  Did set "remember me" at signin.
    Not sure its a big deal but.....
    Tom

    Lots of folk trying to help.  Another summary might be useful.
    I started posting in 2006.  This implies the TCarp was the "ID" I was using.  However, I log on to TDCarp when I sign in (as I have for as long as I can remember).
    I can't explain why, during that history, the ID shown next to each post was TCarp.
    One test I ran after this new situation started was to attempt to log onto TCarp.  It wouldn't take the password I have used all along so I selected that I forgot my password.  Having never received the email notice from the forum to have me reset the password, I'm assuming the email address associated with TCarp is either not mine or an old email address of mine that doesn't work.  The hint (shown when I said I had forgotten) made no sense to me so there may be a TCarp ID that is not mine.
    I don't understand how TDCarp was "created on 22 Sep 2011.  All I did was click remember me.  Remember, I've always logged with the TDCarp ID.
    It's all a mystery to me.  Hopefully someone from account mgmt can figure out what happened.
    Tom

Maybe you are looking for