{"id":99,"date":"2011-10-26T11:45:59","date_gmt":"2011-10-26T15:45:59","guid":{"rendered":"https:\/\/www.anychart.com\/blog\/2011\/10\/26\/bug-in-flash-player-1101152-1mathabs0-is-infinity\/"},"modified":"2015-05-11T19:55:25","modified_gmt":"2015-05-11T19:55:25","slug":"bug-in-flash-player-1101152-1mathabs0-is-infinity","status":"publish","type":"post","link":"https:\/\/www.anychart.com\/blog\/2011\/10\/26\/bug-in-flash-player-1101152-1mathabs0-is-infinity\/","title":{"rendered":"Bug in Flash Player 11.0.1.152: 1\/Math.abs(0) is -Infinity"},"content":{"rendered":"<p>AnyChart Team has found in Flash Player 11.0.1.152 a very weird bug that doesn&#8217;t manifest itself in the Debug version of Flash Player, but ruins math in the regular version, so we had to debug it in the non-debug version: using ExternalInterface and JavaScript console.<\/p>\n<p><b>Bug description<\/b><\/p>\n<p>In the regular version of Flash Player 11.0.1.152 the following expression:<\/p>\n<p><code>1\/Math.abs(0)<\/code><\/p>\n<p>is evaluated as <i>-Infinity<\/i>, but in the Debug version it is (as anyone expects): <i>Infinity<\/i><\/p>\n<p><b>Reproduce<\/b><\/p>\n<p>Here is a sample code you can use to reproduce this issue:<\/p>\n<p><code>package {<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;import flash.display.Sprite;<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;import flash.external.ExternalInterface;<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;public class MagicWorld extends Sprite {<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public function MagicWorld() {<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ExternalInterface.call(\"alert\", \"1\/Math.abs(0) = \" +  (1\/Math.abs(0)).toString());<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;}<br \/>\n}<\/code><\/p>\n<p>As soon as you have done this \u2014 compile and run the sample in the Debug and Regular versions, and you will see the difference.<\/p>\n<p>The bug has been reported to Adobe: <a href='https:\/\/bugbase.adobe.com\/index.cfm?event=bug&#038;id=3011557' target='_blank' target=\"_blank\" rel=\"nofollow\">Bug#3011557<\/a><br \/>\nThe test sample: <a href='http:\/\/6.anychart.com\/temp\/bug301157\/index.html' target='_blank' target=\"_blank\" rel=\"nofollow\">http:\/\/6.anychart.com\/temp\/bug301157\/index.html<\/a><\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>AnyChart Team has found in Flash Player 11.0.1.152 a very weird bug that doesn&#8217;t manifest itself in the Debug version of Flash Player, but ruins math in the regular version, so we had to debug it in the non-debug version: using ExternalInterface and JavaScript console. Bug description In the regular version of Flash Player 11.0.1.152 [&hellip;]<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[33],"class_list":["post-99","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-flash-platform","wpautop"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Bug in Flash Player 11.0.1.152: 1\/Math.abs(0) is -Infinity | AnyChart News<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.anychart.com\/blog\/2011\/10\/26\/bug-in-flash-player-1101152-1mathabs0-is-infinity\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bug in Flash Player 11.0.1.152: 1\/Math.abs(0) is -Infinity | AnyChart News\" \/>\n<meta property=\"og:description\" content=\"AnyChart Team has found in Flash Player 11.0.1.152 a very weird bug that doesn&#8217;t manifest itself in the Debug version of Flash Player, but ruins math in the regular version, so we had to debug it in the non-debug version: using ExternalInterface and JavaScript console. Bug description In the regular version of Flash Player 11.0.1.152 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.anychart.com\/blog\/2011\/10\/26\/bug-in-flash-player-1101152-1mathabs0-is-infinity\/\" \/>\n<meta property=\"og:site_name\" content=\"AnyChart News\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/AnyCharts\" \/>\n<meta property=\"article:published_time\" content=\"2011-10-26T15:45:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-05-11T19:55:25+00:00\" \/>\n<meta name=\"author\" content=\"Timothy Loginov\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@AnyChart\" \/>\n<meta name=\"twitter:site\" content=\"@AnyChart\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Timothy Loginov\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.anychart.com\/blog\/2011\/10\/26\/bug-in-flash-player-1101152-1mathabs0-is-infinity\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.anychart.com\/blog\/2011\/10\/26\/bug-in-flash-player-1101152-1mathabs0-is-infinity\/\"},\"author\":{\"name\":\"Timothy Loginov\",\"@id\":\"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/a944a69f34509440ab4a9b5ead73caa6\"},\"headline\":\"Bug in Flash Player 11.0.1.152: 1\/Math.abs(0) is -Infinity\",\"datePublished\":\"2011-10-26T15:45:59+00:00\",\"dateModified\":\"2015-05-11T19:55:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.anychart.com\/blog\/2011\/10\/26\/bug-in-flash-player-1101152-1mathabs0-is-infinity\/\"},\"wordCount\":135,\"commentCount\":0,\"keywords\":[\"Flash Platform\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.anychart.com\/blog\/2011\/10\/26\/bug-in-flash-player-1101152-1mathabs0-is-infinity\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.anychart.com\/blog\/2011\/10\/26\/bug-in-flash-player-1101152-1mathabs0-is-infinity\/\",\"url\":\"https:\/\/www.anychart.com\/blog\/2011\/10\/26\/bug-in-flash-player-1101152-1mathabs0-is-infinity\/\",\"name\":\"Bug in Flash Player 11.0.1.152: 1\/Math.abs(0) is -Infinity | AnyChart News\",\"isPartOf\":{\"@id\":\"https:\/\/www.anychart.com\/blog\/#website\"},\"datePublished\":\"2011-10-26T15:45:59+00:00\",\"dateModified\":\"2015-05-11T19:55:25+00:00\",\"author\":{\"@id\":\"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/a944a69f34509440ab4a9b5ead73caa6\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.anychart.com\/blog\/2011\/10\/26\/bug-in-flash-player-1101152-1mathabs0-is-infinity\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.anychart.com\/blog\/2011\/10\/26\/bug-in-flash-player-1101152-1mathabs0-is-infinity\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.anychart.com\/blog\/2011\/10\/26\/bug-in-flash-player-1101152-1mathabs0-is-infinity\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.anychart.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Bug in Flash Player 11.0.1.152: 1\/Math.abs(0) is -Infinity\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.anychart.com\/blog\/#website\",\"url\":\"https:\/\/www.anychart.com\/blog\/\",\"name\":\"AnyChart News\",\"description\":\"AnyChart JS Charts\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.anychart.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/a944a69f34509440ab4a9b5ead73caa6\",\"name\":\"Timothy Loginov\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/00860a412d134244a5234231874065a30044d4d59f78aef4cca746e1e2dd3691?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/00860a412d134244a5234231874065a30044d4d59f78aef4cca746e1e2dd3691?s=96&r=g\",\"caption\":\"Timothy Loginov\"},\"url\":\"https:\/\/www.anychart.com\/blog\/author\/timothy-loginov\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Bug in Flash Player 11.0.1.152: 1\/Math.abs(0) is -Infinity | AnyChart News","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.anychart.com\/blog\/2011\/10\/26\/bug-in-flash-player-1101152-1mathabs0-is-infinity\/","og_locale":"en_US","og_type":"article","og_title":"Bug in Flash Player 11.0.1.152: 1\/Math.abs(0) is -Infinity | AnyChart News","og_description":"AnyChart Team has found in Flash Player 11.0.1.152 a very weird bug that doesn&#8217;t manifest itself in the Debug version of Flash Player, but ruins math in the regular version, so we had to debug it in the non-debug version: using ExternalInterface and JavaScript console. Bug description In the regular version of Flash Player 11.0.1.152 [&hellip;]","og_url":"https:\/\/www.anychart.com\/blog\/2011\/10\/26\/bug-in-flash-player-1101152-1mathabs0-is-infinity\/","og_site_name":"AnyChart News","article_publisher":"https:\/\/www.facebook.com\/AnyCharts","article_published_time":"2011-10-26T15:45:59+00:00","article_modified_time":"2015-05-11T19:55:25+00:00","author":"Timothy Loginov","twitter_card":"summary_large_image","twitter_creator":"@AnyChart","twitter_site":"@AnyChart","twitter_misc":{"Written by":"Timothy Loginov","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.anychart.com\/blog\/2011\/10\/26\/bug-in-flash-player-1101152-1mathabs0-is-infinity\/#article","isPartOf":{"@id":"https:\/\/www.anychart.com\/blog\/2011\/10\/26\/bug-in-flash-player-1101152-1mathabs0-is-infinity\/"},"author":{"name":"Timothy Loginov","@id":"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/a944a69f34509440ab4a9b5ead73caa6"},"headline":"Bug in Flash Player 11.0.1.152: 1\/Math.abs(0) is -Infinity","datePublished":"2011-10-26T15:45:59+00:00","dateModified":"2015-05-11T19:55:25+00:00","mainEntityOfPage":{"@id":"https:\/\/www.anychart.com\/blog\/2011\/10\/26\/bug-in-flash-player-1101152-1mathabs0-is-infinity\/"},"wordCount":135,"commentCount":0,"keywords":["Flash Platform"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.anychart.com\/blog\/2011\/10\/26\/bug-in-flash-player-1101152-1mathabs0-is-infinity\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.anychart.com\/blog\/2011\/10\/26\/bug-in-flash-player-1101152-1mathabs0-is-infinity\/","url":"https:\/\/www.anychart.com\/blog\/2011\/10\/26\/bug-in-flash-player-1101152-1mathabs0-is-infinity\/","name":"Bug in Flash Player 11.0.1.152: 1\/Math.abs(0) is -Infinity | AnyChart News","isPartOf":{"@id":"https:\/\/www.anychart.com\/blog\/#website"},"datePublished":"2011-10-26T15:45:59+00:00","dateModified":"2015-05-11T19:55:25+00:00","author":{"@id":"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/a944a69f34509440ab4a9b5ead73caa6"},"breadcrumb":{"@id":"https:\/\/www.anychart.com\/blog\/2011\/10\/26\/bug-in-flash-player-1101152-1mathabs0-is-infinity\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.anychart.com\/blog\/2011\/10\/26\/bug-in-flash-player-1101152-1mathabs0-is-infinity\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.anychart.com\/blog\/2011\/10\/26\/bug-in-flash-player-1101152-1mathabs0-is-infinity\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.anychart.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Bug in Flash Player 11.0.1.152: 1\/Math.abs(0) is -Infinity"}]},{"@type":"WebSite","@id":"https:\/\/www.anychart.com\/blog\/#website","url":"https:\/\/www.anychart.com\/blog\/","name":"AnyChart News","description":"AnyChart JS Charts","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.anychart.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/a944a69f34509440ab4a9b5ead73caa6","name":"Timothy Loginov","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.anychart.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/00860a412d134244a5234231874065a30044d4d59f78aef4cca746e1e2dd3691?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/00860a412d134244a5234231874065a30044d4d59f78aef4cca746e1e2dd3691?s=96&r=g","caption":"Timothy Loginov"},"url":"https:\/\/www.anychart.com\/blog\/author\/timothy-loginov\/"}]}},"_links":{"self":[{"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/posts\/99","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/comments?post=99"}],"version-history":[{"count":2,"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/posts\/99\/revisions"}],"predecessor-version":[{"id":396,"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/posts\/99\/revisions\/396"}],"wp:attachment":[{"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/media?parent=99"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/categories?post=99"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.anychart.com\/blog\/wp-json\/wp\/v2\/tags?post=99"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}