Talk:MXML
Appearance
Computing Unassessed | ||||||||||
|
Do you have to have a Flex license to use MXML or MXMLC (the command line AS3/MXML compiler)?
- No, you don't. The Flex SDK is free, and includes the MXMLC compiler which can compile an MXML source file into a Flash (.swf) file. 24.5.179.225 07:08, 9 December 2006 (UTC)
"'drill-down' through an object". Is "drill down" a standard expression ? I haven't seen it before. How about replacing it by "accessing the object properties/fields" ? Fabricebaro (talk) 18:02, 19 December 2007 (UTC)
- Yes, "drill down" is standard terminology, and no, "accessing the object properties/fields" does NOT mean the same thing. Drilling down through an object implies going through many layers of links/pointers/references/subobjects, whatever they're called, eventually accessing the actual properties/fields/data at the end of the chain of dereferencing. 76.243.129.217 (talk) 18:09, 19 January 2010 (UTC)
your experiance about working in events by using flex mxml code
Hi guys, just share your experiences about working with events by using flex mxml code. —Preceding unsigned comment added by Mohanmacmilton (talk • contribs) 08:55, 12 May 2008 (UTC)
MXML example
The MXML example here is not very good and shows Java programming style instead of MXML programming style. Cannot anybody provide a better example?! --217.24.201.180 (talk) 16:57, 19 February 2010 (UTC)
- This might be a better example:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Style>
LinkButton {
font-size: 14;
text-decoration: underline;
color: #004488;
}
Canvas {
background-color: #ffffff;
}
</mx:Style>
<mx:Script>
<![CDATA[
import flash.net.navigateToURL;
protected function reloadRss():void {
rssService.send();
}
]]>
</mx:Script>
<mx:applicationComplete>
<![CDATA[
reloadRss();
]]>
</mx:applicationComplete>
<mx:HTTPService id="rssService" resultFormat="e4x" url="http://feeds.feedburner.com/WikinewsLatestNews"/>
<mx:HBox width="100%">
<mx:Button label="Reload">
<mx:click>
<![CDATA[
reloadRss();
]]>
</mx:click>
</mx:Button>
<mx:Spacer width="100%"/>
<mx:Label text="Search in title:"/>
<mx:TextInput id="searchInput"/>
</mx:HBox>
<mx:Canvas width="100%" height="100%" verticalScrollPolicy="on">
<mx:VBox width="100%" height="100%" >
<mx:Repeater recycleChildren="true" id="itemRepeater"
dataProvider="{rssService.lastResult.channel.item.(elements('title').toString().toUpperCase().indexOf(searchInput.text.toUpperCase()) != -1)}">
<mx:LinkButton label="{itemRepeater.currentItem.title}" buttonMode="true">
<mx:click>
<![CDATA[
navigateToURL(new URLRequest(event.currentTarget.getRepeaterItem().link), "_blank");
]]>
</mx:click>
</mx:LinkButton>
<mx:Text width="100%" htmlText="{itemRepeater.currentItem.description}" condenseWhite="true" />
</mx:Repeater>
</mx:VBox>
</mx:Canvas>
</mx:Application>