Open Source Flash Development

Using AMFPHP (Open Source Flash Development) Part 4

Connecting to HelloWorld with Flex I made an assumption in this topic that the typical Flex developer could take a little bit of information and apply all of the existing concepts to Flex. The biggest difference between Flash and Flex is that Flex has a fantastic class called RemoteObject. Ifyou spend a lot of time […]

Using AMFPHP (Open Source Flash Development) Part 5

Using Flex to update the product database In this section, we will show how to create a Flex interface that consumes the ProductService.php file you created earlier. Let’s start by creating a new MXML application by right-clicking the product folder and selecting New > MXML Application. Name the new file productUpdate, as shown in the […]

Using AMFPHP (Open Source Flash Development) Part 6

Displaying value objects in Flex Although you have created the ProductVO on the server, you now need to make it in ActionScript 3 for the server object to be mapped to. Right-click the product project, and select New > ActionScript File. Name the file ProductVO, and click Finish to see the new file. Copy the […]

Working with SWX: The Native Data Format for the Flash Platform (Open Source Flash Development) Part 1

SWX is the native data format for Flash. Data is wrapped inside a SWF shell (Figure 8-1), or the most native possible format on the Flash Platform. The SWF is then interpreted by Flash Playerjust like a SWF is compiled using the Flash IDE. The SWX format is a subset of the SWF format, just […]

Working with SWX: The Native Data Format for the Flash Platform (Open Source Flash Development) Part 2

Writing your first custom service Now that you have SWX PHP installed, let’s create a simple custom service. SWX is most useful when connected to data (either a database or an API), but for this example I’ll show how to build a simple but complete web application with SWX PHP. You’ll create both the client […]

Working with SWX: The Native Data Format for the Flash Platform (Open Source Flash Development) Part 3

Project: utilizing a custom service in Flash Lite While SWX makes developing and consuming custom back-ends for full Flash websites much easier and simpler to interface with, SWX really shines when used to develop for mobile phones and devices (see “Supported platforms and technologies” in this topic for more information). Goal: a product locator In […]

Working with SWX: The Native Data Format for the Flash Platform (Open Source Flash Development) Part 4

Adding the functionality Now that you have all your assets in place, you can begin adding the functionality to your application. Begin by selecting the actions layer of frame I. To utilize the user input, you need to make some modifications to the ActionScript on this frame: You can leave all the initial SWX instance […]

Using haXe (Open Source Flash Development) Part 1

haXe is a high-level programming language for web development. It can be compiled into .js files for JavaScript developers or into .swf files for Flash, and it also supports the Neko virtual machine. Before going into the details of haXe, I’ll explain how it came to be and how it is related to the evolution […]

Using haXe (Open Source Flash Development) Part 2

Syntax differences I will now cover the differences between ActionScript 2, ActionScript 3, and haXe, starting with a few syntax differences between the languages: ■ new: In haXe, class constructors are not named with the name of the class but with the special identifier new. So to declare a simple class, you will do the […]

Fuse and GoASAP: Open Source Animation Tools (Open Source Flash Development) Part 1

Since ActionScript 1.0, animation has consistently been one of the most exciting areas of the open source Flash community. This topic looks at two open source libraries I’ve released for coding animation, one for ActionScript 2 and the other for ActionScript 3. Each addresses a wide audience and works as a unifying force in different […]