Hi
Rather strange title hu? Well, I’m trying to access a class which was defined on a library symbol in my main.fla by using the Linkage… dialog. Classname: GrungeTitle, BaseClass: BitmapData.
I’m trying to access this class to build my repeating background on my main.fla (which uses a document class: base.as).
My code of the document class:
public function init():void {
grungeBackgroundTile = new GrungeTile(300, 300);
var spr:Sprite = new Sprite();
spr.graphics.beginBitmapFill(grungeBackgroundTile);
spr.graphics.drawRect(100, 100, 100, 100);
spr.graphics.endFill();
addChild(spr);
}
This code gets called on the third frame of my main.fla by calling: init();
When I try to draw a simple square in the sprite, the rectangle gets drawn on the stage, when I try to make a fill with a library item then it doesn’t display a thing.
Any help?
Thanks