[Flashr] Running Flashr in Flash CS3 debugger
Brendan Dowling
bdowling at gmail.com
Tue Nov 18 19:36:13 PST 2008
Hello,
I'm new to this list and to using Flashr. I'm trying to build and run
FlashrSimpleSearch using Adobe Flash CS3. It builds and runs
perfectly fine in Test mode (Ctrl-Enter). However, running it in the
debugger leads to different behavior. I realize that there is a
possibility that using Flash CS3 just isn't supported (likely) and I
may have to track down a copy of Flash 8 or Flash MX 2004?
Here is the head of the output when running in Test mode (works fine):
*DEBUG*:"[com.kelvinluck.flashr.core.Flashr] created"
*DEBUG*:"[com.kelvinluck.flashr.core.FlashrApiResponse]created"
*DEBUG*:"API Key set to: b40e05adf210ad4c4cc4da00f99*****"
*DEBUG*:"com.kelvinluck.flashr.core.FlashrResponse instance created"
Searching for 10 photos matching tag 'hello'
*DEBUG*:"[com.kelvinluck.flashr.core.FlashrRequest - 1
{flickr.photos.search}] generated"
*DEBUG*:"Flashr.callMethod :
http://api.flickr.com/services/rest/?method=flickr.photos.search&api_key=b40e05adf210ad4c4cc4da00f99f4184&per_page=10&tags=hello&"
...
(output continues successfully after this)
Here is the output when running in the Debugger:
*DEBUG*:"[com.kelvinluck.flashr.core.FlashrCache] created"
*DEBUG*:"[com.kelvinluck.flashr.core.Flashr] created"
*DEBUG*:"[com.kelvinluck.flashr.core.FlashrApiResponse]created"
*DEBUG*:"API Key set to: b40e05adf210ad4c4cc4da00f99*****"
*DEBUG*:"com.kelvinluck.flashr.core.FlashrResponse instance created"
Searching for 10 photos matching tag 'hello'
*DEBUG*:"[com.kelvinluck.flashr.core.FlashrRequest - 1
{flickr.photos.search}] generated"
*DEBUG*:"Flashr.callMethod :
http://api.flickr.com/services/rest/?api_key=b40e05adf210ad4c4cc4da00f99f4184&"
*DEBUG*:"Flashr.onAPIResponse received XML: <?xml version="1.0"
encoding="utf-8" ?><rsp stat="fail"><err code="112" msg="Method
"unknown" not found" /></rsp>"
*ERROR*:"112: Method "unknown" not found when calling 'flickr.photos.search'"
Here is what I have noticed.
1. For some reason it is creating the FlashrCache object even though
_flashr.cacheQueries = false; in FlashrSimpleSearch.as:
2. If I break on the creation of FlashrCache object, here is the backtrace:
FlashrCache()
FlashrCache::getInstance()
__get__cache()
Flashr::getFlashr()
FlashrSimpleSearch()
3. If I start the app in the debugger, then close the debugger, it
works fine.
Thanks for your help.
Brendan Dowling
More information about the Flashr
mailing list