Flex£ºÉÏ´«Í¼Æ¬Ç°Ô¤ÀÀ
<?xml version="1.0" encoding="utf-8"?>
<!-- http://yecon.blog.hexun.com/31030831_d.html -->
<!-- http://www.slsay.com -->
<Application name="FileReference_load_test"
xmlns="http://ns.adobe.com/mxml/2009"
xmlns:mx="library:adobe/flex/halo"
xmlns:net="flash.net.*"
layout="flex.layout.BasicLayout">
<Script>
<!--[CDATA[
import mx.controls.Alert;
import mx.utils.ObjectUtil;
private function btn_click(evt:MouseEvent):void {
var arr:Array = [];
arr.push(new FileFilter("Images", ".gif;*.jpeg;*.jpg;*.png"));
fileReference.browse(arr);
}
private function fileReference_select(evt:Event):void {
fileReference.load();
}
private function fileReference_complete(evt:Event):void {
img.source = fileReference.data;
Alert.show(ObjectUtil.toString(fileReference));
}
]]-->
</Script>
<Declarations>
<net:FileReference id="fileReference"
select="fileReference_select(event);"
complete="fileReference_complete(event);" />
</Declarations>
<mx:Panel id="panel"
layout="absolute"
horizontalCenter="0"
verticalCenter="0"
width="500"
height="300">
<mx:Image id="img"
verticalCenter="0"
horizontalCenter="0"
maxWidth="200"
maxHeight="200" />
<mx:ControlBar>
<mx:Button id="btn"
label="Browse and preview..."
click="btn_click(event);" />
<mx:Button label="Upload..."
enabled="false" />
</mx:ControlBar>
</mx:Panel>
</Application>
Ïà¹ØÎĵµ£º
½ñÌìÕÒһЩFlex×ÊÁÏ£¬Å¼È»·¢ÏֺܶàÈËÔÚÎÊÓйØFABridgeµÄÎÊÌ⣬¿´ÁËһϣ¬´óÖ¶¼ÊÇÔÚÎÊÔÚFlashBuilderÖÐÈçºÎͨ¹ýFABridgeÀ´ÊµÏÖF-AµÄ½»»¥¡£¼òµ¥ËµËµ°É¡£
Ò».ͨ¹ýjs·ÃÎÊFlex×é¼þ
1.×¼±¸¹¤×÷¡£ÏȽ¨Á¢Flex¹¤³Ì :fademo£¬²¢·ÅÖÃÒ»¸öÎı¾¿ò:txtName¡£×öÍêºó´úÂëÓ¦¸ÃÀàËÆÓÚÕâ¸öÑù×Ó£º
<?xml version="1.0 ......
[Ô´´]FlexÖÐDataGrid·ÖÒ³£¨¿Í»§¶Ë¡¢·þÎñ¶Ë£©
¡¡¡¡ÕâÁ½Ìì×öÁËÒ»¸öFlexµÄDataGrid·ÖÒ³£¨paging£©¿Ø¼þ£¬Ö§³Ö¿Í»§¶Ë¡¢·þÎñ¶ËÁ½ÖÖ·ÖÒ³ÐÎʽ£»ÕâÀï×ÅÖØ·ÖÏíÒ»ÏÂ˼·£¬ËäÈ»ÊÇÓÃflex×öµÄ£¬µ«Ö»ÒªÕÆÎÕÁË˼·£¬ÓñðµÄ±à³ÌÓïÑÔÒ²ÄܴﵽͬÑùµÄЧ¹û¡£
×é¼þÔËÐнØͼ£º
Éè¼Æ˼·£º
1£¬¿Í»§¶Ë¡¢·þÎñ¶Ë
¡¡¡¡£¨1£©¿Í»§¶Ë·ÖÒ³£º½« ......
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.*;
i ......
¹¹½¨¸ßÐÔÄܵÄJ2EEÓ¦Óò»µ«ÐèÒªÁ˽ⳣÓõÄʵʩ¼¼ÇÉ¡£ÏÂÃæ½éÉÜ×î³£ÓõÄ10ÖÖÓÐЧ·½·¨£¬¿É°ïÖú¼Ü¹¹Éè¼ÆʦÃÇ¿ìËÙ³ÉΪÕâ·½ÃæµÄר¼Ò¡£
JavaÐÔÄܵĻù´¡—ÄÚ´æ¹ÜÀí
ÈκÎJavaÓ¦Ó㬵¥»úµÄ»òJ2EEµÄÐÔÄÜ»ù´¡¶¼¿É¹é½áµ½ÄãµÄÓ¦ÓÃÊÇÈçºÎ¹ÜÀíÄÚ´æµÄÎÊÌâ¡£JavaµÄÄÚ´æ¹ÜÀí°üÀ¨Á½¸öÖØÒªÈÎÎñ£ºÄÚ´æµÄ·ÖÅäºÍÄÚ´æµÄ»ØÊÕ¡£ÔÚÄÚ´æµÄ·ÖÅäÖУ¬Ä ......
package org.openscales.core.format
{
import flash.utils.getQualifiedClassName;
import flash.xml.XMLNode;
import org.openscales.core.Util;
import org.openscales.core.feature.Feature;
import org.openscales.core.geometry.Collection;
import org.openscales.core. ......