Thursday, August 10, 2006

Using The Flex 2 SDK with Flash Develop

I saw Keith Peter's blog post about using FlashDevelop and the Flex 2 SDK.

However, there is one problem; insects really bother me. Especially ants. So here's a way to use the Flex 2 SDK without those pesky ants getting in the way.

First you need to download all the files needed.

The new ASCompletion DLL
The Flex2 SDK
Flash 9 Intrinsic Class Files
Flash Build Plugin

Download and unzip the new ASCompletion DLL into the Flash Develop plugin folder. Unzip the Flex2 SDK into "C:\Program Files\Adobe" . Once that's complete you'll need to download and unzip the Flash 9 Intrinsic class files into any folder you please (I recommend the base Flash Develop install folder). Finally, unzip the latest Flash Build plugin into the Flash Develop plugin folder.

With all this completed open up Flash Develop and create a new standard project. Flash Build may or may not ask you if you'd like to create a build file for this project. If it does press yes, if it doesn't it should have already created one called "flashbuild.xml" in the root folder for the project.

Once Flash Build has created the flashbuild.xml file double click on it to open it in flash develop. You will see a very nice GUI that will allow you to easily setup different builds for the project. Choose the ClassPath's item from the FlashBuild drop down list. You should see the default class paths there. However, in order to get Flash 9 functionality you need to add the AS3 Intrinsic classes that were unzipped earlier to the global class path. In my case this was "C:\Program Files\FlashDevelop\AS3_intrinsic_classes". Once that is done it's time to setup the actual build.

You should see an item in the FlashBuild list called "Build 1" select this item and on the right a new set of controls will appear. Choose a build name, I chose "AS3 Build", very original. Once that is done right click on the newly named build and choose "Add Flex2 Build".

Choose the newly created Flex 2 build by clicking on it. A new set of options will appear in the right hand pane with a few tabs: Quick Start, MetaData, and Advanced. If not already selected, choose the Quick Start tab. Once the QuickStart tab is selected add the main class file as the "Input MXML/AS". In my case, because I'm using the standard project template, this was "./classes/".

Alright, now you're ready to test the build. From the top menu choose the Build drop down. From that choose the Build item and then "AS3 Build" or whatever your build's name was. If all went successfully it should output something like below in the output window.

Running process: C:\Documents and Settings\Sam\My Documents\New Project\Flashbuild.bat 
"C:\Program Files\Adobe\Flex2SDK\bin\mxmlc.exe" "classes/" -accessible=false -allow-source-path-overlap=false -as3=true -benchmark=false -debug=false -default-background-color 13421823 -default-frame-rate 24 -es=false -generate-frame-loader=false -headless-server=true -incremental=false -keep-generated-actionscript=false -lazy-init=false -optimize=false -show-actionscript-warnings=true -show-binding-warnings=true -show-deprecation-warnings=true -strict=true -use-network=true -verbose-stacktraces=false -warnings=true
Loading configuration file C:\Program Files\Adobe\Flex2SDK\frameworks\flex-config.xml
C:\Documents and Settings\Sam\My Documents\New Project\classes\Main.swf (494 bytes)

Make sure your file is AS3 compliant. The bare bones should look like this:

