<?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>Robert Cesaric</title>
	<atom:link href="http://cesaric.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://cesaric.com</link>
	<description>Geek Is The New Black</description>
	<lastBuildDate>Sat, 16 Feb 2013 12:59:17 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Flex Left Sided ToolTip/ErrorTip</title>
		<link>http://cesaric.com/?p=663</link>
		<comments>http://cesaric.com/?p=663#comments</comments>
		<pubDate>Sat, 28 May 2011 18:09:35 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Adobe Flex]]></category>

		<guid isPermaLink="false">http://cesaric.com/?p=663</guid>
		<description><![CDATA[Added &#8220;errorTipLeft&#8221; borderStyle to the the mx.skins.halo.ToolTipBorder (there&#8217;s better solutions if you&#8217;re using Spark). Note that you have to take into account the width of the ToolTip when positioning it to the left of a control. View source is enabled in the example below.]]></description>
				<content:encoded><![CDATA[<p>Added &#8220;<strong>errorTipLeft</strong>&#8221; borderStyle to the the mx.skins.halo.ToolTipBorder (there&#8217;s better solutions if you&#8217;re using Spark).  </p>
<p>Note that you have to take into account the width of the ToolTip when positioning it to the left of a control.</p>
<p><a href="http://cesaric.com/examples/tooltip/srcview/index.html" target="_blank">View source</a> is enabled in the example below.</p>

    <div id="swfobj_0">
      
    </div>

<p><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://cesaric.com/?feed=rss2&#038;p=663</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>purePDF (iText) current x/horizontal position.</title>
		<link>http://cesaric.com/?p=643</link>
		<comments>http://cesaric.com/?p=643#comments</comments>
		<pubDate>Thu, 03 Feb 2011 16:17:27 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Adobe Flex]]></category>
		<category><![CDATA[Other Stuff]]></category>

		<guid isPermaLink="false">http://cesaric.com/?p=643</guid>
		<description><![CDATA[I just started with purePDF and I haven&#8217;t seen any solutions for getting the current horizontal/x postion in a doc. Though, you can get the vertical postion by: var buffer:ByteArray = new ByteArray&#40;&#41;; var rect:RectangleElement = PageSize.A4; var writer:PdfWriter = PdfWriter.create&#40; buffer, rect &#41;; var document:PdfDocument = writer.pdfDocument; var vertPosition:Number = document.getVerticalPosition&#40;false&#41; What I wanted [...]]]></description>
				<content:encoded><![CDATA[<p>I just started with purePDF and I haven&#8217;t seen any solutions for getting the current horizontal/x postion in a doc.  Though, you can get the vertical postion by:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> buffer:ByteArray = <span style="color: #000000; font-weight: bold;">new</span> ByteArray<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">var</span> rect:RectangleElement = PageSize.<span style="color: #006600;">A4</span>;
<span style="color: #000000; font-weight: bold;">var</span> writer:PdfWriter = PdfWriter.<span style="color: #006600;">create</span><span style="color: #66cc66;">&#40;</span> buffer, rect <span style="color: #66cc66;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">var</span> document:PdfDocument = writer.<span style="color: #006600;">pdfDocument</span>;
<span style="color: #000000; font-weight: bold;">var</span> vertPosition:<span style="color: #0066CC;">Number</span> = document.<span style="color: #006600;">getVerticalPosition</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">false</span><span style="color: #66cc66;">&#41;</span></pre></td></tr></table></div>

<p>What I wanted to do was create a line that extended form the end of a sentence to the end of the page.  Something like:</p>
<p>What is your first name? ______________________________________________________________</p>
<p>alivePDF makes this possible but with purePDF/iText, the easiest way I could figure it out was by using Chunk.getWidthPoint():</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> ch:Chunk = <span style="color: #000000; font-weight: bold;">new</span> Chunk<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;What is your first name?&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">var</span> para:Paragraph = <span style="color: #000000; font-weight: bold;">new</span> Paragraph<span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">null</span>, <span style="color: #000000; font-weight: bold;">null</span><span style="color: #66cc66;">&#41;</span>;
para.<span style="color: #0066CC;">add</span><span style="color: #66cc66;">&#40;</span>ch<span style="color: #66cc66;">&#41;</span>;			
document.<span style="color: #0066CC;">add</span><span style="color: #66cc66;">&#40;</span>para<span style="color: #66cc66;">&#41;</span>; <span style="color: #808080; font-style: italic;">//document is defined in the code block at the top of this post.</span>
<span style="color: #000000; font-weight: bold;">var</span> cb: PdfContentByte = writer.<span style="color: #006600;">getDirectContent</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">var</span> re:RectangleElement = <span style="color: #000000; font-weight: bold;">new</span> RectangleElement<span style="color: #66cc66;">&#40;</span>document.<span style="color: #006600;">marginLeft</span> + ch.<span style="color: #006600;">getWidthPoint</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>, document.<span style="color: #006600;">getVerticalPosition</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">false</span><span style="color: #66cc66;">&#41;</span>, document.<span style="color: #006600;">pageSize</span>.<span style="color: #0066CC;">width</span> - document.<span style="color: #006600;">marginRight</span>, document.<span style="color: #006600;">getVerticalPosition</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">true</span><span style="color: #66cc66;">&#41;</span> + <span style="color: #cc66cc;">5</span><span style="color: #66cc66;">&#41;</span>;
re.<span style="color: #0066CC;">border</span> = RectangleElement.<span style="color: #006600;">BOTTOM</span>;
re.<span style="color: #0066CC;">borderColor</span> = RGBColor.<span style="color: #006600;">BLACK</span>;
re.<span style="color: #006600;">borderWidth</span> = <span style="color: #cc66cc;">1</span>;
cb.<span style="color: #006600;">rectangle</span><span style="color: #66cc66;">&#40;</span>re<span style="color: #66cc66;">&#41;</span>;
&nbsp;
document.<span style="color: #0066CC;">close</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">var</span> f: FileReference = <span style="color: #000000; font-weight: bold;">new</span> FileReference<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
f.<span style="color: #006600;">save</span><span style="color: #66cc66;">&#40;</span> buffer, <span style="color: #ff0000;">&quot;Test.pdf&quot;</span> <span style="color: #66cc66;">&#41;</span>;</pre></td></tr></table></div>

<p>I realize this only works for a single line paragraph but it does  work well.  If anyone has an alternative solution using page events, etc.. please share!</p>
]]></content:encoded>
			<wfw:commentRss>http://cesaric.com/?feed=rss2&#038;p=643</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix Mysql Workbench Synchronization Issues on Mac</title>
		<link>http://cesaric.com/?p=616</link>
		<comments>http://cesaric.com/?p=616#comments</comments>
		<pubDate>Wed, 16 Jun 2010 04:43:08 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://cesaric.com/?p=616</guid>
		<description><![CDATA[Update (8/7/2012): After setting up a new OS X (Lion), I had installed MySQL via MacPorts and just moved my db files over to the case sensitive partition.  That works fine (been using it this way for a month).  With exception to the note below, I didn&#8217;t have to go through the trouble of moving [...]]]></description>
				<content:encoded><![CDATA[<p><strong>Update (8/7/2012):</strong> <em>After setting up a new OS X (Lion), I had installed MySQL via MacPorts and just moved my db files over to the case sensitive partition.  That works fine (been using it this way for a month).  With exception to the note below, I didn&#8217;t have to go through the trouble of moving the entire MySQL install.  So in my case,  I moved</em> /opt/local/var/db/mysql5 <em>to my other partition</em> /Volumes/Macintosh HD 2/mysql5.  <em>Then created a symbolic link pointing from the old to the new location.  That&#8217;s it.</em></p>
<p><strong>Original (2010):</strong><br />
MySQL Workbench doesn&#8217;t play nice with case <strong>insensitive</strong> file systems when you try to use the db synchronization feature on schemas with mixed case table names.  &#8230;And the lower_case_table_names option in MySQL doesn&#8217;t quite fix it.</p>
<p>Ultimately, I decided to copy and move MySQL over to a case sensitive partition that was created.  The result&#8230; MySQL Workbench db synchronization now works as expected.</p>
<p>Also, I didn&#8217;t have to worry about crapping up anything since I was just making a copy of MySQL and pointing the &#8220;mysql&#8221; sym link to it&#8217;s new location;  plus it only takes 10 minutes to setup.</p>
<p>To get started (this may vary slightly on your OS version):</p>
<ol>
<li>Create a partition using Applications&gt;&gt;Utilities&gt;&gt;Disk Utility.  Make sure under &#8220;Format&#8221; you select a &#8220;Case-sensitive&#8221; format.  I went with &#8220;Mac OS Extended (Case-Sensitive, Journaled)&#8221;.</li>
<li>Stop MySQL if it&#8217;s running:<br />
$  sudo /Library/StartupItems/MySQLCOM/MySQLCOM stop</li>
<li>Copy your current MySQL install to the new partition:<br />
$ sudo cp -rp /usr/local/mysql  /Volumes/Macintosh/NewPartition</li>
<li>Point the symbolic link &#8220;mysql&#8221; in /usr/local/mysql to the new location:<br />
$ sudo ln -sf /Volumes/Macintosh/NewPartition/mysql  /usr/local/mysql</li>
<li>Start MySQL back up:<br />
$  sudo /Library/StartupItems/MySQLCOM/MySQLCOM start</li>
<li>You&#8217;re finished. If it doesn&#8217;t work for you, you can always point your &#8220;mysql&#8221; sym link back to your original install and restart.</li>
</ol>
<p>If you run $ mysqladmin -u root -p variables      &#8230;you&#8217;ll see that &#8220;lower_case_table_names&#8221; automatically sets to zero (case sensitive setting).</p>
<p><span style="text-decoration: underline;"><strong>Note:</strong></span> You may have to drop and rebuild any schemas/tables that you copied over.  This seems to only apply to schemas with linked tables (the &#8220;information_schema.REFERENTIAL_CONSTRAINTS.REFERENCED_TABLE_NAMES.&#8221; column has case insensitive values which MySQL may choke on).</p>
]]></content:encoded>
			<wfw:commentRss>http://cesaric.com/?feed=rss2&#038;p=616</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MySQL &#8216;max_allowed_packet&#8217; fix</title>
		<link>http://cesaric.com/?p=604</link>
		<comments>http://cesaric.com/?p=604#comments</comments>
		<pubDate>Wed, 19 May 2010 14:51:07 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://cesaric.com/?p=604</guid>
		<description><![CDATA[I was trying to import some data into my local MySQL (Mac) and ran into the following error: #1153 &#8211; Got a packet bigger than &#8216;max_allowed_packet&#8217; bytes. I was storing some images in a LongBlob column which was causing this &#8230;don&#8217;t even bother saying it . In short, you need to locate your mysql my.cnf [...]]]></description>
				<content:encoded><![CDATA[<p>I was trying to import some data into my local MySQL (Mac) and ran into the following error: <strong>#1153 &#8211; Got a packet bigger than &#8216;max_allowed_packet&#8217; bytes. </strong> I was storing some images in a LongBlob column which was causing this &#8230;don&#8217;t even bother saying it <img src='http://cesaric.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> .</p>
<p>In short, you need to locate your mysql <strong>my.cnf</strong> config file and add or change the max allowed packet:</p>
<p>[mysqld]<br />
max_allowed_packet = 50M</p>
<p>At the shell, you can type &#8220;<strong>mysqladmin</strong>&#8221; and scroll up a bit to see what the default location options are for my.cnf.</p>
<p>In my case, I tried using MySQL Workbench (awesome tool by the way) to change this parameter.  It changed it but it appeared MySQL wasn&#8217;t reading Workbenches location for my.cnf (as circled at the bottom of the screen-shot).  I&#8217;m not sure why my.cnf wasn&#8217;t in a standard directory like &#8220;/etc&#8221; or why that location was sniffed out by Workbench but since I couldn&#8217;t figure out how to tell Workbench to use a different config location, I just coppied my.cnf and modified it and moved it to &#8220;/etc&#8221;.  Restarted MySQL and all was good.</p>
<p>If anyone knows how to fix the my.cnf location discrepency or what I might be missing , let me know.  Thx! -Rob</p>
]]></content:encoded>
			<wfw:commentRss>http://cesaric.com/?feed=rss2&#038;p=604</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Show Hidden Eclipse Files in Package Explorer</title>
		<link>http://cesaric.com/?p=591</link>
		<comments>http://cesaric.com/?p=591#comments</comments>
		<pubDate>Sun, 02 May 2010 15:08:41 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Other Stuff]]></category>

		<guid isPermaLink="false">http://cesaric.com/?p=591</guid>
		<description><![CDATA[Within your package explorer view in Eclipse, click on the white triangle in the upper right corner of the view. From there, select which hidden files you want to exclude:]]></description>
				<content:encoded><![CDATA[<p>Within your package explorer view in Eclipse, click on the white triangle in the upper right corner of the view.</p>
<p>From there, select which hidden files you want to  exclude:</p>
<p><a href="http://cesaric.com/wp-content/uploads/2010/05/ShowHiddenEclipseFiles2.jpg"><img src="http://cesaric.com/wp-content/uploads/2010/05/ShowHiddenEclipseFiles2.jpg" alt="" title="ShowHiddenEclipseFiles2" width="268" height="360" class="aligncenter size-full wp-image-594" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://cesaric.com/?feed=rss2&#038;p=591</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add custom code to Doctrine&#8217;s Model Generator.</title>
		<link>http://cesaric.com/?p=557</link>
		<comments>http://cesaric.com/?p=557#comments</comments>
		<pubDate>Sun, 11 Apr 2010 22:42:09 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Doctrine]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://cesaric.com/?p=557</guid>
		<description><![CDATA[When I start a Flex/Doctrine project, I create the DB model using MySQL Workbench. From there, I&#8217;ll use the Doctrine MySQL Workbench plugin (slightly modified) to create my YAML file. I&#8217;ll then run the Doctrine::generateModelsFromYaml function to create my models. After generating the model classes, the one thing I used to have to do manually [...]]]></description>
				<content:encoded><![CDATA[<p>When I start a Flex/Doctrine project, I create the DB model using MySQL Workbench.  From there, I&#8217;ll use the Doctrine MySQL Workbench plugin (slightly modified) to create my YAML file.  I&#8217;ll then run the <b>Doctrine::generateModelsFromYaml</b> function to create my models.</p>
<p>After generating the model classes, the one thing I used to have to do manually is add the _explicitType property to my top level classes as such:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">class</span> User <span style="color: #000000; font-weight: bold;">extends</span> BaseUser<span style="color: #009900;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> construct<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">mapValue</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;_explicitType&quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;com.persistence.User&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>If you want to automate this step or add something completely different you can edit the <b>&#8220;buildDefinition&#8221;</b> function in <b>Doctrine/Import/Builder.php</b>.  I simply added my edits to the <b>$tableDefinitionCode</b> variable.  <br/><br />
<b>NOTE:  This particular hack only inserts your custom code in your top level class and not in your base classes.</b> <br/><br />
Here&#8217;s what my modified version looks like to get the example above:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="php" style="font-family:monospace;">        <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> buildDefinition<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span> <span style="color: #000088;">$definition</span><span style="color: #009900;">&#41;</span>
    <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$definition</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'className'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #b1b100;">throw</span> <span style="color: #000000; font-weight: bold;">new</span> Doctrine_Import_Builder_Exception<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Missing class name.'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #000088;">$abstract</span> <span style="color: #339933;">=</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$definition</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'abstract'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$definition</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'abstract'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">===</span> <span style="color: #009900; font-weight: bold;">true</span> ? <span style="color: #0000ff;">'abstract '</span><span style="color: #339933;">:</span><span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$className</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$definition</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'className'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
        <span style="color: #000088;">$extends</span> <span style="color: #339933;">=</span> <span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$definition</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'inheritance'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'extends'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> ? <span style="color: #000088;">$definition</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'inheritance'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'extends'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span>_baseClassName<span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$definition</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'no_definition'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$definition</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'no_definition'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">===</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000088;">$tableDefinitionCode</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">buildTableDefinition</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$definition</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #000088;">$setUpCode</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">buildSetUp</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$definition</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
        	<span style="color: #666666; font-style: italic;">//This is the top level class where we can do some custom coding.</span>
			<span style="color: #000088;">$tableDefinitionCode</span> <span style="color: #339933;">=</span> PHP_EOL <span style="color: #339933;">.</span> 
<span style="color: #0000ff;">'	public function construct(){
		$this-&gt;mapValue(&quot;_explicitType&quot;,&quot;com.persistence.'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$className</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot;);
	}'</span><span style="color: #339933;">;</span>
&nbsp;
			<span style="color: #000088;">$setUpCode</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$tableDefinitionCode</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$setUpCode</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000088;">$setUpCode</span> <span style="color: #339933;">=</span> PHP_EOL <span style="color: #339933;">.</span> <span style="color: #000088;">$setUpCode</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
&nbsp;
        <span style="color: #000088;">$docs</span> <span style="color: #339933;">=</span> PHP_EOL <span style="color: #339933;">.</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">buildPhpDocs</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$definition</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #990000;">sprintf</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">self</span><span style="color: #339933;">::</span><span style="color: #000088;">$_tpl</span><span style="color: #339933;">,</span> <span style="color: #000088;">$docs</span><span style="color: #339933;">,</span> <span style="color: #000088;">$abstract</span><span style="color: #339933;">,</span>
                                       <span style="color: #000088;">$className</span><span style="color: #339933;">,</span>
                                       <span style="color: #000088;">$extends</span><span style="color: #339933;">,</span>
                                       <span style="color: #000088;">$tableDefinitionCode</span><span style="color: #339933;">,</span>
                                       <span style="color: #000088;">$setUpCode</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #b1b100;">return</span> <span style="color: #000088;">$content</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Since I always have unique class names, I randomly picked &#8220;com.persistence&#8221; as my <b>_explicitType</b> package name because  it&#8217;s strictly used for hydrating the object on the Flex side of AMF and doesn&#8217;t necessarily need to represent the actual location of the PHP class/service.  So as long as my Flexa DTO/VO has the metadata <b>[RemoteClass(alias="com.persistence.User")]</b>  set, it&#8217;ll come back to Flex correctly typed and not a generic object.</p>
]]></content:encoded>
			<wfw:commentRss>http://cesaric.com/?feed=rss2&#038;p=557</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to install the Doctrine Plugin for Workbench on Mac.</title>
		<link>http://cesaric.com/?p=549</link>
		<comments>http://cesaric.com/?p=549#comments</comments>
		<pubDate>Sun, 11 Apr 2010 19:27:39 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Doctrine]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://cesaric.com/?p=549</guid>
		<description><![CDATA[If you&#8217;re trying to install the MySql Workbench Doctrine Plugin for Mac and don&#8217;t know where your %APPDATA% directory is, here&#8217;s the path: %YOUR HOME DIRECTORY%/Library/Application Support/MySQL/Workbench/modules/DoctrineExport.grt.lua - or as in my case on my laptop - /Users/robert/Library/Application Support/MySQL/Workbench/modules/DoctrineExport.grt.lua Once your drop in the DoctrineExport.grt.lua script, restart Workbench and you&#8217;re ready to go.]]></description>
				<content:encoded><![CDATA[<p>If you&#8217;re trying to install the MySql Workbench Doctrine Plugin for Mac and don&#8217;t know where your %APPDATA% directory is, here&#8217;s the path:</p>
<p><b>%YOUR HOME DIRECTORY%/Library/Application   Support/MySQL/Workbench/modules/DoctrineExport.grt.lua</b></p>
<p>- or as in my case on my laptop -</p>
<p><b>/Users/robert/Library/Application  Support/MySQL/Workbench/modules/DoctrineExport.grt.lua</b></p>
<p>Once your drop in the DoctrineExport.grt.lua script, restart Workbench and you&#8217;re ready to go.</p>
]]></content:encoded>
			<wfw:commentRss>http://cesaric.com/?feed=rss2&#038;p=549</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ToggleButtonBar w/ Separators, Multiline &amp; Solid Color State Attributes</title>
		<link>http://cesaric.com/?p=525</link>
		<comments>http://cesaric.com/?p=525#comments</comments>
		<pubDate>Thu, 08 Apr 2010 16:12:56 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Adobe Flex]]></category>

		<guid isPermaLink="false">http://cesaric.com/?p=525</guid>
		<description><![CDATA[This started off last night as an extension of the ToggleButtonBar so that I could easily skin it with solid background colors for the button states as I was tired of creating custom skins for this. By the time I finished I ended up hacking some multiline and button separator features into it too. The [...]]]></description>
				<content:encoded><![CDATA[<p>This started off last night as an extension of the ToggleButtonBar so that I could easily skin it with solid background colors for the button states as I was tired of creating custom skins for this. By the time I finished I ended up hacking some multiline and button separator features into it too.</p>
<ul>
<li>The separators width, height and color can be set via ToggleButtonBar mxml attributes.</li>
<li>Multiline can be set via the &#8220;multiline&#8221; mxml attribute (true/false).  If you set this to true, you may want to remove the height to allow it to autosize and prevent clipping.</li>
<li>This was really designed for solid colored states (up, over, down, selectedUp, selectedOver, selectedDown, disabled) but I&#8217;m sure it can be used for custom skins just as easy.  Take a look at the example source to see the actual attribute names for setting these.</li>
</ul>
<p>Note: I haven&#8217;t tested this yet but the separators may not remove themselves if you dynamically remove buttons.  I think it was the removeChild function in one of the Super classes that was set to private so I left it as is for now (it&#8217;s working for the project I need it for at the moment).   If anyone improves on this (trust me there&#8217;s plenty of room), please shoot it back my way and I&#8217;ll update the example.  &#8230;Thanks, -Rob</p>
<p><a title="Example" href="http://cesaric.com/examples/togglebuttonbar/index.html" target="_blank">Example</a><br />
<a title="Source" href="http://cesaric.com/examples/togglebuttonbar/srcview/index.html" target="_blank">Source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://cesaric.com/?feed=rss2&#038;p=525</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Tip: MySQL Workbench Model Option Token Filters</title>
		<link>http://cesaric.com/?p=517</link>
		<comments>http://cesaric.com/?p=517#comments</comments>
		<pubDate>Sun, 07 Feb 2010 05:54:50 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://cesaric.com/?p=517</guid>
		<description><![CDATA[In MySQL Workbench, there&#8217;s the standard tokens (table, stable, dtable, column) that you can use to help customize your naming conventions of your columns, keys, etc.  What you can also do is apply/pipe filters to these tokens.  The filters are upper, lower &#38; capitalize.  You can see in the image above how they can be [...]]]></description>
				<content:encoded><![CDATA[<p>In MySQL Workbench, there&#8217;s the standard tokens (table, stable, dtable, column) that you can use to help customize your naming conventions of your columns, keys, etc.  What you can also do is apply/pipe filters to these tokens.  The filters are <strong>upper</strong>, <strong>lower</strong> &amp; <strong>capitalize</strong>.  You can see in the image above how they can be applied.</p>
]]></content:encoded>
			<wfw:commentRss>http://cesaric.com/?feed=rss2&#038;p=517</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Complex / Irregular Shaped Flex UIComponent</title>
		<link>http://cesaric.com/?p=486</link>
		<comments>http://cesaric.com/?p=486#comments</comments>
		<pubDate>Thu, 07 Jan 2010 15:35:21 +0000</pubDate>
		<dc:creator>Rob</dc:creator>
				<category><![CDATA[Adobe Flex]]></category>

		<guid isPermaLink="false">http://cesaric.com/?p=486</guid>
		<description><![CDATA[So I needed to lay a complex shaped graphic over the right edge of toggleButtonBar menu in one of my Flex projects. The problem was that I need to be able to click the menu under the transparent parts of the graphic.  I don&#8217;t know if there&#8217;s a secret mx:Image attribute that allows for it [...]]]></description>
				<content:encoded><![CDATA[<p>So I needed to lay a complex shaped graphic <strong>over</strong> the right edge of toggleButtonBar menu in one of my Flex projects.  The problem was that I need to be able to click the menu under the transparent parts of the graphic.  I don&#8217;t know if there&#8217;s a secret mx:Image attribute that allows for it but I couldn&#8217;t get it to work.  I also had to make this compatible with Flash Player 9 and Flex 3 so FXG was out of the question and bringing in the Degrafa library was a bit too heavy for just this one task.</p>
<p>One solution is creating a &#8220;Shape&#8221; object and passing the graphic at hand to the beginBitmapFill method.  The problem with this is that if you need to use constraints like &#8220;horizontalCenter&#8221; to align it, you&#8217;re out of luck as that&#8217;s only available with subclasses of the UIComponent which the Shape class is not.</p>
<p>If you need constraint layout capabilities, just use UIComponent instead of Shape.  I also found a lot of examples using the &#8220;Loader&#8217; class to get the bitMapData of the image. In the example below, you&#8217;ll see a different way to do this with an embedded image.  Here&#8217;s the <a href="http://cesaric.com/wp-content/uploads/2010/01/curtain.png" target="_blank">image that I was working with </a> and sample code with a button to test:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="actionscript" style="font-family:monospace;">&nbsp;
<span style="color: #66cc66;">&lt;</span>?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;</span>mx:Application xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;100%&quot;</span> layout=<span style="color: #ff0000;">&quot;absolute&quot;</span> creationComplete=<span style="color: #ff0000;">&quot;init()&quot;</span><span style="color: #66cc66;">&gt;</span>
&nbsp;
	<span style="color: #66cc66;">&lt;</span>mx:Script<span style="color: #66cc66;">&gt;</span>
		<span style="color: #66cc66;">&lt;!</span><span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span>
			<span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">controls</span>.<span style="color: #006600;">Alert</span>;
			<span style="color: #0066CC;">import</span> mx.<span style="color: #006600;">core</span>.<span style="color: #006600;">UIComponent</span>;
&nbsp;
			<span style="color: #66cc66;">&#91;</span>Embed<span style="color: #66cc66;">&#40;</span>source=<span style="color: #ff0000;">&quot;curtain.png&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span>
			<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> curt:<span style="color: #000000; font-weight: bold;">Class</span>;
			<span style="color: #0066CC;">private</span> <span style="color: #000000; font-weight: bold;">var</span> curtBitmapData:BitmapData = <span style="color: #000000; font-weight: bold;">new</span> curt<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>.<span style="color: #006600;">bitmapData</span>;
&nbsp;
			<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> init<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span>
&nbsp;
				<span style="color: #000000; font-weight: bold;">var</span> curt:UIComponent = <span style="color: #000000; font-weight: bold;">new</span> UIComponent<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
				curt.<span style="color: #006600;">graphics</span>.<span style="color: #006600;">beginBitmapFill</span><span style="color: #66cc66;">&#40;</span>curtBitmapData<span style="color: #66cc66;">&#41;</span>;
				curt.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">moveTo</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">82</span>,<span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>;
				curt.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">lineTo</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">100</span>,<span style="color: #cc66cc;">50</span><span style="color: #66cc66;">&#41;</span>;
				curt.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">lineTo</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">95</span>,<span style="color: #cc66cc;">81</span><span style="color: #66cc66;">&#41;</span>;
				curt.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">lineTo</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">52</span>,<span style="color: #cc66cc;">366</span><span style="color: #66cc66;">&#41;</span>;
				curt.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">lineTo</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">12</span>,<span style="color: #cc66cc;">530</span><span style="color: #66cc66;">&#41;</span>;
				curt.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">lineTo</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">672</span><span style="color: #66cc66;">&#41;</span>;
				curt.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">lineTo</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">222</span>,<span style="color: #cc66cc;">672</span><span style="color: #66cc66;">&#41;</span>;
				curt.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">lineTo</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">222</span>,<span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>;
				curt.<span style="color: #006600;">graphics</span>.<span style="color: #0066CC;">lineTo</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">82</span>,<span style="color: #cc66cc;">0</span><span style="color: #66cc66;">&#41;</span>;
				curt.<span style="color: #0066CC;">setStyle</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;horizontalCenter&quot;</span>, -<span style="color: #cc66cc;">100</span><span style="color: #66cc66;">&#41;</span>;
				curt.<span style="color: #006600;">y</span> = <span style="color: #cc66cc;">60</span>;
				<span style="color: #0066CC;">this</span>.<span style="color: #006600;">addChild</span><span style="color: #66cc66;">&#40;</span>curt<span style="color: #66cc66;">&#41;</span>;
			<span style="color: #66cc66;">&#125;</span>
&nbsp;
			<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> clickMe<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span>
				Alert.<span style="color: #0066CC;">show</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Hit Test&quot;</span><span style="color: #66cc66;">&#41;</span>;
			<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;/</span>mx:Script<span style="color: #66cc66;">&gt;</span>
&nbsp;
	<span style="color: #66cc66;">&lt;</span>mx:<span style="color: #0066CC;">Button</span> horizontalCenter=<span style="color: #ff0000;">&quot;0&quot;</span> y=<span style="color: #ff0000;">&quot;216&quot;</span> label=<span style="color: #ff0000;">&quot;Button&quot;</span> click=<span style="color: #ff0000;">&quot;clickMe()&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;532&quot;</span><span style="color: #66cc66;">/&gt;</span>
&nbsp;
<span style="color: #66cc66;">&lt;/</span>mx:Application<span style="color: #66cc66;">&gt;</span></pre></td></tr></table></div>

<p>Instead of blindly figuring out the coordinates, I created a crude app to help me out.  I figured I could get away with just using straight lines and not the &#8220;Graphics.curveTo&#8221; method.  Here it is:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="actionscript" style="font-family:monospace;"><span style="color: #66cc66;">&lt;</span>?<span style="color: #0066CC;">xml</span> <span style="color: #0066CC;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #66cc66;">&gt;</span>
<span style="color: #66cc66;">&lt;</span>mx:Application xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span> layout=<span style="color: #ff0000;">&quot;absolute&quot;</span> minWidth=<span style="color: #ff0000;">&quot;1024&quot;</span> minHeight=<span style="color: #ff0000;">&quot;768&quot;</span> creationComplete=<span style="color: #ff0000;">&quot;init()&quot;</span> <span style="color: #0066CC;">backgroundColor</span>=<span style="color: #ff0000;">&quot;#FFFFFF&quot;</span><span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;</span>mx:Script<span style="color: #66cc66;">&gt;</span>
		<span style="color: #66cc66;">&lt;!</span><span style="color: #66cc66;">&#91;</span>CDATA<span style="color: #66cc66;">&#91;</span>
&nbsp;
&nbsp;
			<span style="color: #66cc66;">&#91;</span>Bindable<span style="color: #66cc66;">&#93;</span>
			<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> gX:<span style="color: #0066CC;">Number</span>;
&nbsp;
			<span style="color: #66cc66;">&#91;</span>Bindable<span style="color: #66cc66;">&#93;</span>
			<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> gY:<span style="color: #0066CC;">Number</span>;
&nbsp;
			<span style="color: #66cc66;">&#91;</span>Bindable<span style="color: #66cc66;">&#93;</span>
			<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> lX:<span style="color: #0066CC;">Number</span>;
&nbsp;
			<span style="color: #66cc66;">&#91;</span>Bindable<span style="color: #66cc66;">&#93;</span>
			<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">var</span> lY:<span style="color: #0066CC;">Number</span>;
&nbsp;
			<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> init<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span>
				<span style="color: #0066CC;">this</span>.<span style="color: #006600;">curtain</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">CLICK</span>, mouseClick<span style="color: #66cc66;">&#41;</span>;
				<span style="color: #0066CC;">this</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">MOUSE_MOVE</span>, mouseMoveGlobal<span style="color: #66cc66;">&#41;</span>
				<span style="color: #0066CC;">this</span>.<span style="color: #006600;">curtain</span>.<span style="color: #006600;">addEventListener</span><span style="color: #66cc66;">&#40;</span>MouseEvent.<span style="color: #006600;">MOUSE_MOVE</span>, mouseMoveLocal<span style="color: #66cc66;">&#41;</span>
			<span style="color: #66cc66;">&#125;</span>
&nbsp;
			<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> mouseMoveGlobal<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:MouseEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span>
				gX = <span style="color: #0066CC;">e</span>.<span style="color: #006600;">stageX</span>; 
				gY = <span style="color: #0066CC;">e</span>.<span style="color: #006600;">stageY</span>;
			<span style="color: #66cc66;">&#125;</span>
&nbsp;
			<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> mouseMoveLocal<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:MouseEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span>
				lX = <span style="color: #0066CC;">e</span>.<span style="color: #006600;">localX</span>;
				lY = <span style="color: #0066CC;">e</span>.<span style="color: #006600;">localY</span>;
			<span style="color: #66cc66;">&#125;</span>
&nbsp;
			<span style="color: #0066CC;">public</span> <span style="color: #000000; font-weight: bold;">function</span> mouseClick<span style="color: #66cc66;">&#40;</span><span style="color: #0066CC;">e</span>:MouseEvent<span style="color: #66cc66;">&#41;</span>:<span style="color: #0066CC;">void</span><span style="color: #66cc66;">&#123;</span>
				svgLog.<span style="color: #0066CC;">text</span> += <span style="color: #ff0000;">&quot;curt.graphics.lineTo(&quot;</span> + lX + <span style="color: #ff0000;">&quot;,&quot;</span> + lY + <span style="color: #ff0000;">&quot;);<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
			<span style="color: #66cc66;">&#125;</span>
&nbsp;
		<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;/</span>mx:Script<span style="color: #66cc66;">&gt;</span>
	<span style="color: #66cc66;">&lt;</span>mx:Image x=<span style="color: #ff0000;">&quot;385&quot;</span> y=<span style="color: #ff0000;">&quot;37&quot;</span> source=<span style="color: #ff0000;">&quot;curtain.png&quot;</span> id=<span style="color: #ff0000;">&quot;curtain&quot;</span> alpha=<span style="color: #ff0000;">&quot;1.0&quot;</span><span style="color: #66cc66;">/&gt;</span>
	<span style="color: #66cc66;">&lt;</span>mx:Label x=<span style="color: #ff0000;">&quot;10&quot;</span> y=<span style="color: #ff0000;">&quot;10&quot;</span> <span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">&quot;Global x: {gX}&quot;</span> id=<span style="color: #ff0000;">&quot;globalX&quot;</span><span style="color: #66cc66;">/&gt;</span>
	<span style="color: #66cc66;">&lt;</span>mx:Label x=<span style="color: #ff0000;">&quot;10&quot;</span> y=<span style="color: #ff0000;">&quot;30&quot;</span> <span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">&quot;Global y: {gY}&quot;</span> id=<span style="color: #ff0000;">&quot;globalY&quot;</span><span style="color: #66cc66;">/&gt;</span>
	<span style="color: #66cc66;">&lt;</span>mx:Label x=<span style="color: #ff0000;">&quot;120&quot;</span> y=<span style="color: #ff0000;">&quot;10&quot;</span> <span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">&quot;Local x: {lX}&quot;</span> id=<span style="color: #ff0000;">&quot;localX&quot;</span><span style="color: #66cc66;">/&gt;</span>
	<span style="color: #66cc66;">&lt;</span>mx:Label x=<span style="color: #ff0000;">&quot;120&quot;</span> y=<span style="color: #ff0000;">&quot;30&quot;</span> <span style="color: #0066CC;">text</span>=<span style="color: #ff0000;">&quot;Local y: {lY}&quot;</span> id=<span style="color: #ff0000;">&quot;localY&quot;</span><span style="color: #66cc66;">/&gt;</span>
	<span style="color: #66cc66;">&lt;</span>mx:TextArea x=<span style="color: #ff0000;">&quot;10&quot;</span> y=<span style="color: #ff0000;">&quot;67&quot;</span> <span style="color: #0066CC;">height</span>=<span style="color: #ff0000;">&quot;504&quot;</span> <span style="color: #0066CC;">width</span>=<span style="color: #ff0000;">&quot;247&quot;</span> id=<span style="color: #ff0000;">&quot;svgLog&quot;</span><span style="color: #66cc66;">/&gt;</span>
&nbsp;
<span style="color: #66cc66;">&lt;/</span>mx:Application<span style="color: #66cc66;">&gt;</span></pre></td></tr></table></div>

<p>All in all, this works and it was quick.  If anyone has any other ideas on how to go about achieving this, I&#8217;d love to here it!</p>
]]></content:encoded>
			<wfw:commentRss>http://cesaric.com/?feed=rss2&#038;p=486</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
