Flex 方法
Flex显示图片的常用方式第一种: 使用绑定的方式 <?xml version="1.0" encoding="utf-8"?><application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <script> ??????????? [Bindable]?? </script> <image source="{s}" width="150" height="151.8" id="img"></image></application> ? ?第二种: 直接对source指定路径 <?xml version="1.0" encoding="utf-8"?><application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationcomplete="init()"> public function init():void{ <image width="150" height="151.8" id="img"></image> </application> 第三种:使用Loader类 ?<?xml version="1.0" encoding="utf-8"?><application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationcomplete="init()"> ?????? <mx:Script> <image width="150" height="151.8" id="img"></image></application>
Flex显示确认窗口的常用方式
举例: Alert.show(
"确认要删除吗?"
"删除提示"
null
function
(event:CloseEvent):
void
????
{
if
(event.detail==Alert.YES)
{webService.DeleteJl(jlh);}
????
else ?
(event.detail==Alert.NO)
{}
return
;
},monospace!important; min-height:inherit!important">.expClass,Alert.NO);
|