Critter’s Code

This is a picture of a bridge and a city. I like bridges and cities. They make me smile.

Archive for the ‘AIR’ Category

Mar-31-2008

AIR meets INK

I will get a better photo of it once the swelling has gone down a bit. This is part of my technology leg sleeve.

IMG_0165.JPG IMG_0166.JPG IMG_0167.JPG

much moar to come.

Posted under AIR, Stuff
Mar-4-2008

SeesmicAIR updated to AIR 1.0

Just a quick not to inform you that SeesmicAIR has been updated to the latest version of AIR 1.0.

You can download the update from the SeesmicAIR project page.

Follow @SeesmicAIR on Twitter for updates.

Posted under AIR, Seesmic
Jan-17-2008

Changing button icons at runtime using Actionscript

I had to do quite a bit of searching around this morning to figure out how to change the icons on my video player at runtime.

phoenix-032   phoenix-031

I thought I could easily modify the [button].icon property, but I could not access that at runtime. You can, however, do the following:

//    embed your icons
[Embed(source='com/images/play.png')]
[Bindable]
public var imagePlay:Class; 

[Embed(source='com/images/pause.png')]
[Bindable]
public var imagePause:Class;

//    using one button to toggle play and pause of video
private function playpause():void
{
    if (seesmicVideo.playing)
    {
        seesmicVideo.pause();
        btn_play.setStyle("icon",imagePlay);
    }
    else
    {
        seesmicVideo.play();
        btn_play.setStyle("icon",imagePause);
    }
}        

Using [button].setStyle() will allow you to change the icon at runtime.

Posted under AIR, ActionScript, Flex, Samples
Jan-15-2008

I need AIR / Actionscript assistance

I have a TileList in my AIR application. Previously, I was including the itemRender directly in the tag like:

<mx:TileList itemRenderer="Timeline" >
<mx:itemRenderer>
   <mx:Component>
    <mx:HBox verticalGap="0" backgroundColor="{outerDocument.checkUser(data.publisher.value)}">
       <mx:Image click="outerDocument.PlaySeesmicVideo(data.flv.value,data.videoUri.value)" />
       <mx:VBox width="100%" height="100%" verticalGap="0" verticalScrollPolicy="off">
       <mx:Label buttonMode="true" width="100%" textAlign="left" />
       <mx:Label text="({data.language.value})" fontSize="9" />
       <mx:Text fontSize="10" text="{outerDocument.StripRE(data.title.value)}"  />
       </mx:VBox>
     </mx:HBox>
   </mx:Component>
</mx:itemRenderer>
</mx:TileList>

I need to move the itemRenderer into it’s own component, but as soon as I do that I get errors on my functions that are fired from within the component. "outerDocument" no longer works.

So, my question, is, how do I reference a function in "main.mxml" from "timeline.mxml" ?

Posted under AIR, ActionScript
Jan-14-2008

Flex and AIR Pre-release Tour with Adobe’s Ben Forta

January 23
6:00pm start time

Railinc,
7001 Weston Parkway
Cary NC 27513


View Larger Map

User Group Site: http://www.triangleuserexperience.org

Flex and AIR Pre-release Tour with Adobe’s Ben Forta

Flex 3 and AIR are getting close to launch and in preparation, Ben Forta from the Adobe Flex/AIR product team is traveling to select cities to show off the great new features and help prepare us for this exciting launch.

Flex 3 is a feature-packed release, adding new UI components like the advanced datagrid and improved CSS capabilities; powerful tooling additions like refactoring; and extensive testing tools including memory and performance profiling, plus the addition of the automated testing framework to Flex Builder.

Adobe AIR is game-changing in so many ways, extending rich applications to the desktop, enabling access to the local file system, system tray, notifications and much more. Now you can write desktop applications using the same skills that you’ve been already using to create great web apps including both Flex and AJAX.

Don’t miss out on the opportunity to see and hear about this highly anticipated release of Flex 3 and AIR during this special pre-release tour. Plus, in addition to giving away some one of a kind Flex/AIR branded schwag, we will also be raffling off a copy of Flex Builder 3 Professional (pending availability) and a full commercial copy of CS3 Web Premium at this event!

Posted under AIR, Flex, Presentations, User Group
Jan-7-2008

Meeting Reminder: January 23rd 6-9 / Cary, NC / Ben Forta

Just one of numerous reminders you will receive about Ben Forta’s presentation on Adobe’s Flex 3 and Adobe Integrated Runtime (AIR).

Adobe will be providing some eats and a copy of Flex 3 (upon release) and CS3 Web Premium Suite to be raffled off during the event.

The meeting location is being provided by:

Railinc Corporate Headquarters
7001 Weston Parkway, Suite 200
Cary, NC 27513
Phone: 919.651.5000
Fax: 919.651.5402


View Larger Map

We would really appreciate it if you could RSVP for the event so that we have a rough idea of how many will be attending.

RSVP Link: http://tinyurl.com/389zrs 

See you there!

Posted under AIR, Flex, Presentations, User Group