Use the this keyword when referring to an instance variable with the same name as a function variable: : Variable Declare « Data Type « Flash / Flex / ActionScript
Use the this keyword when referring to an instance variable with the same name as a function variable:
package{
import flash.display.Sprite;
publicclass Main extends Sprite{
var foo;
public function Main(){
}public function setFoo (foo:String):void {
this.foo = foo;
}
}
}