For those who haven’t heard, Microsoft released a CTP of WPF/E, which is a Flash-like browser plug-in for displaying a subset of WPF. After a couple of hours of checking it out, I suddenly realized that since WPF/E uses JavaScript as its scripting language, communication with Flash would be a piece of cake. Flash’sExternalInterface API makes calling and receiving functions from JavaScript very easy. Before I get into details, you will need the new WPF/E browser plug-in installed in order to see the example. You can get the plug-in for both PC and Mac here.
What I created is a drag and drop application where you can drag on a graphic in either Flash or WPF/E and it will automatically follow in the other. The Flash movie has a Flash icon and the WPF/E has a Windows icon. This communication was all made possible by JavaScript. Click on the image below to see the example and you can get all of the source here. This is exciting stuff!
No comments:
Post a Comment