Ted Patrick > { Events & Community } > Adobe Systems


Central 1.5 Starter App "My App"

"My App" is a simple starter application that provides the basics for working with Central. I have included full source.&



Download Source

This is how I organize my Central apps. First the root folder is put into a common place for each particular application. It is important to always have the product.xml file remain in the same url so installed applications can update correctly. To prevent partial updates and to easily version control an application, all of a versions files are contained within a subfolder with a unique number id. Assuming that "My App" is version 1.0, the folder would be /myapp/0/ and for 1.4 the folder would be /myapp/4/.

Inside the /0 folder is a Python application called deploy.py. Deploy allows you to have a local source version of your application and write the output files to your local Central installation. Ideally you edit the local main.fla and create main.swf, then execute deploy.py. This will copy all .swf files into the designated path within the Central path. Simply edit the path within deploy.py to write to your particular installation path.

Also unique to this app is a onResize method that resizes the application layout depending on size changes of the installed application. If you resize the Central window, the application layout changes. The key is that the Central Shell interacts periodically with your application by calling standardized functions when events occur in the Shell. If the network goes offline, the shell fires the onNetworkChange function. If the Shell is resized, onResize is executed.

Hopefully this will help you get started authoring for Central 1.5.

Cheers,

Ted ;)

0 Responses to “ Central 1.5 Starter App "My App" ”

Post a Comment



© 2008 Ted On Flex