Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flash Builder 4 - Flash Player failed to connect to debugger

I just finished my installation of Adobe Flash Builder 4. I've definitely installed the most recent flash player from Adobe's website onto my computer. Also, in the run configurations of flash builder 4, I changed the source path from the .html file to the .swf file that is generated. I don't need to test it in a web browser, I just want to run the swf in flash player.

I only have 1 .as file in my actionscript project and there is no code written in it other than the package, class and main function statements. When I run the .html file, it runs fine, and debugs fine. However, when I switch the source path to the .swf file, it runs fine but doesn't debug!

When I debug it, the progress gets stuck at 57% and it says "Waiting for Adobe Flash Player to connect to debugger..." in the "Progress" tab. After a few minutes a window pops up that says:

"Failed to connect. The session has timed out. Ensure that you have run the application with debugging on and that I have the debugger version of flash player."

What can I do to fix this? I am on an intel Mac running OS 10.6.5.

Thanks

like image 806
Lebowski156 Avatar asked Jan 07 '11 01:01

Lebowski156


3 Answers

You say you installed the most recent Flash Player, but you don't say if you by that mean the debug player. The "Flash Player 10.1 Plugin content debugger" and "Flash Player 10.1 Projector content debugger" can be downloader at http://www.adobe.com/support/flashplayer/downloads.html

like image 70
Lars Blåsjö Avatar answered Oct 14 '22 06:10

Lars Blåsjö


This might solve your problem http://blog.air4android.com/?p=59

HTH

like image 1
AIR4Android Avatar answered Oct 14 '22 06:10

AIR4Android


I had exactly that symptom.

I cleaned all related projects, removed bin-debug and bin-release, cleaned the cache, reinstalled the debug version of the player. It didn't help. I was about to reinstall FlashBuilder.

Then I displayed the javascript console. I saw there is a syntax error in my index.template. As a result, the application was never started, so the screen remained blank and the debugger failed to connect.

I fixed the silly error and it worked again! Basically, that message tells you the application failed to start.

like image 1
Florian F Avatar answered Oct 14 '22 05:10

Florian F