A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Defining variables

  1. #1
    Senior Member
    Join Date
    Oct 2008
    Posts
    120

    Defining variables

    is there a diff between like:

    var blah: Boolean

    and

    var blah = Boolean =


    EDIT: Also, is there a list of what variable definitions there are, and what they do?. Like Number, Boolean, ETC

    just wondering what else
    Last edited by DeadRiver; 12-15-2008 at 08:13 AM.

  2. #2
    Ryan Thomson EvolveDesigns's Avatar
    Join Date
    Oct 2001
    Location
    British Columbia
    Posts
    3,338
    i've never seen var blah = Boolian =

    when you type var blah: you'll see a list of all the variable definitions.
    Evolve Designs Interactive Media
    the natural selection

  3. #3
    Senior Member
    Join Date
    Oct 2008
    Posts
    120
    Well, when I tried that,I didn't get an error. idk.

  4. #4
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    does it work as a boolean?


    doing this:

    var name:dataType

    is nothing more than declaring the type of data that variable is supposed to have/act like.

    called data typing or strict data typing..

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