Not recognize variable in number
HelloLet's see if I can explain what I'm trying to do, and what the problem is.
Basically, I'm telling a symbol to be moved from its current position to another. But rather than put a number behind symbol._x = I placed a variable. For some reason, the symbol won't spend the number of coordinate x which is stored in the variable.
Why not??? I used a trace on the variable which reads a number, and I also replaced the variable behind the _x with a regular number in which case the symbol moves...
More background and code:
I have an XML that stores the coordinates x and y for the various items in the database of the file.
All the information from the XML file are stored in an array,
Example of XML data:
< person >
< name > Fred < / name >
< profession > Baker < / profession >
< > 150 xcoordinate < / xcoordinate >
< ycoordinate > 25 < / ycoordinate >
< / person >
< person >
...
The table looks like this:
var aPerson:Array = new Array();
var xPersonData:XML = new XML();
xPersonData.ignoreWhite = true;
xPersonData.load ("People.xml");
xPersonData.onLoad = {function (success:Boolean)}
If (success) {}
var numPeople:Number = xPersonData.firstChild.childNodes.length;
for (var i: Number = 0; i < numPeople; i ++) {}
Missing [i] = new Object();
Missing [i] .personName = xPersonData.firstChild.childNodes [i] Sublst.ChildNodes(1).ChildNodes(0) [0] .firstChild;
.profession missing [i] = xPersonData.firstChild.childNodes [i] Sublst.ChildNodes(1).ChildNodes(0) [1] .firstChild;
Missing [i] .xmap = xPersonData.firstChild.childNodes [i] Sublst.ChildNodes(1).ChildNodes(0) [2] .firstChild;
Missing [i] .ymap = xPersonData.firstChild.childNodes [i] Sublst.ChildNodes(1).ChildNodes(0) [3] .firstChild;
}
Later depending on the button you press on the following code is supposed to load some information about the selected person, as well as move a circular symbol pin specific x / coordinate on top a card:
LoadPic = function (imageNumber) {}
XCO missing = [imageNumber] .xmap;
yco missing = [imageNumber] .ymap;
trace (XCO);
trace (yco);
mc_largeImage.txt_name. Text missing = [imageNumber] .personName;
mc_largeImage.txt_profession.htmlText = .to go missing [imageNumber];
mc_largeImage.mc_map.mc_pinmap._x = xco;
mc_largeImage.mc_map.mc_pinmap._y = yco;
}
If I use the XML example above, the trace of the two variables (xco and yco) reads 150 and 25, but the symbol does not move anywhere. If I replace the xco behind mc_largeImage.mc_map.mc_pinmap._x = with a number, that it moves to a different location. So it is not a question of not speaking correctly the symbol...
THEN! What happens here? Can someone help me please?
Is there something special about the number stored in a table? It don't think it's a chain and not a number?
Would be grateful if someone could point me in the right direction :-)
Thank you
JJ
The content of the XML textNodes is of type String. And to get there, you need to use the nodeValue property for textNodes. Otherwise, which you access is actually an XMLNode, which traces OK using its ToString method (which automatically trace uses), but don't not provide you the string value if you use it in the code. In fact using toString() or nodeValue property should also work well here.
If the numbers you read in your xmap and ymap person your object properties are of type XMLNode.
To get the string values and then convert them to numbers, try to change the following two lines:
Missing [i] .xmap = xPersonData.firstChild.childNodes [i] Sublst.ChildNodes(1).ChildNodes(0) [2] .firstChild;
Missing [i] .ymap = xPersonData.firstChild.childNodes [i] Sublst.ChildNodes(1).ChildNodes(0) [3] .firstChild;
Replace:
Missing [i] .xmap = number (xPersonData.firstChild.childNodes [i] Sublst.ChildNodes(1).ChildNodes(0) [2].firstChild.nodeValue);
Missing [i] .ymap = number (xPersonData.firstChild.childNodes [i] Sublst.ChildNodes(1).ChildNodes(0) [3].firstChild.nodeValue);
Tags: Adobe Animate
Similar Questions
-
Site Web de Toshiba does not recognize my serial number of the Satellite A215-S7428
Irregular deadlines. Site Web de Toshiba does not recognize my serial number. Someone at - he met who? I guess the alphabetic characters are uppercase. Serial number is 9 characters long with alpha characters at the two ends of the chain.
Weird.
Has anyone had problems to register their laptops?Wait a minute my friend. On website of Toshiba, you try to do this? I hope that you do not save the model of portable non-European on European support page.
Am I mistaken or you're really trying to do? As far as I know, you have a model of cell phone US.
-
I am trying to install Adobe Creative Suite 5 Design Premium on a PC but will not recognize the serial number? What should I do?
I also have Adobe Acrobat 9 on my Mac and it is now saying that I have to throw "Adobe Photoshop Creative Suite 5 Design Premium". When I do that nothing happens with Acrobat 9, and it closes. I tried to reinstall the disk without success. What should I do?
Invalid License http://helpx.adobe.com/creative-suite/kb/error-serial-number-valid-product.html
-http://helpx.adobe.com/creative-suite/kb/invalid-serial-number-cs4.html
- and http://forums.adobe.com/thread/1038761
Given that Adobe can't CS5, I think that above, is what it is
-
Why the download of adobe cs2 does not recognize my serial number
I am trying to load my paid for CS2 version on a new machine.
I can not active because adobe does not support this more.
I was told to download a new version of Adobe that requires no activation code.
I downloaded the new version of Adobe's CS2 began to install it, asked me to enter my serial number (original) I did, but then he said that he did not recognize the serial number...
Please help, I can't progress further...
Hi martink,
Photoshop CS2 is very old product now and the activation server no longer works.
Please go through this article and install the serial number mentioned here error Product.Enter: "Activation Server unavailable". CS2, Acrobat 7, pass a hearing 3
Concerning
~Assani
-
Try to reactivate my old Photoshop Elements 10 by downloading to the new computer, but Adobe insists on downloading of 14 elements and does not recognize my serial number
Download & install instructions https://forums.adobe.com/thread/2003339 can help
-includes a link to access a page to download the Adobe programs if you do not have a disk or drive
-Cloud desktop http://helpx.adobe.com/creative-cloud/help/creative-cloud-desktop.html
-Cloud Getting Started https://helpx.adobe.com/creative-cloud.html
-you will need to enter your original serial number during the installation for non-Cloud programs
- or kglad links in response to #1 here can help https://forums.adobe.com/thread/2081216
Also go to https://forums.adobe.com/community/creative_cloud/creative_cloud_faq
-
My computer crashed and I reinstall first elements 7, but it will not recognize my serial number there are two on the CD case please help
When you ask a question you will need to provide some basic information
Mac or Windows and EXACTLY what version of the operating system?
Recent Mac AND Windows operating systems have been known to cause problems "weird."
Lost information - response #1 in https://forums.adobe.com/thread/2008767
Invalid License http://helpx.adobe.com/creative-suite/kb/error-serial-number-valid-product.html
-http://helpx.adobe.com/creative-suite/kb/invalid-serial-number-cs4.html
-
I changed my computer and am trying to re - install PS elements 13.0 on Windows 10. When I type my license serial number, Adobe responds "he does not recognize this serial number. When I go to the serial number recovery service, first of all it tells me it is not a product registered with my name and when I type the serial number for the old serial numbers, the system responds to that serial number is alredady registered and cannot be registered twice. What needs to be done to get out of this problem of serial number? Thank you.
Hello Charles,
to check this, you should take a look at the Adobe database to see what is stored/recorded on your accounts. You will find general information on your account Adobe https://accounts.adobe.com/> see My productsView all the > these products are associated with your Adobe ID > name > serial number.
[And to find your serial number have a look here http://helpx.adobe.com/x-productkb/global/find-serial-number.html > I've lost my serial number >] see comments.
The last time Adobe suggests so too this activation https://helpx.adobe.com/contact.html?step=ZNA_downloading-installing-setting-up_licensing-
Hans-Günter
-
How to install Adobe 8.0 2007? It does not recognize my serial number to activate the application.
What message you see after entering your serial number? (if it's in English, attach a screenshot)
-
I bought cs 5.5 of Austria and the form to get my serial number does not recognize my product number. What should I do?
Since CS5.5 is no longer sold by Adobe, CS6 and a cloud subscription, just where have you bought?
Redemption Code http://helpx.adobe.com/x-productkb/global/redemption-code-help.html
-
I needed to redownload Adobe Acrobat Pro, does not recognize my serial number.
I need to uninstall my Adobe Acrobat Pro 11, there were several errors. I downloaded the Acrobat Pro 11 for my Mac and now it does not recognize my serial number now.
Invalid License http://helpx.adobe.com/creative-suite/kb/error-serial-number-valid-product.html
-http://helpx.adobe.com/creative-suite/kb/invalid-serial-number-cs4.html
-
Installation of Lightroom problem: do not recognize the serial number of Adobe lightroom? How can I solve this problem?
What version... where did you buy... What is your operating system
Read the error: "serial number is not valid for this product". Adobe Creative Suite
-
I am trying to download an update of Lightroom, but it does not recognize my serial number.
Error "serial number is not valid for this product". Creative Suite
-
I am trying to install an older version of CS (CS 6). It does not recognize the serial number. What can I do?
Hello
Please see error "serial number is not valid for this product". Creative Suite and serial number incorrect error
Hope that helps!
Kind regards
Sheena
-
Just bought 11 elements, but it does not recognize my serial number when I install it.
I just bought 11 items from Best Buy. Got the serial number on the site after you have typed the redemption code. However, when you install it, it does not recognize the serial number. Attempted to call Adobe but they charge you to get an answer. Ridiculous! I tried this for 3 hours now. I need help! Why can't I talk to a live person?
You must contact Adobe Support by chat or phone when you have the serial number and activation problems.
Here are some links to help get in touch:
-
Acrobat does not recognize my serial number
My serial number is not recognized by acrobat and therefore impossible to activate
Hey Joe,
I see that Acrobat 7 and 9 serial number registered on your account.
Make sure that you use the Std 9 serial No. on the software setup STD 9 not the 9 Pro else it won't recognize the serial number.
In addition, the license of STD. 9 is an upgrade one so when you enter the serial number it will prompt you to enter the serial number for Acrobat 7, in order to keep the two issues of practical.
Kind regards
Rave
Maybe you are looking for
-
Recommendation for the DAQ card
Hi guys, =) I m currently developing a project in a gas control, where I need Messure tempertures and be able to open and close a valve. My implementation are 4 termocouples and 4 relays to turn off the valves and... I was hoping if someone could hel
-
Upgrade RAM HP Pavilion DV4 2045DX
I have a HP Pavilion DV4 2045DX I currently have 4 GB of RAM (3.75 usable) I need at least 4 GB usable. I wanted to make sure it can handle more RAM, I was wondering how much it would let me put off in it... What Cup is? I can't seem to find this inf
-
I had posted this question9Issue) before, but I've not been able to solve. I have no sound from my external speakes. I used the troubleshooter, but it says «he can't identify problem» I checked my connection to the taking of correct alignment. Any ad
-
I have what I think should be a pretty simple problem to solve, but I just can not work begin. I have an 'event' - not a LabVIEW event, but a thing that happens. I measure when it starts when it stops happening and carry forward the value of the time
-
How to remove an unwanted program / application
a program called Vcg is installed but I can't delete because it keeps giving me the message that I don't have the right to remove it.