FlexÖеÄLabelʵÏÖÊó±êÊÖÐͼ°Ï»®Ïß
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical">
<mx:Script>
<![CDATA[
import mx.controls.dataGridClasses.DataGridListData;
import mx.controls.Alert;
import mx.collections.ArrayCollection;
[Bindable]
private var myData:ArrayCollection = new ArrayCollection([{userName:"Gasol",country:"Î÷°àÑÀ"},
{userName:"Nashi",country:"°Ä´óÀûÑÇ"},
{userName:"Yaoming",country:"Öйú"}]);
internal function test(event:MouseEvent):void {
Alert.show("internal click!"+event.target.data);
var ld:DataGridListData = event.target.listData as DataGridListData;
trace(ld.columnIndex);
}
]]>
</mx:Script>
<mx:DataGrid dataProvider="{myData}">
<mx:columns>
<mx:DataGridColumn headerText="ÐÕÃû">
<mx:itemRenderer>
<mx:Component>
<mx:Label buttonMode="true" mouseChildren="false"
click="outerDocument.test(event)"
htmlText="<u>{data.userName}</u>">
</mx:Label>
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
<mx:DataGridColumn headerText=
Ïà¹ØÎĵµ£º
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
width="550" height="400">
<mx:Script>
<![CDATA[
&n ......
subject of application domain of flash and air.
ÔÚflash»òflexÖУ¬³ÌÐò¼ÓÔØÍⲿswfÎļþ£¬¸ÃÎļþµÄ³ÌÐòÓòĬÈÏΪÖ÷³Ì ÐòÓòµÄÒ»¸ö×ÓÓòÖС£±ÈÈçÄãʹÓÃA.swf¼ÓÔØB.swfÎļþ£¬B±»¼ÓÔØºó£¬³ÉΪA³ÌÐòÓòµÄÒ»¸ö×ÓÓò£¬×ÓÓòÊÇÉêÃ÷ÀàµÄʱ£¬²»Äܸ²¸Ç¸¸ÀàÒÑÉêÃ÷ÀࣺÈç¹ûAÖж¨ ÒåÁËÀàcom.sogou.MapÀ࣬ͬʱBÖÐÒ²¶¨ÒåÁËcom.sogou.MapÀ࣬µ ......
ÕâÊÇFlex 4 SDK ÐÂÌØÐԽ̳ÌϵÁеĵÚ3Õ¡£±¾Õ½éÉÜÁËFlex 4ÒýÈëµÄMXML 2009ÃüÃû¿Õ¼äÒÔ¼°Flex×é¼þÓëÃüÃû¿Õ¼äÓ³ÉäµÄ»úÖÆ¡£
Flex 3µÄÃüÃû¿Õ¼ä
Flex 3¶¨ÒåÁËΨһµÄMXMLÃüÃû¿Õ¼ä£¬¼´MXML 2006¡£ÔÚFlex Builder 3ÖÐÉùÃ÷MXML 2006ÃüÃû¿Õ¼äµÄĬÈϸñʽÈçÏ£º
xmlns:mx="http://www.adobe.com/2006/mxml"
ÖµµÃ×¢ÒâµÄÊÇ£¬ºÜ¶à³õѧÕß ......
·þÎñÆ÷¶Ë´úÂë,amfphpµÄservicesĿ¼Ï½¨Á¢readData.phpÎļþ,´úÂëÈçÏÂ
<?php
class ReadDB
{
function getData()
&nb ......
Õâ¸öÀàÌṩµÄ¹¦ÄÜÓУº
´Óä¯ÀÀÆ÷ÖлñÈ¡ÍêÕûµÄURL
Ö÷»úÃû
µ±Ç°ËùʹÓõÄÐÒé
¶Ë¿Ú
Ö÷ÓòÃûºóÃæµÄ·¾¶
²ÎÊýÖµ
ÔÎĵØÖ·£ºhttp://www.flexpasta.com/index.php/2008/03/15/getting-url-parameters-host-name-port-in-flex-actionscript/
package com.flexpasta.utils
{
import flash.external.ExternalInterface;
im ......