Flex¼ÓÔØͼƬ
FlexʹÓÃLoaderºÍURLRequest¼ÓÔر¾µØͼƬʾÀý£º
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Script>
<![CDATA[
import mx.core.UIComponent;
import mx.controls.Alert;
import flash.display.*;
import flash.net.URLRequest;
var ldr:Loader;
private function Load():void
{
ldr= new Loader();<span id="more-684"></span>
var url:String="tuzi.jpg";
var urlReq:URLRequest=new URLRequest(url);
ldr.load(urlReq);
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
}
private function completeHandler(e:Event):void
{
//mx.controls.Alert("load");
var uc:UIComponent=new UIComponent();
uc.addChild(ldr);
thePanel.addChild(uc);
ldr.scaleX*=thePanel.width / ldr.width; //°´ÕÕ±ÈÀýËõ·Å
ldr.scaleY*=thePanel.height / ldr.height;
ldr.contentLoaderInfo.removeEventListener(Event.COMPLETE, completeHandler);
}
]]>
</mx:Script>
<mx:Button x="10"
y="21"
label="Load"
click="Load()"
width="69"
height="20"
themeColor="#009DFF"
fillAlphas="[1.0, 1.0, 1.0, 1.0]"
fillColors="[#FFFFFF, #FFFFFF]"
color="#0B333C"/>
<mx:Panel x="10"
y="63"
width="448"
headerHeight="0"
borderThicknessLeft="0"
borderThicknessRight="0"
height="376"
layout="absolute"
id="thePanel">
</mx:Panel>
</mx:Application>
Flex
Ïà¹ØÎĵµ£º
¼òµ¥½éÉÜÐÅFlexÓëWeb·þÎñµÄ½»»¥
Ö÷ÒªÄÚÈÝ:
1.ActionScriptÓë·þÎñ¶ËµÄ»ù±¾½»»¥·½Ê½(REST).
2.ActionScriptÌØÓеÄÊý¾Ý´«Êä¸ñʽ(AMF)Óë·þÎñÆ÷½»»¥.
3.FlexÓëWebService.
ҪʵÏÖActionScriptÓë· ......
http://yecon.blog.hexun.com/36798900_d.html
ʹÓà Adobe Flex ²úÆ·ÏßµÄʱºò£¬²ÉÓÃͼ±íºÍͼÐÎÀ´Õ¹Ê¾Êý¾Ý»áʹÓû§ÓëÊý¾ÝµÄ½»»¥¸ü¼ÓÈÝÒס£Ïà¶Ô¼òµ¥µÄÊý×Ö±í¸ñÀ´Ëµ£¬¿ÉÒÔʹÓñíʾÊý¾ÝµÄ²»Í¬ÑÕÉ«¡¢±êÌâ¡¢ÏßÌõÀ´Õ¹Ê¾ÌõÐÎͼ¡¢±ýͼ¡¢ÏßͼµÈµÈ¡£
ͼ±í¿Ø¼þÊÇ Adobe Flash Builder רҵ°æµÄÌØÐÔ¡£Ò²¿ÉÒÔÔÚ Falsh Builder ±ê×¼°æÖ ......
½« Stage µÄ displayState
ÊôÐÔÉèÖÃΪ StageDisplayState.FULL_SCREEN_INTERACTIVE
»á½«´°¿ÚÖÃÓÚÈ«ÆÁģʽ£¬ÔÚ´ËģʽÏÂÔÊÐí
¼üÅÌÊäÈ루ÔÚä¯ÀÀÆ÷ÖÐÔËÐÐµÄ SWF ÄÚÈÝÖУ¬²»ÔÊÐí¼üÅÌÊäÈ룩¡£ÈôÒªÍ˳öÈ«ÆÁģʽ£¬Óû§ÐèÒª°´ Esc ¼ü¡£
ÀýÈ磬ÒÔÏ Flex ´úÂ붨ÒåÓÃÓÚÉèÖüòµ¥È«ÆÁ¶ËµãµÄ¼òµ¥ AIR Ó¦ÓóÌÐò£º
<?xml ver ......
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
verticalAlign="middle"
backgroundColor="white"
......
flexÏîÄ¿ºÍ×é¼þµÈ
open-source project : Flex
Adobe APIs
Ö÷Òª°üº¬corelib, mappr, flickr, youtube¼°¼ÓÃܵÈÀà¿â.
http://labs.adobe.com/wiki/index.php/ActionScript_3:resources:apis:libraries
as3awss3lib
Óë Amazon S3 ½»»¥µÄ ActionScript 3.0 Àà¿â
http://code.google.com/p/as3 ......