My first Apollo app

Here is my first little Apollo application. I based it on the blog entry written by Rich Tretola. The code is rather simple:

<?xml version="1.0" encoding="utf-8"?> <mx:ApolloApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">

<mx:VDividedBox width=”100%” height=”100%”>

&lt;mx:Panel title="Source" width="100%" height="50%"&gt;

	&lt;mx:TextArea id="source" width="100%" height="100%" /&gt;
	
&lt;/mx:Panel&gt;

&lt;mx:Panel title="HTML" width="100%" height="50%"&gt;
	
	&lt;mx:HTML id="html" htmlText="{source.text}" width="100%" height="100%"/&gt;

&lt;/mx:Panel&gt;

</mx:VDividedBox>

</mx:ApolloApplication> </code>

All I did was bind an HTML control, part of the Apollo framework, to a text area. This is a handy way to quickly test the HTML support for the control. If you want to play with this, first ensure you have the Apollo runtime, then download the AIR file included on this blog entry.

p.s. My friend Scott told me he had issues downloading the attachment. I’d like to blame him (he is so easy to blame!), but it looks like my web server was blocking the extension. I renamed it to a zip.<p>Download attached file.</p>

Raymond Camden's Picture

About Raymond Camden

Raymond is a developer advocate looking for his next gig. He focuses on JavaScript, serverless and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support.

Lafayette, LA https://www.raymondcamden.com

Comments