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/Main.as".

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/main.as" -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)


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



package{
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.

15 Comments:

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...

Hi,
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)
Done(2)
*********************************************
Any Ideas?

Thanks.

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...

Hey,

Do you guys watch movies in theater or on internet? I use to rent DVD movies from [b]Netflix.com[/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=http://www.watchhotmoviesfree.com]watch latest movie 25 Hill 2010[/url] for free?? I have searched [url=http://www.watchhotmoviesfree.com]Youtube.com[/url], [url=http://www.watchhotmoviesfree.com]Dailymotion.com[/url], [url=http://www.watchhotmoviesfree.com]Megavideo.com[/url] but, Could not find a good working link. If you know any working link please share it with me.


Thanks

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

pharmacy orange county http://drugsonlineshop.com/de/product/lexapro.html brookline village pharmacy [url=http://drugsonlineshop.com/fr/product/coreg.html]coreg[/url]
maryland compounding pharmacy http://drugsonlineshop.com/fr/product/augmentin.html ohio pharmacy license [url=http://drugsonlineshop.com/product/paracetamol.html]massachussettes college of pharmacy and health sciences[/url]
pharmacy resume samples http://drugsonlineshop.com/fr/product/zithromax.html oregon state board of pharmacy [url=http://drugsonlineshop.com/product/altace.html]altace[/url]
patient care plan form pharmacy student http://drugsonlineshop.com/fr/product/heart-shield.html long term pharmacy [url=http://drugsonlineshop.com/de/product/alfacip.html]penn taft pharmacy[/url]

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

cheap backpacker travel insurance uk 20 http://foxusa.eu/travel/travel-pregnancy travel advisory on i 5 [url=http://qipp.eu/tourism/tourism-normandy]tourism normandy[/url]
stansted coach travel http://qipp.eu/cruise/kristina-cruise-cincinatti how fast can a sneez travel [url=http://foxusa.eu/airline/air-airline-cheap-discount-flight]travel information ocean city[/url]
berkeley travel guide http://foxusa.eu/airport/downsview-park-airport the farm travel club in spring grove pa [url=http://foxusa.eu/tourism/negative-effects-of-tourism]negative effects of tourism[/url]
annual cheap holiday insurance travel uk 20 http://qipp.eu/inn/drury-inn-in-shawnee-mission-kansas royal bank of scotland travel discounts [url=http://foxusa.eu/airport/coffs-harbor-australia-airport]virgin space travel[/url]
stainless steel travel mugs http://qipp.eu/cruise/carnival-cruise-to-nowhere travel insurance us short trip cheap [url=http://foxusa.eu/vacation-packages/dream-vacation-packages]dream vacation packages[/url]
mapquest travel directions http://qipp.eu/adventure/black-river-adventure-watertown-ny travel med [url=http://qipp.eu/tourist/varadero-tourist-map-free]adventure travel tour vermont hiking alaska hiking compare[/url]

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

song serm travel http://qipp.eu/maps/create-street-maps travel without spleen [url=http://qipp.eu/expedia/expedia-travel-car-rentals-vacations]expedia travel car rentals vacations[/url]
travel insurance europe colorado hiking outdoor adventure http://qipp.eu/tours/savannah-georgia-plantation-tours bus travel nz [url=http://qipp.eu/lufthansa/embraer-aircraft]christian travel insurance[/url]
travel land holiday packages http://qipp.eu/airline/malaysia-airline-system-mas travel methods [url=http://qipp.eu/hotel/seatac-wa-hotel-reservation]seatac wa hotel reservation[/url]
does mold spores travel http://qipp.eu/map/world-of-warcraft-beast-map hershey travel guide [url=http://qipp.eu/flight/google-flight-tracker]state department travel warning mexico[/url]
canadian travel agent http://qipp.eu/maps/land-area-maps nursing travel companies [url=http://qipp.eu/motel/super-8-motel-blue-springs]super 8 motel blue springs[/url]
time travel august 2007 doughnut http://qipp.eu/adventure/chicco-keyfit-travel-adventure-system travel new hamstire [url=http://qipp.eu/vacation-packages/vacation-package-orient-express]discount insurance online travel[/url]

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

mike lupica travel team summery http://foxusa.eu/airport/bangkok-international-airport-hotels travel pillow and blanket [url=http://foxusa.eu/motel/surfsand-resort-motel]surfsand resort motel[/url]
design travel search engine http://foxusa.eu/disneyland/disneyland-vacation-planning haddonfield travel [url=http://foxusa.eu/airport/shopping-at-mcghee-tyson-airport]travel tips for flying with toddlers[/url]
aol messages boards travel tennessee http://foxusa.eu/airline/airline-low-price-ticket travel to see rose bowl parade floats designed [url=http://foxusa.eu/motel/hotel-motel-smith]hotel motel smith[/url]
manila hotels philippines travel discounts http://foxusa.eu/tourist/all-binky-wants-is-another-tourist travel to honduras roatan island [url=http://foxusa.eu/tours/universal-studio-tours-california]travel general sales conditions[/url]
tia promotes travel to america http://foxusa.eu/lufthansa/tim-lancaster-pilot-british-airways-incident laura ashley graco travel system [url=http://foxusa.eu/lufthansa/the-war-angels-and-airways]the war angels and airways[/url]
sagent travel nurses http://foxusa.eu/cruise/cruise-in-upstate-south-carolina affidavit of consent and support for travel to the philippines [url=http://foxusa.eu/cruises/cruises-pvr]nyc metro travel info[/url]

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

travel trailer with bunkbeds 75020 http://tours.gaww.in/bus/tours/scotland peapodt travel bed [url=http://expedia.gaww.in/seaview/expedia/new/dubai]seaview expedia new dubai[/url]
careers with international travel http://vacation-packages.gaww.in/vacation/packages/to/eastern/fl abta iata travel agencies london [url=http://adventure.gaww.in/adventure/yunnan/sichuan]university and travel reimbursement guidelines[/url]
inchochina travel agent http://expedia.gaww.in/discount/travel/cheap/flights/expedia/travel/globa how fast does light travel sience [url=http://flight.gaww.in/flight/lessons/qaulification]flight lessons qaulification[/url]
travel and transporting cigarettes http://adventure.gaww.in/montanas/adventure/headquarters feti travel [url=http://plane-tickets.gaww.in/cheap/plane/tickets/to/england]travel tips paris best[/url]
travel info alaska http://plane-tickets.gaww.in/cheapest/plane/tickets/in/the/world travel lodges in england [url=http://motel.gaww.in/working/at/bates/motel]working at bates motel[/url]
safest international travel http://tour.gaww.in steve douglas travel [url=http://expedia.gaww.in/expedia/discount/code]leonia travel[/url]

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

pharmacy benefit management http://depression.kqv.in/employment-during-the-great-depression lake underhill pharmacy [url=http://canada-pharmacy.kqv.in/oklahoma-board-of-pharmacy]oklahoma board of pharmacy[/url]
pharmacy institutes in hongkong http://muscle.kqv.in/heart-disease-thickening-of-the-heart-muscle cvs pharmacy extra care card [url=http://medical-encyclopedia.kqv.in/association-of-medical-librarians]pharmacy rays food place sisters[/url]
watkins pharmacy http://blood-cells.kqv.in/materials-in-blood omaha nebraska pharmacy technician [url=http://infections.kqv.in/melaleuca-oil-for-ear-infections]melaleuca oil for ear infections[/url]
new developments in pharmacy http://heart-medicine.kqv.in/congestive-heart-failure-dogs michael todaro and pharmacy [url=http://canada-pharmacy.kqv.in/example-of-a-face-sheet-for-inpatient-pharmacy-dept]kroger pharmacy outer drive and michigan ave dearborn[/url]
independence blue cross specialty pharmacy http://penis-growth.kqv.in/elargisseur-de-penis ernest mario school of pharmacy [url=http://pharmacy.kqv.in/msc-clinical-pharmacy-university-of-california-san-francisco]msc clinical pharmacy university of california san francisco[/url]
us american pharmacy http://pharmacy.kqv.in/putnam-pharmacy-eau-claire cheap pharmacy [url=http://women-health.kqv.in/east-liberty-family-health-center]entica pharmacy[/url]

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

when was the first software design http://cheapoemsoftware.eu/product-31937/download-full-working-version-of-pdf-change-title-subject-author-keywords-dates-in-multiple-files-software-7-0 switching power supply design software [url=http://cheapoemsoftware.eu/fr/product-20470/download-full-working-version-of-elvior-messagemagic-5-6]legal download elvior messagemagic 5 6[/url]
gpx m2104 software http://cheapoemsoftware.eu/fr/product-13530/download-full-working-version-of-amara-flash-slide-show-builder-2-0 sino software [url=http://cheapoemsoftware.eu/product-31708/download-full-working-version-of-excel-401-k-planner-template-software-7-0]adobe acrobat pdf 9.0 software[/url]
best overall music software http://cheapoemsoftware.eu/it/product-32056/download-full-working-version-of-create-save-or-print-barcodes-software-7-0 wireless lan card software buffalo airstation [url=http://cheapoemsoftware.eu/es/product-23983/download-full-working-version-of-squid-1-2-bilingual]legal download squid 1 2 bilingual[/url]
medical software freeware http://cheapoemsoftware.eu/es/product-27585/download-full-working-version-of-nidesoft-ipod-video-converter-2-3 computer software security [url=http://cheapoemsoftware.eu/es/product-17042/download-full-working-version-of-nufsoft-ace-pro-screensaver-creator-v3-50]silent knight security access software knightaccess[/url]
computer restarting software http://cheapoemsoftware.eu/product-12625/download-full-working-version-of-ez-backup-outlook-express-premium panorama software proactive business management [url=http://cheapoemsoftware.eu/de/product-24303/download-full-working-version-of-citra-fx-photo-effects-3-0]legal download citra fx photo effects 3 0[/url]
tax software 1120s http://cheapoemsoftware.eu/product-13003/download-full-working-version-of-webcam-xp-pro-2007-3-92-618 medical application software [url=http://cheapoemsoftware.eu/es/product-31301/download-full-working-version-of-extra-video-to-psp-converter-6-9]x-pak dvd player software[/url]

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

Post a Comment

<< Home