Category Archives: Tutorial

LoaderMax & Data Transfer between Flex and SWFs

This last week I have been doing some research for my capstone course in my major, WDMD480. Our project involves working with the CNR to take a twenty year old fish farm simulation and modernize it. To do this, we are using Flash, Flex and PHP to not only create the simulation, but an administrative panel and content management system for teachers who might use the program. My goal this week? Take a SWF and load it into Flex, then have two way communication between the two levels. I had a hard time with having this done seamlessly in Flex4, but in the end I ended up creating two way communication using both LoaderMax and custom events.

While trolling for resources to get me started, I found that I could find few, if any, real ‘tutorials’ on the subject of using LoaderMax in a Flex environment, so I figured I could expain not only how to use Flex with LoaderMax, but my way to transfer data from a SWF to Flex and vice versa.
Read more »

ActionScript 3 Custom Events Explained

­­­­­­­­As we know, ActionScript is an event based language.  Every project you write, you are dealing with events from many different sources like timers, mouse clicks, and enter frames.  But there are times when you want to create some kind of an event that isn’t included in the base Flash events. For example, you want your classes to listen and know about when the state of another class has changed.  To do this, you can create and dispatch custom events.

Today, I will go through the process of creating your own custom event class, naming your custom events, listening for your custom events, and dispatching events for the listeners to actually catch.
Read more »

Globally Linked Classpaths

In my last post, I discussed how to link folders of classes to individual projects in both FlashDevelop and Flash Professional CS5.  There are certain things you can’t live without in a project, however.  Everyone has a class or two that they import into every project for functions they use themselves or an engine they use all the time.  When this happens, Global Classpaths come in handy.

Today, I will briefly discuss advantages and disadvantages of using global classpaths, and how to create a global classpath in both Flash Professional CS5 and FlashDevelop.
Read more »

FlashDevelop: The Basics

Over the past couple weeks of research and practice, I’ve learned a few things about my workflows and how to improve them. When I was doing research on Box2D, I ran across an awesome set of video tutorials which introduced me to using FlashDevelop for more than just a basic code editor. FlashDevelop is an open source IDE designed specifically for the Flash platform (AS2/AS3), although it supports other languages, too. With FlashDevelop you are able to create and organize your Flash projects and easily import and use external libraries with some excellent code hinting and shortcuts.

Since FlashDevelop has helped me so much and I feel stupid for not realizing its true potential before, I thought I would share what I have learned through a quick tutorial on how to set up FlashDevelop to work with a Flash Professional project and how to link to an external library without having to make a copy of the library. In order to keep this brief, I will only cover these two simple but AWESOME topics.
Read more »