| Subcribe via RSS

Viagra online
XANAXadderall onlineLevitraPuppies for sale

Convert String to MovieClip in Flash AS3

March 16th, 2010 | No Comments | Posted in ActionScript 3

Pretty straightforward:

 
function doClick(e:Event):void {
    this[e.target.name].gotoAndStop('over')
}
 

Of course, in the case above you could actually just use:

 
e.currentTarget.gotoAndStop('over')
 
Tags: , , , ,

Flash AS3 - Calling a Method in a Parent Class

March 10th, 2010 | No Comments | Posted in ActionScript 3

When loading a movie in a movie, here's an easy way to call a method within a parent class:

 
  if(this.parent != null){
    var parentObject:Object = this.parent as Object;
    parentObject.doShowMain()
  }
 
Tags: , , ,