resize code working in test but not after publishing.
i have following code re-centers flash content on window resizing.
he auto resizing works great in test mode, when publish exe or html, resizing stops functioning.
exe files, when maximize screen, stretches out the content, instead of centering in new window size.
html files, html window resizes, flash movie not move. stays left justified.
there lines @ top , bottom nice effect of stretching across fill window size. these don't work @ after publishing. video gallery template purchased (http://www.flashcomponents.net/component/flash_xml_video_template_as3.html)
i notice on "full screen preview" after html in code ?full=true can if publishing cd?
_________________________________________________________
aligncnt();//align content
//align site on window resize
function aligncnt():void {
tweenlite.to(linetop, 1, {width:stage.stagewidth, ease:regular.easeout, overwrite:false});
tweenlite.to(linebottom, 1, {width:stage.stagewidth, ease:regular.easeout, overwrite:false});
tweenlite.to(linetop, 1, {y:0, ease:regular.easeout, overwrite:false});
tweenlite.to(linebottom, 1, {y:stage.stageheight-linebottom.height, ease:regular.easeout, overwrite:false});
tweenlite.to(linetop, 1, {x:0, ease:regular.easeout, overwrite:false});
tweenlite.to(linebottom, 1, {x:0, ease:regular.easeout, overwrite:false});
tweenlite.to(cnt, 1, {y:140, ease:regular.easeout, overwrite:false});
tweenlite.to(cnt, 1, {x:math.round(stage.stagewidth/2-760/2), ease:regular.easeout, overwrite:false});
}
stage.addeventlistener(event.resize, onstageresize, false, 0, true);
More discussions in ActionScript 3
adobe
Comments
Post a Comment