<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: scale9Grid &#8211; When it works and when it does not</title>
	<atom:link href="http://www.ovidiudiac.ro/blog/2009/05/scale9grid-work-and-fail/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ovidiudiac.ro/blog/2009/05/scale9grid-work-and-fail/</link>
	<description>Ovidiu Diac's Blog</description>
	<lastBuildDate>Sat, 30 Jul 2011 09:27:04 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: admin</title>
		<link>http://www.ovidiudiac.ro/blog/2009/05/scale9grid-work-and-fail/comment-page-1/#comment-694</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Tue, 03 Aug 2010 22:16:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.ovidiudiac.ro/blog/?p=301#comment-694</guid>
		<description>You are right about one thing: the vector drawings drawn in the editor are not stored in the graphics object that you can manipulate with as. That&#039;s just to keep the graphics &quot;safe&quot;. But you can still apply successfully scale9Grid in code to a movieclip created and draw in IDE, as long as you follow the guidelines: make sure all drawing is directly inside the movieclip and not inside any other child, the movieclip shouldn&#039;t contain children (or if contains be even more careful and still apply scale9Grid to only the graphics object, the children won&#039;t be affected by the scale9Grid setting on their parent)..
The movieclip will even resize correctly if you put drawings on more keyframes. - in the zip file, check scale9GridEx1 for example

You can also apply successfully scale9Grid to loaded content (actually this is how Flex is setting scale9Grid to skins created in flash), but you must make sure to not apply scale9Grid to the Loader object but rather to the actual content, and make sure the graphics are actually drawn on the stage of the loaded swf, and not in any other symbol that is placed on the stage (or you can draw in other symbols but you then have to apply scale9Grid to those) - in the zip file, check scale9GridEx2 for how the swf is loaded and applied scale9Grid, and check scale9GridLoading to see how the loading swf is drawn - very simple actually

