flex ʹÓÃwebservices дµÄÌìÆøÔ¤±¨
×¢Ò⣺±¾»ú±ØÐëÁ¬½Ó»¥ÁªÍø
Ч¹ûͼ£º
Ô´ÂëÈçÏ£º
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal" creationComplete="init()">
<mx:Panel width="620" height="455" layout="absolute" title="ÌìÆøÔ¤±¨" fontSize="12">
<mx:HRule x="10" y="78" width="570"/>
<mx:Label x="44" y="50" text="½ñ Ìì" width="67" fontWeight="bold" color="#030303"/>
<mx:Label x="474" y="50" text="ºó Ìì" width="67" fontWeight="bold" color="#030303"/>
<mx:Label x="247" y="50" text="Ã÷ Ìì" width="67" fontWeight="bold" color="#030303"/>
<mx:Canvas x="10" y="88" width="168" height="315" borderStyle="solid" borderColor="#111AC6">
<mx:Label x="10" y="10" width="146" id="lblDate"/>
<mx:Label x="10" y="38" width="146" height="24" id="lblwd"/>
<mx:Label x="10" y="70" id="lblfl" width="146" height="29"/>
<mx:Image x="10" y="120" width="70" height="65" id="imgToday"/>
<mx:Image x="88" y="120" width="70" height="65" id="imgToday2"/>
<mx:TextArea x="10" y="197" width="148" height="106" id="taDetail" editable="false"/>
</mx:Canvas>
<mx:Canvas x="204" y="88" width="173" height="315" borderStyle="solid" borderColor="#111AC6">
<mx:Label x="10" y="10" width="138" id="lblDate1"/>
<mx:Label x="10" y="38" width="136" height="24" id="lblwd1"/>
<mx:Label x="10" y="70" id="lblfl1" width="136" height="29"/>
<mx:Image x="10" y="120" width="70" height="65" id="imgTomorrow"/>
<mx:Image x="88" y="120" width="70" height="65" id="imgTomorrow2"/>
<mx:TextArea x="10" y="197" width="148" height="106" id="taDetail1" editable="false"/>
</mx:Canvas>
<mx:Canvas x="403" y="88" width="175" height="315" borderStyle="solid" borderColor="#111AC6">
<mx:Label x="10" y="10" width="138" id="lblDate2"/>
<mx:Label x="10" y="38" width="136" hei
Ïà¹ØÎĵµ£º
¹¹½¨¸ßÐÔÄܵÄ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. ......
FlexÓëJavascript»¥ÏàͨÐÅ¡£
ÔÚFlexÖÐÓÐÕâôһ¸öÀࣺExternalInterface.ÔÚÕâ¸öÀàÖÐËü¸øÎÒÃÇ£ºcallºÍaddCallback
FlexÖÐAsµ÷ÓÃJsµÄ·½·¨ÊÇ£º
1¡¢µ¼Èë°ü £¨import flash.external.ExternalInterface;£©
2¡¢Ê¹ÓÃExternalInterface.call("Jsº¯ÊýÃû³Æ",²ÎÊý)½øÐе÷Óã¬Æä· ......
ʹÓÃjsÀ´²Ù×÷flex
Ê×ÏÈÔÚfademo.mxmlÖÐÉùÃ÷Ò»¸öbutton£¬²¢Ìí¼ÓÒ»¸öbtnClick·½·¨£º
<?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="l ......
Ò³Ãæ´úÂ룺
<?xml version="1.0"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:marsImage="mars.display.*"
backgroundColor="#000000"
layout="absolute">
<marsImage:BorderImage
borderAlpha="{aBar.value ......