Mega Code Archive

 
Categories / Flash ActionScript / Data Type
 

Use the this keyword when referring to an instance variable with the same name as a function variable

package{   import flash.display.Sprite;      public class Main extends Sprite{     var foo;         public function Main(){     }public function setFoo (foo:String):void {         this.foo = foo; }   } }