Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Property Names

Status
Not open for further replies.

grande

Programmer
Feb 14, 2005
657
0
0
CA
Hi all,

So what's the difference between _width and width? _height and height? _alpha and alpha?

Anyone know? Why do some have underscores and others don't?

-------------------------
Matt Grande
C# Master.
Ruby on Rails Admirer.
ActionScript Student.
JavaScript Hate-Monger.
 
So, AS2 = _
AS3 = no _

-------------------------
Matt Grande
C# Master.
Ruby on Rails Admirer.
ActionScript Student.
JavaScript Hate-Monger.
 
There are no properties with underscore in AS3 (as far as I'm aware). In AS1/2, some property has it, some don't. [tt]MovieClip._width[/tt] has it, but [tt]MovieClip.enabled[/tt] doesn't. [tt]MovieClip._x[/tt] has it, but [tt]UIObject.x[/tt] doesn't. It's not consistent - that's why all underscores are removed in AS3.

Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top