A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [flashlite 1.1] textfield for variable?

  1. #1
    Junior Member
    Join Date
    Jun 2005
    Posts
    29

    [flashlite 1.1] textfield for variable?

    what i want to do with flashlite 1.1:

    var1 = 1
    var2 = 2
    var3 = var1 + var2
    textField = "Number is: " + var3;

    Is it possible?




    it seems you can only put TEXT in a textField ...

  2. #2
    Registered User
    Join Date
    Apr 2001
    Location
    Akron OH, USA
    Posts
    4,841
    in Flash Lite 1.1 you must use a different set of operators for string concatenation compared to math operations.

    Use the "add" operator instead of "+".

    textField = "Number is " add var3.

    Also use the variable name box (to the right side) in the property inspector instead of the instance name box (on the left side). The instance name is for later versions of AS not supported in FL1.1.

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