-
Notifications
You must be signed in to change notification settings - Fork 226
F.A.Q
No, FlashDevelop (FD) is completely self contained; letting you make Flash .SWF files (and other target file formats) complete from itself. It can, optionally, be used to call Adobe's Flash IDE for compilation.
You can also use Adobe Flash to create graphics or UI skins, for your AS3 FD projects. Such graphics can be pulled in by:
- Compiling an SWF or SWC (File > Publish Settings > SWF > Export SWC)
- Dynamically loading such assets using the Loader or URLLoader AS3 classes
- Statically including the SWC into your project (right-click the SWC in your FD Project pane, choose "Add to Library")
- Statically including individual MovieClips using the
[Embed]
directive.
All Windows based OSs since Windows XP should be able to run FlashDevelop. This includes Windows XP, Windows Vista, Windows 7 and 8.
It is currently possible to run FlashDevelop under Linux or OSX via virtualization software such as Parallels, VMWare or VirtualBox (free).
Other operating systems (such as Linux, and OSX) are not officially supported, but there are multiple community efforts to add native support. (See forum discussions on: OSX, Linux)
Yes, but requires Java 1.6+ 32-bits to be installed.
- You need to install Java JRE 1.6 32-bit
- Add the following environment variable :
JAVA_HOME = C:/Program Files (x86)/Java/jre6/
- Add the following into your PATH variable :
C:/Program Files (x86)/Java/jre6/bin/;
- Restart your PC for the environment variables to get updated
Be sure you are compiling for release mode. Debug mode adds code. (Original forum post)
- Put SWCs in the project, for instance under a \lib directory
- In the Project panel, right-click the SWC file > "Add to Library"
- The SWC's default linking mode is usually fine, but you can change it in the Project panel, right-click the SWC file > "Options"
- When a SWC is output in the same directory as a FLA, this is an Adobe bug which creates potential instabilities. (Original forum post).
- If the SWC is located outside the project you'll have to add it manually in Project Properties > Compiler Options > SWC Libraries (or External Libraries or Included Libraries, depending on the linking mode you need). Fill in either an absolute path, or a path relative to your project root.
See, how to configure & troubleshoot tracing/debugging: AS3:Debugging
An official copy of Flash is needed. Export all controls you want to use into a SWC and reference the SWC. (Original forum post)
Step-by-step:
- Create an FLA in Flash
- Drag all the components you need onto the stage
- Go to the SWF publish settings and make sure that "Publish SWC" is checked
- Publish
- Make sure the SWC is inside the folder for your FlashDevelop project
- In FlashDevelop right-click the SWC and select "Add As Library"
- Create new components using the
button = new fl.controls.Button()
syntax, and don't forget toaddChild()
Key bindings can be modified by Tools-> Keyboard Shortcuts... or manually editing MainMenu.xml. This is found in the FD install settings directory.
(e.g., On Vista this is C:\Program Files (x86)\FlashDevelop\Settings\MainMenu.xml)
To change the contents (your code): From the menu: Tools > Syntax Coloring
Settings are written to the file in the user's FD directory
.../FlashDevelop/Settings/AS3.xml
.../FlashDevelop/Settings/AS2.xml
etc...
To change FlashDeveloper's UI itself, go to the menu "Tools > Program Settings > Main: FlashDevelop > Display > UI Console Font and UI Default Font"
FlashDevelop supports a global directory for .SWC and .AS files; meaning any project created will look to the directory for matching classes/functions. (Original forum post)
Step-by-step:
- From menu: "Tools" > "Global Classpaths"
- Add the path(s) you want accessible to every project opened up with FD
- To always show the paths, change: "Tools" > "Program Settings" > "ProjectManager" > "Show Global Classpaths"
There are options to add Pre-Build and Post-Build command lines through the menus: "Project" > "Properties..." > "Build" tab
If you wish to execute DOS commands reference cmd.exe
Example, copying a file to the directory the project's SWF is being created in:
c:\windows\system32\cmd.exe /C copy "C:\source\projects\foo\bar.xml" "$(OutputDir)\bar.xml"
See forum thread for a discussion on this.
You may need to give local "trust" access to the parent folder of the project.
See forum thread for more.
You can change the "snippets" that are generated by modifying the files they are read from:
- From Menu: "Tools" > "User Config Files..."
- Then from the explorer folder that opens go to: "\Snippets\as3\generators\"
This is due to how Java registers its dependencies and how FlashDevelop resolves the path to Java.
See our Java page for more info: Java
There might be bad data in the file cache. In which case you can go to the user files area from the FD menu: "Tools" > "User Config Files..." and then delete the files found in "Data/ASCompletion/FileCache". For more see the forum thread
Look up the real extensionId by unpacking the ANE; reading META-INF/ANE/extension.xml. Leave the extension in a folder unzipped for the run.bat to execute on it. A tutorial on setting up .ANEs was written by fermmm. Also there is a conversation on this at this forum thread.
This is a known issue. Change packager.bat so this:
call adt -package %OPTIONS% %SIGNING_OPTIONS% %OUTPUT% %APP_XML% %FILE_OR_DIR%
becomes this:
call adt -package -tsa none %OPTIONS% %SIGNING_OPTIONS% %OUTPUT% %APP_XML% %FILE_OR_DIR%
Details on the forum thread.
Why do I receive an error creating a certificate for AIR mobile app or am unable to connect the debugger?
(Original post 1, post 2 )
Many of these errors are due to the latest Java 1.7 release or Java 64bits runtimes. Java 1.7 or 64bits is not compatible with the latest Flex SDK. To fix, uninstall it and install Java 1.6 32bits instead.
If you have the correct version of Java installed but FlashDevelop isn't able to run Java, make sure the path to Java's /bin directory is in your PATH: http://java.com/en/download/help/path.xml
Use APPMan to download the latest, set the appropriate configurations to use the new SDK, and be sure to have the correct swf-version # in the compiler options. See this tutorial for details.
You can also directly download the AIR SDK from Adobe, and add the path under the "InstalledSDKs" option in FD Settings.
If you are using AIR SDK 15 or higher then you already are using ASC2 compiler. You can check your version in FlashDevelop settings > AS3 > InstalledSDKs.
If not, then download and install the latest FlashDevelop, it comes with an installer that downloads ASC2 + AIR SDK from Adobe's site automatically.
If you wish to use your existing FD installation, then simply download the latest AIR SDK, which contains ASC2 by default. You no longer need to merge Flex SDK + AIR SDK if you are only using Flash Player/AIR. You only need Flex SDK if you are using the Flex UI components. You will need to instruct FD to use your newly downloaded SDK, by going to the InstalledSDKs section (see note above) and adding your new SDK. If you remove the older SDKs, then FD will use only the new SDK for all projects.
There are hundreds of online tutorials such as this one, that teach you how to use various frameworks (Starling, Flixel, Away3D, Flare3D) to build 2D, isometric, platform, or even 3D games. Adobe has a game development site as well as devnet content for 3D game dev.
You can typically use AS3 (ActionScript3) or Haxe to build Flash-based games, and such games will run fine on PCs, in web browsers, and even on mobile devices. Games written in Haxe compile faster and run faster.