bar dont change anymore?
I have a function created to listen to the stage and adjust the bar width to the stage width. (frame 1 maintimeline)
this works perfectly tho, until i go to other labels on the main time line. then if i resize the window the bar width dont adjust anymore and leaves to the last width.... why is that? i tried mostly what i could think of... placed the events between the init function, put extra keyframes etc...
what am i actually missing? i really want the bar width changed where-ever i go in my content and whenever i am changing the window...
stage.addEventListener(Event.RESIZE, changeBar);
stage.dispatchEvent(new Event(Event.RESIZE));
function changeBar(e:Event) {
barH_mc.width = stage.stageWidth;
barH_mc.x = 0;
}