(*) means: need to be checked
WHY WOULD I WANT TO BUILD?
Well, when you create a Flartoolkit app, even using a manager like FLARManager or ARtisan, you do it writing ActionScript3 code in a file that basicaly, is an AS actionscript3 file(*).
This code has to be converted to an executable file, a SWF Flash, in order you can run it. This conversion is what we call "build" (is a little bit more complex).
As far as I know (I'm pretty sure we'll have to fix this page later), there are two basic ways to build a Flartoolkit app. One is using both Flash CS3 or CS4 IDE (Flash, period) or the Adobe Flex 3 Builder. You can also use IDE's like Ecplise with the Flex Builder plugin installed and other IDE's who support ActionScript coding.
HOW I BUILD AN .as FILE ?
At this point we should to clarify one idea:
Depends the manager and IDE that you/the_developer has used to create the app you can find various ways to build an AR app. So, at least you can find this cases:
1. FLARTOOLKIT project with FLA and AS sources.
That's really easy. Yoy will find inside the app/project folder one FLA file and one AS file. The FLA file has nothing but an actionscript class linked. This actionscript class is the AS file. So, to build your app, you only have open the FLA file, change what you want in the AS file and publish the project (in the FLA file tab) from the File > Publish menu in Flash CS3 / CS4. Remember to check the file extension and Flash Player version in the Publish Settings.
2. FLARTOOLKIT project without FLA file and only an AS source
The Mikko's learningFlartookit is an example of this case.
That one is a little bit more difficult for begginers. You will need the Flex 3 Builder or other IDE like Eclipse to do it.
- Create a new ActionScript project from File > New > Action Script Project
- Choose any name for your project.
- Uncheck (if checked) the default project directory and choose the folder containing the src and lib folders.
- Check you are using the Flex 3.2 SDK (or higher)
- Click next
- A new window will appear, check that the main source folder is src and the main application is the as file inside the src folder. Probably it will be different from the one you have because by default the main application takes the name from the project name.
- Choose the output folder where the SWF and support files will be located after the buid.
- Click finish.
- Now Flex will show you a workspace whit all the folder inside the project on the left sidebar, in the center you will see the code inside the main as file.
- If there are no errors, you can directly click Project > Build to build the app.
- If all it's ok, you will find under the output folder the result of the building process. Open the SWF file with the FlashPlayer, show the pattern to the camera and enjoy ;)
3. FLARManager project This is the case of the FLARManager example.
You have a complete guide about FLARManager in the Transmote FLARManager page
- in Flex Builder’s top menu bar, go to File>Import>Flex Project.
- select ‘Project folder’ and Browse… to the folder you unzipped the download / checked out the source into; this folder should contain the ‘resources’ and ’src’ folders, as well as the Flex Builder project files (these are hidden files on OSX).
- uncheck ‘Use default location’ — the path you should use is the same path of ‘Project folder’.
- click Finish.
- take a look at your Problems window (if it’s not visible, select Windows>Problems from the menu bar). if you see anything about ‘Cannot create HTML wrapper…’, right/ctrl-click on that error and select Recreate HTML Templates. Flex Builder will rebuild the project and create your html-template folder.
- then, run the project via Run>Debug>FLARManagerExampleLauncher.
4. ARtisan project
- From File > New > Create new Flex project
- Choose the project folder where the src folder is.
- A new window will appear, check that the main source folder is src and the main application is the as file inside the src folder. Probably it will be different from the one you have because by default the main application takes the name from the project name.
- Choose the output folder where the SWF and support files will be located after the buid.
- Click finish.
- Now Flex will show you a workspace whit all the folder inside the project on the left sidebar, in the center you will see the code inside the main as file.
- Now you have to target the build to use Flash Player 10. From Project > Properties > Flex Compiler and setup to 10 the Flash Player verison required.
- Build as usual from Project > Build Project or Project > Clean if you already have been working on the project and you want a clean build.
Recent comments
8 hours 43 min ago
1 day 7 hours ago
1 day 12 hours ago
2 days 12 hours ago
3 days 6 hours ago
5 days 11 hours ago
6 days 13 hours ago
1 week 9 hours ago
1 week 1 day ago
1 week 2 days ago