
{"id":239,"date":"2007-03-17T18:25:40","date_gmt":"2007-03-17T17:25:40","guid":{"rendered":"http:\/\/www.matthijskamstra.nl\/blog\/index.php\/2007\/03\/17\/flash-experiments-debug-button\/"},"modified":"2007-03-17T23:22:58","modified_gmt":"2007-03-17T22:22:58","slug":"flash-experiments-debug-button","status":"publish","type":"post","link":"https:\/\/www.matthijskamstra.nl\/blog\/2007\/03\/17\/flash-experiments-debug-button\/","title":{"rendered":"Flash experiments: Debug Button"},"content":{"rendered":"<div class=\"highlight\"><strong>Update #1:<\/strong> it seems that to much data makes this button not function, so I toned it down a little<\/div>\n<p>For FlashBox I was looking for a way to get more\/better feedback from the users when they report a bug.<\/p>\n<p>It started with:<\/p>\n<pre><code>\r\nfunction submitBug (target_mc:MovieClip) {\r\n\tfor(var i in target_mc) {\r\n\t\ttrace ( 'key: ' + i + ', value: ' + target_mc[i]);\r\n\t}\r\n}\r\n<\/code><\/pre>\n<p>But I&#8217;ve extended it, with other usefull information (stage-width\/height, url, framenumber, etc);<br \/>\nAnd in combination with <a href=\"http:\/\/www.matthijskamstra.nl\/blog\/index.php\/flashbox-just-another-box\/\">FlashBox<\/a> (or in combination with the <a href=\"http:\/\/www.quirksmode.org\/js\/detect.html\">Browser detect<\/a>  &#8211; by Peter-Paul Koch [quirksmode]) you also can get the Operating system (I can get that too with Flash), Browser name (not possible with Flash) and version-number of the browser (also not possible with Flash)<\/p>\n<p>With this information it should be easier to debug&#8230;. <\/p>\n<p>To export the data to me I used the lowest tech solution I could think of: <\/p>\n<pre><code>getURL (\"mailto:reportbut@zapper.com?subject=BugReport&body=bug:\");<\/code><\/pre>\n<p>Just give it a try:<\/p>\n<div class=\"flash\">[swf]http:\/\/www.matthijskamstra.nl\/blog\/wp-content\/uploads\/debugBtn.swf, 220 ,70[\/swf]<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Update #1: it seems that to much data makes this button not function, so I toned it down a little For FlashBox I was looking for a way to get more\/better feedback from the users when they report a bug. It started with: function submitBug (target_mc:MovieClip) { for(var i in target_mc) { trace ( &#8216;key: [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,15],"tags":[39,398,404],"class_list":["post-239","post","type-post","status-publish","format-standard","hentry","category-flash","category-flash-experiments","tag-as2","tag-flash","tag-flash-experiments"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts\/239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/comments?post=239"}],"version-history":[{"count":0,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts\/239\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/media?parent=239"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/categories?post=239"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/tags?post=239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}