PDA

View Full Version : Hit States Move when Firefox browser resizes


avocadojo
07-21-2005, 03:49 AM
Hi,

I've built a site with container movie clip with buttons and empty movie clip that loads external swfs.

More importantly: the buttons are movie clips with invisible button-hitstates (pretty much like these: http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_12632)

The problem I have is that when the browser is resized or is not at its maximum size, the hitstates move upwards...Everythign else remains fine, and views normally, I've also included the [ fscommand("allowscale", "false"); ] in the first keyframe after the preloader...

Wondering if there is a way to fix this...? also, this only happens in firefox..


Thanks in advanced
Jo

avocadojo
07-21-2005, 04:41 AM
Get rid of them emoticons.

I discovered a solution, although I am not sure why it does this:

I had my flash file in between div tags like this:
-------------------------------------------------------------
<div align="center">

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="590" height="800" id="index" align="top">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="index.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="bgcolor" value="#ffffff" />
<embed src="index.swf" quality="high" wmode="transparent" bgcolor="#ffffff" width="590" height="800" name="index1" align="top" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object> </div>

-------------------------------------------------------------

I replaced the div tags with a table, and now looks like this:

-------------------------------------------------------------

<table width="100%" border="0">
<tr>
<td align="center"><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="590" height="800" id="index2" align="top">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="index2.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="bgcolor" value="#ffffff" />
<embed src="index2.swf" quality="high" wmode="transparent" bgcolor="#ffffff" width="590" height="800" name="index2" align="top" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object></td>
</tr>
</table>

-------------------------------------------------------------
And lo and behold. The buttons obey! (Dodgy divs!)