View Full Version : Translating a FlashDevelop project into Flex for use with the Profiler...?
Anogar
November 17th, 2009, 08:08 PM
Any suggestions? I'm having trouble; the Facebook API that I'm using throws a whole bunch of errors where it has [Bindable] and such. I'm a bit stuck. :(
wvxvw
November 18th, 2009, 01:46 AM
I assume you are trying to import it into FB as a "pure AS3" project? In such case you would have to add flex.swc and maybe framework.swc to the SWC libraries either via IDE, or via compiler arguments. For whatever reason FB doesn't add them by default for AS3 projects. However, if it has some MXML in the project, not based on framework classes, than it is difficult to solve, I gave that up :)
However, you can just compile from FD and debug / profile from FB - this may be the simplest way, and what I usually do. FB isn't the fastest thing to compile the project :D
Anogar
November 18th, 2009, 03:15 PM
It is a pure AS3 project, so that's good. :)
How would I go about compiling from FD and profiling from FB? That sounds like exactly what I want to do. Do I just need to hook into the LocalConnection API manually?
wvxvw
November 19th, 2009, 02:30 AM
Well, build from FD (gray wheel left to the green arrow), switch to FB and start new profiling session (specify for that session the path to the file you've just compiled). Actually, you can even connect to already running SWF file (right click on that SWF file, and choose the location of your debugger from context menu Debugger > Connect).
Anogar
November 19th, 2009, 03:39 PM
I've never even used the debugger before. I feel like a noob. Can you walk me through idiot style how I do this? I right click, get the debugging prompt, I keep it with localhost I assume, and then I have to have... something open? Having the FB Profiler open doesn't seem to connect.
wvxvw
November 19th, 2009, 04:37 PM
I was trying to upload it to the forum, but the images are too big, so, I'm putting it here for now: http://e4xu.googlecode.com/files/profile-from-fd.zip
But I'll remove it in a few days, sorry.
Anogar
November 26th, 2009, 01:56 PM
Wow, I'm an idiot, I did those exact steps but I think I tried to link it to the HTML file instead of the SWF. How embarrassing. Thanks! :D
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.