dcsimg
A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: I hate this, 3dfa does not export good!

  1. #1
    Junior Member
    Join Date
    Apr 2005
    Location
    The Netherlands
    Posts
    15

    I hate this, 3dfa does not export good!

    I tried everything, but it won't export good!
    Here's want i want:

    Code:
    text++;
    And text is an editbox.

    I also tried this:
    Code:
    text.text++;
    And:
    Code:
    text+1;
    text.text+1;
    Can somebody help me??!
    N00b flasheR
    -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_

  2. #2
    Senior Member
    Join Date
    May 2005
    Posts
    163
    An edit box is really a TEXT or CHARACTER field. If "text" is your edit box variable and you are trying to do text++ or something similar you are really concatenating strings. 3DFA is more foregiving and it may work but when you export it doesn't.

    To solve the problem use the String.toNumber(text) method to make sure that what you are incrementing is a number.

    Use:
    PHP Code:
    text String.toNumber(text) + 1
    or if you updating your edit box directly use:

    PHP Code:
    element("edit box").text String.toNumber(element("edit box").text) + 1

  3. #3
    Game Master ConnELITE's Avatar
    Join Date
    Apr 2005
    Location
    United States, DC
    Posts
    473
    also if text is a number you must define it as one in the starting script saying text=0 or something. For adding you do Text+=1. Also vars are case sensative.
    BC

  4. #4
    Junior Member
    Join Date
    Apr 2005
    Location
    The Netherlands
    Posts
    15
    Sorry, but it still doesn't work
    N00b flasheR
    -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_

  5. #5
    Senior Member
    Join Date
    May 2005
    Posts
    163
    I can only suggest that you post your ".movie" so we can see exactly what your trying to do.

  6. #6
    Senior Member
    Join Date
    Jan 2003
    Posts
    169
    Quote Originally Posted by ppedz
    I can only suggest that you post your ".movie" so we can see exactly what your trying to do.
    Yes, and make sure you put it in a .zip due to the limitations of FlashKit forums (which hosts this support forum).
    Jeffrey Davis (3DFA user since 2.x... or was it 3.x?) (Yes, I finally reveal the offline identity of JSDvs9172, being myself of course. Oh, and sorry for stealing your signature idea, blanius, which I see you stopped using.)

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