Profiling live Flash applications
This is something that's incredibly helpful for working with applications that absolutely must be on a live server -- such as Facebook games. It's really easy -- but I personally had a whole bunch of things go wrong in attempting to get it working. Credit for figuring out the pitfalls goes to Warren Eng, one of my developers.
Steps:
- Make sure your app is set to allow debugging. In FlashDevelop this is "Debug" mode, instead of "Release".
- Close all web browsers.
- Set Flash Builder's default launch browser to Chrome.exe (Window -> Preferences -> Flash Builder -> Profiler -> Player/Browser) -- Note: I have no idea why Chrome works here, but when I use Firefox it fails. Chrome works flawlessly. I've given up trying to understand why -- and besides, Chrome has a great task manager for monitoring memory.
- In the "Profile External Application" window, add your application's URL to the "Launch selected application" box. (i.e. http://apps.facebook.com/myGame/game/)
At this point your Flash/Flex builder should ask you to suspend/resume your application, and when you resume it you'll start getting all that juicy profiling data that you want.
Good stuff!
Related Posts
Firefox Flash lock during load...
I'm experiencing a second or two where Firefox completely freezes during Flash load, any ideas?
Global sound volume in Flash AS3
I manage to forget immediately forget this after I do it once on every project involving sound. NO LONGER! (I hope.)
FlashDevelop Singleton Template
A useful timesaver -- especially with the odd contortions one must perform to get a Singleton in Flash.
Heading to MAX tomorrow!
I'm off to LA for the Adobe Max conference. This will be the first time I've been to MAX.
Pass FlashVars to a loaded SWF
A few easy but not immediately obvious methods to access FlashVars from inside a loaded child swf. The normal way, the right way, and the 'save me plz' way.
I'm Ryan Ragona, an Interactive Developer based in Seattle, and I write about AS3, Django, and more.
Hey game industry people, anyone have a line on SC2 beta keys? I'm dying here. :P posted 1 week ago from Tweetie
You should follow
me on Twitter!
me on Twitter!

0 Comments