hi
i wonder if someone could get me a sunday help on this one. I’m trying to work with senocular classes, the layout one’s. I can get everything to work properly with one exception.
When a mc is being modified by the class, let’s say it’s width, why can’t I change it’s y?
All I want to do is to have a movieclip that ajusts it’s width based on stage.stageWidth using the classes for this, but maintain it’s position along the Y free to animate.
I post the code and the fla.
[AS]import com.senocular.display.*;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
// LAYOUT
var manager:LayoutManager = new LayoutManager();
var master:Layout = manager.registerNewLayout(this);
master.width = stage.stageWidth;
master.height = stage.stageHeight;
var layout:Layout;
layout = manager.registerNewLayout(this.bm, true);
layout.percentWidth = 1;
master.draw();
// update master based on stage dimensions
stage.addEventListener (Event.RESIZE, stageSize);
function stageSize (event:Event)
{
master.width = stage.stageWidth;
master.height = stage.stageHeight;
master.draw();
}
// change prop
this.bm.y = 500;
master.draw();[/AS]
thanks
am