&lt;a href=&quot;http://ovidiudiac.ro/scale9GridEx.zip&quot; rel=&quot;nofollow&quot;&gt;scale9GridEx.zip&lt;/a&gt; - You will need Flash CS4 or newer to be able to open the fla files</description>
		<content:encoded><![CDATA[<p>You are right about one thing: the vector drawings drawn in the editor are not stored in the graphics object that you can manipulate with as. That&#8217;s just to keep the graphics &#8220;safe&#8221;. But you can still apply successfully scale9Grid in code to a movieclip created and draw in IDE, as long as you follow the guidelines: make sure all drawing is directly inside the movieclip and not inside any other child, the movieclip shouldn&#8217;t contain children (or if contains be even more careful and still apply scale9Grid to only the graphics object, the children won&#8217;t be affected by the scale9Grid setting on their parent)..<br />
The movieclip will even resize correctly if you put drawings on more keyframes. &#8211; in the zip file, check scale9GridEx1 for example</p>
<p>You can also apply successfully scale9Grid to loaded content (actually this is how Flex is setting scale9Grid to skins created in flash), but you must make sure to not apply scale9Grid to the Loader object but rather to the actual content, and make sure the graphics are actually drawn on the stage of the loaded swf, and not in any other symbol that is placed on the stage (or you can draw in other symbols but you then have to apply scale9Grid to those) &#8211; in the zip file, check scale9GridEx2 for how the swf is loaded and applied scale9Grid, and check scale9GridLoading to see how the loading swf is drawn &#8211; very simple actually</p>
<p><a href="http://ovidiudiac.ro/scale9GridEx.zip" rel="nofollow">scale9GridEx.zip</a> &#8211; You will need Flash CS4 or newer to be able to open the fla files</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shmimpie</title>
		<link>http://www.ovidiudiac.ro/blog/2009/05/scale9grid-work-and-fail/comment-page-1/#comment-693</link>
		<dc:creator>shmimpie</dc:creator>
		<pubDate>Tue, 03 Aug 2010 18:24:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.ovidiudiac.ro/blog/?p=301#comment-693</guid>
		<description>I&#039;ll another failure point that might not be obvious and isn&#039;t really documented (at least I couldn&#039;t find it...)

Let&#039;s say you want to use actionscript to apply scale9Grid to a loaded swf that has vector art on the timeline. Seems like a sensible use case.... It won&#039;t work! Vector drawings are not drawn into graphics instances. For AS scale9Grid to work, it needs to be operating on a movieclip with a non-empty graphics instance that is larger than the applied rectangle.

So, you think, maybe I&#039;ll get cute and draw into a graphics instance in the loaded swf. That won&#039;t work either. As soon as you include both your vector art and code drawing, scale9Grid will barf. Basically, AS scale9Grid, as opposed to the library variety, can&#039;t be applied to a movieclip that contains vector drawings on the timeline.

For me, this makes the feature almost useless. If I can&#039;t easily apply it to a loaded swf, well...

Anyway, giving up. Thanks again for supplying some useful information. The Adobe docs mention none of these limitations. They should go into detail on them, but alas...</description>
		<content:encoded><![CDATA[<p>I&#8217;ll another failure point that might not be obvious and isn&#8217;t really documented (at least I couldn&#8217;t find it&#8230;)</p>
<p>Let&#8217;s say you want to use actionscript to apply scale9Grid to a loaded swf that has vector art on the timeline. Seems like a sensible use case&#8230;. It won&#8217;t work! Vector drawings are not drawn into graphics instances. For AS scale9Grid to work, it needs to be operating on a movieclip with a non-empty graphics instance that is larger than the applied rectangle.</p>
<p>So, you think, maybe I&#8217;ll get cute and draw into a graphics instance in the loaded swf. That won&#8217;t work either. As soon as you include both your vector art and code drawing, scale9Grid will barf. Basically, AS scale9Grid, as opposed to the library variety, can&#8217;t be applied to a movieclip that contains vector drawings on the timeline.</p>
<p>For me, this makes the feature almost useless. If I can&#8217;t easily apply it to a loaded swf, well&#8230;</p>
<p>Anyway, giving up. Thanks again for supplying some useful information. The Adobe docs mention none of these limitations. They should go into detail on them, but alas&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shmimpie</title>
		<link>http://www.ovidiudiac.ro/blog/2009/05/scale9grid-work-and-fail/comment-page-1/#comment-692</link>
		<dc:creator>shmimpie</dc:creator>
		<pubDate>Mon, 02 Aug 2010 23:58:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.ovidiudiac.ro/blog/?p=301#comment-692</guid>
		<description>Well, congratulations!  This is the only useful information on this (non) feature anywhere! The Adobe examples and documentation are horrendous.

Thank you!</description>
		<content:encoded><![CDATA[<p>Well, congratulations!  This is the only useful information on this (non) feature anywhere! The Adobe examples and documentation are horrendous.</p>
<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: UncleNinja</title>
		<link>http://www.ovidiudiac.ro/blog/2009/05/scale9grid-work-and-fail/comment-page-1/#comment-684</link>
		<dc:creator>UncleNinja</dc:creator>
		<pubDate>Wed, 12 May 2010 17:33:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.ovidiudiac.ro/blog/?p=301#comment-684</guid>
		<description>Holy crap!
This is awesome, Ovidiu! Thanks, man!</description>
		<content:encoded><![CDATA[<p>Holy crap!<br />
This is awesome, Ovidiu! Thanks, man!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ahmed Nuaman</title>
		<link>http://www.ovidiudiac.ro/blog/2009/05/scale9grid-work-and-fail/comment-page-1/#comment-578</link>
		<dc:creator>Ahmed Nuaman</dc:creator>
		<pubDate>Fri, 26 Jun 2009 14:05:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.ovidiudiac.ro/blog/?p=301#comment-578</guid>
		<description>Good write up, it inspired me to write a class that will scale anything, check it out and tell me what you think: http://ahmednuaman.com/blog/2009/06/26/scale-any-displayobject-with-my-scaleobject-class/</description>
		<content:encoded><![CDATA[<p>Good write up, it inspired me to write a class that will scale anything, check it out and tell me what you think: <a href="http://ahmednuaman.com/blog/2009/06/26/scale-any-displayobject-with-my-scaleobject-class/" rel="nofollow">http://ahmednuaman.com/blog/2009/06/26/scale-any-displayobject-with-my-scaleobject-class/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ahmed Nuaman &#8212; Freelance Designer and Developer &#8212; Blog &#8212; Scale Any DisplayObject with My &#8216;ScaleObject&#8217; Class</title>
		<link>http://www.ovidiudiac.ro/blog/2009/05/scale9grid-work-and-fail/comment-page-1/#comment-577</link>
		<dc:creator>Ahmed Nuaman &#8212; Freelance Designer and Developer &#8212; Blog &#8212; Scale Any DisplayObject with My &#8216;ScaleObject&#8217; Class</dc:creator>
		<pubDate>Fri, 26 Jun 2009 14:04:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.ovidiudiac.ro/blog/?p=301#comment-577</guid>
		<description>[...] Here&#8217;s a nice run down of when it works and when it doesn&#8217;t work: http://www.ovidiudiac.ro/blog/2009/05/scale9grid-work-and-fail/ [...]</description>
		<content:encoded><![CDATA[<p>[...] Here&#8217;s a nice run down of when it works and when it doesn&#8217;t work: <a href="http://www.ovidiudiac.ro/blog/2009/05/scale9grid-work-and-fail/" rel="nofollow">http://www.ovidiudiac.ro/blog/2009/05/scale9grid-work-and-fail/</a> [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
