<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="0.92">
<channel>
	<title>TroyWorks</title>
	<link>http://troyworks.com/blog</link>
	<description>RIA, Flash, Actionscript ramblings.</description>
	<lastBuildDate>Sat, 23 Aug 2008 10:03:12 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Flash: Some characters could not be converted to outlines&#8230;</title>
		<description><![CDATA[Wierd, ran into this trying to track down another problem with Flash.  I reinstalled from the Web Premium DVD  just Flash CS3, which took like 45 minutes (WTF?!), booting up flash, opened a file tried publishing and got that error...and none of the fonts (just myriad pro) showed up anymore.
Restarting the machine fixed it.
]]></description>
		<link>http://troyworks.com/blog/2008/08/23/flash-some-characters-could-not-be-converted-to-outlines/</link>
			</item>
	<item>
		<title>Flash: 4 XML and TextField tips</title>
		<description><![CDATA[Tip1:

Which converting back and forth between XML and Objects (e.g parsing), you can't use E4X like primitives e.g.

if(xml.@someAttribute != null) //won't work

Use

if(xml.hasOwnProperty("@someAttribute"){

instead.
Tip2:
Similar when comparing XML nodes you should probably convert it to a string first e.g.

switch(xml.@name.toString()) {
case "config":....

Tip3:
When dealing with TextFields and you to embed text into the fla, but want to scroll a textfield, [...]]]></description>
		<link>http://troyworks.com/blog/2008/08/14/flash-4-xml-and-textfield-tips/</link>
			</item>
	<item>
		<title>Flash:Flickering Animation, dissapearing animation =&gt; corrupted symbol</title>
		<description><![CDATA[This is something I've hit a few times across several projects.  At some unknown event, animated movie clips will start flickering, like if you have a character the head will start to dissapear on or off.  Once one clip is broken, EVERY animation across the Fla will have flickering issues.  Like simple tweens will show [...]]]></description>
		<link>http://troyworks.com/blog/2008/08/06/flashflickering-animation-dissapearing-animation-corrupted-symbol/</link>
			</item>
	<item>
		<title>Flash: Centering and Scaling</title>
		<description><![CDATA[Been working on some fluid layout and centering projects.  For reference:

stage.width + stage.height - the size of the content on the stage.
stage.stageWidth + stage.stageHeight - that dimensions of the monitor the flash player is currently consuming
loaderInfo.width  + loaderInfo.height   - that of the Fla's publish settings

Got the 2nd and 3rd confused, so [...]]]></description>
		<link>http://troyworks.com/blog/2008/08/05/flash-centering-and-scaling/</link>
			</item>
	<item>
		<title>Flash: Beware the Garbage Collector</title>
		<description><![CDATA[Of all the major changes in AS3, this has been the most problematic....things hanging out off the display list, unreachable.  I discovered a new way to get these "voices from the grave" to happen this eve.
We are instantiating new MovieClip classes for the stage via



&#160;


&#160; &#160; &#160;MovieClipClassReference = getDefinitionByName&#40;styleMC&#41; as Class;


&#160; &#160; &#160;try&#123;


&#160; &#160; [...]]]></description>
		<link>http://troyworks.com/blog/2008/08/03/flash-beware-the-garbage-collector/</link>
			</item>
	<item>
		<title>Flash: Actionscript 3.0 ReferenceError: Error #1056 Cannot create property</title>
		<description><![CDATA[Also discovered here  Quote:
In Flash CS3, when you have instances (Movieclips) on the main timeline (Stage) with instance name on them and “Automatically declare stage instances” is off (File-&#62;Publish Setting-&#62;Flash-&#62;Actionscript 3.0 setting), You will need to declare properties for the document class with the same instance names or else you will get the error [...]]]></description>
		<link>http://troyworks.com/blog/2008/08/01/flash-actionscript-30-referenceerror-error-1056-cannot-create-property/</link>
			</item>
	<item>
		<title>Flash: Full window flash, and when minimum size scrollbars with SwfObject 2.0&#8217;s Dynamic Publishing</title>
		<description><![CDATA[ In the post "Elastic flash with scrollbars" a nice javascript library is presented to scale full window flash when the browser hits a certain. point.   Worked great with SWFObject 1.0, but didn't work with SWFObject 2.0 and dynamic publishing without a tweak.
Here's the Javascript I'm using:



&#160;


&#160; &#160; &#160; &#160; &#160; &#160; &#160; [...]]]></description>
		<link>http://troyworks.com/blog/2008/07/31/flash-full-window-flash-minimum-size-scrollbars-with-swfobject-20-and-dynamic-publishing/</link>
			</item>
	<item>
		<title>Flash: Tip to find Clips lost in the library</title>
		<description><![CDATA[If you have deeply nested folders in the library and/or drag things in from other Fla's you might not be able to find where they are.  One tip is to find it, or  drag it to stage from the other Fla and right click 'swap symbol' it will pop open the library viewer where it's [...]]]></description>
		<link>http://troyworks.com/blog/2008/07/30/flash-tip-to-find-clips-lost-in-the-library/</link>
			</item>
	<item>
		<title>Flash: “Error initializing Java Runtime Environment - You may need to reinstall Flash.”</title>
		<description><![CDATA[I've been trying to create a swf with about 100MB of uncompressed jpegs in it.  Not surprisingly Flash opening it up expands to a whopping 1.5GB of ram, and then complains it ran out of memory during publishing it (even though the machine has 3GB of ram..), just prior to that it gives that error.
http://blog.tukker.org/2008/05/23/flash-cs3-error-initalizing-java-runtime-environment/
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&#38;catid=612&#38;threadid=1184131&#38;messageid=4278084
This [...]]]></description>
		<link>http://troyworks.com/blog/2008/07/29/flash-%e2%80%9cerror-initializing-java-runtime-environment-you-may-need-to-reinstall-flash%e2%80%9d/</link>
			</item>
	<item>
		<title>Flash: Error #1009: Cannot access a property or method of a null object reference.</title>
		<description><![CDATA[Here's another needle, in the heap and stack.
If you have an array and you trace it out like so:

var ary:Array = [1,2,3]
trace(ary);// outputs 1,2,3

Behind the scenes, each element in the collection has it's  toString() function before returning the single string.    This is fine and good.  However, if there is an [...]]]></description>
		<link>http://troyworks.com/blog/2008/07/28/flash-error-1009-cannot-access-a-property-or-method-of-a-null-object-reference/</link>
			</item>
</channel>
</rss>


