Jump to content

Talk:MXML

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 217.24.201.180 (talk) at 17:40, 19 February 2010 (MXML example). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

WikiProject iconComputing Unassessed
WikiProject iconThis article is within the scope of WikiProject Computing, a collaborative effort to improve the coverage of computers, computing, and information technology on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
???This article has not yet received a rating on Wikipedia's content assessment scale.
???This article has not yet received a rating on the project's importance scale.

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)[reply]

"'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)[reply]

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)[reply]

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 (talkcontribs) 08:55, 12 May 2008 (UTC)[reply]

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)[reply]

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>