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
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
This might solve your problem http://blog.air4android.com/?p=59
HTH
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With