A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: the _ and __ in variable names...

  1. #1
    Humble Flash Newbie
    Join Date
    Feb 2007
    Posts
    107

    the _ and __ in variable names...

    There must be some convention code that I don't understand...
    Why the "_" in variable names? For example in "_x" while not in "text" of text boxes. And even less understandable, the "__"?

    What does it denote?

  2. #2
    AKA [ Paul Bainbridge] webdreamer's Avatar
    Join Date
    Aug 2001
    Location
    Glasgow, Scotland, UK
    Posts
    3,320
    _x, _y, _alpha, _xscale etc ar properties and not variables
    __somevar = stipulates a private var
    .: To me AS is like LEGO, Only for the big Kids :.
    - Site - Blog - Twitter - Linkedin
    bringmadeleinehome.com

  3. #3
    Humble Flash Newbie
    Join Date
    Feb 2007
    Posts
    107
    allright, thanx!

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