简体   繁体   中英

How to resize the text box depending upon the swf in flash?

in that i have a text box.when i enlarge the swf window the size of swf is large.In that time i want to resize the textbox.how to do this?

i need to adjus the x,y ,width and height depend upon the stage height and width.

update

when i resize the window it looks like that 在此处输入图片说明

stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;

_resize();

stage.addEventListener(Event.RESIZE, _resize);
function _resize(e:Event = null):void
{
    tbox.x = 0;
    tbox.y = 0;
    tbox.width = stage.stageWidth;
    tbox.height = stage.stageHeight;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM