简体   繁体   中英

Tiny flash in safari

We have a flash file that in every other browser displays at its correct size (which is something like 1600px) however, in safari it appears tiny. We have also noticed that sometimes when the flash file is not cached it appears at normal size, then after a soft refresh the flash goes tiny again.

We are using mootools to include the flash, but I've also tried just using flash's HTML/Javascript with the publish function, we still have the same problem with it being tiny in safari.

Does anyone have any ideas as to what this could be?

这里是有关Safari和Flash Video的类似问题的讨论 ,也许有帮助。

Are you by chance resizing the size of the flash movie dynamically at all (listening for Event.RESIZE or setting the stage size when the Flash movie loads)? There's a number of known issue in a certain browsers (safari being one) where certain events do not fire when the flash object is cached and "reloaded". Check the following link. My workaround has always been to pass size parameters to the flash object to use on load.

http://pixelfumes.blogspot.com/2007/07/ie6-as3-preloader-events-failing.html

I experienced a similar problem. I found that once I removed the html table surrounding the flash embed code Safari rendered the Flash movie at the correct size.

I wonder if you have changed the size in the HTML in one place, but not the other. Note: in the code, you need it in 2 places: OBJECT and EMBED.

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" 
    WIDTH="100%" HEIGHT="82%">

    <PARAM NAME=movie VALUE="filename.swf"> 
    <PARAM NAME=quality VALUE=high> 
    <PARAM NAME=salign VALUE=T> 
    <PARAM NAME=devicefont VALUE=true> 
    <PARAM NAME=bgcolor VALUE=#fffff7>

    <EMBED src="filename.swf" quality=high salign=T devicefont=true bgcolor=#fffff7 WIDTH="100%" HEIGHT="82%   
        TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>

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