Using FlashDevelop with MySQL
I’ve decided to implement the ability for users to be able to submit and play their own levels for my current game project. I have been doing some research over the past few days, and finally decided how I will use MySQL to store the data and write a function to load a level directly from the database.
I stumbled upon ASSQL which allows for direct communication from Actionscript to MySQL. You can find the source code, documentation, and examples at http://code.google.com/p/assql/.
FlashDevelop Error – the path to flash.exe is not configured properly
I have had a few people ask me about this error message and have had several hits from google regarding it as well. I remember that I had a similar issue when I started with FlashDevelop. I wanted to make a quick post with exactly what causes the error: “the path to flash.exe is not configured properly”, and how to fix it.
Make sure you have downloaded and installed the FlexSDK. You’ll need to take note of the path, cause it’s needed for the next step.
Tutorial 01 – Hello World
Alright, I think it’s finally time to start writing some basic tutorials. These tutorials are targeted towards readers that at minimum have basic programming skills and knowledge of general programming concepts such as variables, functions, conditional statements, loops, and classes.
If you have not already setup FlashDevelop, please refer to my previous post: Getting Started with FlashDevelop.
FlashDevelop Templates
FlashDevelop has many great, time-saving features built in. Customized Templates are one of the features that I recently started using. I”ll show you how to setup your own custom templates and even edit the premade ones.
First, inside of FlashDevelop access “Tools > Application Files” from the menu. This should open an explorer window where you see a few folders. Drill down into the following folders: Templates > ProjectFiles > AS3Project.
These files should look familiar. They are the premade templates that are visible when you add a new file to your project (ex: Classes, Interfaces, Events, etc).
Using Embedded Images in AS3 in FlashDevelop
A major difference between the Adobe Flash IDE and FlashDevelop is that FlashDevelop does not contain the graphical side of Flash development. I will show you how to emulate the functionality of Flash IDE”s “Library” using only AS3.
Here is an example of how to embed an image directly into your .swf
1 2 | [Embed(source="myImage.png")] public var myImage:Class; |

