<?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>flom.com</title>
	<atom:link href="http://www.flom.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.flom.com</link>
	<description>Develop, Design, Produce</description>
	<lastBuildDate>Tue, 18 May 2010 20:46:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Flash Builder/Flex 4 and ZendAMF alternative connection example</title>
		<link>http://www.flom.com/?p=39</link>
		<comments>http://www.flom.com/?p=39#comments</comments>
		<pubDate>Tue, 18 May 2010 18:47:38 +0000</pubDate>
		<dc:creator>Todd Flom</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.flom.com/?p=39</guid>
		<description><![CDATA[I was attempting to try out a simple test of ZendAMF and Flash Builder. I had begun by building the test using WAMP on my local machine. I had began by using the built in Connect to Data/Service wizard built into Flash Builder.  The example I was following was from and article over at the [...]]]></description>
			<content:encoded><![CDATA[<p>I was attempting to try out a simple test of ZendAMF and Flash Builder. I had begun by building the test using WAMP on my local machine. I had began by using the built in Connect to Data/Service wizard built into Flash Builder.  The example I was following was from and article over at the Zend Developer Zone called: <a href="http://devzone.zend.com/article/4705" target="_blank">Data-centric Adobe Flash Builder development with the Zend Framework</a>. Everything worked slick as can be runing locally on WAMP but when I tried using the same data connection with my site on an unamed hosting company I was ending up with errors due to the age of mySQL and PHP that my hosting company is currently using. I am stilll working on resolving those problems. But in the meantime I was needing to get it to work.  I decided to incorporate the simple example <a href="http://www.leebrimelow.com">Lee Brimelow</a> used with his <a href="http://www.gotoandlearn.com/play?id=90" target="_blank">Flash and Zend AMF tutorial</a>.</p>
<p>The example here is a simple voting screen to pick from a set of actors for best actor and worst actor. It holds a simple SharedObject variable to determine if you have already voted and keeps you from voting twice.</p>
<p>Here is the MXML:</p>
<div class="codecolorer-container xml default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br />91<br />92<br />93<br />94<br />95<br />96<br />97<br />98<br />99<br />100<br />101<br />102<br />103<br />104<br />105<br />106<br />107<br />108<br />109<br />110<br />111<br />112<br />113<br />114<br />115<br />116<br />117<br />118<br />119<br />120<br />121<br />122<br />123<br /></div></td><td><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;utf-8&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;s:Application</span> <span style="color: #000066;">xmlns:fx</span>=<span style="color: #ff0000;">&quot;http://ns.adobe.com/mxml/2009&quot;</span></span><br />
<span style="color: #009900;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000066;">xmlns:s</span>=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/spark&quot;</span> </span><br />
<span style="color: #009900;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000066;">xmlns:mx</span>=<span style="color: #ff0000;">&quot;library://ns.adobe.com/flex/mx&quot;</span> <span style="color: #000066;">minWidth</span>=<span style="color: #ff0000;">&quot;500&quot;</span> <span style="color: #000066;">minHeight</span>=<span style="color: #ff0000;">&quot;600&quot;</span> &nbsp;<span style="color: #000066;">creationComplete</span>=<span style="color: #ff0000;">&quot;application_creationCompleteHandler(event)&quot;</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">&quot;500&quot;</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">&quot;600&quot;</span> <span style="color: #000066;">backgroundColor</span>=<span style="color: #ff0000;">&quot;#000000&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fx:Script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">&lt;![CDATA[</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; import flash.events.Event;</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; import flash.events.NetStatusEvent;</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; import flash.events.SecurityErrorEvent;</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; import flash.net.NetConnection;</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; import flash.net.NetStream;</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; import flash.net.Responder;</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; import flash.net.SharedObject;</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; import flash.system.Security;</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; import mx.controls.Alert;</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; import mx.events.CloseEvent;</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; import mx.events.FlexEvent;</span><br />
<br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; private var so:SharedObject = SharedObject.getLocal(&quot;awardVoting&quot;);</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; private var radioEnabled:Boolean = false;</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; private var nc:NetConnection;</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; protected function voteBtn_clickHandler(event:MouseEvent):void</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var record:Object = new Object;</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; record.bestActor = radiogroup1.selectedValue;</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; record.worstActor = radiogroup2.selectedValue;</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /* had to use the old Zend connection scripts from Flash because of the age of PHP and mySQL on my server */</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nc = new NetConnection();</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nc.connect(&quot;/*path to my file*/bootstrapper.php&quot;);</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var responder:Responder = new Responder(onResResult, onResFault);</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nc.call(&quot;awards.add&quot;, responder, record.bestActor, record.worstActor);</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Alert.show(&quot;Thank you for voting!&quot;, &quot;Acting Award voting&quot;, 0 , this, doSomethingElse);</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; private function onResResult(result:Object):void {</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //Alert.show(&quot;it works!!!&quot;);</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; public function onResFault(fault:Object):void {</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Alert.show(String(fault.description));</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</span><br />
<br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; protected function doSomethingElse(event:CloseEvent):void {</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; radioEnabled = false;</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.doEnable(radioEnabled);</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; so.data.voted = &quot;true&quot;;</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; so.flush();</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; protected function application_creationCompleteHandler(event:FlexEvent):void</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Security.allowDomain(&quot;/*my domain*/&quot;);</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Security.loadPolicyFile(&quot;/*path to my file*/crossdomain.xml&quot;);</span><br />
<br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /*so.clear();*/</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (so.data.voted) {</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Alert.show(&quot;You have already voted!&quot;, &quot;Acting Award voting&quot;);</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; radioEnabled = false;</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.doEnable(radioEnabled);</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else {</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Alert.show(&quot;Welcome to the Acting Awards poll.\n\nPlease select an actor from each category&quot;, &quot;Acting Award voting&quot;);</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; radioEnabled = true;</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; this.doEnable(radioEnabled);</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; protected function doEnable(n:Boolean):void {</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; radiogroup1.enabled = n;</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; radiogroup2.enabled = n;</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; voteBtn.enabled = n;</span><br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</span><br />
<br />
<span style="color: #339933;">&nbsp; &nbsp; &nbsp; &nbsp; ]]&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/fx:Script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fx:Declarations<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;s:RadioButtonGroup</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;radiogroup1&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;s:RadioButtonGroup</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;radiogroup2&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #808080; font-style: italic;">&lt;!-- Place non-visual elements (e.g., services, value objects) here --&gt;</span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/fx:Declarations<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:Image</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">&quot;0&quot;</span> <span style="color: #000066;">source</span>=<span style="color: #ff0000;">&quot;images/awardsMockup.jpg&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;s:BorderContainer</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">&quot;30&quot;</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">&quot;209&quot;</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">&quot;203&quot;</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">&quot;319&quot;</span> <span style="color: #000066;">backgroundColor</span>=<span style="color: #ff0000;">&quot;#000000&quot;</span> <span style="color: #000066;">backgroundAlpha</span>=<span style="color: #ff0000;">&quot;0.5&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span> <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/s:BorderContainer<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;s:BorderContainer</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">&quot;267&quot;</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">&quot;209&quot;</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">&quot;203&quot;</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">&quot;319&quot;</span> <span style="color: #000066;">backgroundColor</span>=<span style="color: #ff0000;">&quot;#000000&quot;</span> <span style="color: #000066;">backgroundAlpha</span>=<span style="color: #ff0000;">&quot;0.5&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/s:BorderContainer<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;s:VGroup</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">&quot;30&quot;</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">&quot;209&quot;</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">&quot;203&quot;</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">&quot;319&quot;</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;vGroup&quot;</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">&quot;#FFFFFF&quot;</span> <span style="color: #000066;">contentBackgroundColor</span>=<span style="color: #ff0000;">&quot;#000000&quot;</span> <span style="color: #000066;">contentBackgroundAlpha</span>=<span style="color: #ff0000;">&quot;0.5&quot;</span> <span style="color: #000066;">gap</span>=<span style="color: #ff0000;">&quot;6&quot;</span> <span style="color: #000066;">paddingLeft</span>=<span style="color: #ff0000;">&quot;8&quot;</span> <span style="color: #000066;">paddingRight</span>=<span style="color: #ff0000;">&quot;8&quot;</span> <span style="color: #000066;">paddingTop</span>=<span style="color: #ff0000;">&quot;8&quot;</span> <span style="color: #000066;">paddingBottom</span>=<span style="color: #ff0000;">&quot;8&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;s:Label</span> <span style="color: #000066;">text</span>=<span style="color: #ff0000;">&quot;Best Actor:&quot;</span> <span style="color: #000066;">fontWeight</span>=<span style="color: #ff0000;">&quot;bold&quot;</span> <span style="color: #000066;">fontSize</span>=<span style="color: #ff0000;">&quot;13&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;s:RadioButton</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Viggo Mortensen - The Road&quot;</span> <span style="color: #000066;">groupName</span>=<span style="color: #ff0000;">&quot;radiogroup1&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;Mortensen&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;s:RadioButton</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Sharlto Copley - District 9&quot;</span> <span style="color: #000066;">groupName</span>=<span style="color: #ff0000;">&quot;radiogroup1&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;Copley&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;s:RadioButton</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;George Clooney - Up in the Air&quot;</span> <span style="color: #000066;">groupName</span>=<span style="color: #ff0000;">&quot;radiogroup1&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;Clooney&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;s:RadioButton</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Matt Damon - The Informant!&quot;</span> <span style="color: #000066;">groupName</span>=<span style="color: #ff0000;">&quot;radiogroup1&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;Damon&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;s:RadioButton</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Ben Foster - The Messenger&quot;</span> <span style="color: #000066;">groupName</span>=<span style="color: #ff0000;">&quot;radiogroup1&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;Foster&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;s:RadioButton</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Jeremy Renner - The Hurt Locker&quot;</span> <span style="color: #000066;">groupName</span>=<span style="color: #ff0000;">&quot;radiogroup1&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;Renner &quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;s:RadioButton</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Brad Pitt - Inglourious Basterds&quot;</span> <span style="color: #000066;">groupName</span>=<span style="color: #ff0000;">&quot;radiogroup1&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;Pitt&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;s:RadioButton</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Colin Firth - A Single Man&quot;</span> <span style="color: #000066;">groupName</span>=<span style="color: #ff0000;">&quot;radiogroup1&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;Firth&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;s:RadioButton</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Tobey Maguire - Brothers&quot;</span> <span style="color: #000066;">groupName</span>=<span style="color: #ff0000;">&quot;radiogroup1&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;Maguire&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;s:RadioButton</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Jeff Bridges - Crazy Heart&quot;</span> <span style="color: #000066;">groupName</span>=<span style="color: #ff0000;">&quot;radiogroup1&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;Bridges&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/s:VGroup<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;s:VGroup</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">&quot;267&quot;</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">&quot;209&quot;</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">&quot;202&quot;</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">&quot;319&quot;</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">&quot;#FFFFFF&quot;</span> <span style="color: #000066;">contentBackgroundColor</span>=<span style="color: #ff0000;">&quot;#000000&quot;</span> <span style="color: #000066;">contentBackgroundAlpha</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">paddingLeft</span>=<span style="color: #ff0000;">&quot;8&quot;</span> <span style="color: #000066;">paddingRight</span>=<span style="color: #ff0000;">&quot;8&quot;</span> <span style="color: #000066;">paddingTop</span>=<span style="color: #ff0000;">&quot;8&quot;</span> <span style="color: #000066;">paddingBottom</span>=<span style="color: #ff0000;">&quot;8&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;s:Label</span> <span style="color: #000066;">text</span>=<span style="color: #ff0000;">&quot;Don't Quit Your Day Job:&quot;</span> <span style="color: #000066;">fontWeight</span>=<span style="color: #ff0000;">&quot;bold&quot;</span> <span style="color: #000066;">fontSize</span>=<span style="color: #ff0000;">&quot;13&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;s:RadioButton</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Jack Black &nbsp;- Year One&quot;</span> <span style="color: #000066;">groupName</span>=<span style="color: #ff0000;">&quot;radiogroup2&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;Black&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;s:RadioButton</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Jim Carrey - A Christmas Carol&quot;</span> <span style="color: #000066;">groupName</span>=<span style="color: #ff0000;">&quot;radiogroup2&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;Carrey&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;s:RadioButton</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Nicholas Cage - Knowing&quot;</span> <span style="color: #000066;">groupName</span>=<span style="color: #ff0000;">&quot;radiogroup2&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;Cage&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;s:RadioButton</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Robert Pattinson - New Moon&quot;</span> <span style="color: #000066;">groupName</span>=<span style="color: #ff0000;">&quot;radiogroup2&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;Pattinson&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;s:RadioButton</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Vince Vaughn - Couples Retreat&quot;</span> <span style="color: #000066;">groupName</span>=<span style="color: #ff0000;">&quot;radiogroup2&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;Vaughn&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;s:RadioButton</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;John Cusack - 2012&quot;</span> <span style="color: #000066;">groupName</span>=<span style="color: #ff0000;">&quot;radiogroup2&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;Cusack&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;s:RadioButton</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Kevin James - Paul Blart Mall Cop&quot;</span> <span style="color: #000066;">groupName</span>=<span style="color: #ff0000;">&quot;radiogroup2&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;James&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;s:RadioButton</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Johnny Depp - Public Enemies&quot;</span> <span style="color: #000066;">groupName</span>=<span style="color: #ff0000;">&quot;radiogroup2&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;Depp&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;s:RadioButton</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Taylor Lautner - New Moon&quot;</span> <span style="color: #000066;">groupName</span>=<span style="color: #ff0000;">&quot;radiogroup2&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;Lautner&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;s:RadioButton</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Ashton Kutcher - Personal Effects&quot;</span> <span style="color: #000066;">groupName</span>=<span style="color: #ff0000;">&quot;radiogroup2&quot;</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">&quot;Kutcher&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/s:VGroup<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;s:Button</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">&quot;215&quot;</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">&quot;551&quot;</span> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">&quot;Vote&quot;</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;voteBtn&quot;</span> <span style="color: #000066;">click</span>=<span style="color: #ff0000;">&quot;voteBtn_clickHandler(event)&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;s:TextArea</span> <span style="color: #000066;">x</span>=<span style="color: #ff0000;">&quot;66&quot;</span> <span style="color: #000066;">y</span>=<span style="color: #ff0000;">&quot;152&quot;</span> <span style="color: #000066;">width</span>=<span style="color: #ff0000;">&quot;361&quot;</span> <span style="color: #000066;">height</span>=<span style="color: #ff0000;">&quot;31&quot;</span> <span style="color: #000066;">text</span>=<span style="color: #ff0000;">&quot;Acting Award Voting&quot;</span> <span style="color: #000066;">fontFamily</span>=<span style="color: #ff0000;">&quot;Arial&quot;</span> <span style="color: #000066;">fontWeight</span>=<span style="color: #ff0000;">&quot;bold&quot;</span> <span style="color: #000066;">fontSize</span>=<span style="color: #ff0000;">&quot;20&quot;</span> <span style="color: #000066;">borderVisible</span>=<span style="color: #ff0000;">&quot;false&quot;</span> <span style="color: #000066;">textAlign</span>=<span style="color: #ff0000;">&quot;center&quot;</span> <span style="color: #000066;">contentBackgroundAlpha</span>=<span style="color: #ff0000;">&quot;0.0&quot;</span> <span style="color: #000066;">color</span>=<span style="color: #ff0000;">&quot;#FFFFFF&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/s:Application<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></td></tr></tbody></table></div>
<p>Here is the awards.php file:</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:300px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #000000; font-weight: bold;">class</span> awards <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <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><br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">require</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/*path to file outside of public web directory*/configConn.inc.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/mysql_connect"><span style="color: #990000;">mysql_connect</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$server</span><span style="color: #339933;">,</span><span style="color: #000088;">$username</span><span style="color: #339933;">,</span><span style="color: #000088;">$password</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/mysql_select_db"><span style="color: #990000;">mysql_select_db</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;/*my database*/&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> getPeople<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_query"><span style="color: #990000;">mysql_query</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT * FROM awards&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$t</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/mysql_fetch_assoc"><span style="color: #990000;">mysql_fetch_assoc</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/array_push"><span style="color: #990000;">array_push</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$t</span><span style="color: #339933;">,</span> <span style="color: #000088;">$row</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$t</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<br />
&nbsp; &nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">function</span> add<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$bestActor</span><span style="color: #339933;">,</span> <span style="color: #000088;">$worstActor</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$insert</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/sprintf"><span style="color: #990000;">sprintf</span></a><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;INSERT INTO awards VALUES (NULL, '<span style="color: #009933; font-weight: bold;">%s</span>', '<span style="color: #009933; font-weight: bold;">%s</span>')&quot;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/mysql_real_escape_string"><span style="color: #990000;">mysql_real_escape_string</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$bestActor</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/mysql_real_escape_string"><span style="color: #990000;">mysql_real_escape_string</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$worstActor</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/mysql_query"><span style="color: #990000;">mysql_query</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$insert</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #0000ff;">'You addded: '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$bestActor</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$worstActor</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'. The Query string is: '</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$insert</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>Here is the configConn.inc.php:</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #000088;">$server</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;/*my mySQL server*/&quot;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$username</span><span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;/*my username*/&quot;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$password</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;/*my password*/&quot;</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></td></tr></tbody></table></div>
<p>And finally here is the bootstrapper.php file:</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">?php<br />
<br />
<a href="http://www.php.net/error_reporting"><span style="color: #990000;">error_reporting</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">E_ALL</span> <span style="color: #339933;">|</span> <span style="color: #009900; font-weight: bold;">E_STRICT</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<a href="http://www.php.net/ini_set"><span style="color: #990000;">ini_set</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;display_errors&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;on&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<a href="http://www.php.net/ini_set"><span style="color: #990000;">ini_set</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;include_path&quot;</span><span style="color: #339933;">,</span> <a href="http://www.php.net/ini_get"><span style="color: #990000;">ini_get</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;include_path&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;:'/*my path to Zend*/&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #b1b100;">require_once</span> Zend<span style="color: #339933;">/</span>Amf<span style="color: #339933;">/</span>Server<span style="color: #339933;">.</span>php<span style="color: #0000ff;">';<br />
require_once '</span>awards<span style="color: #339933;">.</span>php<span style="color: #0000ff;">';<br />
<br />
$server = new Zend_Amf_Server();<br />
<br />
$server-&gt;setClass(&quot;awards&quot;);<br />
// You can keep adding all the classes you need here<br />
<br />
echo($server-&gt;handle());<br />
<br />
?&gt;</span></div></td></tr></tbody></table></div>
<p>P.S. I aplologize in advance for any typos due to attempting to make the code more generic.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.flom.com/?feed=rss2&amp;p=39</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GreenSock Tweening Platform</title>
		<link>http://www.flom.com/?p=34</link>
		<comments>http://www.flom.com/?p=34#comments</comments>
		<pubDate>Wed, 04 Nov 2009 23:09:12 +0000</pubDate>
		<dc:creator>Todd Flom</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.flom.com/?p=34</guid>
		<description><![CDATA[My friend Chuck Stein just sent me a link to the GreenSock tweening libraries:

TweenNano
TweenLite
TweenMax
TimelineLite
TimelineMax

They have downloads for AS3 and AS2. They are looking pretty cool at first glance.
]]></description>
			<content:encoded><![CDATA[<p>My friend Chuck Stein just sent me a link to the <a href="http://blog.greensock.com" target="_blank">GreenSock</a> tweening libraries:</p>
<ul>
<li><a href="http://blog.greensock.com/tweennano/">TweenNano</a></li>
<li><a href="http://blog.greensock.com/tweenlite/">TweenLite</a></li>
<li><a href="http://blog.greensock.com/tweenmax/">TweenMax</a></li>
<li><a href="http://blog.greensock.com/timelinelite/">TimelineLite</a></li>
<li><a href="http://blog.greensock.com/timelinemax/">TimelineMax</a></li>
</ul>
<p>They have downloads for AS3 and AS2. They are looking pretty cool at first glance.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.flom.com/?feed=rss2&amp;p=34</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Paceart System software simulation</title>
		<link>http://www.flom.com/?p=11</link>
		<comments>http://www.flom.com/?p=11#comments</comments>
		<pubDate>Fri, 30 Oct 2009 17:40:26 +0000</pubDate>
		<dc:creator>Todd Flom</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[ActionScript]]></category>

		<guid isPermaLink="false">http://www.flom.com/?p=11</guid>
		<description><![CDATA[Back in May of &#8216;09, I completed the Paceart System Scheduling interactive tutorial for Medtronic it is an interactive software simulation with over one hour of narration. It was built in Flash CS3 using AS3. The entire simulator builds itself with an XML sheet. The callout text, the MP3&#8217;s and the seperate SWF&#8217;s are all [...]]]></description>
			<content:encoded><![CDATA[<p>Back in May of &#8216;09, I completed the Paceart System Scheduling interactive tutorial for <a href="http://www.medtronic.com" target="_blank">Medtronic</a> it is an interactive software simulation with over one hour of narration. It was built in Flash CS3 using AS3. The entire simulator builds itself with an XML sheet. The callout text, the MP3&#8217;s and the seperate SWF&#8217;s are all called by the XML file. Here are some screen shots:</p>

<a href='http://www.flom.com/?attachment_id=13' title='paceart-0000'><img width="150" height="150" src="http://www.flom.com/wp-content/uploads/2009/10/paceart-0000-150x150.jpg" class="attachment-thumbnail" alt="" title="paceart-0000" /></a>
<a href='http://www.flom.com/?attachment_id=12' title='paceart-0001'><img width="150" height="150" src="http://www.flom.com/wp-content/uploads/2009/10/paceart-0001-150x150.jpg" class="attachment-thumbnail" alt="" title="paceart-0001" /></a>
<a href='http://www.flom.com/?attachment_id=16' title='paceart-0002'><img width="150" height="150" src="http://www.flom.com/wp-content/uploads/2009/10/paceart-0002-150x150.jpg" class="attachment-thumbnail" alt="" title="paceart-0002" /></a>
<a href='http://www.flom.com/?attachment_id=17' title='paceart-0003'><img width="150" height="150" src="http://www.flom.com/wp-content/uploads/2009/10/paceart-0003-150x150.jpg" class="attachment-thumbnail" alt="" title="paceart-0003" /></a>
<a href='http://www.flom.com/?attachment_id=15' title='paceart-0004'><img width="150" height="150" src="http://www.flom.com/wp-content/uploads/2009/10/paceart-0004-150x150.jpg" class="attachment-thumbnail" alt="" title="paceart-0004" /></a>
<a href='http://www.flom.com/?attachment_id=14' title='paceart-0005'><img width="150" height="150" src="http://www.flom.com/wp-content/uploads/2009/10/paceart-0005-150x150.jpg" class="attachment-thumbnail" alt="" title="paceart-0005" /></a>

]]></content:encoded>
			<wfw:commentRss>http://www.flom.com/?feed=rss2&amp;p=11</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
