<?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>Slegg.net - Game Development, Rapid prototyping, Mobile Android and iOS, ShiVa &#187; PushButton Engine</title>
	<atom:link href="http://www.slegg.net/category/push-button-engine/feed" rel="self" type="application/rss+xml" />
	<link>http://www.slegg.net</link>
	<description>About game development and other stuff...</description>
	<lastBuildDate>Sun, 29 May 2011 20:35:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Level Master 2000 is live@google code!</title>
		<link>http://www.slegg.net/level-master-2000-is-livegoogle-code</link>
		<comments>http://www.slegg.net/level-master-2000-is-livegoogle-code#comments</comments>
		<pubDate>Mon, 23 Aug 2010 21:21:52 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Game Development]]></category>
		<category><![CDATA[Level Master 2000]]></category>
		<category><![CDATA[PushButton Engine]]></category>
		<category><![CDATA[Rapid Prototyping in Game Development]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Broken Rules]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[FlashDevelop]]></category>
		<category><![CDATA[Qt]]></category>
		<category><![CDATA[Rapid Prototyping]]></category>
		<category><![CDATA[Thesis]]></category>

		<guid isPermaLink="false">http://blog.scrambled-egg.net/?p=645</guid>
		<description><![CDATA[Today I prepared the initial launch of Level Master 2000 at google code: http://code.google.com/p/levelmaster2000/. There are still a lot of features missing, as the project page states: August 24th, 2010. Commited as is. Consider this more a preview/announcement rather than a real release. A major restructuring will occur within the next months, but anyway &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.scrambled-egg.net/wp-content/uploads/2010/08/logo2.png"><img class="size-full wp-image-646" title="levelmaster2000_logo" src="http://blog.scrambled-egg.net/wp-content/uploads/2010/08/logo2.png" alt="Level Master 2000: Logo" width="624" height="145" /></a></p>
<div id="attachment_649" class="wp-caption aligncenter" style="width: 515px"><a href="http://blog.scrambled-egg.net/wp-content/uploads/2010/08/screenshot0001.png"><img class="size-large wp-image-649" title="LevelMaster2000_screenshot0001" src="http://blog.scrambled-egg.net/wp-content/uploads/2010/08/screenshot0001-1024x624.png" alt="Level Master 2000: screenshot0001" width="505" height="307" /></a><p class="wp-caption-text">Level Master 2000: screenshot0001</p></div>
<p>Today I prepared the initial launch of Level Master 2000 at google code: <a title="Level Master 2000 Google Code page" href="http://code.google.com/p/levelmaster2000/">http://code.google.com/p/levelmaster2000/</a>. There are still a lot of features missing, as the project page states:</p>
<blockquote><p>August 24th, 2010. Commited as is. Consider this more a preview/announcement rather than a real release. A major restructuring will occur within the next months, but anyway &#8211; here it is! </p></blockquote>
<p>Nevertheless, it&#8217;s a good feeling finally having it on air and getting some feedback!</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Level+Master+2000+is+live%40google+code%21&amp;link=http://www.slegg.net/level-master-2000-is-livegoogle-code&amp;notes=%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AToday%20I%20prepared%20the%20initial%20launch%20of%20Level%20Master%202000%20at%20google%20code%3A%20http%3A%2F%2Fcode.google.com%2Fp%2Flevelmaster2000%2F.%20There%20are%20still%20a%20lot%20of%20features%20missing%2C%20as%20the%20project%20page%20states%3A%0D%0AAugust%2024th%2C%202010.%20Commited%20as%20is.%20Consider%20this%20more%20a%20preview%2Fannouncement%20rather%20than%20a%20real%20releas&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Level+Master+2000+is+live%40google+code%21&amp;link=http://www.slegg.net/level-master-2000-is-livegoogle-code&amp;notes=%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AToday%20I%20prepared%20the%20initial%20launch%20of%20Level%20Master%202000%20at%20google%20code%3A%20http%3A%2F%2Fcode.google.com%2Fp%2Flevelmaster2000%2F.%20There%20are%20still%20a%20lot%20of%20features%20missing%2C%20as%20the%20project%20page%20states%3A%0D%0AAugust%2024th%2C%202010.%20Commited%20as%20is.%20Consider%20this%20more%20a%20preview%2Fannouncement%20rather%20than%20a%20real%20releas&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=Level+Master+2000+is+live%40google+code%21&amp;link=http://www.slegg.net/level-master-2000-is-livegoogle-code&amp;notes=%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AToday%20I%20prepared%20the%20initial%20launch%20of%20Level%20Master%202000%20at%20google%20code%3A%20http%3A%2F%2Fcode.google.com%2Fp%2Flevelmaster2000%2F.%20There%20are%20still%20a%20lot%20of%20features%20missing%2C%20as%20the%20project%20page%20states%3A%0D%0AAugust%2024th%2C%202010.%20Commited%20as%20is.%20Consider%20this%20more%20a%20preview%2Fannouncement%20rather%20than%20a%20real%20releas&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Level+Master+2000+is+live%40google+code%21&amp;link=http://www.slegg.net/level-master-2000-is-livegoogle-code&amp;notes=%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AToday%20I%20prepared%20the%20initial%20launch%20of%20Level%20Master%202000%20at%20google%20code%3A%20http%3A%2F%2Fcode.google.com%2Fp%2Flevelmaster2000%2F.%20There%20are%20still%20a%20lot%20of%20features%20missing%2C%20as%20the%20project%20page%20states%3A%0D%0AAugust%2024th%2C%202010.%20Commited%20as%20is.%20Consider%20this%20more%20a%20preview%2Fannouncement%20rather%20than%20a%20real%20releas&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=Level+Master+2000+is+live%40google+code%21&amp;link=http://www.slegg.net/level-master-2000-is-livegoogle-code&amp;notes=%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AToday%20I%20prepared%20the%20initial%20launch%20of%20Level%20Master%202000%20at%20google%20code%3A%20http%3A%2F%2Fcode.google.com%2Fp%2Flevelmaster2000%2F.%20There%20are%20still%20a%20lot%20of%20features%20missing%2C%20as%20the%20project%20page%20states%3A%0D%0AAugust%2024th%2C%202010.%20Commited%20as%20is.%20Consider%20this%20more%20a%20preview%2Fannouncement%20rather%20than%20a%20real%20releas&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=88&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Level+Master+2000+is+live%40google+code%21&amp;link=http://www.slegg.net/level-master-2000-is-livegoogle-code&amp;notes=%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AToday%20I%20prepared%20the%20initial%20launch%20of%20Level%20Master%202000%20at%20google%20code%3A%20http%3A%2F%2Fcode.google.com%2Fp%2Flevelmaster2000%2F.%20There%20are%20still%20a%20lot%20of%20features%20missing%2C%20as%20the%20project%20page%20states%3A%0D%0AAugust%2024th%2C%202010.%20Commited%20as%20is.%20Consider%20this%20more%20a%20preview%2Fannouncement%20rather%20than%20a%20real%20releas&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.shareaholic.com/api/share/?title=Level+Master+2000+is+live%40google+code%21&amp;link=http://www.slegg.net/level-master-2000-is-livegoogle-code&amp;notes=%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AToday%20I%20prepared%20the%20initial%20launch%20of%20Level%20Master%202000%20at%20google%20code%3A%20http%3A%2F%2Fcode.google.com%2Fp%2Flevelmaster2000%2F.%20There%20are%20still%20a%20lot%20of%20features%20missing%2C%20as%20the%20project%20page%20states%3A%0D%0AAugust%2024th%2C%202010.%20Commited%20as%20is.%20Consider%20this%20more%20a%20preview%2Fannouncement%20rather%20than%20a%20real%20releas&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=6&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Level+Master+2000+is+live%40google+code%21&amp;link=http://www.slegg.net/level-master-2000-is-livegoogle-code&amp;notes=%0D%0A%0D%0A%0D%0A%0D%0A%0D%0AToday%20I%20prepared%20the%20initial%20launch%20of%20Level%20Master%202000%20at%20google%20code%3A%20http%3A%2F%2Fcode.google.com%2Fp%2Flevelmaster2000%2F.%20There%20are%20still%20a%20lot%20of%20features%20missing%2C%20as%20the%20project%20page%20states%3A%0D%0AAugust%2024th%2C%202010.%20Commited%20as%20is.%20Consider%20this%20more%20a%20preview%2Fannouncement%20rather%20than%20a%20real%20releas&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
</ul><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.slegg.net/level-master-2000-is-livegoogle-code/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Level Master 2000: OSX test succeeded!</title>
		<link>http://www.slegg.net/level-master-2000-osx-test-succeeded</link>
		<comments>http://www.slegg.net/level-master-2000-osx-test-succeeded#comments</comments>
		<pubDate>Sun, 15 Aug 2010 12:15:09 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Level Master 2000]]></category>
		<category><![CDATA[PushButton Engine]]></category>
		<category><![CDATA[Rapid Prototyping in Game Development]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Qt]]></category>
		<category><![CDATA[Rapid Prototyping]]></category>
		<category><![CDATA[Thesis]]></category>

		<guid isPermaLink="false">http://blog.scrambled-egg.net/?p=626</guid>
		<description><![CDATA[Since I use Qt and Qt Creator, I thought: &#8220;why not try a OS X build?&#8221;. I didn&#8217;t plan to invest much time in it, as time is rare, but I was simply too curious to resist. So I installed Qt SDK and Qt Creator on a Mac, opened up the Level Master 2000-project and&#8230;. [...]]]></description>
			<content:encoded><![CDATA[<p>Since I use Qt and Qt Creator, I thought: &#8220;why not try a OS X build?&#8221;. I didn&#8217;t plan to invest much time in it, as time is rare, but I was simply too curious to resist. So I installed Qt SDK and Qt Creator on a Mac, opened up the Level Master 2000-project and&#8230;. CRASH =)<br />
Qt Creator reported, that some files couldn&#8217;t be found, but when clicking on the include statement in code, the path seemed to be correct, as I could open the header file with F2.<br />
So here&#8217;s what fixed it:</p>
<ol>
<li>Clean all targets</li>
<li>Regenerate the qMake file via Qt Creator</li>
<li>Rebuild the project</li>
<li>Install the latest Flashplayer and add the app/AS3/bin directory to Flash Player&#8217;s local trusted</li>
</ol>
<p>That was it! See for yourself:</p>
<div id="attachment_628" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.scrambled-egg.net/wp-content/uploads/2010/08/lm2k_osx.jpg"><img class="size-medium wp-image-628" title="lm2k_osx" src="http://blog.scrambled-egg.net/wp-content/uploads/2010/08/lm2k_osx-300x225.jpg" alt="Level Master 2000: running on OS X" width="300" height="225" /></a><p class="wp-caption-text">Level Master 2000: running on OS X</p></div>
<p>The GUI needs a bit work though (e.g. the &#8220;delete entity&#8221; button), but all in all I&#8217;m really impressed how easy this was. </p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Level+Master+2000%3A+OSX+test+succeeded%21&amp;link=http://www.slegg.net/level-master-2000-osx-test-succeeded&amp;notes=Since%20I%20use%20Qt%20and%20Qt%20Creator%2C%20I%20thought%3A%20%22why%20not%20try%20a%20OS%20X%20build%3F%22.%20I%20didn%27t%20plan%20to%20invest%20much%20time%20in%20it%2C%20as%20time%20is%20rare%2C%20but%20I%20was%20simply%20too%20curious%20to%20resist.%20So%20I%20installed%20Qt%20SDK%20and%20Qt%20Creator%20on%20a%20Mac%2C%20opened%20up%20the%20Level%20Master%202000-project%20and....%20CRASH%20%3D%29%20%0D%0AQt%20Creator%20reported%2C%20that&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Level+Master+2000%3A+OSX+test+succeeded%21&amp;link=http://www.slegg.net/level-master-2000-osx-test-succeeded&amp;notes=Since%20I%20use%20Qt%20and%20Qt%20Creator%2C%20I%20thought%3A%20%22why%20not%20try%20a%20OS%20X%20build%3F%22.%20I%20didn%27t%20plan%20to%20invest%20much%20time%20in%20it%2C%20as%20time%20is%20rare%2C%20but%20I%20was%20simply%20too%20curious%20to%20resist.%20So%20I%20installed%20Qt%20SDK%20and%20Qt%20Creator%20on%20a%20Mac%2C%20opened%20up%20the%20Level%20Master%202000-project%20and....%20CRASH%20%3D%29%20%0D%0AQt%20Creator%20reported%2C%20that&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=Level+Master+2000%3A+OSX+test+succeeded%21&amp;link=http://www.slegg.net/level-master-2000-osx-test-succeeded&amp;notes=Since%20I%20use%20Qt%20and%20Qt%20Creator%2C%20I%20thought%3A%20%22why%20not%20try%20a%20OS%20X%20build%3F%22.%20I%20didn%27t%20plan%20to%20invest%20much%20time%20in%20it%2C%20as%20time%20is%20rare%2C%20but%20I%20was%20simply%20too%20curious%20to%20resist.%20So%20I%20installed%20Qt%20SDK%20and%20Qt%20Creator%20on%20a%20Mac%2C%20opened%20up%20the%20Level%20Master%202000-project%20and....%20CRASH%20%3D%29%20%0D%0AQt%20Creator%20reported%2C%20that&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Level+Master+2000%3A+OSX+test+succeeded%21&amp;link=http://www.slegg.net/level-master-2000-osx-test-succeeded&amp;notes=Since%20I%20use%20Qt%20and%20Qt%20Creator%2C%20I%20thought%3A%20%22why%20not%20try%20a%20OS%20X%20build%3F%22.%20I%20didn%27t%20plan%20to%20invest%20much%20time%20in%20it%2C%20as%20time%20is%20rare%2C%20but%20I%20was%20simply%20too%20curious%20to%20resist.%20So%20I%20installed%20Qt%20SDK%20and%20Qt%20Creator%20on%20a%20Mac%2C%20opened%20up%20the%20Level%20Master%202000-project%20and....%20CRASH%20%3D%29%20%0D%0AQt%20Creator%20reported%2C%20that&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=Level+Master+2000%3A+OSX+test+succeeded%21&amp;link=http://www.slegg.net/level-master-2000-osx-test-succeeded&amp;notes=Since%20I%20use%20Qt%20and%20Qt%20Creator%2C%20I%20thought%3A%20%22why%20not%20try%20a%20OS%20X%20build%3F%22.%20I%20didn%27t%20plan%20to%20invest%20much%20time%20in%20it%2C%20as%20time%20is%20rare%2C%20but%20I%20was%20simply%20too%20curious%20to%20resist.%20So%20I%20installed%20Qt%20SDK%20and%20Qt%20Creator%20on%20a%20Mac%2C%20opened%20up%20the%20Level%20Master%202000-project%20and....%20CRASH%20%3D%29%20%0D%0AQt%20Creator%20reported%2C%20that&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=88&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Level+Master+2000%3A+OSX+test+succeeded%21&amp;link=http://www.slegg.net/level-master-2000-osx-test-succeeded&amp;notes=Since%20I%20use%20Qt%20and%20Qt%20Creator%2C%20I%20thought%3A%20%22why%20not%20try%20a%20OS%20X%20build%3F%22.%20I%20didn%27t%20plan%20to%20invest%20much%20time%20in%20it%2C%20as%20time%20is%20rare%2C%20but%20I%20was%20simply%20too%20curious%20to%20resist.%20So%20I%20installed%20Qt%20SDK%20and%20Qt%20Creator%20on%20a%20Mac%2C%20opened%20up%20the%20Level%20Master%202000-project%20and....%20CRASH%20%3D%29%20%0D%0AQt%20Creator%20reported%2C%20that&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.shareaholic.com/api/share/?title=Level+Master+2000%3A+OSX+test+succeeded%21&amp;link=http://www.slegg.net/level-master-2000-osx-test-succeeded&amp;notes=Since%20I%20use%20Qt%20and%20Qt%20Creator%2C%20I%20thought%3A%20%22why%20not%20try%20a%20OS%20X%20build%3F%22.%20I%20didn%27t%20plan%20to%20invest%20much%20time%20in%20it%2C%20as%20time%20is%20rare%2C%20but%20I%20was%20simply%20too%20curious%20to%20resist.%20So%20I%20installed%20Qt%20SDK%20and%20Qt%20Creator%20on%20a%20Mac%2C%20opened%20up%20the%20Level%20Master%202000-project%20and....%20CRASH%20%3D%29%20%0D%0AQt%20Creator%20reported%2C%20that&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=6&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Level+Master+2000%3A+OSX+test+succeeded%21&amp;link=http://www.slegg.net/level-master-2000-osx-test-succeeded&amp;notes=Since%20I%20use%20Qt%20and%20Qt%20Creator%2C%20I%20thought%3A%20%22why%20not%20try%20a%20OS%20X%20build%3F%22.%20I%20didn%27t%20plan%20to%20invest%20much%20time%20in%20it%2C%20as%20time%20is%20rare%2C%20but%20I%20was%20simply%20too%20curious%20to%20resist.%20So%20I%20installed%20Qt%20SDK%20and%20Qt%20Creator%20on%20a%20Mac%2C%20opened%20up%20the%20Level%20Master%202000-project%20and....%20CRASH%20%3D%29%20%0D%0AQt%20Creator%20reported%2C%20that&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
</ul><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.slegg.net/level-master-2000-osx-test-succeeded/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using PushButton Engine with Flex4</title>
		<link>http://www.slegg.net/using-pushbutton-engine-with-flex4</link>
		<comments>http://www.slegg.net/using-pushbutton-engine-with-flex4#comments</comments>
		<pubDate>Sat, 15 May 2010 09:25:16 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Level Master 2000]]></category>
		<category><![CDATA[PushButton Engine]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[FlashDevelop]]></category>

		<guid isPermaLink="false">http://blog.scrambled-egg.net/?p=547</guid>
		<description><![CDATA[I recently upgraded to Flex4 SDK. Before that everything worked fine. After that, I had some compiler errors, and a quick research brought to me that I had to add -static-link-runtime-shared-libraries=true to the additional compiler options. Doing some more in depth research, I discovered that this isn&#8217;t neccessary with a newer version of FlashDevelop &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>I recently upgraded to Flex4 SDK. Before that everything worked fine. After that, I had some compiler errors, and a quick research brought to me that I had to add
<pre>-static-link-runtime-shared-libraries=true</pre>
<p> to the additional compiler options. Doing some more in depth research, I discovered that this isn&#8217;t neccessary with a newer version of FlashDevelop &#8211; and I can confirm: it&#8217;s true =)<br />
After the update procedure, everything compiled fine in debug mode. In release mode, it compiled too, but I got a runtime error: &#8220;VerifyError: Error #1024: Stack underflow occurred&#8221;. Again, investigating this error on the web, I stumbled over <a href="http://bugs.adobe.com/jira/browse/ASC-2266">http://bugs.adobe.com/jira/browse/ASC-2266</a>. The piece of code causing this, looked like so:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">conn = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">LocalConnection</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
conn.<span style="color: #006600;">client</span> = <span style="color: #0066CC;">this</span>;
conn.<span style="color: #0066CC;">allowDomain</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'*'</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0066CC;">try</span> <span style="color: #66cc66;">&#123;</span>
	conn.<span style="color: #0066CC;">connect</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;_SchemaConnection&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span> <span style="color: #0066CC;">catch</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">error</span>:ArgumentError<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Can't connect to _SchemaConnection&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>So as you can see, it&#8217;s not the same as in the link above. I started commenting out line by line, and then I discovered, that it was the trace call. Replacing it with a Logger call finally fixed the error:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">Logger.<span style="color: #0066CC;">print</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">this</span>, <span style="color: #ff0000;">&quot;Can't connect to _SchemaConnection&quot;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>I guess we&#8217;ll just put that on the unsolved mysteries stack <img src='http://blog.scrambled-egg.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Using+PushButton+Engine+with+Flex4&amp;link=http://www.slegg.net/using-pushbutton-engine-with-flex4&amp;notes=I%20recently%20upgraded%20to%20Flex4%20SDK.%20Before%20that%20everything%20worked%20fine.%20After%20that%2C%20I%20had%20some%20compiler%20errors%2C%20and%20a%20quick%20research%20brought%20to%20me%20that%20I%20had%20to%20add%20-static-link-runtime-shared-libraries%3Dtrue%20to%20the%20additional%20compiler%20options.%20Doing%20some%20more%20in%20depth%20research%2C%20I%20discovered%20that%20this%20&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Using+PushButton+Engine+with+Flex4&amp;link=http://www.slegg.net/using-pushbutton-engine-with-flex4&amp;notes=I%20recently%20upgraded%20to%20Flex4%20SDK.%20Before%20that%20everything%20worked%20fine.%20After%20that%2C%20I%20had%20some%20compiler%20errors%2C%20and%20a%20quick%20research%20brought%20to%20me%20that%20I%20had%20to%20add%20-static-link-runtime-shared-libraries%3Dtrue%20to%20the%20additional%20compiler%20options.%20Doing%20some%20more%20in%20depth%20research%2C%20I%20discovered%20that%20this%20&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=Using+PushButton+Engine+with+Flex4&amp;link=http://www.slegg.net/using-pushbutton-engine-with-flex4&amp;notes=I%20recently%20upgraded%20to%20Flex4%20SDK.%20Before%20that%20everything%20worked%20fine.%20After%20that%2C%20I%20had%20some%20compiler%20errors%2C%20and%20a%20quick%20research%20brought%20to%20me%20that%20I%20had%20to%20add%20-static-link-runtime-shared-libraries%3Dtrue%20to%20the%20additional%20compiler%20options.%20Doing%20some%20more%20in%20depth%20research%2C%20I%20discovered%20that%20this%20&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Using+PushButton+Engine+with+Flex4&amp;link=http://www.slegg.net/using-pushbutton-engine-with-flex4&amp;notes=I%20recently%20upgraded%20to%20Flex4%20SDK.%20Before%20that%20everything%20worked%20fine.%20After%20that%2C%20I%20had%20some%20compiler%20errors%2C%20and%20a%20quick%20research%20brought%20to%20me%20that%20I%20had%20to%20add%20-static-link-runtime-shared-libraries%3Dtrue%20to%20the%20additional%20compiler%20options.%20Doing%20some%20more%20in%20depth%20research%2C%20I%20discovered%20that%20this%20&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=Using+PushButton+Engine+with+Flex4&amp;link=http://www.slegg.net/using-pushbutton-engine-with-flex4&amp;notes=I%20recently%20upgraded%20to%20Flex4%20SDK.%20Before%20that%20everything%20worked%20fine.%20After%20that%2C%20I%20had%20some%20compiler%20errors%2C%20and%20a%20quick%20research%20brought%20to%20me%20that%20I%20had%20to%20add%20-static-link-runtime-shared-libraries%3Dtrue%20to%20the%20additional%20compiler%20options.%20Doing%20some%20more%20in%20depth%20research%2C%20I%20discovered%20that%20this%20&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=88&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Using+PushButton+Engine+with+Flex4&amp;link=http://www.slegg.net/using-pushbutton-engine-with-flex4&amp;notes=I%20recently%20upgraded%20to%20Flex4%20SDK.%20Before%20that%20everything%20worked%20fine.%20After%20that%2C%20I%20had%20some%20compiler%20errors%2C%20and%20a%20quick%20research%20brought%20to%20me%20that%20I%20had%20to%20add%20-static-link-runtime-shared-libraries%3Dtrue%20to%20the%20additional%20compiler%20options.%20Doing%20some%20more%20in%20depth%20research%2C%20I%20discovered%20that%20this%20&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.shareaholic.com/api/share/?title=Using+PushButton+Engine+with+Flex4&amp;link=http://www.slegg.net/using-pushbutton-engine-with-flex4&amp;notes=I%20recently%20upgraded%20to%20Flex4%20SDK.%20Before%20that%20everything%20worked%20fine.%20After%20that%2C%20I%20had%20some%20compiler%20errors%2C%20and%20a%20quick%20research%20brought%20to%20me%20that%20I%20had%20to%20add%20-static-link-runtime-shared-libraries%3Dtrue%20to%20the%20additional%20compiler%20options.%20Doing%20some%20more%20in%20depth%20research%2C%20I%20discovered%20that%20this%20&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=6&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Using+PushButton+Engine+with+Flex4&amp;link=http://www.slegg.net/using-pushbutton-engine-with-flex4&amp;notes=I%20recently%20upgraded%20to%20Flex4%20SDK.%20Before%20that%20everything%20worked%20fine.%20After%20that%2C%20I%20had%20some%20compiler%20errors%2C%20and%20a%20quick%20research%20brought%20to%20me%20that%20I%20had%20to%20add%20-static-link-runtime-shared-libraries%3Dtrue%20to%20the%20additional%20compiler%20options.%20Doing%20some%20more%20in%20depth%20research%2C%20I%20discovered%20that%20this%20&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
</ul><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.slegg.net/using-pushbutton-engine-with-flex4/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Configuring Notepad++ for pbelevel format</title>
		<link>http://www.slegg.net/configuring-notepad-for-pbelevel-format</link>
		<comments>http://www.slegg.net/configuring-notepad-for-pbelevel-format#comments</comments>
		<pubDate>Tue, 23 Mar 2010 09:21:30 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[PushButton Engine]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.scrambled-egg.net/blog/?p=439</guid>
		<description><![CDATA[I use Notepad++ for viewing my *.pbelevel files, and always had to do the extra clicking &#8220;Language >> XML&#8221; to configure it, to display the file with XML highlighting. I now found out, how one can configure Notepad++ to do this automatically: locate the langs.xml in your Notepad++ install directory and add the following line: [...]]]></description>
			<content:encoded><![CDATA[<p>I use Notepad++ for viewing my *.pbelevel files, and always had to do the extra clicking &#8220;Language >> XML&#8221; to configure it, to display the file with XML highlighting. I now found out, how one can configure Notepad++ to do this automatically: locate the langs.xml in your Notepad++ install directory and add the following line:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;Language</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;xml&quot;</span>  <span style="color: #000066;">ext</span>=<span style="color: #ff0000;">&quot;pbelevel&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/Language<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>And tada &#8211; you&#8217;re off to go!</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Configuring+Notepad%2B%2B+for+pbelevel+format&amp;link=http://www.slegg.net/configuring-notepad-for-pbelevel-format&amp;notes=I%20use%20Notepad%2B%2B%20for%20viewing%20my%20%2A.pbelevel%20files%2C%20and%20always%20had%20to%20do%20the%20extra%20clicking%20%22Language%20%3E%3E%20XML%22%20to%20configure%20it%2C%20to%20display%20the%20file%20with%20XML%20highlighting.%20I%20now%20found%20out%2C%20how%20one%20can%20configure%20Notepad%2B%2B%20to%20do%20this%20automatically%3A%20locate%20the%20langs.xml%20in%20your%20Notepad%2B%2B%20install%20directory%20a&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Configuring+Notepad%2B%2B+for+pbelevel+format&amp;link=http://www.slegg.net/configuring-notepad-for-pbelevel-format&amp;notes=I%20use%20Notepad%2B%2B%20for%20viewing%20my%20%2A.pbelevel%20files%2C%20and%20always%20had%20to%20do%20the%20extra%20clicking%20%22Language%20%3E%3E%20XML%22%20to%20configure%20it%2C%20to%20display%20the%20file%20with%20XML%20highlighting.%20I%20now%20found%20out%2C%20how%20one%20can%20configure%20Notepad%2B%2B%20to%20do%20this%20automatically%3A%20locate%20the%20langs.xml%20in%20your%20Notepad%2B%2B%20install%20directory%20a&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=Configuring+Notepad%2B%2B+for+pbelevel+format&amp;link=http://www.slegg.net/configuring-notepad-for-pbelevel-format&amp;notes=I%20use%20Notepad%2B%2B%20for%20viewing%20my%20%2A.pbelevel%20files%2C%20and%20always%20had%20to%20do%20the%20extra%20clicking%20%22Language%20%3E%3E%20XML%22%20to%20configure%20it%2C%20to%20display%20the%20file%20with%20XML%20highlighting.%20I%20now%20found%20out%2C%20how%20one%20can%20configure%20Notepad%2B%2B%20to%20do%20this%20automatically%3A%20locate%20the%20langs.xml%20in%20your%20Notepad%2B%2B%20install%20directory%20a&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Configuring+Notepad%2B%2B+for+pbelevel+format&amp;link=http://www.slegg.net/configuring-notepad-for-pbelevel-format&amp;notes=I%20use%20Notepad%2B%2B%20for%20viewing%20my%20%2A.pbelevel%20files%2C%20and%20always%20had%20to%20do%20the%20extra%20clicking%20%22Language%20%3E%3E%20XML%22%20to%20configure%20it%2C%20to%20display%20the%20file%20with%20XML%20highlighting.%20I%20now%20found%20out%2C%20how%20one%20can%20configure%20Notepad%2B%2B%20to%20do%20this%20automatically%3A%20locate%20the%20langs.xml%20in%20your%20Notepad%2B%2B%20install%20directory%20a&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=Configuring+Notepad%2B%2B+for+pbelevel+format&amp;link=http://www.slegg.net/configuring-notepad-for-pbelevel-format&amp;notes=I%20use%20Notepad%2B%2B%20for%20viewing%20my%20%2A.pbelevel%20files%2C%20and%20always%20had%20to%20do%20the%20extra%20clicking%20%22Language%20%3E%3E%20XML%22%20to%20configure%20it%2C%20to%20display%20the%20file%20with%20XML%20highlighting.%20I%20now%20found%20out%2C%20how%20one%20can%20configure%20Notepad%2B%2B%20to%20do%20this%20automatically%3A%20locate%20the%20langs.xml%20in%20your%20Notepad%2B%2B%20install%20directory%20a&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=88&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Configuring+Notepad%2B%2B+for+pbelevel+format&amp;link=http://www.slegg.net/configuring-notepad-for-pbelevel-format&amp;notes=I%20use%20Notepad%2B%2B%20for%20viewing%20my%20%2A.pbelevel%20files%2C%20and%20always%20had%20to%20do%20the%20extra%20clicking%20%22Language%20%3E%3E%20XML%22%20to%20configure%20it%2C%20to%20display%20the%20file%20with%20XML%20highlighting.%20I%20now%20found%20out%2C%20how%20one%20can%20configure%20Notepad%2B%2B%20to%20do%20this%20automatically%3A%20locate%20the%20langs.xml%20in%20your%20Notepad%2B%2B%20install%20directory%20a&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.shareaholic.com/api/share/?title=Configuring+Notepad%2B%2B+for+pbelevel+format&amp;link=http://www.slegg.net/configuring-notepad-for-pbelevel-format&amp;notes=I%20use%20Notepad%2B%2B%20for%20viewing%20my%20%2A.pbelevel%20files%2C%20and%20always%20had%20to%20do%20the%20extra%20clicking%20%22Language%20%3E%3E%20XML%22%20to%20configure%20it%2C%20to%20display%20the%20file%20with%20XML%20highlighting.%20I%20now%20found%20out%2C%20how%20one%20can%20configure%20Notepad%2B%2B%20to%20do%20this%20automatically%3A%20locate%20the%20langs.xml%20in%20your%20Notepad%2B%2B%20install%20directory%20a&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=6&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Configuring+Notepad%2B%2B+for+pbelevel+format&amp;link=http://www.slegg.net/configuring-notepad-for-pbelevel-format&amp;notes=I%20use%20Notepad%2B%2B%20for%20viewing%20my%20%2A.pbelevel%20files%2C%20and%20always%20had%20to%20do%20the%20extra%20clicking%20%22Language%20%3E%3E%20XML%22%20to%20configure%20it%2C%20to%20display%20the%20file%20with%20XML%20highlighting.%20I%20now%20found%20out%2C%20how%20one%20can%20configure%20Notepad%2B%2B%20to%20do%20this%20automatically%3A%20locate%20the%20langs.xml%20in%20your%20Notepad%2B%2B%20install%20directory%20a&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
</ul><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.slegg.net/configuring-notepad-for-pbelevel-format/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Use SWFSpriteSheetComponent (PBE)</title>
		<link>http://www.slegg.net/how-to-use-swfspritesheetcomponent-pbe</link>
		<comments>http://www.slegg.net/how-to-use-swfspritesheetcomponent-pbe#comments</comments>
		<pubDate>Fri, 12 Mar 2010 19:59:47 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[PushButton Engine]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[ActionScript]]></category>

		<guid isPermaLink="false">http://www.scrambled-egg.net/blog/?p=413</guid>
		<description><![CDATA[JD Conley from Hive7 has posted a tutorial how to use his SWFSpriteSheetComponent for the PushButton Engine. Check it out at his blog, it&#8217;s definately worth a look! In short, using this component, you can combine, what normally is hard to achieve with Flash: animation with &#8220;thousands of buildings on the screen at once&#8220;. Tweet [...]]]></description>
			<content:encoded><![CDATA[<p>JD Conley from Hive7 has posted a tutorial how to use his SWFSpriteSheetComponent for the PushButton Engine. Check it out at his <a title="Mr. Sprite Sheet, Meet Ms. MovieClip" href="http://jdconley.com/blog/archive/2010/03/09/mr.-sprite-sheet-meet-ms.-movieclip.aspx" target="_blank">blog</a>, it&#8217;s definately worth a look!</p>
<p>In short, using this component, you can combine, what normally is hard to achieve with Flash: animation with &#8220;<cite>thousands of buildings on the screen at once</cite>&#8220;.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+Use+SWFSpriteSheetComponent+%28PBE%29&amp;link=http://www.slegg.net/how-to-use-swfspritesheetcomponent-pbe&amp;notes=JD%20Conley%20from%20Hive7%20has%20posted%20a%20tutorial%20how%20to%20use%20his%20SWFSpriteSheetComponent%20for%20the%20PushButton%20Engine.%20Check%20it%20out%20at%20his%20blog%2C%20it%27s%20definately%20worth%20a%20look%21%0D%0A%0D%0AIn%20short%2C%20using%20this%20component%2C%20you%20can%20combine%2C%20what%20normally%20is%20hard%20to%20achieve%20with%20Flash%3A%20animation%20with%20%22thousands%20of%20buildings&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+Use+SWFSpriteSheetComponent+%28PBE%29&amp;link=http://www.slegg.net/how-to-use-swfspritesheetcomponent-pbe&amp;notes=JD%20Conley%20from%20Hive7%20has%20posted%20a%20tutorial%20how%20to%20use%20his%20SWFSpriteSheetComponent%20for%20the%20PushButton%20Engine.%20Check%20it%20out%20at%20his%20blog%2C%20it%27s%20definately%20worth%20a%20look%21%0D%0A%0D%0AIn%20short%2C%20using%20this%20component%2C%20you%20can%20combine%2C%20what%20normally%20is%20hard%20to%20achieve%20with%20Flash%3A%20animation%20with%20%22thousands%20of%20buildings&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+Use+SWFSpriteSheetComponent+%28PBE%29&amp;link=http://www.slegg.net/how-to-use-swfspritesheetcomponent-pbe&amp;notes=JD%20Conley%20from%20Hive7%20has%20posted%20a%20tutorial%20how%20to%20use%20his%20SWFSpriteSheetComponent%20for%20the%20PushButton%20Engine.%20Check%20it%20out%20at%20his%20blog%2C%20it%27s%20definately%20worth%20a%20look%21%0D%0A%0D%0AIn%20short%2C%20using%20this%20component%2C%20you%20can%20combine%2C%20what%20normally%20is%20hard%20to%20achieve%20with%20Flash%3A%20animation%20with%20%22thousands%20of%20buildings&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+Use+SWFSpriteSheetComponent+%28PBE%29&amp;link=http://www.slegg.net/how-to-use-swfspritesheetcomponent-pbe&amp;notes=JD%20Conley%20from%20Hive7%20has%20posted%20a%20tutorial%20how%20to%20use%20his%20SWFSpriteSheetComponent%20for%20the%20PushButton%20Engine.%20Check%20it%20out%20at%20his%20blog%2C%20it%27s%20definately%20worth%20a%20look%21%0D%0A%0D%0AIn%20short%2C%20using%20this%20component%2C%20you%20can%20combine%2C%20what%20normally%20is%20hard%20to%20achieve%20with%20Flash%3A%20animation%20with%20%22thousands%20of%20buildings&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+Use+SWFSpriteSheetComponent+%28PBE%29&amp;link=http://www.slegg.net/how-to-use-swfspritesheetcomponent-pbe&amp;notes=JD%20Conley%20from%20Hive7%20has%20posted%20a%20tutorial%20how%20to%20use%20his%20SWFSpriteSheetComponent%20for%20the%20PushButton%20Engine.%20Check%20it%20out%20at%20his%20blog%2C%20it%27s%20definately%20worth%20a%20look%21%0D%0A%0D%0AIn%20short%2C%20using%20this%20component%2C%20you%20can%20combine%2C%20what%20normally%20is%20hard%20to%20achieve%20with%20Flash%3A%20animation%20with%20%22thousands%20of%20buildings&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=88&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+Use+SWFSpriteSheetComponent+%28PBE%29&amp;link=http://www.slegg.net/how-to-use-swfspritesheetcomponent-pbe&amp;notes=JD%20Conley%20from%20Hive7%20has%20posted%20a%20tutorial%20how%20to%20use%20his%20SWFSpriteSheetComponent%20for%20the%20PushButton%20Engine.%20Check%20it%20out%20at%20his%20blog%2C%20it%27s%20definately%20worth%20a%20look%21%0D%0A%0D%0AIn%20short%2C%20using%20this%20component%2C%20you%20can%20combine%2C%20what%20normally%20is%20hard%20to%20achieve%20with%20Flash%3A%20animation%20with%20%22thousands%20of%20buildings&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+Use+SWFSpriteSheetComponent+%28PBE%29&amp;link=http://www.slegg.net/how-to-use-swfspritesheetcomponent-pbe&amp;notes=JD%20Conley%20from%20Hive7%20has%20posted%20a%20tutorial%20how%20to%20use%20his%20SWFSpriteSheetComponent%20for%20the%20PushButton%20Engine.%20Check%20it%20out%20at%20his%20blog%2C%20it%27s%20definately%20worth%20a%20look%21%0D%0A%0D%0AIn%20short%2C%20using%20this%20component%2C%20you%20can%20combine%2C%20what%20normally%20is%20hard%20to%20achieve%20with%20Flash%3A%20animation%20with%20%22thousands%20of%20buildings&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=6&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=How+to+Use+SWFSpriteSheetComponent+%28PBE%29&amp;link=http://www.slegg.net/how-to-use-swfspritesheetcomponent-pbe&amp;notes=JD%20Conley%20from%20Hive7%20has%20posted%20a%20tutorial%20how%20to%20use%20his%20SWFSpriteSheetComponent%20for%20the%20PushButton%20Engine.%20Check%20it%20out%20at%20his%20blog%2C%20it%27s%20definately%20worth%20a%20look%21%0D%0A%0D%0AIn%20short%2C%20using%20this%20component%2C%20you%20can%20combine%2C%20what%20normally%20is%20hard%20to%20achieve%20with%20Flash%3A%20animation%20with%20%22thousands%20of%20buildings&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
</ul><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.slegg.net/how-to-use-swfspritesheetcomponent-pbe/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Understanding Local Flash Player Security</title>
		<link>http://www.slegg.net/understanding-local-flash-player-security</link>
		<comments>http://www.slegg.net/understanding-local-flash-player-security#comments</comments>
		<pubDate>Sun, 07 Mar 2010 16:46:02 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[PushButton Engine]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://www.scrambled-egg.net/blog/?p=371</guid>
		<description><![CDATA[Nate Beck has posted a great explaination about how Flash player security works. He covers what types of sand boxes there are, and for what they are good for. Check it out at his blog: Understanding Local Flash Player Security! Tweet This! Share this on Facebook Share this on del.icio.us Digg this! Share this on [...]]]></description>
			<content:encoded><![CDATA[<p>Nate Beck has posted a great explaination about how Flash player security works. He covers what types of sand boxes there are, and for what they are good for.<br />
Check it out at his blog: <a href="http://blog.natebeck.net/2010/01/developing-games-with-pushbutton-engine-understanding-local-flash-player-security/">Understanding Local Flash Player Security</a>!</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Understanding+Local+Flash+Player+Security&amp;link=http://www.slegg.net/understanding-local-flash-player-security&amp;notes=Nate%20Beck%20has%20posted%20a%20great%20explaination%20about%20how%20Flash%20player%20security%20works.%20He%20covers%20what%20types%20of%20sand%20boxes%20there%20are%2C%20and%20for%20what%20they%20are%20good%20for.%20%0D%0ACheck%20it%20out%20at%20his%20blog%3A%20Understanding%20Local%20Flash%20Player%20Security%21%0D%0A&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Understanding+Local+Flash+Player+Security&amp;link=http://www.slegg.net/understanding-local-flash-player-security&amp;notes=Nate%20Beck%20has%20posted%20a%20great%20explaination%20about%20how%20Flash%20player%20security%20works.%20He%20covers%20what%20types%20of%20sand%20boxes%20there%20are%2C%20and%20for%20what%20they%20are%20good%20for.%20%0D%0ACheck%20it%20out%20at%20his%20blog%3A%20Understanding%20Local%20Flash%20Player%20Security%21%0D%0A&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=Understanding+Local+Flash+Player+Security&amp;link=http://www.slegg.net/understanding-local-flash-player-security&amp;notes=Nate%20Beck%20has%20posted%20a%20great%20explaination%20about%20how%20Flash%20player%20security%20works.%20He%20covers%20what%20types%20of%20sand%20boxes%20there%20are%2C%20and%20for%20what%20they%20are%20good%20for.%20%0D%0ACheck%20it%20out%20at%20his%20blog%3A%20Understanding%20Local%20Flash%20Player%20Security%21%0D%0A&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Understanding+Local+Flash+Player+Security&amp;link=http://www.slegg.net/understanding-local-flash-player-security&amp;notes=Nate%20Beck%20has%20posted%20a%20great%20explaination%20about%20how%20Flash%20player%20security%20works.%20He%20covers%20what%20types%20of%20sand%20boxes%20there%20are%2C%20and%20for%20what%20they%20are%20good%20for.%20%0D%0ACheck%20it%20out%20at%20his%20blog%3A%20Understanding%20Local%20Flash%20Player%20Security%21%0D%0A&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=Understanding+Local+Flash+Player+Security&amp;link=http://www.slegg.net/understanding-local-flash-player-security&amp;notes=Nate%20Beck%20has%20posted%20a%20great%20explaination%20about%20how%20Flash%20player%20security%20works.%20He%20covers%20what%20types%20of%20sand%20boxes%20there%20are%2C%20and%20for%20what%20they%20are%20good%20for.%20%0D%0ACheck%20it%20out%20at%20his%20blog%3A%20Understanding%20Local%20Flash%20Player%20Security%21%0D%0A&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=88&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Understanding+Local+Flash+Player+Security&amp;link=http://www.slegg.net/understanding-local-flash-player-security&amp;notes=Nate%20Beck%20has%20posted%20a%20great%20explaination%20about%20how%20Flash%20player%20security%20works.%20He%20covers%20what%20types%20of%20sand%20boxes%20there%20are%2C%20and%20for%20what%20they%20are%20good%20for.%20%0D%0ACheck%20it%20out%20at%20his%20blog%3A%20Understanding%20Local%20Flash%20Player%20Security%21%0D%0A&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.shareaholic.com/api/share/?title=Understanding+Local+Flash+Player+Security&amp;link=http://www.slegg.net/understanding-local-flash-player-security&amp;notes=Nate%20Beck%20has%20posted%20a%20great%20explaination%20about%20how%20Flash%20player%20security%20works.%20He%20covers%20what%20types%20of%20sand%20boxes%20there%20are%2C%20and%20for%20what%20they%20are%20good%20for.%20%0D%0ACheck%20it%20out%20at%20his%20blog%3A%20Understanding%20Local%20Flash%20Player%20Security%21%0D%0A&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=6&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Understanding+Local+Flash+Player+Security&amp;link=http://www.slegg.net/understanding-local-flash-player-security&amp;notes=Nate%20Beck%20has%20posted%20a%20great%20explaination%20about%20how%20Flash%20player%20security%20works.%20He%20covers%20what%20types%20of%20sand%20boxes%20there%20are%2C%20and%20for%20what%20they%20are%20good%20for.%20%0D%0ACheck%20it%20out%20at%20his%20blog%3A%20Understanding%20Local%20Flash%20Player%20Security%21%0D%0A&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
</ul><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.slegg.net/understanding-local-flash-player-security/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PBE Series: using SchemaGenerator</title>
		<link>http://www.slegg.net/pbe-series-using-schemagenerator</link>
		<comments>http://www.slegg.net/pbe-series-using-schemagenerator#comments</comments>
		<pubDate>Fri, 22 Jan 2010 10:36:40 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[PushButton Engine]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[ActionScript]]></category>

		<guid isPermaLink="false">http://www.scrambled-egg.net/blog/?p=248</guid>
		<description><![CDATA[Previously, in PBE Series: dynamically get list of public members, properties and methods of object or class, I noted that SchemaGenerator.instance.generateSchema&#40;&#41;; &#8220;dumps all classes and public info to a xml file&#8221;. We&#8217;ll, I&#8217;ve used it now, and I must admit that was a lie So here&#8217;s how you use it, and what it results in! [...]]]></description>
			<content:encoded><![CDATA[<p>Previously, in <a href="pbe-series-dynamically-get-list-of-public-members-properties-and-methods-of-object-or-class">PBE Series: dynamically get list of public members, properties and methods of object or class</a>, I noted that</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">SchemaGenerator.<span style="color: #006600;">instance</span>.<span style="color: #006600;">generateSchema</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>&#8220;dumps all classes and public info to a xml file&#8221;.<br />
We&#8217;ll, I&#8217;ve used it now, and I must admit that was a lie <img src='http://blog.scrambled-egg.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
So here&#8217;s how you use it, and what it results in!</p>
<p>First, you need to establish a local connection, and then call generateSchema:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;">conn = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">LocalConnection</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
conn.<span style="color: #006600;">client</span> = <span style="color: #0066CC;">this</span>;
conn.<span style="color: #0066CC;">allowDomain</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'*'</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0066CC;">try</span> <span style="color: #66cc66;">&#123;</span>
	conn.<span style="color: #0066CC;">connect</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;_SchemaConnection&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span> <span style="color: #0066CC;">catch</span> <span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">error</span>:ArgumentError<span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0066CC;">trace</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Can't connect to _SchemaConnection&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
SchemaGenerator.<span style="color: #006600;">instance</span>.<span style="color: #006600;">generateSchema</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</pre></div></div>

<p>SchemaGenerator.instance.generateSchema will then call OnSchemaReceived in your class, so you need to add that. It takes two string arguments: type and data. Type is either &#8220;START&#8221;, &#8220;END&#8221;, &#8220;ERROR&#8221; or &#8220;TYPE&#8221;. Data is an XML description of the current processed class (internally it uses flash.utils.describeType), which you then can further interact with.<br />
Here&#8217;s an example of how OnSchemaReceived could look like:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> OnSchemaReceived<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">type</span>:<span style="color: #0066CC;">String</span>, <span style="color: #0066CC;">data</span>:<span style="color: #0066CC;">String</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #b1b100;">switch</span><span style="color: #66cc66;">&#40;</span> <span style="color: #0066CC;">type</span> <span style="color: #66cc66;">&#41;</span>
	<span style="color: #66cc66;">&#123;</span>
		<span style="color: #b1b100;">case</span> <span style="color: #ff0000;">&quot;START&quot;</span>:
		<span style="color: #b1b100;">break</span>;
&nbsp;
		<span style="color: #b1b100;">case</span> <span style="color: #ff0000;">&quot;END&quot;</span>:
		<span style="color: #b1b100;">break</span>;
&nbsp;
		<span style="color: #b1b100;">case</span> <span style="color: #ff0000;">&quot;ERROR&quot;</span>:
		<span style="color: #b1b100;">break</span>;
&nbsp;
		<span style="color: #b1b100;">case</span> <span style="color: #ff0000;">&quot;TYPE&quot;</span>:
		<span style="color: #66cc66;">&#123;</span>
			<span style="color: #000000; font-weight: bold;">var</span> myXML:<span style="color: #0066CC;">XML</span> = <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #0066CC;">XML</span><span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">data</span><span style="color: #66cc66;">&#41;</span>;
			myXML.<span style="color: #0066CC;">ignoreWhite</span> = <span style="color: #000000; font-weight: bold;">true</span>;
&nbsp;
			<span style="color: #000000; font-weight: bold;">var</span> xmlList:XMLList = myXML.<span style="color: #006600;">child</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;factory&quot;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
			<span style="color: #808080; font-style: italic;">//Check accessors:</span>
			<span style="color: #b1b100;">for</span> <span style="color: #b1b100;">each</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> acc:<span style="color: #0066CC;">XML</span> <span style="color: #b1b100;">in</span> xmlList.<span style="color: #006600;">accessor</span><span style="color: #66cc66;">&#41;</span>
			<span style="color: #66cc66;">&#123;</span>
				<span style="color: #808080; font-style: italic;">//DO SOMETHING.</span>
			<span style="color: #66cc66;">&#125;</span>
&nbsp;
			<span style="color: #808080; font-style: italic;">//Check public variables:</span>
			<span style="color: #b1b100;">for</span> <span style="color: #b1b100;">each</span> <span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">var</span> pVar:<span style="color: #0066CC;">XML</span> <span style="color: #b1b100;">in</span> xmlList.<span style="color: #0066CC;">variable</span><span style="color: #66cc66;">&#41;</span>
			<span style="color: #66cc66;">&#123;</span>
				<span style="color: #808080; font-style: italic;">//DO SOMETHING.</span>
			<span style="color: #66cc66;">&#125;</span>
		<span style="color: #66cc66;">&#125;</span>
		<span style="color: #b1b100;">break</span>;
	<span style="color: #66cc66;">&#125;</span>
<span style="color: #66cc66;">&#125;</span></pre></div></div>

<p>That should help you getting started!</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=PBE+Series%3A+using+SchemaGenerator&amp;link=http://www.slegg.net/pbe-series-using-schemagenerator&amp;notes=Previously%2C%20in%20PBE%20Series%3A%20dynamically%20get%20list%20of%20public%20members%2C%20properties%20and%20methods%20of%20object%20or%20class%2C%20I%20noted%20that%0D%0ASchemaGenerator.instance.generateSchema%28%29%3B%0D%0A%22dumps%20all%20classes%20and%20public%20info%20to%20a%20xml%20file%22.%0D%0AWe%27ll%2C%20I%27ve%20used%20it%20now%2C%20and%20I%20must%20admit%20that%20was%20a%20lie%20%3B%29%20%0D%0ASo%20here%27s%20how%20you%20&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=PBE+Series%3A+using+SchemaGenerator&amp;link=http://www.slegg.net/pbe-series-using-schemagenerator&amp;notes=Previously%2C%20in%20PBE%20Series%3A%20dynamically%20get%20list%20of%20public%20members%2C%20properties%20and%20methods%20of%20object%20or%20class%2C%20I%20noted%20that%0D%0ASchemaGenerator.instance.generateSchema%28%29%3B%0D%0A%22dumps%20all%20classes%20and%20public%20info%20to%20a%20xml%20file%22.%0D%0AWe%27ll%2C%20I%27ve%20used%20it%20now%2C%20and%20I%20must%20admit%20that%20was%20a%20lie%20%3B%29%20%0D%0ASo%20here%27s%20how%20you%20&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=PBE+Series%3A+using+SchemaGenerator&amp;link=http://www.slegg.net/pbe-series-using-schemagenerator&amp;notes=Previously%2C%20in%20PBE%20Series%3A%20dynamically%20get%20list%20of%20public%20members%2C%20properties%20and%20methods%20of%20object%20or%20class%2C%20I%20noted%20that%0D%0ASchemaGenerator.instance.generateSchema%28%29%3B%0D%0A%22dumps%20all%20classes%20and%20public%20info%20to%20a%20xml%20file%22.%0D%0AWe%27ll%2C%20I%27ve%20used%20it%20now%2C%20and%20I%20must%20admit%20that%20was%20a%20lie%20%3B%29%20%0D%0ASo%20here%27s%20how%20you%20&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=PBE+Series%3A+using+SchemaGenerator&amp;link=http://www.slegg.net/pbe-series-using-schemagenerator&amp;notes=Previously%2C%20in%20PBE%20Series%3A%20dynamically%20get%20list%20of%20public%20members%2C%20properties%20and%20methods%20of%20object%20or%20class%2C%20I%20noted%20that%0D%0ASchemaGenerator.instance.generateSchema%28%29%3B%0D%0A%22dumps%20all%20classes%20and%20public%20info%20to%20a%20xml%20file%22.%0D%0AWe%27ll%2C%20I%27ve%20used%20it%20now%2C%20and%20I%20must%20admit%20that%20was%20a%20lie%20%3B%29%20%0D%0ASo%20here%27s%20how%20you%20&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=PBE+Series%3A+using+SchemaGenerator&amp;link=http://www.slegg.net/pbe-series-using-schemagenerator&amp;notes=Previously%2C%20in%20PBE%20Series%3A%20dynamically%20get%20list%20of%20public%20members%2C%20properties%20and%20methods%20of%20object%20or%20class%2C%20I%20noted%20that%0D%0ASchemaGenerator.instance.generateSchema%28%29%3B%0D%0A%22dumps%20all%20classes%20and%20public%20info%20to%20a%20xml%20file%22.%0D%0AWe%27ll%2C%20I%27ve%20used%20it%20now%2C%20and%20I%20must%20admit%20that%20was%20a%20lie%20%3B%29%20%0D%0ASo%20here%27s%20how%20you%20&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=88&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=PBE+Series%3A+using+SchemaGenerator&amp;link=http://www.slegg.net/pbe-series-using-schemagenerator&amp;notes=Previously%2C%20in%20PBE%20Series%3A%20dynamically%20get%20list%20of%20public%20members%2C%20properties%20and%20methods%20of%20object%20or%20class%2C%20I%20noted%20that%0D%0ASchemaGenerator.instance.generateSchema%28%29%3B%0D%0A%22dumps%20all%20classes%20and%20public%20info%20to%20a%20xml%20file%22.%0D%0AWe%27ll%2C%20I%27ve%20used%20it%20now%2C%20and%20I%20must%20admit%20that%20was%20a%20lie%20%3B%29%20%0D%0ASo%20here%27s%20how%20you%20&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.shareaholic.com/api/share/?title=PBE+Series%3A+using+SchemaGenerator&amp;link=http://www.slegg.net/pbe-series-using-schemagenerator&amp;notes=Previously%2C%20in%20PBE%20Series%3A%20dynamically%20get%20list%20of%20public%20members%2C%20properties%20and%20methods%20of%20object%20or%20class%2C%20I%20noted%20that%0D%0ASchemaGenerator.instance.generateSchema%28%29%3B%0D%0A%22dumps%20all%20classes%20and%20public%20info%20to%20a%20xml%20file%22.%0D%0AWe%27ll%2C%20I%27ve%20used%20it%20now%2C%20and%20I%20must%20admit%20that%20was%20a%20lie%20%3B%29%20%0D%0ASo%20here%27s%20how%20you%20&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=6&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=PBE+Series%3A+using+SchemaGenerator&amp;link=http://www.slegg.net/pbe-series-using-schemagenerator&amp;notes=Previously%2C%20in%20PBE%20Series%3A%20dynamically%20get%20list%20of%20public%20members%2C%20properties%20and%20methods%20of%20object%20or%20class%2C%20I%20noted%20that%0D%0ASchemaGenerator.instance.generateSchema%28%29%3B%0D%0A%22dumps%20all%20classes%20and%20public%20info%20to%20a%20xml%20file%22.%0D%0AWe%27ll%2C%20I%27ve%20used%20it%20now%2C%20and%20I%20must%20admit%20that%20was%20a%20lie%20%3B%29%20%0D%0ASo%20here%27s%20how%20you%20&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
</ul><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.slegg.net/pbe-series-using-schemagenerator/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Level Master 2000 goes Qt</title>
		<link>http://www.slegg.net/level-master-2000-goes-qt</link>
		<comments>http://www.slegg.net/level-master-2000-goes-qt#comments</comments>
		<pubDate>Sat, 09 Jan 2010 13:07:22 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Level Master 2000]]></category>
		<category><![CDATA[PushButton Engine]]></category>
		<category><![CDATA[Qt]]></category>

		<guid isPermaLink="false">http://www.scrambled-egg.net/blog/?p=213</guid>
		<description><![CDATA[New year, new news &#8211; and this time everything is different! I&#8217;ve been through some interesting discussions with Ben Garney (one of the big guys behind PushButton Engine) regarding how to tackle a general purpose editor beast for PushButton Engine. We came to the conclusion, that we&#8217;d rather try a non flash/flex way for the [...]]]></description>
			<content:encoded><![CDATA[<p>New year, new news &#8211; and this time everything is different! I&#8217;ve been through some interesting discussions with Ben Garney (one of the big guys behind PushButton Engine) regarding how to tackle a general purpose editor beast for PushButton Engine. We came to the conclusion, that we&#8217;d rather try a non flash/flex way for the UI (mainly due to possible performance problems).<br />
One solution would have been .NET/Mono, but that didn&#8217;t convince us at a first glance. Our second approach is using Qt!<br />
Since Flash can&#8217;t comminicate directly with Cpp/Qt, we need to do the following:</p>
<ul>
<li>In Flash, we use ExternalInterface to communicate with the outside world (meaning Javascript)</li>
<li>In Qt, we run a Webview, which loads the SWF and catches the ExternalInterface calls.</li>
<li>These caught calls are then passed on to Qt</li>
</ul>
<p>So in short, it&#8217;s like: Flash &gt;&gt; Javascript &gt;&gt; Qt and the otherway.<br />
We&#8217;ll see how this decision turns out in the end, but it&#8217;s an interesting approach indeed (and in case of emergency, there are ways to improve performance)!</p>
<p>For now, I can say, that I got the basic communication working:<br />
<a title="Level Master 2000: first Qt screen shot" href="http://www.scrambled-egg.net/blog/wp-content/uploads/2010/01/levelmaster2000_qt01.jpg"><img class="alignnone size-medium wp-image-215" title="levelmaster2000_qt01" src="http://www.scrambled-egg.net/blog/wp-content/uploads/2010/01/levelmaster2000_qt01-300x223.jpg" alt="Level Master 2000: first Qt screen shot" width="300" height="223" /><br />
</a><br />
It features:</p>
<ul>
<li>Entity selection</li>
<li>Display the as &#8220;editable&#8221; marked properties of the selected entity, grouped by components</li>
<li>(W.I.P.)Modify the properties: numbers and strings working, custom data types (like a point) on the way</li>
</ul>
<p>Next upcoming features:</p>
<ul>
<li>Entity Browser: visualisation</li>
<li>Entity Browser: interaction (selecting entities, adding + deleting components)</li>
</ul>
<p>Stay tuned!</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=Level+Master+2000+goes+Qt&amp;link=http://www.slegg.net/level-master-2000-goes-qt&amp;notes=New%20year%2C%20new%20news%20-%20and%20this%20time%20everything%20is%20different%21%20I%27ve%20been%20through%20some%20interesting%20discussions%20with%20Ben%20Garney%20%28one%20of%20the%20big%20guys%20behind%20PushButton%20Engine%29%20regarding%20how%20to%20tackle%20a%20general%20purpose%20editor%20beast%20for%20PushButton%20Engine.%20We%20came%20to%20the%20conclusion%2C%20that%20we%27d%20rather%20try%20a%20no&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=Level+Master+2000+goes+Qt&amp;link=http://www.slegg.net/level-master-2000-goes-qt&amp;notes=New%20year%2C%20new%20news%20-%20and%20this%20time%20everything%20is%20different%21%20I%27ve%20been%20through%20some%20interesting%20discussions%20with%20Ben%20Garney%20%28one%20of%20the%20big%20guys%20behind%20PushButton%20Engine%29%20regarding%20how%20to%20tackle%20a%20general%20purpose%20editor%20beast%20for%20PushButton%20Engine.%20We%20came%20to%20the%20conclusion%2C%20that%20we%27d%20rather%20try%20a%20no&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=Level+Master+2000+goes+Qt&amp;link=http://www.slegg.net/level-master-2000-goes-qt&amp;notes=New%20year%2C%20new%20news%20-%20and%20this%20time%20everything%20is%20different%21%20I%27ve%20been%20through%20some%20interesting%20discussions%20with%20Ben%20Garney%20%28one%20of%20the%20big%20guys%20behind%20PushButton%20Engine%29%20regarding%20how%20to%20tackle%20a%20general%20purpose%20editor%20beast%20for%20PushButton%20Engine.%20We%20came%20to%20the%20conclusion%2C%20that%20we%27d%20rather%20try%20a%20no&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=Level+Master+2000+goes+Qt&amp;link=http://www.slegg.net/level-master-2000-goes-qt&amp;notes=New%20year%2C%20new%20news%20-%20and%20this%20time%20everything%20is%20different%21%20I%27ve%20been%20through%20some%20interesting%20discussions%20with%20Ben%20Garney%20%28one%20of%20the%20big%20guys%20behind%20PushButton%20Engine%29%20regarding%20how%20to%20tackle%20a%20general%20purpose%20editor%20beast%20for%20PushButton%20Engine.%20We%20came%20to%20the%20conclusion%2C%20that%20we%27d%20rather%20try%20a%20no&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=Level+Master+2000+goes+Qt&amp;link=http://www.slegg.net/level-master-2000-goes-qt&amp;notes=New%20year%2C%20new%20news%20-%20and%20this%20time%20everything%20is%20different%21%20I%27ve%20been%20through%20some%20interesting%20discussions%20with%20Ben%20Garney%20%28one%20of%20the%20big%20guys%20behind%20PushButton%20Engine%29%20regarding%20how%20to%20tackle%20a%20general%20purpose%20editor%20beast%20for%20PushButton%20Engine.%20We%20came%20to%20the%20conclusion%2C%20that%20we%27d%20rather%20try%20a%20no&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=88&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=Level+Master+2000+goes+Qt&amp;link=http://www.slegg.net/level-master-2000-goes-qt&amp;notes=New%20year%2C%20new%20news%20-%20and%20this%20time%20everything%20is%20different%21%20I%27ve%20been%20through%20some%20interesting%20discussions%20with%20Ben%20Garney%20%28one%20of%20the%20big%20guys%20behind%20PushButton%20Engine%29%20regarding%20how%20to%20tackle%20a%20general%20purpose%20editor%20beast%20for%20PushButton%20Engine.%20We%20came%20to%20the%20conclusion%2C%20that%20we%27d%20rather%20try%20a%20no&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.shareaholic.com/api/share/?title=Level+Master+2000+goes+Qt&amp;link=http://www.slegg.net/level-master-2000-goes-qt&amp;notes=New%20year%2C%20new%20news%20-%20and%20this%20time%20everything%20is%20different%21%20I%27ve%20been%20through%20some%20interesting%20discussions%20with%20Ben%20Garney%20%28one%20of%20the%20big%20guys%20behind%20PushButton%20Engine%29%20regarding%20how%20to%20tackle%20a%20general%20purpose%20editor%20beast%20for%20PushButton%20Engine.%20We%20came%20to%20the%20conclusion%2C%20that%20we%27d%20rather%20try%20a%20no&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=6&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=Level+Master+2000+goes+Qt&amp;link=http://www.slegg.net/level-master-2000-goes-qt&amp;notes=New%20year%2C%20new%20news%20-%20and%20this%20time%20everything%20is%20different%21%20I%27ve%20been%20through%20some%20interesting%20discussions%20with%20Ben%20Garney%20%28one%20of%20the%20big%20guys%20behind%20PushButton%20Engine%29%20regarding%20how%20to%20tackle%20a%20general%20purpose%20editor%20beast%20for%20PushButton%20Engine.%20We%20came%20to%20the%20conclusion%2C%20that%20we%27d%20rather%20try%20a%20no&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
</ul><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.slegg.net/level-master-2000-goes-qt/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PBE Series: clickable component</title>
		<link>http://www.slegg.net/pbe-series-clickable-component</link>
		<comments>http://www.slegg.net/pbe-series-clickable-component#comments</comments>
		<pubDate>Sat, 02 Jan 2010 20:00:43 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Level Master 2000]]></category>
		<category><![CDATA[PushButton Engine]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.scrambled-egg.net/blog/?p=153</guid>
		<description><![CDATA[Prerequisites: Use a current version of PushButton Engine. A properly initialized scene (see PBE Series: initializing your scene via ActionScript on how to setup it up) Today I will show you, how to create a component for PushButton Engine, that registers, if an entity got clicked on or not. In general, you got two possibilities [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Prerequisites:</strong></p>
<ul>
<li> Use a current version of PushButton Engine.</li>
<li>A properly initialized scene (see <a href="http://www.scrambled-egg.net/blog/pbe-series-initializing-your-scene-via-actionscript">PBE Series: initializing your scene via ActionScript</a> on how to setup it up)</li>
</ul>
<p>Today I will show you, how to create a component for PushButton Engine, that registers, if an entity got clicked on or not.</p>
<p>In general, you got two possibilities how to handle this:</p>
<ol>
<li>per object level</li>
<li>on a global level</li>
</ol>
<p><strong>Per object level</strong>: since it&#8217;s flash, you can simply add an event listener to your graphics component, which listens to click events.</p>
<p>I personally don&#8217;t like that too much though, so let&#8217;s consider variant two: <strong>global level</strong>.</p>
<p>It&#8217;s a component which exists once in the scene, and not per entity. It listens to click events which happen on the main stage, and on each click, it uses the built in functions <em>PBE.scene.getRenderersUnderPoint</em> and/or <em>PBE.spatialManager.getObjectsUnderPoint</em> to determine, which objects got clicked on.</p>
<p>This version only uses the getRenderersUnderPoint, the main stuff is going on in the OnClick method:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #9900cc; font-weight: bold;">package</span>
<span style="color: #000000;">&#123;</span>
   <span style="color: #0033ff; font-weight: bold;">import</span> com<span style="color: #000066; font-weight: bold;">.</span>pblabs<span style="color: #000066; font-weight: bold;">.</span>engine<span style="color: #000066; font-weight: bold;">.</span>PBE<span style="color: #000066; font-weight: bold;">;</span>
   <span style="color: #0033ff; font-weight: bold;">import</span> com<span style="color: #000066; font-weight: bold;">.</span>pblabs<span style="color: #000066; font-weight: bold;">.</span>engine<span style="color: #000066; font-weight: bold;">.</span>debug<span style="color: #000066; font-weight: bold;">.</span>Logger<span style="color: #000066; font-weight: bold;">;</span>
   <span style="color: #0033ff; font-weight: bold;">import</span> com<span style="color: #000066; font-weight: bold;">.</span>pblabs<span style="color: #000066; font-weight: bold;">.</span>engine<span style="color: #000066; font-weight: bold;">.</span>entity<span style="color: #000066; font-weight: bold;">.</span>EntityComponent<span style="color: #000066; font-weight: bold;">;</span>
   <span style="color: #0033ff; font-weight: bold;">import</span> com<span style="color: #000066; font-weight: bold;">.</span>pblabs<span style="color: #000066; font-weight: bold;">.</span>rendering2D<span style="color: #000066; font-weight: bold;">.</span>DisplayObjectRenderer<span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
   <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.events</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">;</span>
   <span style="color: #0033ff; font-weight: bold;">import</span> <span style="color: #004993;">flash.geom</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">Point</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
	<span style="color: #0033ff; font-weight: bold;">public</span> <span style="color: #9900cc; font-weight: bold;">class</span> ClickComponent <span style="color: #0033ff; font-weight: bold;">extends</span> EntityComponent
	<span style="color: #000000;">&#123;</span>
		<span style="color: #0033ff; font-weight: bold;">protected</span> override <span style="color: #339966; font-weight: bold;">function</span> onAdd<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
		<span style="color: #000000;">&#123;</span>
			PBE<span style="color: #000066; font-weight: bold;">.</span>mainStage<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">CLICK</span><span style="color: #000066; font-weight: bold;">,</span> OnClick <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">private</span> <span style="color: #339966; font-weight: bold;">function</span> OnClick<span style="color: #000000;">&#40;</span>e<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">MouseEvent</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
		<span style="color: #000000;">&#123;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> results<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Array</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Array</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> point<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Point</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Point</span><span style="color: #000000;">&#40;</span> PBE<span style="color: #000066; font-weight: bold;">.</span>mainStage<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">mouseX</span><span style="color: #000066; font-weight: bold;">,</span> PBE<span style="color: #000066; font-weight: bold;">.</span>mainStage<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">mouseY</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #6699cc; font-weight: bold;">var</span> foundRenderers<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Boolean</span> = PBE<span style="color: #000066; font-weight: bold;">.</span>scene<span style="color: #000066; font-weight: bold;">.</span>getRenderersUnderPoint<span style="color: #000000;">&#40;</span> point<span style="color: #000066; font-weight: bold;">,</span> results <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
			<span style="color: #0033ff; font-weight: bold;">for</span> <span style="color: #0033ff; font-weight: bold;">each</span><span style="color: #000000;">&#40;</span> <span style="color: #6699cc; font-weight: bold;">var</span> obj<span style="color: #000066; font-weight: bold;">:</span>DisplayObjectRenderer <span style="color: #0033ff; font-weight: bold;">in</span>  results <span style="color: #000000;">&#41;</span>
			<span style="color: #000000;">&#123;</span>
				Logger<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">print</span><span style="color: #000000;">&#40;</span> <span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">,</span> obj<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">name</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
			<span style="color: #000000;">&#125;</span>
		<span style="color: #000000;">&#125;</span>	  
&nbsp;
		<span style="color: #0033ff; font-weight: bold;">protected</span> override <span style="color: #339966; font-weight: bold;">function</span> onRemove<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #0033ff; font-weight: bold;">void</span>
		<span style="color: #000000;">&#123;</span>
			PBE<span style="color: #000066; font-weight: bold;">.</span>mainStage<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">removeEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #004993;">MouseEvent</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">CLICK</span><span style="color: #000066; font-weight: bold;">,</span> OnClick <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
		<span style="color: #000000;">&#125;</span>
	<span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>Now if you want to get the spatial objects, simply use this:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> spatials<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">Array</span> = <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">Array</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
PBE<span style="color: #000066; font-weight: bold;">.</span>spatialManager<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">getObjectsUnderPoint</span><span style="color: #000000;">&#40;</span> PBE<span style="color: #000066; font-weight: bold;">.</span>scene<span style="color: #000066; font-weight: bold;">.</span>transformScreenToWorld<span style="color: #000000;">&#40;</span>point<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">,</span> spatials<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #0033ff; font-weight: bold;">new</span> ObjectType<span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;Renderable&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
&nbsp;
<span style="color: #0033ff; font-weight: bold;">for</span> <span style="color: #0033ff; font-weight: bold;">each</span><span style="color: #000000;">&#40;</span> <span style="color: #6699cc; font-weight: bold;">var</span> spatialObj<span style="color: #000066; font-weight: bold;">:</span>ISpatialObject2D <span style="color: #0033ff; font-weight: bold;">in</span> spatials <span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
	Logger<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">print</span><span style="color: #000000;">&#40;</span> <span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">,</span> spatialObj<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">position</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">toString</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>The main difference is that getRenderersUnderPoint results in DisplayObjectRenderers, and getObjectsUnderPoint results in ISpatialObject2Ds.</p>
<p>Also, see that you can supply an object mask. Leaving it null will take all objects into consideration.</p>
<p>All in all you can see, how easy this is (for such a complex sounding task)!</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=PBE+Series%3A+clickable+component&amp;link=http://www.slegg.net/pbe-series-clickable-component&amp;notes=Prerequisites%3A%0D%0A%0D%0A%09%20Use%20a%20current%20version%20of%20PushButton%20Engine.%0D%0A%09A%20properly%20initialized%20scene%20%28see%20PBE%20Series%3A%20initializing%20your%20scene%20via%20ActionScript%20on%20how%20to%20setup%20it%20up%29%0D%0A%0D%0AToday%20I%20will%20show%20you%2C%20how%20to%20create%20a%20component%20for%20PushButton%20Engine%2C%20that%20registers%2C%20if%20an%20entity%20got%20clicked%20on%20or%20no&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=PBE+Series%3A+clickable+component&amp;link=http://www.slegg.net/pbe-series-clickable-component&amp;notes=Prerequisites%3A%0D%0A%0D%0A%09%20Use%20a%20current%20version%20of%20PushButton%20Engine.%0D%0A%09A%20properly%20initialized%20scene%20%28see%20PBE%20Series%3A%20initializing%20your%20scene%20via%20ActionScript%20on%20how%20to%20setup%20it%20up%29%0D%0A%0D%0AToday%20I%20will%20show%20you%2C%20how%20to%20create%20a%20component%20for%20PushButton%20Engine%2C%20that%20registers%2C%20if%20an%20entity%20got%20clicked%20on%20or%20no&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=PBE+Series%3A+clickable+component&amp;link=http://www.slegg.net/pbe-series-clickable-component&amp;notes=Prerequisites%3A%0D%0A%0D%0A%09%20Use%20a%20current%20version%20of%20PushButton%20Engine.%0D%0A%09A%20properly%20initialized%20scene%20%28see%20PBE%20Series%3A%20initializing%20your%20scene%20via%20ActionScript%20on%20how%20to%20setup%20it%20up%29%0D%0A%0D%0AToday%20I%20will%20show%20you%2C%20how%20to%20create%20a%20component%20for%20PushButton%20Engine%2C%20that%20registers%2C%20if%20an%20entity%20got%20clicked%20on%20or%20no&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=PBE+Series%3A+clickable+component&amp;link=http://www.slegg.net/pbe-series-clickable-component&amp;notes=Prerequisites%3A%0D%0A%0D%0A%09%20Use%20a%20current%20version%20of%20PushButton%20Engine.%0D%0A%09A%20properly%20initialized%20scene%20%28see%20PBE%20Series%3A%20initializing%20your%20scene%20via%20ActionScript%20on%20how%20to%20setup%20it%20up%29%0D%0A%0D%0AToday%20I%20will%20show%20you%2C%20how%20to%20create%20a%20component%20for%20PushButton%20Engine%2C%20that%20registers%2C%20if%20an%20entity%20got%20clicked%20on%20or%20no&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=PBE+Series%3A+clickable+component&amp;link=http://www.slegg.net/pbe-series-clickable-component&amp;notes=Prerequisites%3A%0D%0A%0D%0A%09%20Use%20a%20current%20version%20of%20PushButton%20Engine.%0D%0A%09A%20properly%20initialized%20scene%20%28see%20PBE%20Series%3A%20initializing%20your%20scene%20via%20ActionScript%20on%20how%20to%20setup%20it%20up%29%0D%0A%0D%0AToday%20I%20will%20show%20you%2C%20how%20to%20create%20a%20component%20for%20PushButton%20Engine%2C%20that%20registers%2C%20if%20an%20entity%20got%20clicked%20on%20or%20no&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=88&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=PBE+Series%3A+clickable+component&amp;link=http://www.slegg.net/pbe-series-clickable-component&amp;notes=Prerequisites%3A%0D%0A%0D%0A%09%20Use%20a%20current%20version%20of%20PushButton%20Engine.%0D%0A%09A%20properly%20initialized%20scene%20%28see%20PBE%20Series%3A%20initializing%20your%20scene%20via%20ActionScript%20on%20how%20to%20setup%20it%20up%29%0D%0A%0D%0AToday%20I%20will%20show%20you%2C%20how%20to%20create%20a%20component%20for%20PushButton%20Engine%2C%20that%20registers%2C%20if%20an%20entity%20got%20clicked%20on%20or%20no&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.shareaholic.com/api/share/?title=PBE+Series%3A+clickable+component&amp;link=http://www.slegg.net/pbe-series-clickable-component&amp;notes=Prerequisites%3A%0D%0A%0D%0A%09%20Use%20a%20current%20version%20of%20PushButton%20Engine.%0D%0A%09A%20properly%20initialized%20scene%20%28see%20PBE%20Series%3A%20initializing%20your%20scene%20via%20ActionScript%20on%20how%20to%20setup%20it%20up%29%0D%0A%0D%0AToday%20I%20will%20show%20you%2C%20how%20to%20create%20a%20component%20for%20PushButton%20Engine%2C%20that%20registers%2C%20if%20an%20entity%20got%20clicked%20on%20or%20no&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=6&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=PBE+Series%3A+clickable+component&amp;link=http://www.slegg.net/pbe-series-clickable-component&amp;notes=Prerequisites%3A%0D%0A%0D%0A%09%20Use%20a%20current%20version%20of%20PushButton%20Engine.%0D%0A%09A%20properly%20initialized%20scene%20%28see%20PBE%20Series%3A%20initializing%20your%20scene%20via%20ActionScript%20on%20how%20to%20setup%20it%20up%29%0D%0A%0D%0AToday%20I%20will%20show%20you%2C%20how%20to%20create%20a%20component%20for%20PushButton%20Engine%2C%20that%20registers%2C%20if%20an%20entity%20got%20clicked%20on%20or%20no&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
</ul><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.slegg.net/pbe-series-clickable-component/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>PBE Series: dynamically get list of public members, properties and methods of object or class</title>
		<link>http://www.slegg.net/pbe-series-dynamically-get-list-of-public-members-properties-and-methods-of-object-or-class</link>
		<comments>http://www.slegg.net/pbe-series-dynamically-get-list-of-public-members-properties-and-methods-of-object-or-class#comments</comments>
		<pubDate>Sun, 27 Dec 2009 18:15:26 +0000</pubDate>
		<dc:creator>Christian</dc:creator>
				<category><![CDATA[Level Master 2000]]></category>
		<category><![CDATA[PushButton Engine]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.scrambled-egg.net/blog/?p=130</guid>
		<description><![CDATA[Now this isn&#8217;t necessarily only related to PushButton Engine. Without using the Logger functions, it would also work with &#8220;plain&#8221; ActionScript. So what do I want to do here? My main problem was, with Level Master 2000, I want to have UI-based component composition. And each component has different properties which should be settable in [...]]]></description>
			<content:encoded><![CDATA[<p>Now this isn&#8217;t necessarily only related to PushButton Engine. Without using the Logger functions, it would also work with &#8220;plain&#8221; ActionScript. So what do I want to do here? My main problem was, with Level Master 2000, I want to have UI-based component composition. And each component has different properties which should be settable in the editor. And it looks like this is pretty easy to do with ActionScript. All you need to do is get an XML description of your object or class, by using the built in function describeType:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #009900; font-style: italic;">//Produces an XML object that describes the ActionScript</span>
<span style="color: #009900; font-style: italic;">//object named as the parameter of the method:</span>
<span style="color: #6699cc; font-weight: bold;">var</span> varList<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">XML</span> = <span style="color: #004993;">flash.utils</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">describeType</span><span style="color: #000000;">&#40;</span> <span style="color: #009966; font-style: italic;">/*INSERT OBJECT OR CLASS*/</span> <span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></div></div>

<p>And then, depending on what you want to access (properties, members or functions), just iterate over your XML and you&#8217;re good!</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;">Logger<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">print</span><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;Properties:&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #0033ff; font-weight: bold;">for</span> <span style="color: #0033ff; font-weight: bold;">each</span> <span style="color: #000000;">&#40;</span><span style="color: #6699cc; font-weight: bold;">var</span> a<span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">XML</span> <span style="color: #0033ff; font-weight: bold;">in</span> varList<span style="color: #000066; font-weight: bold;">.</span>accessor<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
	Logger<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">print</span><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">,</span> a<span style="color: #000066; font-weight: bold;">.</span>@<span style="color: #004993;">name</span><span style="color: #000066; font-weight: bold;">+</span><span style="color: #990000;">&quot; : &quot;</span><span style="color: #000066; font-weight: bold;">+</span>a<span style="color: #000066; font-weight: bold;">.</span>@<span style="color: #004993;">type</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;">Logger<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">print</span><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;Variables:&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #0033ff; font-weight: bold;">for</span> <span style="color: #0033ff; font-weight: bold;">each</span> <span style="color: #000000;">&#40;</span><span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">b</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">XML</span> <span style="color: #0033ff; font-weight: bold;">in</span> varList<span style="color: #000066; font-weight: bold;">.</span>variable<span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
	Logger<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">print</span><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">b</span><span style="color: #000066; font-weight: bold;">.</span>@<span style="color: #004993;">name</span><span style="color: #000066; font-weight: bold;">+</span><span style="color: #990000;">&quot; : &quot;</span><span style="color: #000066; font-weight: bold;">+</span><span style="color: #004993;">b</span><span style="color: #000066; font-weight: bold;">.</span>@<span style="color: #004993;">type</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;">Logger<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">print</span><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #990000;">&quot;Methods:&quot;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #0033ff; font-weight: bold;">for</span> <span style="color: #0033ff; font-weight: bold;">each</span> <span style="color: #000000;">&#40;</span><span style="color: #6699cc; font-weight: bold;">var</span> <span style="color: #004993;">c</span><span style="color: #000066; font-weight: bold;">:</span><span style="color: #004993;">XML</span> <span style="color: #0033ff; font-weight: bold;">in</span> varList<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">method</span><span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#123;</span>
	Logger<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">print</span><span style="color: #000000;">&#40;</span><span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #004993;">c</span><span style="color: #000066; font-weight: bold;">.</span>@<span style="color: #004993;">name</span><span style="color: #000066; font-weight: bold;">+</span><span style="color: #990000;">&quot; : &quot;</span><span style="color: #000066; font-weight: bold;">+</span><span style="color: #004993;">c</span><span style="color: #000066; font-weight: bold;">.</span>@<span style="color: #004993;">type</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>For me with my editor, I&#8217;ll probably do this once at startup and keep the information for all the components stored somewhere. I currently don&#8217;t know how performance is, but I guess it&#8217;s gonna be better that way. If it turns out to be a wrong approach, I&#8217;ll post my conclusion here <img src='http://blog.scrambled-egg.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><strong>Edit &#8211; doing it the PushButton way</strong>:<br />
Of course there seems to be a much easier way doing it with PushButton Engine. I must admit, I haven&#8217;t tried it, but it seems there&#8217;s this built in function which sort of dumps all classes and public info to a xml file by just using:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;">SchemaGenerator<span style="color: #000066; font-weight: bold;">.</span>instance<span style="color: #000066; font-weight: bold;">.</span>generateSchema<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></div></div>

<p>Nice!</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://www.shareaholic.com/api/share/?title=PBE+Series%3A+dynamically+get+list+of+public+members%2C+properties+and+methods+of+object+or+class&amp;link=http://www.slegg.net/pbe-series-dynamically-get-list-of-public-members-properties-and-methods-of-object-or-class&amp;notes=Now%20this%20isn%27t%20necessarily%20only%20related%20to%20PushButton%20Engine.%20Without%20using%20the%20Logger%20functions%2C%20it%20would%20also%20work%20with%20%22plain%22%20ActionScript.%20So%20what%20do%20I%20want%20to%20do%20here%3F%20My%20main%20problem%20was%2C%20with%20Level%20Master%202000%2C%20I%20want%20to%20have%20UI-based%20component%20composition.%20And%20each%20component%20has%20different%20p&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.shareaholic.com/api/share/?title=PBE+Series%3A+dynamically+get+list+of+public+members%2C+properties+and+methods+of+object+or+class&amp;link=http://www.slegg.net/pbe-series-dynamically-get-list-of-public-members-properties-and-methods-of-object-or-class&amp;notes=Now%20this%20isn%27t%20necessarily%20only%20related%20to%20PushButton%20Engine.%20Without%20using%20the%20Logger%20functions%2C%20it%20would%20also%20work%20with%20%22plain%22%20ActionScript.%20So%20what%20do%20I%20want%20to%20do%20here%3F%20My%20main%20problem%20was%2C%20with%20Level%20Master%202000%2C%20I%20want%20to%20have%20UI-based%20component%20composition.%20And%20each%20component%20has%20different%20p&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="shr-delicious">
			<a href="http://www.shareaholic.com/api/share/?title=PBE+Series%3A+dynamically+get+list+of+public+members%2C+properties+and+methods+of+object+or+class&amp;link=http://www.slegg.net/pbe-series-dynamically-get-list-of-public-members-properties-and-methods-of-object-or-class&amp;notes=Now%20this%20isn%27t%20necessarily%20only%20related%20to%20PushButton%20Engine.%20Without%20using%20the%20Logger%20functions%2C%20it%20would%20also%20work%20with%20%22plain%22%20ActionScript.%20So%20what%20do%20I%20want%20to%20do%20here%3F%20My%20main%20problem%20was%2C%20with%20Level%20Master%202000%2C%20I%20want%20to%20have%20UI-based%20component%20composition.%20And%20each%20component%20has%20different%20p&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://www.shareaholic.com/api/share/?title=PBE+Series%3A+dynamically+get+list+of+public+members%2C+properties+and+methods+of+object+or+class&amp;link=http://www.slegg.net/pbe-series-dynamically-get-list-of-public-members-properties-and-methods-of-object-or-class&amp;notes=Now%20this%20isn%27t%20necessarily%20only%20related%20to%20PushButton%20Engine.%20Without%20using%20the%20Logger%20functions%2C%20it%20would%20also%20work%20with%20%22plain%22%20ActionScript.%20So%20what%20do%20I%20want%20to%20do%20here%3F%20My%20main%20problem%20was%2C%20with%20Level%20Master%202000%2C%20I%20want%20to%20have%20UI-based%20component%20composition.%20And%20each%20component%20has%20different%20p&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=3&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-linkedin">
			<a href="http://www.shareaholic.com/api/share/?title=PBE+Series%3A+dynamically+get+list+of+public+members%2C+properties+and+methods+of+object+or+class&amp;link=http://www.slegg.net/pbe-series-dynamically-get-list-of-public-members-properties-and-methods-of-object-or-class&amp;notes=Now%20this%20isn%27t%20necessarily%20only%20related%20to%20PushButton%20Engine.%20Without%20using%20the%20Logger%20functions%2C%20it%20would%20also%20work%20with%20%22plain%22%20ActionScript.%20So%20what%20do%20I%20want%20to%20do%20here%3F%20My%20main%20problem%20was%2C%20with%20Level%20Master%202000%2C%20I%20want%20to%20have%20UI-based%20component%20composition.%20And%20each%20component%20has%20different%20p&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=88&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on LinkedIn">Share this on LinkedIn</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.shareaholic.com/api/share/?title=PBE+Series%3A+dynamically+get+list+of+public+members%2C+properties+and+methods+of+object+or+class&amp;link=http://www.slegg.net/pbe-series-dynamically-get-list-of-public-members-properties-and-methods-of-object-or-class&amp;notes=Now%20this%20isn%27t%20necessarily%20only%20related%20to%20PushButton%20Engine.%20Without%20using%20the%20Logger%20functions%2C%20it%20would%20also%20work%20with%20%22plain%22%20ActionScript.%20So%20what%20do%20I%20want%20to%20do%20here%3F%20My%20main%20problem%20was%2C%20with%20Level%20Master%202000%2C%20I%20want%20to%20have%20UI-based%20component%20composition.%20And%20each%20component%20has%20different%20p&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-misterwong">
			<a href="http://www.shareaholic.com/api/share/?title=PBE+Series%3A+dynamically+get+list+of+public+members%2C+properties+and+methods+of+object+or+class&amp;link=http://www.slegg.net/pbe-series-dynamically-get-list-of-public-members-properties-and-methods-of-object-or-class&amp;notes=Now%20this%20isn%27t%20necessarily%20only%20related%20to%20PushButton%20Engine.%20Without%20using%20the%20Logger%20functions%2C%20it%20would%20also%20work%20with%20%22plain%22%20ActionScript.%20So%20what%20do%20I%20want%20to%20do%20here%3F%20My%20main%20problem%20was%2C%20with%20Level%20Master%202000%2C%20I%20want%20to%20have%20UI-based%20component%20composition.%20And%20each%20component%20has%20different%20p&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=6&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Add this to Mister Wong">Add this to Mister Wong</a>
		</li>
		<li class="shr-reddit">
			<a href="http://www.shareaholic.com/api/share/?title=PBE+Series%3A+dynamically+get+list+of+public+members%2C+properties+and+methods+of+object+or+class&amp;link=http://www.slegg.net/pbe-series-dynamically-get-list-of-public-members-properties-and-methods-of-object-or-class&amp;notes=Now%20this%20isn%27t%20necessarily%20only%20related%20to%20PushButton%20Engine.%20Without%20using%20the%20Logger%20functions%2C%20it%20would%20also%20work%20with%20%22plain%22%20ActionScript.%20So%20what%20do%20I%20want%20to%20do%20here%3F%20My%20main%20problem%20was%2C%20with%20Level%20Master%202000%2C%20I%20want%20to%20have%20UI-based%20component%20composition.%20And%20each%20component%20has%20different%20p&amp;short_link=&amp;shortener=google&amp;shortener_key=&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
</ul><div style="clear: both;"></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.slegg.net/pbe-series-dynamically-get-list-of-public-members-properties-and-methods-of-object-or-class/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

