tegn boks under billed
Jeg vil gerne tegne en boks nede under billed som bliver loadet, hvorfor gør den ikke det?function billed(pic:String){
//var maskobj:Object = new Object();
antal+=1;
tel=0;
navn="jens"+antal;
var holder:MovieClip = this.createEmptyMovieClip(navn, this.getNextHighestDepth());
var bi:MovieClipLoader = new MovieClipLoader();
var mclListener:Object = new Object();
mclListener.onLoadInit = function(mc:MovieClip)
{
tel+=1;
holder.swapDepths(tel);
//fadeTo(mc, 0, 100, 5);
mc._y=husky;
mc._x=huskx;
mc._height=100;
mc._xscale = mc._yscale;
var husk=mc._height;
huskx+=mc._width+8;
huskbilled_width+=mc._width;
//trace(huskbilled_width);
//txthusk_txt.text+=mc._name+"\n";
huskbilled_nr+=1;
huskbilled_navn[huskbilled_nr]=mc._name;
if (huskx>620)
{
huskx=70;
husky+=120;
}
with (_root.createEmptyMovieClip("kasse"+huskbilled_nr, _root.getNextHighestDepth()))
{
this.beginFill(0xff00ff, 100);
this.moveTo(0, 0);
this.lineTo(1, 0);
this.lineTo(1, 1);
this.lineTo(0, 1);
this.endFill(0, 0);
this._width=mc._width;
this._height=20;
_x = mc._x;
_y = mc._y+mc._height;
}
mc.onRollOver = function(){
abe=mc._name;
abe=abe.slice(4,7);
abe=mynavn[abe-1];
trace(abe);
}
};
function fadeTo(mc:MovieClip, initA:Number, endA:Number, time:Number)
{
var tweenA:Tween = new Tween(mc, "_alpha", Regular.easeOut, initA, endA, time, true);
}
bi.addListener(mclListener);
bi.loadClip(pic, holder);
}