I have created i class width I inherit from with u number of subclasses. Now i what to add different images to the subclasses. Since I'm new to Flash and AS3 i have some problems to complete this.
Blend.as
package com.jarsater.sthlmroast
{
import flash.display.MovieClip;
public class Blend extends MovieClip
{
private var _width:int = 54;
private var _height:int = 188;
public function Blend():void
{
this.width = this._width;
this.height = this._height;
}
}
Dark.as
package
{
import com.jarsater.sthlmroast.Blend
public class Dark extends Blend
{
public function Dark()
{
super();
this.setBlend('Dark');
}
}
}
How can i add an image to the Dark.as object and then place the object on the stage?