<?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> &#187; GamesChart</title>
	<atom:link href="http://blog.vortixgames.com/tag/gameschart/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.vortixgames.com</link>
	<description></description>
	<lastBuildDate>Sun, 05 Feb 2012 00:55:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>GamesChart and the Mochi Version Control</title>
		<link>http://blog.vortixgames.com/gameschart-and-the-mochi-version-control</link>
		<comments>http://blog.vortixgames.com/gameschart-and-the-mochi-version-control#comments</comments>
		<pubDate>Wed, 31 Mar 2010 11:07:50 +0000</pubDate>
		<dc:creator>Vlad</dc:creator>
				<category><![CDATA[Caught our Attention]]></category>
		<category><![CDATA[FlashGameBlogs]]></category>
		<category><![CDATA[GamesChart]]></category>

		<guid isPermaLink="false">http://blog.vortixgames.com/?p=862</guid>
		<description><![CDATA[Some days ago GamesChart Barry White brought to my attention a problem with Mochi&#8217;s version control system but there was a bit of a mystery around it since it only affected one of the possible implementations of GamesChart API: if it was implemented with the drag-and-drop component, it would not work, if it was added to a [...]]]></description>
			<content:encoded><![CDATA[<p>Some days ago <a href="http://gameschart.com/" target="_blank">GamesChart</a> Barry White brought to my attention a problem with Mochi&#8217;s version control system but there was a bit of a mystery around it since it only affected one of the possible implementations of GamesChart API: if it was implemented with the drag-and-drop component, it would not work, if it was added to a Flex project, it would.</p>
<p>Mochi&#8217;s Version Control works as a wrapper, which usually brings some issues related to accessing the stage property. I concluded that dragging and dropping the component to the stage was for sure the problem but couldn&#8217;t find a workaround to it. Has far as I could have thought, I couldn&#8217;t call the component the same way I did with a Flex SDK project.</p>
<p>Barry then showed me a work around that is just amazing for its simplicity. Robert Köhler (check his games <a href=" http://www.gameshot.org/freewebsitecontent.php" target="_blank">here</a>) didn&#8217;t drag the component to the stage but rather exported it as a class. In the timeline he wrote the setup code and it worked.</p>
<p>After a chat with Barry and Robert, it was obvious that it was the immediate access to the stage that created the problem with Mochi&#8217;s Version Control. With the Flex SDK implementation, the setup is made AFTER the stage is ready.</p>
<p>To make things simple for everyone, <a href="http://www.vortixgames.com/downloads/GamesChartWorkaround.rar" target="_blank">here&#8217;s a CS3 FLA</a> showing how to do it, but the rule of thumb to use GamesChart with Flash IDE and Mochi&#8217;s Version Control is: don&#8217;t drag the component to the stage, call the setup method from the timeline or your code as long as you check if the stage is available.</p>
<p>All credit goes to Robert! We are just spreading the word. <img src='http://blog.vortixgames.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.vortixgames.com/gameschart-and-the-mochi-version-control/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

