?????? ??? ????? height? width????
JavaScript ??? ???? swf? width? height? ??? ???? ??? ? ?? ??? ?? ? ????. html, javascript, ??? actionscript? ??? ??? ??? ?? ?? ? ? ?? ?? ???.
- flash 6 & 7
???? ???? ???? ?? ??? swf? stage???? ???? ?? ?? ????. ??? ??? ?????? ????? ???? ?? ? ? ??? ??? ? ?? ??? ???? ???? ????. ??? ?? ??? ????? ???? ?? ? ?? ????. ? ??? ??? ?? JavaScript???.
?????? ???? swf? ???? ???? ??? ? ??? ?? ?? HTML??? ?? ??? ??? ?????. (? ????? ?? ??? ??? ??? ??? ?? ???.)
?? HTML??? script?? ?? ?? ?? ???? ??? swf? ????, ? object? ??? width? height? ??? ??? ??? ??? ????.
?? ?? setSize??? swf? ??? ???? ??? ??? ??. ? ??? ?? ? ?? id, w, h? ????? ????? ???. id? ?? html? object? id? embed? name ??? ?? ????, w? swf? ????? width? ??? ?, ??? h? swf? ????? height? ??? ?? ?????.
??? ???? html?? ????? ?? object??? embed??? ??? ??? ?objName=myResize ? ??? swf??? ?? ???? ??? ?? ???? ????. ???? ??? ??? ??? ???? _level0? myResize? ?? ???? ?? objName??? ?? ?? ???. ?????? ???? ????? ??? ???? ?? ??? ??? ??? ??? ?? ?? ?? ?? ??? ?????.
?? ??? ?? ??? ?? ?? :
Stage.scaleMode = “noScale”;
Stage.align = “TL”;
Stage??? onResize???? ????? ?? ?? ??? ????. ?? ?? 2?? ??? ???? ???? Stage??? onResize???? ?? ???? ?? ????.
var stageListener = new Object();
stageListener.onResize = function() {
arrow_mc.newWidth = Stage.width;
arrow_mc.newHeight = Stage.height;
arrow_mc.onEnterFrame = function() {
this._x += Math.round((this.newWidth-20-this._x)*0.2);
this._y += Math.round((this.newHeight-20-this._y)*0.2);
if (this._x == (this.newWidth-20)) {
this.onEnterFrame = null;
delete this.onEnterFrame;
}
};
};
Stage.onResize???? swf? ???? ???? ??? ? ???? ???? ? ???? ???? ??? onResize???? ?? ?? ??? ??? ??? ????? ???. ??? ???? ???? ??? ?? ????. (??? arrow_mc??? ????? ?? ???? ?? ???? ?? ?? ???? ?? ???). ?? ??? ??? ?? ????? ??? ????:
onResize? ???? ?? arrow_mc????? ??? x? y? ??? ? ????? ??? ?? ? ??? ??? ????. ????? ?? ?? ? ????? ???? ?? ???.
???? ???? ??? ?? ???? ?? ??? ??? flashmx-coders.com? ??? ???? ?? ??? ????.
?? ?? ??? ??? ?????. ?? ??? ?? ? ??? ?? ??? ??? Stage? ??? ??? ?? ????. ??? ??? ?? ??? ?? ??? ?????.
Stage.addListener(stageListener);
??? ??? ?????, Stage??? ???? ???? onResize???? ??? ??? ?? ? ??? ??? ??? ?? ???? ?? ?? ? ????.
?? ??? ?????? ??? ?? ??? ????, ?????? 4?? ??? ????. ??? ??? ??? onRelease???? ???? ????. ? ??? onRelease???? ??? ??? resizeStage(w,h)??? ??? ?? ??? width? height? ?? ???. ??? ??? ??? ??? ?????? ???? ?? getURL(“javascript:setSize()”);? ??? ???????. ? ???? ???? ??? ??? ??? ????? ??? ?? ?? ? ? ?? ????. ?? ?? ??? ??? ?? ??? ?? ????? ???? ????.





