Directory

← Back

SWFObject

Integrate Flash content to your GWT and Vaadin applications using the swfobject.js.

Author

Rating

Popularity

<100

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);

Compatibility

(Loading compatibility data...)

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. SWFObject - Vaadin Add-on Directory
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.
Online