(Japanese page)

SWFWheel

The library to whom do not satisfy at SWFMacMouseWheel

License

For the time being, it provides under the following license.

You can choice the above license which are suitable for your environment.

Source code

Supported Browser

Operation by the following browsers is confirmed.

Windows

  • IE 6 => 8
  • Firefox 2 => 3.6
  • Safari 3 => 5
  • Opera 9 => 10
  • Chrome 0.3 => 6.0

Mac OSX

  • Firefox 2 => 3.6
  • Safari 2 => 5
  • Opera 9 => 10
  • Camino 1.6 => 2.0
  • Stainless 0.4 => 0.7

How to use

  1. Import to the proper place
  2. Pass the instance of the Stage as an argument and call the initialize method
    import org.libspark.ui.SWFWheel;
    
    SWFWheel.initialize(stage);
    
  3. if prevent browser scroll, change browserScroll property to false.
    SWFWheel.browserScroll = false;
    
  4. ExternalInterface#objectID is used inside the logic so, please specify both the name attribute and the id attribute on HTML

etc.

swfobject 2

  • Specify the id and name at attributes
  • The behavior of the ExternalInterface#objectID of each browser seems different , so even if it is an object tag, Firefox and Safari seems to refer the name attribute
var flashvars = {};
var params = {};
var attributes = {
    id: "externalDynamicContent",
    name: "externalDynamicContent"
};

swfobject.embedSWF("myContent.swf", "myContent", "300", "120", "9.0.0", "expressInstall.swf", flashvars, params, attributes);

Bug report

If you found some bug, problem or have some opinion or request, please feel free to register to the ticket.
In that case, it will be helpful if the environment is described.
And the SWFWheel is looking for the maintainer and tester. Don't you think wonderful if we can support the whole browser?