public class Main{

public static function main():void{


Try to build your project again. If all goes well it should work flawlessly.

Congratulations on your ant free build.


Anonymous Nikita said...

Thanks a lot! Works like a charm.

Friday, August 11, 2006 10:54:00 AM  
Anonymous ronin said...

Anyway to trace out to the flashdevelop window when using Flashbuild ?

Monday, August 14, 2006 12:34:00 PM  
Blogger J.T said...

Thanks for the tips. Only, so far, I haven't been able to get it to work. I keep getting this error

Running process:
[..some output removed for comment length..]

Loading configuration file F:\Flex2\frameworks\flex-config.xml
Initial setup: 609ms
Loaded 7 SWCs: 1859ms
Error: Unable to resolve a class for factoryClass: _App_mx_managers_SystemManager.

Files: 255 Time: 4813ms
Total time: 7281ms
Peak memory usage: 43 MB (Heap: 23, Non-Heap: 20)
Any Ideas?


Wednesday, August 16, 2006 12:06:00 AM  
Anonymous Anonymous said...

I have the same exact problem

Tuesday, August 22, 2006 5:30:00 AM  
Anonymous davinator said...

hi there,
thanks heaps for the help with setting that all up, very very useful. Just one small problem, i have an existing project that i started in the trial version of flex builder 2, which i have transferred to flash develop, and when i try to build the project i get the following error message:

Error: Unable to resolve a class for factoryClass: _Main_mx_managers_SystemManager.

I'm a bit of a noobxor when it comes to AS3 and flex so any help with this would be great.

Thanks a bunch.

Saturday, September 16, 2006 9:29:00 PM  
Anonymous Anonymous said...

Yes thanks it is almost working for me. I get these errors though:

Error: A file found in a source-path must have the same package structure '', as the definition's package

My package structure looks fine and it used to compile fine in Flash 9 Alpha.

Wednesday, October 04, 2006 3:03:00 AM  
Anonymous Anonymous said...

For anyone else that has seen
Error: Unable to resolve a class for factoryClass: _App_mx_managers_SystemManager

Open flashbuild.xml and change the GenerateFrameLoader value from false to true

Saturday, October 14, 2006 2:08:00 PM  
Anonymous Anonymous said...


Do you guys watch movies in theater or on internet? I use to rent DVD movies from [b][/b]. Recently I discovered that we can watch all new movies on internet on day, they are released. So why should I spend money on renting movies??? So, can you guys please tell me where I can [url=]watch latest movie 25 Hill 2010[/url] for free?? I have searched [url=][/url], [url=][/url], [url=][/url] but, Could not find a good working link. If you know any working link please share it with me.


Saturday, April 10, 2010 8:31:00 AM  
Anonymous Anonymous said...

pharmacy orange county brookline village pharmacy [url=]coreg[/url]
maryland compounding pharmacy ohio pharmacy license [url=]massachussettes college of pharmacy and health sciences[/url]
pharmacy resume samples oregon state board of pharmacy [url=]altace[/url]
patient care plan form pharmacy student long term pharmacy [url=]penn taft pharmacy[/url]

Sunday, September 12, 2010 4:43:00 PM  
Anonymous Anonymous said...

cheap backpacker travel insurance uk 20 travel advisory on i 5 [url=]tourism normandy[/url]
stansted coach travel how fast can a sneez travel [url=]travel information ocean city[/url]
berkeley travel guide the farm travel club in spring grove pa [url=]negative effects of tourism[/url]
annual cheap holiday insurance travel uk 20 royal bank of scotland travel discounts [url=]virgin space travel[/url]
stainless steel travel mugs travel insurance us short trip cheap [url=]dream vacation packages[/url]
mapquest travel directions travel med [url=]adventure travel tour vermont hiking alaska hiking compare[/url]

Tuesday, October 05, 2010 8:29:00 PM  
Anonymous Anonymous said...

song serm travel travel without spleen [url=]expedia travel car rentals vacations[/url]
travel insurance europe colorado hiking outdoor adventure bus travel nz [url=]christian travel insurance[/url]
travel land holiday packages travel methods [url=]seatac wa hotel reservation[/url]
does mold spores travel hershey travel guide [url=]state department travel warning mexico[/url]
canadian travel agent nursing travel companies [url=]super 8 motel blue springs[/url]
time travel august 2007 doughnut travel new hamstire [url=]discount insurance online travel[/url]

Tuesday, October 12, 2010 9:35:00 PM  
Anonymous Anonymous said...

mike lupica travel team summery travel pillow and blanket [url=]surfsand resort motel[/url]
design travel search engine haddonfield travel [url=]travel tips for flying with toddlers[/url]
aol messages boards travel tennessee travel to see rose bowl parade floats designed [url=]hotel motel smith[/url]
manila hotels philippines travel discounts travel to honduras roatan island [url=]travel general sales conditions[/url]
tia promotes travel to america laura ashley graco travel system [url=]the war angels and airways[/url]
sagent travel nurses affidavit of consent and support for travel to the philippines [url=]nyc metro travel info[/url]

Wednesday, October 13, 2010 10:28:00 PM  
Anonymous Anonymous said...

travel trailer with bunkbeds 75020 peapodt travel bed [url=]seaview expedia new dubai[/url]
careers with international travel abta iata travel agencies london [url=]university and travel reimbursement guidelines[/url]
inchochina travel agent how fast does light travel sience [url=]flight lessons qaulification[/url]
travel and transporting cigarettes feti travel [url=]travel tips paris best[/url]
travel info alaska travel lodges in england [url=]working at bates motel[/url]
safest international travel steve douglas travel [url=]leonia travel[/url]

Saturday, November 06, 2010 2:18:00 AM  
Anonymous Anonymous said...

pharmacy benefit management lake underhill pharmacy [url=]oklahoma board of pharmacy[/url]
pharmacy institutes in hongkong cvs pharmacy extra care card [url=]pharmacy rays food place sisters[/url]
watkins pharmacy omaha nebraska pharmacy technician [url=]melaleuca oil for ear infections[/url]
new developments in pharmacy michael todaro and pharmacy [url=]kroger pharmacy outer drive and michigan ave dearborn[/url]
independence blue cross specialty pharmacy ernest mario school of pharmacy [url=]msc clinical pharmacy university of california san francisco[/url]
us american pharmacy cheap pharmacy [url=]entica pharmacy[/url]

Tuesday, November 09, 2010 5:29:00 AM  
Anonymous Anonymous said...

when was the first software design switching power supply design software [url=]legal download elvior messagemagic 5 6[/url]
gpx m2104 software sino software [url=]adobe acrobat pdf 9.0 software[/url]
best overall music software wireless lan card software buffalo airstation [url=]legal download squid 1 2 bilingual[/url]
medical software freeware computer software security [url=]silent knight security access software knightaccess[/url]
computer restarting software panorama software proactive business management [url=]legal download citra fx photo effects 3 0[/url]
tax software 1120s medical application software [url=]x-pak dvd player software[/url]

Saturday, December 11, 2010 8:26:00 PM  

Post a Comment

<< Home