A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: a simple problem

  1. #1
    Junior Member
    Join Date
    May 2002
    Posts
    11

    a simple problem

    i am a newbie yes.. but can i get some help with why i dont get anything when i klikk the button?

    on (release) {
    sum = a;
    enhet1 = b;
    enhet2 = c;

    a = (b + c);
    }

    whats wrong?

    thanx
    Kenni

  2. #2
    ask me one on fish..not flash
    Join Date
    Oct 2002
    Location
    southern u.k.
    Posts
    495
    what do you expect to get?

    you have not specified what ehnet1 or 2 are
    and "a" returns 0 which is true cos you dont have anything.

    so what do you want to do?


    gary
    I bought a Ouija board. The pointer spelled out 'You don't actually believe in this crap, do you

  3. #3
    Junior Member
    Join Date
    May 2002
    Posts
    11
    enhet1 = an input textbox
    enhet2 = an input textbox
    sum = a dynamic textbox

    i want enhet1 + enhet2 to show at sum when i push the button where
    the action are placed

    on (release) {
    sum = a;
    enhet1 = b;
    enhet2 = c;

    a = (b + c);
    }
    Kenni

  4. #4
    ask me one on fish..not flash
    Join Date
    Oct 2002
    Location
    southern u.k.
    Posts
    495
    hi man, check out the attached (rather rough) fla.
    put something in enhet1 and enhet 2 and click the blue button.

    sum then shows the "addition" of the 2 boxes.

    (it is a text addition, remember. you can add a space by putting

    enhet1+" "+enhet2

    on the button.

    if you are looking for numbers then it gets even more fun, as the input box returns a text value. so you have to turn the text into a number then add them. (or 1+2=12 and not 3)

    hope this has helped a little

    gary
    Attached Files Attached Files
    I bought a Ouija board. The pointer spelled out 'You don't actually believe in this crap, do you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center