Signin
Flash SWT Plugin

When I changed web server at the end of last month, I didn't have time to move non-blog related pages and files.  Until I do, I'll post on my blog whenever someone ask for them.

Today it was the Flash SWT Plugin which I wrote long time ago.  The plugin basically allows you to play Flash animation within SWT applications and tools.  Here is a screenshot.

ZIP file with source code:

com.docuverse.swt.flash-0.4.zip (148.48 KB)

There is really only one class you need to learn about: FlashPlayer. Below is a code snippet that will play a Flash movie.

import com.docuverse.swt.flash.FlashPlayer;

...

FlashPlayer player = new FlashPlayer(container);

player.loadMovie(0, “http://somewhere.com/movie.swf“);

...

For a complete example, scan the FlashPlayerView class source code.

Comments
I was wondering if your there is a way to check if flash is installed using SWTFlash? Let me know... thanks...

Geoff
That's an amazing work!
Does this work on Linux?
James Chittenden   at 2004/06/10 07:37:02 AM
This is an awesome plugin!! Does the flash player work on Linux?
kavinwang   at 2005/06/03 12:09:19 AM
If I click on the flashplayer,I wonder how can i get the click counts or popup a messagebox. intercept or other?

anyway, thank you!
Andreas Heinecke   at 2005/06/20 08:16:28 AM
Hi,

great plugin! But i want to use it in a standalone swt application. I tried the following

FlashPlayer flashPlayer = new FlashPlayer(shell);
flashPlayer.loadMovie(0, "http://atomfilms.shockwave.com/afassets/flash/hump_starwars.swf");
flashPlayer.play();

But nothing happens. I also tried to load locally stored .swf's but also nothing happens, only a black box. The URL is also not validated. Why? I can type any URL I want wrong or correct, there will be no exception. Sure, I did something wrong, can you give me a hint?

Please,

kind regards

Andreas
Just wanted to let you know that I read your blog every day, you write fantastically.
Just wanted to let you know that I love your blog, it's excellent.
Great! but I wanna know whether the SWT Flash Plugin can get the swt listener. for example , i wanna click the flash button,then show the dialog. waiting for you answer! thanks!
Great! but I wanna know whether the SWT Flash Plugin can get the swt listener. for example , i wanna click the flash button,then show the dialog. waiting for you answer! thanks!
Quick Flash Player is a stand-alone flash player that enables Flash Users to quickly browse the SWF files. Quick Flash Player offers a variety of playback capabilities including full screen mode.


http://www.yaodownload.com/video-design/video/quick-flash-player/
Quick Flash Player is a stand-alone flash player that enables Flash Users to quickly browse the SWF files. Quick Flash Player offers a variety of playback capabilities including full screen mode.


http://www.yaodownload.com/video-design/video/quick-flash-player/
Nice Blog.

But how do i get a flashplayer in a JPabel or JFrame? I only can get it in a new Shell witch opens it in a new application and i need it in my own application.

Hope you can help me out,

Greets,

Laurens.
very nice~
our company want to use your Flash SWT Plugin in our product,can i do so?

Comment has been disabled for this post.