flash on 2011-4-13
♥0 |
Line 50 |
Modified 2011-05-06 15:39:30 |
MIT License
archived:2017-03-20 06:56:42
Related images
ActionScript3 source code
/**
* Copyright propg ( http://wonderfl.net/user/propg )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/cEQi
*/
<?xml version="1.0" encoding="utf-8"?>
<s:Application
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
creationComplete="OnCreationCompleteHandler(event)">
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
@namespace controls "nt.controls.*";
@namespace controls1 "labo.controls.*";
@namespace code "http://code.google.com/p/flexlib/";
s|Application {
backgroundColor: #FFCCFF;
}
global {
font-family: "MS UI Gothic", Verdana, Arial, Helvetica, sans-serif;
fontSize:14px;
}
</fx:Style>
<fx:Script>
<![CDATA[
private function OnCreationCompleteHandler(event:Event):void {
var url:String = "http://wonderfl.net/static/tmp/related_images/6d14c751f9405f6737581f6bf2ddfcdf83458968m";
var req:URLRequest = new URLRequest(url);
var loader:Loader = new Loader();
loader.addEventListener(Event.COMPLETE , function():void{
image1.source = loader.loaderInfo.bytes;
label1.text = "OK!!";
});
loader.load(req);
label1.text = "loading...";
}
]]>
</fx:Script>
<fx:Declarations>
</fx:Declarations>
<s:layout>
<s:VerticalLayout paddingLeft="5" paddingTop="5" paddingBottom="5" paddingRight="5"/>
</s:layout>
<s:Line left="0" right="0" top="150" width="100%">
<s:stroke>
<s:SolidColorStroke color="#cccccc"/>
</s:stroke>
</s:Line>
<mx:Image id="image1"/>
<mx:TextArea width="300" height="100" text="111111{'\n'}222222{'\n'}33333{'\n'}44444{'\n'}55555" editable="false"/>
<mx:Button label="enabled" width="100"/>
<s:Label id="label1" text="aaaaaaaaaaaaaaaaaaa" width="80" lineBreak="explicit"/>
</s:Application>