<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    【永恒的瞬間】
    ?Give me hapy ?

    //1. ? 使用絕對地址

    2. < mx : Style ? source = 'http://www.somesite.com/mystyles.css' >

    3. //2. ? 使用◎ContextRoot

    4. < mx : HTTPService ? url = '@ContextRoot()/directory/myfile.xml' />

    5. //3. ? 使用根目錄引用方式

    6. < mx : Script ? source = '/myscript.as' />

    7. //4. ? 使用相當(dāng)路徑引用

    8. < mx : Script ? source = '../myscript.as' />


    Flex 應(yīng)用程序中,也有事件的響應(yīng)屬性。最簡單如鼠標(biāo)單擊事件。

    1< mx : Application ? xmlns : mx = 'http://www.macromedia.com/2003/mxml' >

    2. < mx : Panel ? title = 'My ? Application' ? marginTop = '10' ? marginBottom = '10'

    3. marginLeft = '10' ? marginRight = '10' ? >

    4. < mx : TextArea ? id = 'textarea1' />

    5. < mx : Button ? label = 'Submit' ? click = 'textarea1.text=' Hello ? World ';' />

    6. </ mx : Panel >

    7. </ mx : Application >

    更加規(guī)范化的寫法是使用腳本定義函數(shù)調(diào)用

    1. < mx : Application ? xmlns : mx = 'http://www.macromedia.com/2003/mxml' > ?

    //script

    2. < mx : Script > ?

    3. <![ CDATA [ ?

    4. function ? hello (){ ? ?

    5. textarea1 . text = 'Hello ? World' ; ?

    6. ? } ?

    7. ]]> ?

    8. </ mx : Script >

    ?<mx:Panel?title='My?Application'?marginTop='10'?marginBottom='10'

    10.? marginLeft = '10' ? marginRight = '10' ? >

    11.? < mx : TextArea ? id = 'textarea1' />

    12.? < mx : Button ? label = 'Submit' ? click = 'hello();' />

    13.? </ mx : Panel >

    14.? </ mx : Application >
    如果希望多個組件之間可以綁定數(shù)據(jù)的話,在 Flex 中可以簡單的實現(xiàn),請注意,在屬性中使用 { } 標(biāo)記就表示其中包含的是表達式,而不是字符串。下面的例子,如果 textinput 文本框的內(nèi)容改變, textarea 中的內(nèi)容也會隨之變化。

    < mx : Application ? xmlns : mx = 'http://www.macromedia.com/2003/mxml' >

    2. < mx : Panel ? title = 'My ? Application' ? marginTop = '10' ? marginBottom = '10'

    3. marginLeft = '10' ? marginRight = '10' ? >

    4. < mx : TextInput ? id = 'textinput1' ? text = 'Hello' />

    5. < mx : TextArea ? id = 'textarea1' ? text = '' />

    6. < mx : Button ? label = 'Submit' ? click = 'textinput1.text=' Goodbye ';' />

    7. </ mx : Panel >

    8. </ mx : Application >

    ?

    1.


    Flex
    可以和本地或者是遠(yuǎn)程服務(wù)器端的邏輯進行交互,其方式可以通過如下方式之一:

    : WebService 提供基于 SOAP web 服務(wù)訪問
    2 : HTTPService 提供了基于 HTTP 訪問和數(shù)據(jù)返回
    3 : RemoteObject 基于 AMF 協(xié)議訪問 Java 對象

    ?




    posted on 2007-01-12 11:27 ???MengChuChen 閱讀(197) 評論(0)  編輯  收藏 所屬分類: flex2.0
    主站蜘蛛池模板: 亚洲视频在线观看免费视频| 亚洲AV无码乱码在线观看裸奔| 亚洲人成人无码网www国产| 亚洲香蕉成人AV网站在线观看| 久久精品国产亚洲夜色AV网站| 亚洲婷婷在线视频| 国产精品久久久久久亚洲小说 | 免费福利在线观看| 三年片在线观看免费| 免费观看无遮挡www的小视频| 免费无码黄网站在线观看| 亚洲人成电影在线播放| 亚洲美女精品视频| 精品国产亚洲第一区二区三区| 久久免费观看视频| 性短视频在线观看免费不卡流畅 | AV在线播放日韩亚洲欧| 亚洲激情在线视频| 亚洲欧美国产国产综合一区| 本免费AV无码专区一区| 免费视频专区一国产盗摄| 亚洲成a人无码av波多野按摩| 久久精品国产亚洲av高清漫画| 亚洲精品乱码久久久久久V| 成人一区二区免费视频| 免费精品国产自产拍在线观看图片 | 青青操视频在线免费观看| 麻豆国产精品免费视频| 免费a级毛片在线观看| 日韩精品一区二区亚洲AV观看| 亚洲AV第一成肉网| 久久A级毛片免费观看| 免费人妻av无码专区| 亚洲的天堂av无码| 一级做a爱过程免费视频高清| 真人做人试看60分钟免费视频| 亚洲成av人片一区二区三区| 亚洲国产人成在线观看| 中文字字幕在线高清免费电影| 最近免费中文字幕4| 久久久久亚洲AV片无码|