Showcase

0 comments0 views
1 Star2 Stars

How to include images and embed movieclips in a flex project

Category: Flex Examples    |    2 views    |    Add a Comment

Here are the two syntaxes to include images at runtime or embed movieclips from a .swf file. In FlashCS3 you have to “export for actionscript” then simply “test movie” and copy the .swf file inside your flex web. In this example “star” is the name of my movieclip inside my flash file.

import flash.net.navigateToURL;
private function getURL(url:String):void {
var request:URLRequest;
request = new URLRequest(url);
navigateToURL(request);
}
]]>


Share/Save/Bookmark

 

How to bind a List control to in-script XML text

Category: Learn Flex    |    1 views    |    Add a Comment

MXML makes it very easy to create an XML source and then bind it, here’s how.



[Bindable]
private var knowItems:XML =





]]>

Share/Save/Bookmark

 

How to use a labelFunction in a list control

Category: Learn Flex    |    1 views    |    Add a Comment

You can probably use this with any control that has labelField but I discovered it with mx:List, just define the name of a function and then use any script you want to manipulate the label based on some data source.
SHOW CODE

Share/Save/Bookmark