How to solve the comparison between a value with static type of string and type possible unrelated numb

I'm new on this and any help would be greatly appreciated, Im trying to display numbers customized for the values of a Hslider.

Here is my code so far:

<? XML version = "1.0" encoding = "utf-8"? >

< s:Application ' xmlns:fx = ' http://ns.Adobe.com/MXML/2009 "

" xmlns:s = 'library://ns.adobe.com/flex/spark"" "

"xmlns:MX ="library://ns.adobe.com/flex/mx"minWidth ="955"minHeight ="600">

< fx:Declarations >

<! - Place non-visual elements (e.g., services, items of value) here - >

< / fx:Declarations >

< fx:Script >

<! [CDATA]

Import mx.events.SliderEvent;

protected function ValueSlider_changeHandler(event:SliderEvent):void

{

ValueLabel.text = String (ValueSlider.value);

if (ValueSlider.value == '0')

ValueLabel.text = '150';

if (ValueSlider.value == '1')

ValueLabel.text = "333";

if (ValueSlider.value == '2')

ValueLabel.text = "543";

if (ValueSlider.value is "3")

ValueLabel.text = "9342";

}

[]] >

< / fx:Script >

"" < s:Panel x = "199" y ="141" width = "250" height ="200">

"" " < s:HSlider id ="ValueSlider'x ='74"y ="68"maximum ="5"" minimum = "0" stepSize = "1"/ > "

"" < s:Label id = "ValueLabel"x ="109" y ="38" text = "Label"/ > "

< / s:Panel >

< / s:Application >

Take a look at this project below. I modified your example. You can control the cursor changes over the link or explicitly manage events:

http://ns.Adobe.com/MXML/2009.

xmlns:s = "library://ns.adobe.com/flex/spark".

xmlns:MX = "library://ns.adobe.com/flex/mx" minWidth = "955" = "600" minHeight >

const CONVERSION: Array = ['150', '333', '543', "9342"];

Import mx.events.SliderEvent;

protected function valueSlider2ChangeHandler(event:Event):void

{

valueLabel2.text = CONVERSION [event.currentTarget.value];

}

]]>

Tags: Flex

