PDA

View Full Version : SWFForceSize + SWFObject = no mouse wheel


KTA
03-12-2008, 02:34 AM
Seems that I loose the mouse wheel function after I click into the swf and change focus. Using SWFForceSize.js + SWFObject.js.


I also tried fitflash.js but that didnt work either.

Anyone figured this out?


including additional info below (may not be relevant) but just incase..

<META NAME="content-type" content="text/html; charset=utf-8" />
<script language="JavaScript">
self.moveTo(0,0);
self.resizeTo(screen.availWidth,screen.availHeight );
var ran_number= Math.floor(Math.random()*5000);

</script>
<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript" src="js/swfforcesize.js"></script>
<style type="text/css">

/* hide from ie on mac \*/
html {
height: 100%;
overflow: auto;
}

#flashcontent {
position: absolute;
top: 0px;
left: 0px;
height: 100%;
width: 100%;
}
/* end hide */

body {
height: 100%;
margin: 0;
padding: 0;
background-color: #cccccc;

}

</style>
</head>
<body>
<div id="flashcontent">
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject('main.swf', 'website', '100%', '100%', '8', '#cccccc');
so.addParam("quality", "high");
so.addParam("align", "middle");
so.addParam("loop", "false");
so.addParam("scale", "noscale");
so.addParam("menu", "false");
so.addParam("salign", "lt");
so.write("flashcontent");
{
var forcesize = new SWFForceSize( so, 900, 930 );
}
// ]]>
</script>
</div>
</body>
</html>

MikeFalcor
03-12-2008, 02:38 AM
What does Forcesize do, exactly? I haven't even heard of something like that...

Edit: OK, I did my research. Interesting little tidbid, but ultimately pointless (in my opinion) unless you have objects outside of your stage...

I don't know what the deal is with the mousewheel, but chances are, it has something to do with the JS.

KTA
03-12-2008, 03:01 AM
yeah.. w=900, h=930 @ 100% 100% all flash NOT using css background tiles.

CyanBlue
03-12-2008, 01:34 PM
Moving to the HTML and JavaScript forum...

davekaplan
11-18-2008, 02:49 AM
hey KTA,

did you get this working? i've been messing around with it all afternoon. i managed to get a nice working example, but then when I tested in IE on the PC the scroll doesn't work on resize. Works nicely in the other browsers:
http://www.workalicious.com/dev/swfforcesize/

Anybody no the deal with the IE/PC - swfforceresize - mousewheel focus working? Its so nice on the Nike Skateboarding, PC-IE friendly too.

The other option and maybe it's better is the swffit. next time i'm spending some time playing around it's going to be with swffit.
http://swffit.millermedeiros.com/