

I’m sure some time putting different breeds of technologies together is really just for fun, rather than necessity. Fun, is it we are all looking for?
GWT2SWF is piece of fun technology. It all begins at GWT (Google Web Toolkit), which is a Java development tool to generate pure AJAX (JavaScript + HTML) web application after writing code in Java. Raise you hands if you have worked on a serious application in production in house or on the web, using GWT. um…but it’s fun, I know.
Now, GWT2SWF throws Flash/Flex into the mix. “GWT2SWF intend to provide software bridge between GWT and FLASH/FLEX. It means that using GWT2SWF you will be able to communicate between GWT and FLASH/FLEX.
GWT2SWF provides SWFWidget and FlashPlayer version detection.” Many would ask, why bother?Here is the Hello World code using GWT2SWF:
package pl.rmalinowski.gwt2swf.client; import pl.rmalinowski.gwt2swf.client.ui.SWFWidget; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.ClickListener; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.Widget; public class GWT2SWFHelloWorld implements EntryPoint, ClickListener { private final Button addNewSwf = new Button("Add new SWF"); /** * This is the entry point method. */ public void onModuleLoad() { RootPanel.get().add(addNewSwf); addNewSwf.addClickListener(this); } public void onClick(Widget sender) { SWFWidget swfWidget = new SWFWidget("hello.swf",200,150); swfWidget.addFlashVar("bridgeName", "example"); RootPanel.get().add(swfWidget); } }
Is that fun?
If you would like to make a comment, please fill out the form below.
Recent Comments