Printable quick reference cards for the ActionScript language. AS3, Flex, AIR, Papervision, and more!
ActionScriptCheatSheet.com

Archive for February, 2007

Adobe Apollo Camp (Birds Eye View)

I took a minute to dig out some of the exciting looking topics/sessions being covered at Apollo Camp coming up in March. In addition I harvested a few of the big name companies who will have people attending the event. Exciting to imagine how some of the major players are planning on leveraging Apollo.

Flex / Apollo Answer Room

  • Get answers to your questions about Apollo and Flex
  • Get help setting up your Apollo development environment
  • Get help with Apollo and Flex development issues
  • Get Help porting existing Flex applications to Apollo

ApolloCamp Keynote (Kevin Lynch)

  • Overview of Apollo and how it fits into the Flash Platform.

Building your First Apollo Application with Flex (Mike Chambers)

  • Installing  the Apollo Runtime
  • Installing and configuring the Apollo SDK
  • Installing Flex Builder
  • Creating an Apollo Project in Flex Builder
  • Creating a Hello World Application in Flex Builder
  • Creating an Apollo Application from an existing Flex Application
  • Testing and Debuging Apollo Applications from Flex Builder
  • Packaging and distributing Apollo Applications

Using HTML and Script Bridging within Apollo (Christian Cantrell)

  • Introduction to HTML support within Apollo
  • How to use HTML within Flex / Flash based Apollo applications
  • ScriptBridging between ActionScript and JavaScript

Using the File API within Apollo

  • File API Overview
  • Asyncronous versus Syncronous APIs
  • Reading and Writing Text Files
  • Reading and Writing Binary Files
  • Serializing and Deserializing ActionScript Objects
  • Tips and Tricks

Mini Session : Building an Apollo Based Mashup with Yahoo APIs

  • Charles Freedman - Yahoo! Flash Platform Team

Mini Session : effectiveUI / Ebay

  • Sean Christmann from effectiveUI demos and dissects Ebay’s Apollo Application.

Managing Windows within Apollo

  • Native Window API Overview
  • Window Chrome
  • Initializing Windows
  • Controlling Windows
  • Creating and Managing new Windows

Cookbook / Tips and Tricks Session (Danny Dura)

  • Covers Tips and Tricks for doing common tasks when developing Apollo Applications

Some of the major companies who will have people present:

  • frog design
  • eBay Inc.
  • Kodak Imaging Network
  • Charles Schwab & Co
  • Getty Images
  • Sony Corporation of America
  • Boeing Aerospace Operations
  • Amexican Express
  • Kaiser Permanente
  • Microsoft
  • CNN
  • Teknision
  • CNET Networks
  • O’Reilly Media
  • The Walt Disney Company
  • Oracle Corporation
  • HP

More information, schedule, etc. here: http://apollocamp.eventbrite.com/

1 comment

ActionScript 3.0 Application Template (no FLA, no MXML)

Free download! Jump start your AS3 project using this free template!

Yesterday I posted about the AS3 development environment that I have been using. In that post I provided the link to the ActionScript 3.0 Application Template that I put together. I thought the Template deserved its own post to share a little more information regarding it.

This template is a simple set of files to assist in starting an ActionScript 3.0 project.
build.xml is what you need to edit to make changes for Ant calling mxmlc
src\main.as is the main application driver code
com\seantheflashguy.* this is the remaining code for the template

At the moment the app template is very simple and does need more work. It should however save you the time that I spent getting it set up. There is some good code in the template that should also save you time.

I will most likely have updates for the app template too. Some thoughts for framework level functionality that would be nice to start all Flash Apps with include:
Back button support
Liquid layout option
Main movie timeline preloader/progress bar
Unit Testing framework integration
ASDoc integration
and more…

Download the ActionScript 3.0 Application Template here:
http://actionscriptcheatsheet.com/downloads/as3_0_app_template.zip

Also, you’ll need the JDK, Ant, and MXMLC to use this app template…. See this post for basic setup instructions of these tools.
http://actionscriptcheatsheet.com/blog/archives/19

No comments

“No Frills” AS3 Development Environment: Ant, Editplus, MXMLC

As I have been exploring the ActionScript 3.0 language update I have used a couple of different approaches for publishing/compiling my applications. I’ve used both the Flash 9 Alpha and the Flex Builder Beta and they are both great. However for the past several years I have been using Editplus for AS1 and AS2 dev and really like it for code editing.

After digging around on the web I’ve taken bits and pieces from here and there to come up with a pretty lightweight development environment for AS3 that feels like home (to me anyway). I am currently using Ant to build the application. Ant then calls the mxmlc compiler and passes the info needed to compile. (Editplus can really be replaced with any code editor in this scenario.)

First you need to download and install the JDK. I’ll admit the JDK does have a large footprint but the JDK must be installed in order for Ant to work. Go ahead and download JDK 6 for now and follow the installation procedures. To make things easy just install the JDK to: C:\Program Files\Java\jdk1.6.0.
You can get the JDK here:
http://java.sun.com/javase/downloads/index.jsp

Next you need to set the JAVA_HOME environment variable. To add the JAVA_HOME environment variable to Windows (this is the path to wherever you installed the JDK) right click My Computer. Then go to the Advanced tab. Next click the Environment Variables button. Next click the New button (the one on the top). Now use “JAVA_HOME” for the Variable name and “C:\Program Files\Java\jdk1.6.0″ for the Variable value (or the path to wherever you installed the JDK). Here is a screen capture if you have issues: http://confluence.atlassian.com/display/DOC/Set+JAVA_HOME+variable+in+Windows

Now you need to download Ant if you don’t already have it installed. Basically just download Ant and then extract it to your C:\ drive. You should end up with a path like this: “C:\apache-ant-1.7.0″. (There is no real “install” type of screen or anything for Ant just to let you know.)
You can get Ant here: http://ant.apache.org

Now you need to set the ANT_HOME environment variable. (This is the same as when you added the JAVA_HOME environment variable.) To add the ANT_HOME environment variable to Windows (this is the path to wherever you extracted ANT) right click My Computer. Then go to the Advanced tab. Next click the Environment Variables button. Next click the New button (the one on the top). Now use “ANT_HOME” for the Variable name and “C:\apache-ant-1.7.0″ for the Variable value (or the path to wherever you extracted Ant).

At this point if you have done everything correctly and your system wants to play nice you should be able to use Ant. This has its own benefits but we’re just concerned with using it to call the mxmlc compiler for now.

Ok, now on to getting mxmlc on your system… From what I have read I believe you only need the Flex SDK to compile AS3 apps but for now we’ll get the whole Flex Builder just so that the environment you are building matches the one I have successfully gotten working. If you change the default installation directory be sure note where it is. Go ahead and download the Flex Builder from here:
https://www.adobe.com/cfusion/tdrc/index.cfm?loc=en%5Fus&product=flex

After the Flex Builder is installed you should be ready to start compiling AS3 applications using the Super Simple AS3 Application Template I have put together. Download that from here:
http://www.actionscriptcheatsheet.com/downloads/as3_0_app_template.zip

To compile this application template navigate to the directory where you extracted it using a DOS window (command prompt). Now you just have to type “ant” and hit the Enter key. Granted this app template isn’t anything great to look at but some of the core things you’ll need have been started, such as image loading, a simple progress bar and a simple debugger. (You can use Control+Shift+D to change the visibility of the debug console.)
I hope this helps saves time for some people. This is not meant to replace Flash 9 or Flex just another way to edit AS3 and compile your apps!

Please note this app template code is very simple at this point in time. It can certainly be improved upon, refactored and hopefully expanded.

3 comments