Similar Questions

  • How to replace the 404 page default catalysts with a business I created and downloaded through Muse?

    I have a 404 page custom that I created in Adobe Muse, which I can see in the pages section Business Catalyst but direct site pushes on the defect of BC, which contain the correct home page redirection, but want to use mine... Searched forums for hours and play with it the best I can, but no luck... Is it still possible? Thanks in advance.

    Hello

    Login to your admin Site > Site Manager > Pages

    Select the page and Actions make start page.

    If it still doesn't work do not, contact support by live chat where they'll guide you with steps.

    Thank you

    Sanjit

  • Take the time between two values

    Hi people,

    I have a problem and I know idea how to solve... I need help.

    The problem is I want to take the time between two values max as you can see in the chart.

    For example, in the image that I have add

    4.5 - 1 840 = 2.66

    And enter this value in the 'time between mostra '.

    It's that I want...

    But what I think is very complicated, because I don't know how to take the time correctly and does remove...

    Thank you very much

    Any solution?

    Hi jocuma,

    I tried something and hope that helps u.

    Just create two arrays of temperature and voltage. First of all, I'll get the value of the voltage when it is more of a certain value and that same index to get the value of time and store in the shift register.

    When I get the second higher than the limit value, I'll get time and subtract the previous value.

  • I updated my drivers and now my computer runs very slowly. How to solve the problem?

    I've recently updated my Intel graphics driver and my drivers Nvidia because they were terribly outdated. As a result, I am able to run some games that I couldn't run before, but my computer became very slow. Now, the startup time is significantly slower, and the worst part is that the actual performance of the system is slower. I checked in the Task Manager, and my physical memory constantly rotates between 40 and 60% (I have 8 GB of RAM, Windows 7) without any game or program being open, except the web browser and Skype.

    What is perhaps the reason for this problem? Is certainly the problem in the drivers? How to solve the problem?

    "My graphics card is GEFORCE GTX 660 M. Is it compatible with the latest driver? »

    Ah! A laptop computer. With laptops, it is generally better to download the driver from the mfg, not Nvidia.

    This is because the computer laptop mfg bring changes that can make the improper generic Nvidia driver.

    and while I always count should not slow down the system... You never know.

    "What services I need to run.


    Just to keep the correct terminology-

    Services is the area where you stopped the service of bitlocker.

    The start is where you keep things from loading when you start in Windows.

    -Most of the time what's in Startup deactivation is something personal need, but there are some things that

    I must be on the left.

    I leave the Intel common user interfaceand Installshield update service, mainly because I don't bother

    Discover what they are doing.

    I also let anti-virus, Realtek audio, software profile keyboard and a few other things active.

    I don't have Adobe Flash loading with Windows, but I don't use it a lot, and when I do the software that

    uses it it launches automatically.

    The bottom line here is that if you have software that you use all the time, it is more convenient to have it start with

    Windows.

    -Concerning the Services. This also has to do with personal preferences to a certain extent, but most things can be left alone.

    I do not use the Services tab in the Configuration of the system, because I think it's only a one time adjustment.

    (Clean boot, linked earlier, is the best tool for the verification of conflicts with Services)

    To stop or disable a Service manually, tap - services.msc - in the run command to open

    the main window of Services.

    There is an Adobe Flash update in Services that should be kept, but when Adobe makes an update

    I select the option notify me, but not to install it automatically.

    I always preferred this with any updates, including Windows updates as there is less chance of a corrupt

    Update If you're aware, it happens and do not do something intensive system while the update is being installed, particularly when an update requires a restart to complete.

    -Registry. In the control run, type - regedit - and browse the registry with the file path in the

    previous post and follow the instructions. You can save the key you are modify if you wish, that the use of the

    backup to change the value to what is current would be faster than navigating to the key again.

    -When playing around with things you are not familiar with creating a System Restore point before you

    making these changes is a good insurance policy.

    If you don't know how to create a system restore point - time to do some research.

    In fact, all of the above is covered by tons of tutorials out there in the www.

    SSD vs HDD - the specifications of the system for you the machine should be in your user manual or on the

    MFG web site.

    Prefetch is useful with HARD drive, because it improves performance somewhat, but read-ahead is not really necessary with SSD.

    and can reduce the life expectancy SSD a bit (there is debate on gravity)

    More research for more details. D

    -If you use a HARD disk and that you have enabled Prefetch, the Prefetch will be rebuilt over time, if you delete the files.

    -Here's another tip for when you are not sure of the impact of deleting files.

    Rename file/folder. You can do something like add another couple of P to the front, or a 1a which will move

    the file to the top of the window. If nothing is wrong in the next few days, you can delete the folder.

    This method protects to empty the trash accidentally and lose the file/folder.

    -Speaking of deleting the file. A great TEMP folder can slow things way down.

    Run Windows, Disk Cleanup . This will remove many files in the Temp folder.

    Or, for a full, clean, go to the - your User\AppData\Local\Temp

    Open the Temp folder and delete anything that can be deleted (impossible to delete the files that are used).

    -Defragment your HARD drive

    -Run the Zig - zag Kit you'd use again and analyze the results.

    It was a long, huh!

    .

  • How to solve the error ORA-00001 in SQL Insert?

    Hi all, I need your help appreciated.

    I do a plsql procedure that inserts a line according to the value of the slider, I have error oracle ORA-00001: unique constraint (constraint_name) violated.

    This message may appear if a duplicate entry exists at a different level: in the RDBMS MySQL, I have the syntax IGNORES to solve this error of duplication... and in Oracle?

    Thanks for your time and your advice.
    Miguelito

    user6317803 wrote:
    How to solve the error ORA-00001 in SQL Insert?

    ORA-00001 means table a unique/primary key / index and you attempt to insert a row with the key value already exists in the table. I'll assume table has a primary key on COUNTRY_ID. Then modify SQL for:

    SQL = "INSERT INTO COUNTRIES (COUNTRY_ID, COUNTRY_NAME, REGION_ID) SELECT"BZ","BLZ", 3 DOUBLE WHERE DOES NOT EXIST (SELECT 1 FROM COUNTRIES WHERE COUNTRY_ID ="BZ").

    There is a good chance COUNTRY table also has unique key/index on COUNTRY_NAME. If so use:

    SQL = "INSERT INTO COUNTRIES (COUNTRY_ID, COUNTRY_NAME, REGION_ID) SELECT"BZ","BLZ", 3 DOUBLE WHERE DOES NOT EXIST (SELECT 1 FROM COUNTRIES WHERE COUNTRY_ID = 'BZ' OR 'BLZ' = COUNTRY_NAME).

    SY.

  • How to find the relationship between the tables

    Hello
    I am working in Oracle R12

    How to find the relationship between these tables INV_MIN_MAX_TEMP, po_requisition_lines_all and Per_all_people_f

    These two tables, I joined with po_requisition_lines_all and Per_all_people_f To_person_id of PO and anyone HR table but I can't able to join this table with other tables INV_MIN_MAX_TEMP

    concerning
    Srikkanth

    solved

  • Someone broke into my computer informing me that he has been infected with malware, viruses, etc. and advising me to contact a phone number, also send me a live conversation on how to solve the problem. He claims to be an Apple / Safari servic

    Someone broke into my computer informing me that he has been infected with malware, viruses, etc. and advising me to contact a phone number, also send me a live conversation on how to solve the problem. He claims to be an Apple / Safari servic

    This kind of message is a scam. Do not meet it.

    Force Quit Safari, then restart Safari while holding the SHIFT key.

  • My messages send and receive txt messages not iMessage on my iPhone and I don't know how to solve the problem to send and receive messages as iMessage

    My messages send and receive txt messages not iMessage on my iPhone and I don't know how to solve the problem to send and receive messages as iMessage

    Settings > messages > iMessage turn off then turn it back on...

    If it does not sign of your apple under messages ID.  Settings > General > reset > reset all settings (will not erase data).

    Then log in messages

  • How to solve the cube root?

    How to solve the cubic equation?

    a x ^ 3 + x b ^ 2 + c x + d = 0.

    Polynomial roots.

  • How to solve the problems of windows 10 shut down (power, lighting the keyboard is always on)?

    Nice day

    How to solve the problems of windows 10 shut down (power, lighting the keyboard is always on)?

    with regard to my question above. I need to hold the button of power for 5 seconds to completely shut down my laptop. even restart or sleep does not work well. I upgraded a real victory 8.1 to 10 free victory by that windows app reservation offered. IM using acer aspire v5 - 573 g i7, version gt750m, Finnish keyboard

    solutions, I tried to random searches that did not work for me.
    1 unchecking quick stop to power options
    2 disabling hibernation in cmd (types a code forgot what I have)
    3. update all drivers and bios with sites acer official drivers, driver pack solution 15.8 and utility driver update intels
    4 decommissioning intel management engine components driver 11 to 9.5
    5. go to the bios and reset to the default settings
    6 make a shortcut of "shutdown" with codes e.g. shutdown /s /t 0
    7. click Update stop

    IM thinking of reinstalling windows 10 via recovery which removes applications, files, drivers, etc. and hope this solves. I can't roll back to win 8.1 because ive done this reset before you completely clean out my system of win random 8 and trashes the restore option was gone.

    Thanks in advance

    Hello/Hallo wuschel93,

    exactly what I had. Stop number appears only after a certain time the laptop running.

    The problem is INTEL MANAGEMENT ENGINE RELATED V.11!

    I fixed it with uninstall Intel Management Engine Version 11. Windows will then install version 9.5 automatically. After that I turned off the automatic update of the driver for this device. You can also install 9.5 without uninstalling the old one, it wil crushed.

    Other manufactures also have this problem, but while Acer is still asleep, they provide a solution (including download links):

    http://h30434.www3.HP.com/T5/notebook-operating-systems-and-software/sleep-and-shutdown-issues-after...

    Maybe there are any other issues that result in the same problem. But in most cases, it's the answer. The thread Starter maybe forgotten to disable the automatic driver update or made installation of v9.5 evil?

    TEPCO

  • How to solve the code Windows Update error 0x80004005 on Windows XP

    original title: how to solve the error code 0x80004005 in Windows XP

    Always receiving automatic updates of Windows but for several months were unable to listen to some online audio speech, especially "background" music / other noise drowns speech as if the speech is incidental to the music / other noise.  Do not have the question whether listening audio "voice only".  Not in computing except for save the error code 0x80004005, but have you checked that my audio software works OK when tested.

    Thanks in anticipation!

    Hello

    1 are you getting this error message 0 x 80004005 When running Windows update?
    2. what web browser do you use?
    3 are you facing this problem of Audio with any particular Web site?
    4 you did changes to the computer before the show?
    5. "do not have the issue if you listen to"voice only"audio" are you making reference to the audio files saved on the computer?

    Try the following and see if it helps.

    Method 1: Windows Update

    Step 1:

    How to troubleshoot common Windows Update, Microsoft Update and Windows Server Update Services installation: http://support.microsoft.com/kb/906602

    Step 2:

    How to reset the Windows Update components? : http://support.microsoft.com/kb/971058

    Method 2: Audio

    No sound in Windows: http://windows.microsoft.com/en-US/windows/help/no-sound-in-windows
    Note: It is applicable to Windows XP as well.

  • How to solve the internal error 2753

    How to solve the internal error 2753

    This error relates to a problem installing Windows.
    When you try to install or update anything when the message appeared?

    If so, one thing you can try is this:
    -Click on start, select run... and type CMD into the DOS command prompt
    -Type regsvr32 vbscript.dll in command prompt and press ENTER.
    -You should see a message saying that DllRegisterServer in vbscript.dll successful, click OK

    Now you can try to reinstall the program/application/update.

    If not, can you give us some info on what you were doing when the error occurred?

  • How to solve the problems highlighted in each journal in the issues of the CBS

    Hello

    Please could someone help me decipher the CBS logs for two of my Vista machines and tell me how to solve the problems highlighted in each journal.

    Vista 1 machine has Vista Ultimate x 64 SP2 installed and has been implemented in the following way:

    • Installed Vista Ultimate SP1 from DVD
    • Apply all updates important, recommended, and optional through Microsoft Update
    • Applied SP2 via Microsoft Update
    • Apply all important updates, optional and recommended through Microsoft Update after that

    Machine Vista 2 has Vista Ultimate x 86 SP2 installed and has been implemented in the following way:

    • Installed Vista Ultimate SP1 from DVD
    • Apply all updates important, recommended, and optional through Microsoft Update
    • All the different ways to install SP2 and had no success in which I used the followed by the fix corrupt system analysis tool Pack of language without problems were detected but had to reinstall OS in order to reactivate Windows new
    • Reinstalled Vista Ultimate SP1 DVD
    • Installed SP2 with download of the Microsoft not by Microsoft Update website and this time it worked
    • Apply all updates important, recommended, and optional through Microsoft Update

    I searched on Google for months on how to solve the problems highlighted in the CBS logs but got too hypnotized and decided to consult you on how to solve the problems. I forgot to mention also that 11 updates of Windows would not apply via Microsoft Update on both machines and apply them manually in which they worked.

    Finally please can you give me a link to download CBS logs.

    Your help would be much appreciated.

    Thank you very much

    RocknRollTim

    https://social.technet.Microsoft.com/forums/Windows/en-us/54bff6db-0797-4655-A331-a86510c1b291/Vista-CBS-log-issues?Forum=itprovistasp and OneDrive (SkyDrive) for download to use collected files and after shot/screenshot. (Updated: 16/01/2012)

  • How to tell the difference between recommended, and optional updates long after they have installed bene?

    I have a Vistaprogram of the window running on my Toshiba laptop.

    In the past, I've confirmed that optional udates be installed. Please help: now I want to uninstall optional updates because my computer is slow.  How to tell the difference between recommended, and optional updates long after they have installed bene?

    Hey monkey 44,

    I suggest you view the history in Windows Update:

    http://Windows.Microsoft.com/en-us/Windows-Vista/see-which-Windows-updates-are-installed

    Those listed as recommended is technically optional.

    Before you delete updates the computer, I suggest you try the steps from the following link to improve performance and check if that helps:

    http://Windows.Microsoft.com/en-us/Windows-Vista/ways-to-improve-your-computers-performance

    I hope this helps.

  • How to solve the single FAX problems

    After HP8600 is installed, what impression the network always goes to FAX instead of the printer. How to solve the single FAX problems

    Hello jim3258and welcome to the Forums of HP, I hope you enjoy your experience!

    I see that you have problems printing and fax.  I'd love to try to help you, but I need some information first. I'm a link some HP Support documents below that will show you how to find the number for your product. In addition, please indicate what operating system you are using. In addition, if you are using Windows, please indicate if your operating system is 32-bit or 64-bit. With this information and the product number we provide you with accurate information.

    How can I find my model number or product number?
    Mac OS X: how to find which Mac OS X Version is on my computer?
    Operating system Windows am I running?
    Is the Version of Windows on my computer 32-bit or 64-bit?

    Please let me know what you find.  Thanks for posting on the HP Forums!

