Archive for actionscript

Embed an icon in a flex panel

Just a quick post to display how to embed an image in a flex panel or title window. I’ve been adding them some to justcars.ie

<code>

<mx:Panel xmlns:mx=”http://www.adobe.com/2006/mxml”  width=”100%”
height=”100%” creationComplete=”initApp();”
xmlns:DataGrid=”com.zeninvent.justcars.flex.DataGrid.*”
xmlns:ns1=”components.*”
title=”Search”
titleIcon=”{ico}”>

<mx:Panel xmlns:mx=”http://www.adobe.com/2006/mxml”  width=”100%”

height=”100%” ”

title=”Search”

titleIcon=”{ico}”>

</code>

Then just add to the action script an ico var noting the icon source:

[Embed(source='iconSearch.png')]

private static const ico:Class;

One thing to bear in mind is that the icon must be in the same dir as the component.

Leave a Comment

Friday 26th of October

Got a flex 2.0 actionscript 3 book to formilse my flex learning and a best practice bench mark. Nice size – not too much of a door stop!
DM02 minutes to upload
Walked through some of DM’s business processes..this requirements gathering is proving intresting!
In the end we worked it quite well and have the process of mortgage protection nicely formailse and are going to go back to DM with a functioning back to front version of the doucmented process.
DM03 probably won’t be for two weeks so it gives so some time to generate tanagible go forward for DM to see in the next meeting

Leave a Comment