<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mark Ledford&#039;s Blog</title>
	<atom:link href="http://www.markledford.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.markledford.com/blog</link>
	<description>Documenting the pitfalls of a Flash platform developer</description>
	<lastBuildDate>Thu, 18 Feb 2010 03:43:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>I finally got tethering on my iphone working!</title>
		<link>http://www.markledford.com/blog/2010/02/17/i-finally-got-tethering-on-my-iphone-working/</link>
		<comments>http://www.markledford.com/blog/2010/02/17/i-finally-got-tethering-on-my-iphone-working/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 03:35:29 +0000</pubDate>
		<dc:creator>markledford</dc:creator>
				<category><![CDATA[iphone]]></category>
		<category><![CDATA[not flash related]]></category>

		<guid isPermaLink="false">http://www.markledford.com/blog/?p=105</guid>
		<description><![CDATA[So it was quite a chore but I finally got internet tethering working on my iPhone 3gs with firmware 3.1.2, baseband 05.11.07.
Btw firmware 3.1.3 was released a week or two ago, it won&#8217;t work with this and doesn&#8217;t have anything worthwhile so don&#8217;t update to it!
If you&#8217;re interested in tethering your iPhone then read on [...]]]></description>
			<content:encoded><![CDATA[<p>So it was quite a chore but I finally got internet tethering working on my iPhone 3gs with firmware 3.1.2, baseband 05.11.07.<br />
Btw firmware 3.1.3 was released a week or two ago, it won&#8217;t work with this and doesn&#8217;t have anything worthwhile so don&#8217;t update to it!<br />
If you&#8217;re interested in tethering your iPhone then read on below. I haven&#8217;t been up on the jailbreak scene at all, so if I can do it, you can too, but<br />
no promises if your set up isn&#8217;t exactly like mine and you end up bricking your phone. Oh and you need a Mac to do this.</p>
<p>This tethering is done through a jailbreak&#8217;ed app called MyWi.<br />
<img class="alignnone" title="MyWi" src="http://markledford.com/bloghost/mywi.png" alt="MyWi" width="472" height="272" /><br />
Its an app you actually have to pay for which is weird given its a jailbreak&#8217;ed app but its well worth the 10 bucks and has a free 10 day trial i&#8217;m still using.<br />
Its actually better then the old hack for tethering that you could do with a custom ipcc  profile, mainly because it still works but also:<br />
- it can allow you to share your iphone&#8217;s internet via USB / bluetooth OR by turning your phone into a WEPd wi-fi hotspot multiple computers can join<br />
- shows up and down bandwidth usage as it runs in the background with a nice graphical display<br />
- doesn&#8217;t require a custom ipcc profile</p>
<p>This also seams to be the best route for this firmware version because:<br />
- you don&#8217;t have to unlock your phone and it doesn&#8217;t involve a tether&#8217;d jailbreak (where you have to plug your phone into the computer whenever you restart)<br />
You don&#8217;t have to install ultrasn0w, blacksn0w, blackra1n (or any other program with 1s or 0s in it)<br />
- at 10 bucks it isn&#8217;t worth the time-sink figuring out another reliable way of doing this</p>
<p>Drawbacks:<br />
- your phone will be jailbroken(?) and may be less dependable (and will have a pineapple for a boot up logo) though mine seams to be working pretty well so far.</p>
<p>Steps:<br />
1. Connect your iPhone to iTunes and back that ish up.<br />
2. Download PwnageTool_3.1.5.dmg from <a href="http://blog.iphone-dev.org/">http://blog.iphone-dev.org/</a> and install it<br />
3. Use PwnageTool to create a jailbroken version of the iphone firmware and load it onto your iphone via iTunes. I followed a step-by-step tute like <a href="http://www.redmondpie.com/jailbreak-iphone-3.1.2-firmware-with-pwnagetool-3.1.4-qwo969/">this one</a><br />
3b. Resync your phone with iTunes to get all your apps, music, photos, etc back on your iphone. You can do this later as it takes forever.<br />
4. You should have your jailbroken phone up and running at this point with Cydia app on it. A very slow, crude looking, not-apple-app-store App Installer with way too many ads in it.<br />
Open Cydia and click on the search icon in the bottom right and type &#8220;rockapp&#8221;, and install it (its another App Installer like Cydia but from another company, the same one that makes iWi).<br />
5. Open it, click on MyWi, install the trial, load it up and you should be good to go</p>
<p>Good luck!<br />
Mark</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markledford.com/blog/2010/02/17/i-finally-got-tethering-on-my-iphone-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cannot pass JSON string as String to ExternalInterface.call. It gets converted to an object</title>
		<link>http://www.markledford.com/blog/2010/01/26/cannot-pass-json-string-as-string-to-externalinterface-call-it-gets-converted-to-an-object/</link>
		<comments>http://www.markledford.com/blog/2010/01/26/cannot-pass-json-string-as-string-to-externalinterface-call-it-gets-converted-to-an-object/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 22:15:16 +0000</pubDate>
		<dc:creator>markledford</dc:creator>
				<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://www.markledford.com/blog/2010/01/26/cannot-pass-json-string-as-string-to-externalinterface-call-it-gets-converted-to-an-object/</guid>
		<description><![CDATA[Note to self. This scenario isn&#8217;t mentioned here:  http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&#038;file=00000343.html
]]></description>
			<content:encoded><![CDATA[<p>Note to self. This scenario isn&#8217;t mentioned here:  http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&#038;file=00000343.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markledford.com/blog/2010/01/26/cannot-pass-json-string-as-string-to-externalinterface-call-it-gets-converted-to-an-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cannot call ANY methods of XML or XMLList instances via bracket notation</title>
		<link>http://www.markledford.com/blog/2010/01/18/cannot-call-any-methods-of-xml-or-xmllist-instances-via-bracket-notation/</link>
		<comments>http://www.markledford.com/blog/2010/01/18/cannot-call-any-methods-of-xml-or-xmllist-instances-via-bracket-notation/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 06:02:25 +0000</pubDate>
		<dc:creator>markledford</dc:creator>
				<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://www.markledford.com/blog/2010/01/18/cannot-call-any-methods-of-xml-or-xmllist-instances-via-bracket-notation/</guid>
		<description><![CDATA[Every single method, unique to XML and XMLList or inherited will be return as an empty XMLList instead of the intended method as a Function when its retrieved as a property of that instance. Note that this not calling XMLList methods but retrieving the actual methods as properties of the objects themselves.
For example:
myXML.contains is XMLList [...]]]></description>
			<content:encoded><![CDATA[<p>Every single method, unique to XML and XMLList or inherited will be return as an empty XMLList instead of the intended method as a Function when its retrieved as a property of that instance. Note that this not calling XMLList methods but retrieving the actual methods as properties of the objects themselves.</p>
<p>For example:<br />
myXML.contains is XMLList //true<br />
myXML.toString is XMLList //true</p>
<p>This makes it impossible to call a method of an XML or XMLList programmatically via bracket notation like:<br />
myXML['toXMLString']() //returns TypeError: Error #1006: value is not a function.</p>
<p>It feels like a Proxy is involved internally and these methods were not set to returning properly in getProperty. Anyone have any feedback or work arounds?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markledford.com/blog/2010/01/18/cannot-call-any-methods-of-xml-or-xmllist-instances-via-bracket-notation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mouse events aren&#8217;t dispatched for graphics drawn on main display class</title>
		<link>http://www.markledford.com/blog/2010/01/05/mouse-events-arent-dispatched-for-graphics-drawn-on-main-display-class/</link>
		<comments>http://www.markledford.com/blog/2010/01/05/mouse-events-arent-dispatched-for-graphics-drawn-on-main-display-class/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 16:48:34 +0000</pubDate>
		<dc:creator>markledford</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[bugs]]></category>

		<guid isPermaLink="false">http://www.markledford.com/blog/?p=96</guid>
		<description><![CDATA[
This is bizarre. It appears the main display object&#8217;s graphics object is rendered on Stage and not its own display as in the example above:
In the Actionscript Project published above I have a red square drawn on the graphics of the main Sprite class and a child sprite with a green square and a textfield [...]]]></description>
			<content:encoded><![CDATA[<p><object style="width: 600px; height: 201px;" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="600" height="201" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://markledford.com/flash/ClickTest.swf" /><embed style="width: 600px; height: 201px;" type="application/x-shockwave-flash" width="600" height="201" src="http://markledford.com/flash/ClickTest.swf"></embed></object></p>
<p>This is bizarre. It appears the main display object&#8217;s graphics object is rendered on Stage and not its own display as in the example above:</p>
<p>In the Actionscript Project published above I have a red square drawn on the graphics of the main Sprite class and a child sprite with a green square and a textfield to the right to trace clicks.<br />
I have MouseEvent.CLICK listeners on stage, main sprite ClickTest, and child Sprite. With mouse children disabled clicking anywhere will report a single MouseEvent.CLICK to stage even though they should be dispatching for both the main display and stage. With mouseChildren enabled the top square will still only trigger the Stage mouse listener but the bottom will correctly trigger the click on the child sprite, main parent ClickTest sprite, and stage showing that the main DisplayObject is participating in the mouse event bubbling.</p>
<p>Thus my conclusion that the main display object&#8217;s graphics object is rendered on Stage which can cause a lot of unexpected behavior and confusion.  Your root display class cannot listen to its own display to catch mouse events for its own graphics object. I guess this could make enough sense if the root display object shared its display with the root Stage but as this hierarchy diagram shows, it shouldn&#8217;t: http://www.adobe.com/devnet/flash/quickstart/display_list_programming_as3/</p>
<p>I&#8217;d consider it one of those bizarre architecture inconsistencies like swfs having references to stage in the constructor when ran stand alone but not when they are loaded into another swf, its just inconsistent and asking for trouble?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markledford.com/blog/2010/01/05/mouse-events-arent-dispatched-for-graphics-drawn-on-main-display-class/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>major Flash Player GC bug converting string to XML</title>
		<link>http://www.markledford.com/blog/2009/12/20/major-flash-player-gc-bug-converting-string-to-xml/</link>
		<comments>http://www.markledford.com/blog/2009/12/20/major-flash-player-gc-bug-converting-string-to-xml/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 02:13:03 +0000</pubDate>
		<dc:creator>markledford</dc:creator>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://www.markledford.com/blog/?p=91</guid>
		<description><![CDATA[When converting a string to XML the memory used by the XML will never free up no matter the references or garbage collection tricks you have up your sleeve.  This is really excruciating when needing to parse large XML files from a Flex or AIR app.
http://bugs.adobe.com/jira/browse/SDK-11982
http://bugs.adobe.com/jira/browse/SDK-11244
http://bugs.adobe.com/jira/browse/FP-599 &#60;- Looks like this issue has been open for [...]]]></description>
			<content:encoded><![CDATA[<p>When converting a string to XML the memory used by the XML will never free up no matter the references or garbage collection tricks you have up your sleeve.  This is really excruciating when needing to parse large XML files from a Flex or AIR app.</p>
<p>http://bugs.adobe.com/jira/browse/SDK-11982</p>
<p>http://bugs.adobe.com/jira/browse/SDK-11244</p>
<p>http://bugs.adobe.com/jira/browse/FP-599 &lt;- Looks like this issue has been open for well over a year and may be fixed for the next release of Flash Player (apparently not 10.0.42.34 released a few days ago, just checked, perhaps they mean the next full release :/)</p>
<p>UPDATE: Luca in the comments pointed me to an apparent fix they&#8217;ve added to AIR 1.5.2 via System.disposeXML(xml) found in the release notes <a href="http://www.adobe.com/support/documentation/en/air/1_5_2/releasenotes_developers.html" target="_blank">here</a>.</p>
<p>I&#8217;ve verified that this new method works like a charm. It seams like a bit of a strange one-off hack that they&#8217;ve put it in under System for AIR only but I&#8217;m guessing that they wanted to address it quickly for the SDK that needed it most. Hopefully the regular Flash Player fix is coming in the next major update and won&#8217;t require this unusual method.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markledford.com/blog/2009/12/20/major-flash-player-gc-bug-converting-string-to-xml/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using [Embed] with fonts in Flex / Flash Builder Actionscript projects includes SDK specific core Flex classes</title>
		<link>http://www.markledford.com/blog/2009/09/03/using-embed-with-fonts-in-flex-flash-builder-actionscript-projects-includes-sdk-specific-core-flex-classes/</link>
		<comments>http://www.markledford.com/blog/2009/09/03/using-embed-with-fonts-in-flex-flash-builder-actionscript-projects-includes-sdk-specific-core-flex-classes/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 19:49:38 +0000</pubDate>
		<dc:creator>markledford</dc:creator>
				<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://www.markledford.com/blog/?p=86</guid>
		<description><![CDATA[Have you gotten this error when upgrading a Flex project to Flex 4?
1044: Interface method allowDomain in namespace mx.core:IFlexModuleFactory not implemented by class _Main_mx_managers_SystemManager.
1044: Interface method get preloadedRSLs in namespace mx.core:IFlexModuleFactory not implemented by class _Main_mx_managers_SystemManager.
Looking at the error its clear that Flex 3.4&#8217;s IFlexModuleFactory got compiled in and referenced by Flex 4&#8217;s SystemManager (which [...]]]></description>
			<content:encoded><![CDATA[<p>Have you gotten this error when upgrading a Flex project to Flex 4?</p>
<blockquote><p>1044: Interface method allowDomain in namespace mx.core:IFlexModuleFactory not implemented by class _Main_mx_managers_SystemManager.<br />
1044: Interface method get preloadedRSLs in namespace mx.core:IFlexModuleFactory not implemented by class _Main_mx_managers_SystemManager.</p></blockquote>
<p>Looking at the error its clear that Flex 3.4&#8217;s IFlexModuleFactory got compiled in and referenced by Flex 4&#8217;s SystemManager (which no longer has these methods) but how?</p>
<p>If you&#8217;re in my boat you have a central Actionscript-only Flex Library Project repository where you keep all your reusable Actionscript classes. This project is compiled with an older Flex SDK (3.4 in this instance) as it targets Flash Player 9 and other Flash 9 / Actionscript Only projects reference it. Your library  may also includes  metatags <a href="http://www.arpitonline.com/blog/2009/03/21/flex-builder-tip-use-swcs-for-image-assets-not-embed-metatags-for-pure-actionscript-projects/" target="_blank">even though the compiler adds  some basic mx.core classes</a> to do the embedding. This normally wouldn&#8217;t be an issue but you&#8217;ll find your boat will capsize if you&#8217;ve included any fonts embedded this way as the compiler includes some SDK specific classes, namely IFlexModuleFactory via FontAsset. You can verify this by including &#8220;-link-report linkreport.xml&#8221; compiler argument to this project.</p>
<p>Solution: Export the fonts separately, perhaps in a separate swc that isn&#8217;t referenced directly in your updated Flex 4 projects.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markledford.com/blog/2009/09/03/using-embed-with-fonts-in-flex-flash-builder-actionscript-projects-includes-sdk-specific-core-flex-classes/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>flash player 10 security change can break focus logic with cross domain swfs</title>
		<link>http://www.markledford.com/blog/2009/08/28/flash-player-10-security-change-can-break-focus-logic-with-cross-domain-swfs/</link>
		<comments>http://www.markledford.com/blog/2009/08/28/flash-player-10-security-change-can-break-focus-logic-with-cross-domain-swfs/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 06:22:48 +0000</pubDate>
		<dc:creator>markledford</dc:creator>
				<category><![CDATA[flex]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.markledford.com/blog/?p=70</guid>
		<description><![CDATA[With the barrage of player updates and security changes to the Flash Player staying on top of the issues and incompatibilities from player to player is sometimes as troublesome as cross browser compatibility for regular web development. This is especially true for the upgrade from Flash Player 9 to 10.
There were some well publicized major [...]]]></description>
			<content:encoded><![CDATA[<p>With the barrage of player updates and security changes to the Flash Player staying on top of the issues and incompatibilities from player to player is sometimes as troublesome as cross browser compatibility for regular web development. This is especially true for the upgrade from Flash Player 9 to 10.</p>
<p>There were some well publicized major security changes for <a href="http://www.adobe.com/devnet/flashplayer/articles/fplayer10_security_changes_02.html#head1">policy files</a> and the <a href="http://www.adobe.com/devnet/flashplayer/articles/fplayer10_security_changes_02.html#head3" target="_blank">filereference</a> class included with the Flash Player 10 security updates but a seemingly less significant new restriction regarding cross domain swf focus can wreak havoc on an existing flash project . The new restriction is outlined here:<br />
<a href="http://www.adobe.com/devnet/flashplayer/articles/fplayer10_security_changes_02.html#head33" target="_blank">Related-object properties in events may not be available</a></p>
<blockquote><p>Starting in Flash Player 10.0.2, if an object that would be referred to by any of these properties [MouseEvent.relatedObject, FocusEvent.relatedObject, ContextMenuEVent.mouseTarget] resides in a different security sandbox (for example, because it is part of a different SWF that was served from a different domain), and the two sandboxes do not both trust each other (by means of the Security.allowDomain method), then the value of this property is changed to null.</p></blockquote>
<p>I&#8217;ve found this is a significant change for cross domain swfs that utilize any of Flash&#8217;s V3 Components. Some 3rd party crossdomain swfs that once worked fine will no longer focus properly when clicking on textfields. Digging into this component architecture&#8217;s FocusManger you can find the culprit:</p>
<p>fl.managers.FocusManager::mouseFocusChangeHandler(event:FocusEvent)</p>
<div class="codecolorer-container actionscript default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="actionscript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #808080; font-style: italic;">/**<br />
*  @private<br />
*  This gets called when mouse clicks on a focusable object.<br />
*  We block Flash Player behavior.<br />
*<br />
* @langversion 3.0<br />
* @playerversion Flash 9.0.28.0<br />
*/</span><br />
<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">function</span> mouseFocusChangeHandler<span style="color: #66cc66;">&#40;</span>event:FocusEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span> <span style="color: #66cc66;">&#123;</span><br />
&nbsp; &nbsp;<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>event.<span style="color: #006600;">relatedObject</span> is <span style="color: #0066CC;">TextField</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span> <span style="color: #808080; font-style: italic;">//&lt;- related object will always be null </span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span>; <span style="color: #808080; font-style: italic;">// pass it on</span><br />
&nbsp; &nbsp;<span style="color: #66cc66;">&#125;</span><br />
&nbsp; &nbsp;event.<span style="color: #006600;">preventDefault</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #66cc66;">&#125;</span></div></div>
<p>The solution is to add a Security.allowDomain(&#8220;YourDomain&#8221;) if you have access to republish, otherwise you&#8217;d have to use a proxy server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markledford.com/blog/2009/08/28/flash-player-10-security-change-can-break-focus-logic-with-cross-domain-swfs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>swfObject javascript error in Internet Explorer</title>
		<link>http://www.markledford.com/blog/2009/04/15/swfobject-javascript-error-in-internet-explorer/</link>
		<comments>http://www.markledford.com/blog/2009/04/15/swfobject-javascript-error-in-internet-explorer/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 17:42:10 +0000</pubDate>
		<dc:creator>markledford</dc:creator>
				<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://www.markledford.com/blog/2009/04/15/swfobject-javascript-error-in-internet-explorer/</guid>
		<description><![CDATA[We&#8217;ve had this IE error reported 3 times this week:
Line: 130
Character: 4
Code: 0
Error Message: &#8217;script.parentNode&#8217; is null or not an object
The issue:
The SWFObject library is included multiple times on a page causing the IE DOM ready check hack it uses internally to be triggered multiple times. This hack inserts and removes a test node. Since [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve had this IE error reported 3 times this week:</p>
<blockquote><p>Line: 130<br />
Character: 4<br />
Code: 0<br />
Error Message: &#8217;script.parentNode&#8217; is null or not an object</p></blockquote>
<p>The issue:<br />
The SWFObject library is included multiple times on a page causing the IE DOM ready check hack it uses internally to be triggered multiple times. This hack inserts and removes a test node. Since the first instance removes this node, additional tries cause the error.</p>
<p>Solution:<br />
Remove multiple imports of &lt;script src=&#8221;swfobject.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt; from your page.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markledford.com/blog/2009/04/15/swfobject-javascript-error-in-internet-explorer/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>embed parameter &#8220;menu&#8221; = false and ContextMenuEvent.MENU_SELECT</title>
		<link>http://www.markledford.com/blog/2009/03/11/embed-parameter-menu-false-and-contextmenueventmenu_select/</link>
		<comments>http://www.markledford.com/blog/2009/03/11/embed-parameter-menu-false-and-contextmenueventmenu_select/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 21:58:50 +0000</pubDate>
		<dc:creator>markledford</dc:creator>
				<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://www.markledford.com/blog/?p=59</guid>
		<description><![CDATA[In the Adobe LiveDocs it states:

menu- Possible values: true, false.

true: isplays the full menu, allowing the user a variety of options to enhance or control playback.
false: displays a menu that contains only the Settings option and the About Flash option.



Naturally not wanting the clutter in my context menus I had menu set to false in [...]]]></description>
			<content:encoded><![CDATA[<p>In the Adobe LiveDocs it states:</p>
<ul>
<li>menu- Possible values: true, false.
<ul>
<li>true: isplays the full menu, allowing the user a variety of options to enhance or control playback.</li>
<li>false: displays a menu that contains only the Settings option and the About Flash option.</li>
</ul>
</li>
</ul>
<p>Naturally not wanting the clutter in my context menus I had menu set to false in its embed code. Today I noticed new Context Menu support I had added to my app was not showing up in Flash 9 Player though it <em>was</em> appearing in Flash 10. Apparently setting this option to false will also keep the ContextMenuEvent.MENU_SELECT option from being dispatched in Flash Player 9 :-x</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markledford.com/blog/2009/03/11/embed-parameter-menu-false-and-contextmenueventmenu_select/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS3 htmlDecode htmlEncode xml hack</title>
		<link>http://www.markledford.com/blog/2009/02/25/as3-htmldecode-htmlencode-xml-hack/</link>
		<comments>http://www.markledford.com/blog/2009/02/25/as3-htmldecode-htmlencode-xml-hack/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 00:02:44 +0000</pubDate>
		<dc:creator>markledford</dc:creator>
				<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://www.markledford.com/blog/?p=54</guid>
		<description><![CDATA[You&#8217;d think there would be a straight forward way to htmlEncode and htmlDecode strings in flash but there doesn&#8217;t seam to be any sort of built-in utility class that supports this. Oddly enough there isn&#8217;t one in Javascript either. Like this Javascript hack, here is a handy hack to pimp AS3&#8217;s native XML object instance [...]]]></description>
			<content:encoded><![CDATA[<p>You&#8217;d think there would be a straight forward way to htmlEncode and htmlDecode strings in flash but there doesn&#8217;t seam to be any sort of built-in utility class that supports this. Oddly enough there isn&#8217;t one in Javascript either. Like <a href="http://lunarmedia.com/blogs/lunarmedia_blog/archive/2006/10/23/120405.aspx" target="_blank">this</a> Javascript hack, <a href="http://www.razorberry.com/blog/archives/2007/11/02/converting-html-entities-in-as3/" target="_blank">here</a> is a handy hack to pimp AS3&#8217;s native XML object instance to do the htmlEncoding/decoding for you.</p>
<p>Unfortunately this doesn&#8217;t work for  many encoded characters like &#8220;&amp;iacute;&#8221;, &#8220;&amp;oacute;&#8221;,  &#8220;&amp;aacute;&#8221;, and &#8220;&amp;ntilde;&#8221;. It seams the best route to robust html html encoding/decoding is to roll your own utility function like <a href="http://www.cnblogs.com/laudy/articles/1186810.html" target="_blank">this</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.markledford.com/blog/2009/02/25/as3-htmldecode-htmlencode-xml-hack/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
