PDA

View Full Version : reposition bug on mac



magarik
March 8th, 2009, 11:51 AM
hello,
i have made a site in flash cs3, with various things repositioning on screen resize, and everything works wonderfully, until i have checked it on a mac, on which everything's offsetted to the left. i thought that flash acted the same way on any platform (on all browsers in windows it does look great), but...

any ideas?

just for some reference, this is the resize function (sorry for the length, i dont have a clue what's valuable and what aint):



function resizeHandler(Event):void {
if (stage.stageHeight>=400) {
meaw=600-stage.stageHeight;
if (keycheck==3)/*page1*/{
if(stage.stageWidth>=1320)torx = stage.stageWidth/2-tor.width/2;
else torx = (stage.stageWidth/2)-480;
nyx=torx-345;
moonx=torx+490;
moony=meaw+stage.stageHeight/6;
nyy = meaw-165+stage.stageHeight/2.5;
} else if (keycheck==2)/*page2*/ {
if(stage.stageWidth>=1320)torx = stage.stageWidth/2-tor.width/2;
else torx = (stage.stageWidth/1.2) - 834;
if(taxt){
taxt.y=fiveOclock.fram.y=meaw/2+32
tim.y=taxt.y-26
}
moony=stage.stageHeight+meaw
} else if (keycheck==10)/*page3*/{
apologetic.x=stage.stageWidth/2;
apologetic.y=stage.stageHeight/2;
} else if(keycheck==-1){
logo.y=(stage.stageHeight-logo.height)/2+180+meaw;
moonx=(stage.stageWidth/1.1)-170;
moony=meaw+stage.stageHeight/6;
askip.x=middleX(askip)
askip.y = meaw + stage.stageHeight - 5 - askip.height
} else if(keycheck==8){
torx=-500
nyx=454
nyy = meaw-965+stage.stageHeight/2.5;
if (firend){
firend.x=(stage.stageWidth-firend.width)/2;
firend.y=stage.stageHeight/2-firend.mc_mask.height/2+meaw
}
} else {
nyy = meaw-165+stage.stageHeight/2.5;
if(stage.stageWidth>=1320)torx = stage.stageWidth/2-tor.width/2;
else torx = (stage.stageWidth/1.1) - 910;
nyx=torx-345;
moonx=torx+760;
moony=meaw+stage.stageHeight/6;
}
tor.x=torx
NY.x=nyx
moon.y=moony;
moon.x=moonx
slight.x=torx+342
luna.x=moon.x-120;
luna.y=meaw;
luna.height = stage.stageHeight - 215
NY.y=nyy
if(keycheck==0)menuu.x=torx+600
}

nyx_offset=nyx;
torx_offset=torx;
moonx_offset=moonx;
}



i havent found anything on the web saying that mac affects things, and i doubt it does, but i have no idea what is....

please help, the site's opening has been delayd seriously just for this reason.

thanks
michael

.ral:cr
March 8th, 2009, 01:08 PM
are you shure that not the entire swf is offseted? wich means is a html problem. otherwise, normaly there's no way to happen what you just said.

magarik
March 8th, 2009, 02:06 PM
@ .ral:cr
100% of the page is filled with the swf, and the offsetting is affecting different movieclips in a different way. definitely not an html problem. thanks though.

if you have a mac perhaps you could take a look...

thanks again,
michael

.ral:cr
March 8th, 2009, 03:29 PM
i can take a look if you provide a link.