Open Source Flash Development

Using an Open Source Workflow (Open Source Flash Development) Part 5

Viewing the recipe details In the previous section, you created a simple recipe viewer that displays a list of recipes and their descriptions. In this section, you will add a details screen for viewing the directions and ingredient list. While doing this, you will learn how to integrate graphical assets given to you from a […]

Testing and Debugging (Open Source Flash Development) Part 1

This topic covers the following: ■    Writing and using unit tests for ActionScript 2 and ActionScript 3 development ■    Using advanced logging techniques in Xray ■    Using Xray to debug applications ■    Using Xray to find performance bottlenecks In this topic, I will focus on three open source projects that can aid you in these […]

Testing and Debugging (Open Source Flash Development) Part 2

Creating an AsUnit test suite Next, you need to create a test suite for the test case to be run from. In this example, the sample suite will have only a single test case in it. In a real-world application, you would probably have many test cases to add. To create the test suite, you […]

Testing and Debugging (Open Source Flash Development) Part 3

Asynchronous testing Many times in a Flash-based application, the operations you want to test are not synchronous. You might start a download, and at some later time either the response will be returned or a failure is reported. This type of testing is difficult to fit into the assert methods previously mentioned. Luckily, both AsUnit […]

Deploying Your Application (Open Source Flash Development) Part 1

This topic covers the following: ■    Using the SWFObject project to embed your application in an HTML page ■    Best practices for organizing and deploying web content ■    Writing an Ant target to deploy your application ■    Using  Screenweaver to deploy a desktop application This topic covers the steps necessary to go from a compiled […]

Deploying Your Application (Open Source Flash Development) Part 2

Transferring your files Using Ant, you have a few options for uploading files to your web server. You’ve already seen how the copy tag allows you to copy files to different directories. Ifyou have a file share available to you on the web server, you can simply use this method to copy the files to […]

Deploying Your Application (Open Source Flash Development) Part 3

Creating the Screenweaver back-end The back-end will handle loading the Flash plug-in, creating a window, and exposing any extra haXe functionality to the front-end that you need. To create it, using your favorite text editor, create a new file named App.hx. Enterthefollowingcode into that file: An explanation of the source follows. This calls the init() […]

Using AMFPHP (Open Source Flash Development) Part 1

Connecting Flash and Flex applications to PHP gives your application access to PHP’s robust open source server programming language and supporting frameworks. In this topic, you will explore AMFPHP, which is an open source gateway for easily connecting your Flash Player-based application to PHP. With the experience you gain from this topic, you will be […]

Using AMFPHP (Open Source Flash Development) Part 2

The HelloWorld logic Open the Main.as tab in Flash to work on the class file. First you’ll build the Main.as class file so that all the events are fully functional without the connection to the server. Then you will update the class with the remoting functionality. If you are new to ActionScript 3, the public […]

Using AMFPHP (Open Source Flash Development) Part 3

Integrating the database and Flash It’s time to connect the product view from Flash CS3 to the ProductService.php file you just created. You will start with populating a Flash user interface DataGrid component with the products data returned from the new ProductService class. You’ll first set up a new Flash for a Product View user […]