Page 1 of 1

run openSpace v2 flex example in FDT (MAC)

Posted: 24 May 2010, 08:00
by roikr
if anyone want to run the flex example in FDT (3) here are the problems I encountered and the workarounds:

1. first import the flex example to FDT as existing project.

2. move all the folders in src except assets to the main folder

3. inside assets you will find avatar. move it also to the main folder
- FDT regards all files in src/ folder as sources.

4. merge main.as in main.mxml (move the script inside) - for some reason FDT can't handle action script file which is not a class - so you need to copy the main.as script to the <mx:Script> tag inside main.mxml and remove main.as (maybe there is another workaround by disabling errors in FDT->preferences->FDT->problems)

5. in the end of the main.mxml there is local:CollapseCanvas component. replace it with mx:Canvas (you will need to delete the direction attribute)

6. I'd also experienced some sandbox problems. goto ~(Users/user)/Library/Preferences/Macromedia/Flash Player/#Security/FlashPlayerTrust and add fdt.cfg file containing you development files directories - this will allow your flash player access local files

I think its enough for a start and I'm not sure that all is required but once I will have the time I will make some order.

Roee