Bug in Adobe Flash ? The code doesn't work if I add a symbol

Hi,
Here's my code :
  import flash.text.TextField;
qtte_t1.addEventListener(Event.CHANGE,changeHandler);
qtte_t2.addEventListener(Event.CHANGE,changeHandler);
qtte_t3.addEventListener(Event.CHANGE,changeHandler);
qtte_t4.addEventListener(Event.CHANGE,changeHandler);
qtte_t5.addEventListener(Event.CHANGE,changeHandler);
qtte_t16.addEventListener(Event.CHANGE,changeHandler);
  function changeHandler(event:Event):void
  calculatePayCheck();
  function calculatePayCheck():void{
  var tome1:Number = 0;
  var tome2:Number = 0;
  var tome3:Number = 0;
  var tome4:Number = 0;
  var tome5:Number = 0;
  var tome16:Number = 0;
  var global:Number = 0;
  tome1 = Number(qtte_t1.text);
  tome2 = Number(qtte_t2.text);
  tome3 = Number(qtte_t3.text);
  tome4 = Number(qtte_t4.text);
  tome5 = Number(qtte_t5.text);
  tome16 = Number(qtte_t16.text);
  tome17 = Number(qtte_t17.text);
  tome18 = Number(qtte_t18.text);
  tome19 = Number(qtte_t19.text);
  tome20 = Number(qtte_t20.text);
  tome21 = Number(qtte_t21.text);
  tome22 = Number(qtte_t22.text);
  tome23 = Number(qtte_t23.text);
  tome24 = Number(qtte_t24.text);
  global = Number(prix_global.text);
  prix_t1.text = String(Math.round(tome1*1200));
  prix_t2.text = String(Math.round(tome2*1200));
  prix_t3.text = String(Math.round(tome3*1200));
  prix_t4.text = String(Math.round(tome4*1200));
  prix_t5.text = String(Math.round(tome5*1200));
  prix_t16.text = String(Math.round(tome16*1200));
  prix_global.text = String(Math.round((tome1+tome2+tome3+tome4+tome5+tome16)*1200));
Everything is working great, but if I add a symbol on stage the calculs are completly buggy ! (no error message but I can't add the number I want and the calculs are wrong)
Do you know why ?
I can't add a form, a symbol, NOTHING. just bitmap. If I'm adding something, the sums are wrong.
Thank you,
steph

like i said, you showed a lot of superfluous code and incomplete code, but that by itself wouldn't cause what you describe.
so, something other than what you indicated is happening.  i don't know what that is but i suspect you are not doing what you think you are doing.
to debug, copy just the code you showed (or should have showed) to a new fla that contains only the needed textfields and mouse listeners and test.

Similar Messages

  • Adobe Flash 11.4 doesn't work on firefox

    I am currently using windows 7 and firefox 14.0.1
    After updating to the latest version of adobe, which is 11.4, anything that requires flash doesn' work. I have tried this on internet explorer 9 and google chrome, which worked perfectly. So, the issue here is that adobe flash 11.4 doesn't work on firefox; also, the browser worked fine before the update. Any help would be appreciated.

    Well, for example: youtube.com, it would say an error occurred; otherwise, those that requires flash would display a white box instead.
    For C:\Windows\system32\Macromed\Flash:
    These are the files within it:
    -FlashInstall- text doc.
    -FlashUtil64_11_4_402_265_Plugin app
    -NPSWF64_11_4_402_265.dll app extension
    C:\Windows\syswow64\Macromed\Flash:
    -FlashPlayerTrust folder
    -FlashInstall text doc.
    -flashplayer.xpt file
    -FlashPlayerPlugin_11_4_402_265 app
    -FlashPlayerUpdaterService app
    -FlashUtil32_11_4_402_265_Plugin
    -mms.cfg
    -NPSWF32_11_4_402_265.dll
    Thanks for your reply to my issue.

  • Why the code doesn't work???

    addWindowListener(new WindowAdapter(){public void windowClosing(){System.exit(0);}});
    when I press the x button ,it doesn't work as expected!!

    What are you expecting it to do? I should close the window and then exit the application. This is the code I use for all my applications and it does exactally that. Are you using it with a JFrame? or a JDialog?
    JFrame test = new JFrame();
    test.addWindowListener(new WindowAdapter() {
                public void windowClosing(WindowEvent evt) {
                    System.exit(0);

  • I've bought a gift card but the code doesn't work. What do I have to do now?

    Somebody told me to send an email to Apple but I don't really know how. What should I say and where can I do that? Also, what should I write? I'd go back to the store but they couldn't do abything so they threw it away. That means I don't have the code anymore. What should I do now? Help me please.
    Friendly greetings,
    J. Paalman

    See here: iTunes Store: Invalid, inactive, or illegible codes
    B-rock

  • Downloaded adobe flash but it doesn't work/run ??

    see above

    What is your operating system & version?
    What is your web browser?
    You downloaded Flash Player, but did you also install it?
    What exactly means "doesn't work/run"?

  • Adobe Flash CS5.5 doesn't work on my Mac OSX 10.7

    Hello there!
    I have been reading some blogs, forums, etc. to try to figure out how to make flash work on my mac. So far, I have not succeded. I just purchased Adobe Creative Suite 5.5 Web Premium mainly to use Flash... but I can't use it. What can I do?

    Do you receive an error message when trying to install or when you try to open the software?

  • The new Adobe Flash Player update don't work on my mac

    The New Adobe Flash Player update doesn't work on my mac pro tower!!!! i've tried to reboot it and uninstall and restall it!!!!

    I have the same problem. OS X 10.9.2 and Firefox 28. When I tried to go back to 12, I realized it is no longer available, I can only get 13, which leaves my pages blank.

  • HT1338 I download Adobe Flash but it doesn't install. Each time I encounter something that needs Adobe Flash it tells me I don't have it. I am getting tired downloading it and then it isn't there.

    I download Adobe Flash but it doesn't install. Each time I encounter something that needs Adobe Flash it tells me I don't have it. I am getting tired downloading it and then it isn't there.

    install_flash_player_10_osx.dmg
    install_flash_player_10_osx-1.dmg
    install_flash_player_10_osx-2.dmg
    install_flash_player_10_osx-3.dmg
    install_flash_player_10_osx-4.dmg
    etc to -9
    Those are the ones you downloaded. Ten times, apparently. Since install_flash_player_10_osx.dmg already existed, the next download was appended with -1. The next -2, etc. They'll all be identical, so it doesn't matter which one you use. Though I'd go with the last one as it may be a slightly updated version from the first download, depending on how long ago you did the first one.
    A .dmg file is a Disk Image. When you double click them, they open up a pseudo drive on the desktop. When you open one of these ten items, the Flash installer will appear in a file window. Run it to install Flash. Then close the file window (displaying from the psuedo drive) and then put the "drive" in the trash to dismount it. You can then delete all of those.
    Looks like you also downloaded the Adobe Reader twice. Versions 10.1.2 and 10.1.3. Also Skype, whatever the Thomson thing is, and an unnecessary Flash uninstaller (the Flash installer will put an uninstaller in the Utilities folder).

  • Key-code change... from windows to mac... the old key-code doesn´t work

    I bought a CS for Windows and used it on Windows.
    Now I bought a Mac and want to use it,
    but the key-code doesn´t work.
    How can I get a key-code wich works???

    Neither the keycode nor the Windows version of the software will work on a Mac.
    You can only swap platforms for the latest version of Adobe products, which is currently CS6.
    Order product | Platform, language swap

  • I have purchased the Adobe Creative Suite 4 and now my first dvd of the software doesn't work anymor

    I have purchased the Adobe Creative Suite 4 and now my first dvd of the software doesn't work anymore. My computer doesn't want to read it anymore. I want to mention that I also tried on some other computers and still the problems continues. How can I solve this? On the Adobe webpage I can't find anymore the download for Adobe CS4. Thanks. Marius Lupu

    You can download the software from http://prodesigntools.com/download-adobe-cs4-and-cs3-free-trials-here.html and can serialize it with the serial number you have.
    NOTE:- READ THE INSTRUCTION PROPERLY TO AVOID ANY ERROR.

  • The ussd code doesn't work on my iphon since i update to ios 7.0.3 what can i do for this problem?

    the ussd code doesn't work on my iphon since i update to ios 7.0.3 what can i do for this problem?

    Maybe
    SOLUTION: circle with red square Some Music Won't Play After...: Apple Support Communities

  • Adobe flash player 11 doesen't works on 10.8.1! what can i do? whats the best flash player for mac?

    adobe flash player 11 doesen't works on 10.8.1! what can i do? whats the best flash player for mac?

    First try deleting Flash Player by carefully following the instructions on Adobe's website:
    http://helpx.adobe.com/flash-player/kb/uninstall-flash-player-mac-os.html
    Then install it again from this location only:
    http://get.adobe.com/flashplayer/

  • The vibration doesn't work on my phone instead the camera flash is blinking

    The vibration doesn't work on my phone instead the camera flash is blinking

    Gaspar Mancilla wrote:
    ... instead the camera flash is blinking
    Go to Settings  >  General  >  Accessibility  >  LED Flash for Alerts. >  Off / On
    iPhone User Guide (For iOS 6 Software)

  • Code Doesn't work although it works on DEV

    hello evey body
    some functions and codes doesn't work on application server But it works on developer ??!!
    as i have code to export data from oracle to excell . it works from developer but it doesn't from application server
    this is my code in the link
    http://www.4shared.com/document/7wTQrK1-/Excell_Rep.html
    does Application Server didn't contain this packages ?
    or what ??

    Hi dorpfeld,
    Please check the KB : http://helpx.adobe.com/creative-suite/kb/error-serial-number-valid-product.html
    I would strongly recommend that you work directly with our support team for serial number issues.
    You can reach our chat support for serial number issues at : http://adobe.ly/1aYjbSC
    Regards,
    Rave

  • Count(*) in the loop doesn't work and I really don't know why...

    Hello,
    I can't figure out why the following doesn't work. I cannot debug for I do not have privileges on this server.
    The execution always fails on bolded line. If I substitute the variable with the table name itself it works. The variable is properly populated in each of the iterations as I can see it by using dbms_output package. The small but may be important detail may be I am connected as user A but the tables are in the schema B. However I can list the tables and their columns in all_tab_cols view and there are synonyms made in my schema which allow me to access the B tables without prefixing them.
    I get the error:
    Error report:
    ORA-00900: invalid SQL statement
    ORA-06512: at line 26
    00900. 00000 - "invalid SQL statement"
    *Cause:   
    *Action:
    I ran out of ideas and I do not have access to any of the Oracle instance to be able to debug right now.
    Variable type for v_tables is wrong? I do not have some magic privilege to use execute immediate with variable?
    Oracle server has a bad day today?
    The crap is 11.1.0.7 if it has anything to do with my problem.
    Please help if you can.
    Grzegorz
    declare
    v_number number := 646989;
    v_current_table nvarchar2(50);
    v_itemno number;
    type t is table of nvarchar2(50);
    v_tables t;
    begin
    dbms_output.put_line('Working...');
    select table_name bulk collect into v_tables from all_tab_cols where column_name = 'ITEMNO' order by table_name;
    for i in 1 .. v_tables.count loop
    dbms_output.put_line('Number: ' || i);
    v_current_table := v_tables(i);
    <b>execute immediate 'select count(*) from ' || v_current_table || ' where itemno = :a' into v_itemno using v_number;</b>
    if (v_itemno > 0) then
    dbms_output.put_line('Current table contains specific ITEMNO: ' || v_current_table);
    end if;
    end loop;
    end;

    In SQL Plus run this and see what SQL is your code returning. Then execute the SQL individually.
    set serveroutput on
    declare
         v_number number := 646989;
         v_current_table nvarchar2(50);
         v_itemno number;
         type t is table of nvarchar2(50);
         v_tables t;
         lSqlString varchar2(20000);
    begin
         select table_name
           bulk collect into v_tables
           from all_tab_cols
          where column_name = 'ITEMNO'
          order by table_name;
         for i in 1 .. v_tables.count loop
              v_current_table := v_tables(i);
              lSqlString := 'select count(*) from ' || v_current_table || ' where itemno = :a';
              dbms_output.put_line(lSqlString);
              --execute immediate  lSqlString into v_itemno using v_number;
         end loop;
    end;

Maybe you are looking for