Raymond Camden's Blog Rss

My first Apollo app

7

Posted in | Posted on 03-19-2007 | 4,096 views

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

view plain print about
1<?xml version="1.0" encoding="utf-8"?>
2<mx:ApolloApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
3
4<mx:VDividedBox width="100%" height="100%">
5    
6    <mx:Panel title="Source" width="100%" height="50%">
7
8        <mx:TextArea id="source" width="100%" height="100%" />
9        
10    </mx:Panel>
11    
12    <mx:Panel title="HTML" width="100%" height="50%">
13        
14        <mx:HTML id="html" htmlText="{source.text}" width="100%" height="100%"/>
15
16    </mx:Panel>
17
18</mx:VDividedBox>
19
20</mx:ApolloApplication>

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.

Download attached file

Comments

[Add Comment] [Subscribe to Comments]

the download link doesn't seem to be working
Fixed.
Download issues might have been related to this:

http://weblogs.macromedia.com/mesh/archives/2007/0...

mike chambers

mesh@adobe.com
Thanks Mike. I've added it to my new box. This blog is being moved there in a week or so.
Ok that is so simple yet is one of the best I have seen! It is so cool to see it update the display on each type. It is really cool to then style stuff with CSS in real time and watch things change like borders and stuff!!!!! Very cool!
Thanks for the link Ray.

Rich
Checked out the samples from Apollo gallery . . . wow - very impressive. Have the SDK installed and downloaded the pocket guidebook and will give this a swirl . . .

[Add Comment] [Subscribe to Comments]