I've moved the common base classes for the framework to the
actionscript folder in the root of the project. Add this folder to your class path in both Flash and Flex projects.
Note that your document class in Flash projects should extend org.gaeswf.flash.BaseApplication and your Application MXML in Flex should be of type org.gaeswf.flex.BaseApplication (if none of this makes any sense to you, see my Flex 3 Code Behind Quick Start.)
Remember that I'm constantly updating the framework and will continue to do so as we build Singularity. Expect changes!
Update: Apparently, I blogged it but didn't push it up to appspot. Doh! So instead, you get an even more updated version 1.34 now.
The new additions are currently only to the Flex client and include a public state in addition to Home (which led me to revise and generalize how I was handling the deep links back from login and logout to support apps with a mix of authenticated and non-authenticated states).
The new public state is called "Mouse wheel" and demonstrates how to make the mouse wheel work in Flash on OS X (it doesn't by default) by using Ali Rantakari's excellent ExternalMouseWheelSupport package.
Update: I just saw that the site had validation errors which I've now fixed. It validates as HTML 4.01 Strict. This is not in the 1.34 source release but will be in the next one.
I just updated
The GAE SWF Project to version
1.21 1.23. New source code for the update is now available for download.
All changes in this version are server-side:
- All requests apart from those to the PyAMF gateway go through the
IndexHandler class. The app.yaml file no longer maps /examples/.* URLs to the various example SWF applications. In other words, the SWF apps are simply handler classes now, not separate WSGI applications. The PyAMF gateway remains a separate WSGI application.
- Pulled out the server-side deep linking code from the initial example to a new
BaseSWFHandler class in the new gaeswf package. The handlers for all SWF examples will extend this class and call the handleDeepLink() method to have regular deep links automatically converted to SWFAddress deep links.
- Removed the unnecessary examples and initial packages and placed all examples in the root of the examples package.
- Added 404 handling. Unknown URLs no longer fail silently.
- main.html template is now known as base.html.
- Added simple.html template for handlers that want to use base.html without the need for a separate template that extends it.
Enjoy!
Update: I've updated the online version to 1.23 to change the 404 photo. I realized this morning that the original Creative Commons-licensed photo I had found on Flickr did not belong to the user who had published it on their account.)
Recent Comments