SWFObject
Integrate Flash content to your GWT and Vaadin applications using the swfobject.js.
The swfobject.js is a popular way of embedding Flash content to web pages recommended for example by YouTube. Now this integration is available as a GWT-based Java API as well as a server-side API for Vaadin.
If you want to use the swfobject.js API from a GWT component you only need to use static functions in the SWFObjectJSNI class. For normal Vaadin use consider using the SWFComponent.
This add-on Includes swfobject.js version 2.2.
Note: SWFObject requires also the Widget RPC add-on.
Sample code
Resource res = new ClassResource("myflash.swf", this); SWFComponent flash = new SWFComponent(res,"400px","300px"); flash.setFlashVar("myvar","sample-value"); mainWindow.addComponent(flash);
Links
- Source Code
- Discussion Forum
- SWFObject Project
- Adobe Flash Player
- Author Homepage
- Issue Tracker
- Widget RPC
- Online Demo
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
Fixed SWF re-initialization. Added server-side API to force reinitialization. Requires Widget RPC 1.1.4 add-on.
- Released
- 2011-08-02
- Maturity
- BETA
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 6.3+
- Browser
- Internet Explorer
- Internet Explorer
- Firefox
- Safari
- Google Chrome
SWFObject - Vaadin Add-on Directory
Integrate Flash content to your GWT and Vaadin applications using the swfobject.js.Discussion Forum
SWFObject Project
Adobe Flash Player
Author Homepage
Issue Tracker
Widget RPC
Online Demo
SWFObject version 1.2.1
Fixed SWF re-initialization. Added server-side API to force reinitialization. Requires Widget RPC 1.1.4 add-on.