Got stuck on simple math

FIrst of all I`m sorry for my newbie question,
but I searched for my answer in other scripts and didn`t find solution.
Script says that 100 not > that 2.
I think that the problem in:
var myStab=parseFloat(pal.num1);
I`ve tried to change parseFloat to parseInt, but that gave nothing.
What`s the problem here?
var pal = new Window("palette","Analyzer",[0,0,300,200]); 
pal.solidBt = pal.add ("button", [100,175,200,195],"Analyze");
pal.Al = pal.add ("StaticText", [10,10,100,30],"Is 100> than");
/*Input*/
pal.num1 = pal.add("EditText",[10,30,60,50],"20"); // first value
pal.solidBt.onClick = analyzeBt_OnClick; 
pal.center();
pal.show();
// Comparing
function analyzeBt_OnClick()
var myStab=parseFloat(pal.num1);
if (100 > myStab) {
    alert ("Yes!");
    }else{
    alert("No!");

Indeed! Thank you!
Can you also tell about Labeling, how to apply it (I mean that colorfull square on the left of Layer index).
For example I`ve got this piece script:
var myStab=parseFloat(pal.num1.text);
var myLabel=parseFloat(pal.color1.text);
if (myNum > myStab) {
    alert ("OK!");
    myComp.layer(1).label.myLabel = true;         // how to label this layer?
    }else{
    alert(myStab); 
    alert("Error");

Similar Messages

  • ICloud got stuck while downloading photos.

    I restored my iphone yesterday and backed it up via iCloud. It began downloading photos from iCloud and the got stuck in the 8th picture. I don't even care about those photos so I went into iCloud settings and deleted my photos backup. But in my camera roll it still says "Downloading 8 of 576". I have restarted the phone multiple times and still the same problem.

    Ok... I just had the same issue and after an hour of trying to figure this out... reading threads in forums... and nobody had a reliable solution... I got it...!  LOL
    Anyway, it's as simple as hooking up your iPhone to your computer and getting into iTunes > go to your iPhone > go to Photos > Put a check in the box for "Sync Photos from".  Now make sure you pick your folder that you have previously used for photos.  Otherwise, you can do what I did and just said "To heck with it" and created a blank folder with zero pictures in it.  Last, just hit "Apply" down at the bottom of iTunes.  Voila! Problem solved!  No more spinning, no more downloading, no more killing the battery and no more headache!
    Essentially, all you're doing is manually RE-SYNCING your photos and overriding the iCloud sync download to your iPhone.
    P.S. - If you do as I did with the blank folder with zero photos, your phone's Camera Roll will have 0 photos in it.  And if you had seperate Albums that you have created... they will be gone too.  So, if you want to make sure to keep all of your photos and albums... MAKE SURE YOU SELECT THOSE FOLDERS THROUGH ITUNES BEFORE YOU HIT "APPLY"!

  • When i was trying to update my iPhone 5s to the latest version of ios 8.1 , it required more space so i had to delete data manually, meanwhile i was doing so the phone got stuck and went off & when it came on again i found it on the recovery mode  ??

    hello there everyone
    I lost everything cause I wanted to update my phone
    here is what happened with me exactly :-
    I plugged in my phone into the charger  & connected my phone to a wireless connection to  start the operation of updating it, I immediately noticed that I dont have the required space to proceed the download so i had to delete data manually, & meanwhile i was doing so my phone became slow  and it got stuck then it went off after that it came on again but it was on the recovery mode ??
    did I lose everything ??? what did I do wrong  ??? what can i do to recover this ??

    Hi, Milanista5
    Thank you for visiting Apple Support Communities.
    When experiencing issues restoring or updating an iPhone, here are the best articles to go through.  If you received a specific error number when restoring, see the section labeled Get more help in the second article below.
    iOS: Unable to update or restore
    http://support.apple.com/kb/ht1808
    iOS: Troubleshooting update and restore issues
    http://support.apple.com/kb/ts1275
    Cheers,
    Jason H.

  • TS3694 hi i recently updated into ios 7.0.4 now i want to fully restore my ipad to resell but when i restore it it got stuck with apple logo and progress bar with 45% completed as firware file is downloaded using ipad 4 wifi itunes 11.3.8

    hi i rescently updated my ipad 4 in ios 7.0.4 and for resell purpose i want to restore my ipad via itunes but it got stuck at apple logo and progress bar of 45% completed i tried it 50 times but it stuck on that exact point for hours i cant able to restore it and had no errors it just like freezes at one point i also uses dfu mode but got stuck at same problem using windows 7 32 bits itunes 11.3.8 ipad 4 wifi please help

    My iPhone 5 wouldn't start after I turned it off a few minutes after writing this. It went into recovery mode and I had no choice but to connect to iTunes on PC and restore.
    I restored to factory setting first, just to validate my phone was okay. For a second consecutive iOS update, the  iPhone 5 did not update smoothly while connected to PC and iTunes - I had to retry two times before the progress bar for the update showed. (The exact same problem with the restart occured when I updated to 7.0.4.)
    The good news is that I was ultimately able to restore the iPhone 5 to factory settings while running iOS 7.0.6. I did have a backup from about a month ago lying around and was able to successfully restore with that as well, so the damage done is almost negligible since I had my contacts, notes, mail, etc. backed up to iCloud.
    Once I completed both restores, the sync with iTunes worked fine.

  • My iphone 4 got stuck on the itunes logo. I had to restore it and have lost everything. Is there anything I can do to get my photos back?

    Hello. My iphone 4 got stuck on the itunes logo. I had to restore it and have lost everything. Is there anything I can do to get my photos back?

    Not easily, the recovery mode erases the device, but you can see if any of these data recovery tools may work: https://discussions.apple.com/docs/DOC-1689

  • Help =( Mac got stuck on gray screen

    Hi
    Update went ok a couple of days ago.
    Tonight it suddently got "stuck" and after rebooting it, it is now stuck on a gray screen.
    Impossible to reboot from the installation disk or from my Lacie disk or from the HD.
    When attempting to reboot from the Leopard installation disk, I then get a message telling me that the Mac needs to be restarted, but when I restart, I get stuck again on the gray screen with the Apple logo in the middle.
    I am at a loss as to what to do.
    Help, please!!! I am now on a friend's computer to access help. So a quick response from someone would be fantastic.
    Anyone?

    update on current situation:
    i took my macbook to be repaired first thing this morning.
    it is apparently a small part that is damaged and therefore preventing the macbook to reboot.
    hence why the hardware test indicated that it found no problems and that when attempting to reboot from a disk or a drive, it finds them, but cannot reboot from either.
    the part should be here tomorrow afternoon and i should get my macbook back either tomorrow or thursday.
    apparently, it is nothing serious and no loss of data should occurr.
    but they will only know this for sure once the part has been replaced and they can actually reboot it. they say this is not linked with the leopard update.
    just sheer bad luck from a defective part.

  • How do I use icloud to restore my documents that were in Pages? Pages got stuck in "waiting" to update and when nothing else worked I deleted it and reloaded Pages. I don't want to restore everything just my Pages documents.

    How do I use icloud to restore my documents that were in Pages? Pages got stuck in "waiting" to update and when nothing else worked I deleted it and reloaded Pages. Everything I can find is about wiping everything out and restoring everything. I don't want to restore everything just my Pages documents (and numbers and keynote that also locked up during updating).

    What I meant is turn off Documents and Data in iCloud in OS X. Keep it on on your iOS devices. iCloud will sync documents between the iOS devices and make them available on the iCloud web site, but it won't mess up iWorks' open and save dialog boxes. It also won't assume that you want all your documents in iCloud, which I think is undesirable anyway.
    Keep iOS and OS X separate, and use the web site to move files between the two as necessary.
    iOS iWork is different from OS X iWork. There are fewer fonts on an iOS device. iOS iWork programs have slightly different feature sets than OS X iWork programs, and the file formats are different. iCloud automatically converts the file format when necessary, but if you make a habit of saving things directly to iCloud, you are limited to the lowest common denominator between the two versions of iWorks. So why would anyone want iWork on the Mac to open and save documents on iCloud by default?
    If you want to store files in the cloud and sync them on your Macs, SugarSync is a much better solution. It lets you choose your sync folders, it doesn't make you reorganize your files, it lets you sync all file types, it doesn't convert files to a different format and back, and it stores everything in the cloud, too. Just the simle act of saving a file backs it up and syncs it. I wouldn't live without it. iCloud is best with iTunes purchases and synchronizing Mac settings and iOS files; I woudln't live without it. The two make an unbeatable combination.

  • While updating my ipad to new software through itunes it got stuck and does not work anymore - it just displays the screen with symbols of itunes and the cable to connect to it - help - what should i do?

    while updating my ipad to new software through itunes it got stuck and does not work anymore - it just displays the screen with symbols of itunes and the cable to connect to it - help - what should i do?

    Disconnect the iPad, do a Reset [Hold the Home and Sleep/Wake buttons down together for 10 seconds or so (until the Apple logo appears) and then release. The screen will go blank and then power ON again in the normal way.] It is 'appsolutely' safe!, reconnect and follow the prompts.
    If that does not work then see here http://support.apple.com/kb/HT1808

  • IPhone3G got stuck on connect to iTunes screen while doing upgrade iOS 4.2

    Right after my iTunes 10.1 downloaded the iOS 4.2, it automatically started installing and sync-ing to my phone as usual.
    It restarted itself, apple logo came out and ...
    1. Stuck on "connect to itunes" screen eventough it was connected for the whole time. Unplugged it and plugged it back in, still got the same screen.
    2. Neither my PC or itunes recognize it at all.
    3. Unable to do soft reset but hard reset is ok. When i turn it on, the same screen comes out after the apple logo and got stuck until it turns itself off in about 30 sec.
    3. Tried to connect it to the usb/itunes many different ways when the "connect to itunes" screen is on, but still got the same result.
    4. Tried to do factory reset by holding the home button and connect it to the usb until the itunes recognize it, but still no luck (u can be sure on that it was properly done since it's not the first time i'm doing it).
    FYI: the phone has never been serviced or customized.
    Need some help ASAP here ppl. Please!
    Message was edited by: Barsaa

    I'm having the same problem too. I've been trouble shooting it based off advice from Apple's website and other people's information but so far nothing has worked. When I turn it on, it says connect to iTunes. I do. When I can get iTunes to recognize the iPhone is plugged in (which I seem to be able to only do when I stop and restart the Apple Mobile Device service), it says the phone is in recovery mode and has to be restored. I go through the process and so far it always stops on the "preparing iPhone for restore" process. Then I get the following error message ... the iPhone "iPhone could not be restored. An unknown error occured (1604). I seem to keep getting the 1604 and I haven't found a workable resolution yet for it.
    If anyone could help, I would be so appreciative.

  • A few days ago i small piece of plastic got stuck and subsequently fell out the charger hole of my ipod classic, although it still connects to itunes and syncs itunes says it has synced but there is nothing on my ipod! Nothing seems to work! HELP! :/

    A few days ago i small piece of plastic got stuck and subsequently fell out the charger hole of my ipod classic, although it still connects to itunes and syncs itunes says it has synced but there is nothing on my ipod! I have done this a few times and nothing seems to work! HELP! :/

    Transfer all of your content to the computer:
    Tunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
    http://support.apple.com/kb/HT1848
    Then try turning the device off and on again. I'd leave it off for 10-15 minutes, but that is up to you:
    http://support.apple.com/kb/HT1430
    If the item is still there, you may need to restore the device:
    http://support.apple.com/kb/HT1414
    Hope that helps . Worst case scenario, you may need to write into iTunes support to see if they can also help!!

  • My on and off button got stuck is there any way to fix it?

    I have a Ipod Nano 6th Gen and i was just laying down listening to music when i tried to shuffle it by double clicking and the button got stuck. I just want to know if there is anyway to get it unstuck or will i have to get another one.

    I had the same problem with my iPod touch 4th gen.
    1. Reset
    You can hold the on/off button and the home button at the same time. Don't release until the screen goes black and the apple logo appears. After doing this it should restart your iPod completely.
    But depending on the screen problem, this may or may not work.
    If the first solution doesn't work, then try this:
    2. Restore
    You can restore it to factory settings if you sync it with your computer.
    If you can do this (sync with your iMac) then when you plug it in, go onto iTunes, and when it reconnizes your device it should have a section on the sidebar that says "iPod touch". Click on that, then click "restore iPod". It may confirm it and you will probably have to enter your Apple ID.
    ***Beware that with this method, all the data on your iPod will be lost***
    If this does not work, and your device is now restored, don't worry, you can get the data back and your iPod will be as normal.
    I hope this helps, sorry for any spelling errors, I'm only 13
    Happy New Year, and hopefull you can get your iPod fixed!!

  • Inbound delivery got stuck in EWM Queue

    Hi,
    I have an Inbound delivery got stuck in the inbound queue, which is from EMW. The error which it failed is "Enter SLED", but the point is material is serial number managed and not batch managed. I have compared with the successful serial number and could not find any relevant field.
    Can any one please let me know, why SAP is asking for SLED.
    regards
    Chaitanya      

    hi chaitanya,
    Have you checked the slg1 log? might have activated something related to quality.
    cheers,
    jobi

  • Dear all, I have a MacBook Pro bought in April 2011. Last April, it got stuck while the wheel was spinning and I had to force it shut. That cost me my hard drive. Now, it's stuck again. I tried esc, cmd tab, moving the trackpad on the apple, but no. HELP!

    Dear all, I have a MacBook Pro bought in April 2011. Last April, it got stuck while the wheel was spinning and I had to force it shut. That cost me my hard drive. Now, it's stuck again. I tried esc, cmd+tab, moving the trackpad on the apple, but no. HELP!

    Dear John,
    thank you for your prompt reply. After I sent the email, I left the wheel spinning to see if it would eventually stop. It didn't, but after a while the screen turned blue, so I decided to switch everything off with a forced shut-down. I could not restart with the OS DVDs because I am currently away from home, but fortunately everything was more or less fine after restarting. It then got stuck again, I forced it shut again, restarted again, and now it seem to work but I won't overdo it and will switch off smoothly after writing this (unless it gets stuck again). Last April I have replaced the HD, so it's now just under 6 months old. And, of course, since the crash occurred when I was abroad and had backed up just before I left, I have lost only a few days' work. Still, and I know this will make me hugely unpopular here, with my 5 previous laptops running on MS Windows I never had a problem. Which does not mean I loved the OS, or I would not have switched to Mac.
    Anyway, and this is the main reason for this message, thank you very much again for your speedy intervention.
    Claudia

  • As i turned on my iphone 4s on and connected to a wireless internet a page opened from the app firewall ip and i usually choose all connections. so it got stuck i held the standy by button but it won't turn off. so i held the standyby and home buttons.

    As i turned on my iphone 4s on and connected to a wireless internet a page opened from the app firewall ip and i usually choose all connections. so it got stuck i held the standy by button but it won't turn off. so i held the standyby and home buttons. when it opened all apps music and pics where not there. why? then i enterted photos and the loading logo appeared then the standyby appeared and i entered my password and everything in my iphone was there but thing were scattered and apps wheren't in folders everything was messed up but no photos or music AND IT SAYS UP IN THE MIDDLE OF THE SCREEN EXIT SAFE MODE. so i restarted it again and it opened and nothing was there and again i entered photos and the samething happen again. why did this happen? and can i get my data back? and in the usage it says that these thing are there but not showing.

    stevejobsfan0123 wrote:
    The Find my iPhone service option is given to you when you first set up the device. If you just reset it, you may have been given that option. So, in other words, the service may have been enabled even if you didn't realize it. You can then go to www.icloud.com and click on Find my iPhone, and have it play a sound. Or, you can use the Find my iPhone app on your mom's iPhone, but the service would still need to be turned on on your iPod.
    Unlike Compukid said, Apple will not assist in locating a lost device without the Find my iPhone service.
    I found that out 2 years ago, it's just that I thought Apple might have changed that.

  • I'm trying to update my daughter's Ipad2 to the new IOS 8 and it's got stuck on the connect to ITunes display.  We don't have a computer to connect it to and it's never been connected to one.  How do I get past this?

    I'm trying to update my daughter's Ipad2 to the new IOS 8 and it's got stuck on the connect to ITunes display.  We don't have a computer to connect it to and it's never been connected to one.  How do I get past this?

    You can try a soft-reset of pressing and holding both the home and sleep buttons for 10 to 15 seconds so that it reboots, but you are likely to get the same screen. If it does then it will need to be connected to a computer's iTunes so that it can be reset back to factory defaults - do you have a friend with a computer with iTunes installed on it, or is there an Apple store nearby that you could try going to (if there is then preferably make a Genius Bar appointment at it, or don't go at a busy time) ?
    Has she been backing up to the cloud ? If she has then she should be able to restore to that. If not then what she can redownload for free from the stores will show in the Purchased tabs in the store apps.

Maybe you are looking for

  • Error when starting new video recording

    When I try to start a new video recording I receive the following error: The operation couldn't be completed. (OSStatus error -536870206.) I am using Quicktime Pro on an iMac running Mac OS X 10.6.5. Quicktime will work with iSight but not with my PS

  • IPhone 3G to NOT support multitasking...

    I am wondering why the iPhone 3G will not support multitasking when OS 4.0 is released later this summer? This makes no sense to me. Were there that many hardware improvements between the 3G and 3GS (which will support multitasking)?

  • Error in TECO of production orders

    Hi    I want to TECO of production orders whose delivered quantity is greater than ordered quantity for a semi finished good.Is it possible. Or how to change the delivered quantity and TECO the order.Please Help Regards, PradeepM.

  • Sysman getting locked during installation

    hi I m using oracle 10.2.0.1.0 on windows xp i m installing Oracle Enterprise Manager 10g Grid Control Release 2 (10.2.0.2.0) but when it reachs to the OMS configuraion it is giving error. so i checked intallation log. it is showing that sysman accou

  • ItemFocusOut called twice when you are using datagrid

    Have you ever encountered itemFocusOut called twice when you are using datagrid. I use this event to check the text that has been entered. Also when I use regex expressions if((event.itemRenderer as TextInput).text.search(new RegExp(/.*\..*\./)) != -