Maybe you are looking for

  • Why web pages appear incorrectly after upgrade to 6.0 3.6?

    When I upgraded from 3.6 to 6.0 (tried twice), it caused poster on the webpages to be severely compromised. I had coins of headers, in the wrong places in some cases (mainly Facebook - on the left side) and no content. Shopping sites had items and he

  • "Beep code" understanding

    Hi all I have a 2 years old compact-hp pasario sr5050nx running 32 bit vista premium. From the start, it beeps and does not load vista. I am trying to understand the code. It emits 3 beeps, and then goes a little aaaahhhhhhhhh. Is it a long code or i

  • Satellite A75 sound very quiet?

    I have the A75 and it works like a dream. I'm happy with it. One thing: the sound output is very low, very quiet. Even my MP3 player running on batteries kicking at its best.It's just so quiet.Everyone had the same problem. I visited the installation

  • The blue led speakers do not work on my new Satellite P100-487

    Hello Just bought this laptop and have a little problem. Everything works fine, but I think the blue led next to the speakers should work also.I don't know why they are not function... Could someone tell me how to light their? Or I'm not able to infl

  • HP-H8-1140sc: upgrade my motherboard help

    Hello. I bought a new MSI Nvidia gtx 960 and I want to install on my pc, after checking on the net, I found on my card HP mother IPISB-CH2 is not able to run under its not with the 3.0 update. I'm ready to upgrade my motherbaord but I understand that