the AS2 code is:
MovieClip.prototype.setModel = function(m)
{
this.model = m;
this.drawModel(m);
}
MovieClip.prototype.drawModel = drawModel;
I tried:
package
{
import flash.display.MovieClip;
public class Prototype extends MovieClip
{
public function Prototype()
{
super();
}
public function setModel(m)
{
this.model = m;
this.drawModel(m);
}
public function setDrawModel(m)
{
this.drawModel = m;
}
}
}
but there is no “this.model” nither “drawModel(m)” in MovieClip.
Any idea?
You have define model and drawModel. I only see setModel and setDrawModel and no variables.
So if you add following inside the class:
private var model:type;
Then your this.model will work.