flex .net½»»¥
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" >
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
private function onSuccess(evt:ResultEvent):void
{
Alert.show(evt.result.toString());
}
]]>
</mx:Script>
<mx:WebService id="dataService" wsdl="http://localhost:4702/flex/WebService.asmx?wsdl" useProxy="false">
<mx:operation name="HelloWorld" result="onSuccess(event)" />
</mx:WebService>
<mx:Button x="73" y="48" label="Button" click="dataService.HelloWorld.send()"/>
</mx:Application>
====================FLEX==========
Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols
'ÈôÒªÔÊÐíʹÓà ASP.NET AJAX ´Ó½Å±¾Öе÷ÓÃ´Ë Web ·þÎñ£¬ÇëÈ¡Ïû¶ÔÏÂÐеÄ×¢ÊÍ¡£
<System.Web.Script.Services.ScriptService()> _
<WebService(Namespace:="http://tempuri.org/")> _
<WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Public Class WebService
Inherits System.Web.Services.WebService
<WebMethod()> _
Public Function HelloWorld() As String
Return "Hello World"
End Function
End Class
===================.NET============
Ïà¹ØÎĵµ£º
±¾Ìùת×Ô£ºhttp://smartblack.javaeye.com/blog/556202
Ò»Ïî¼¼Êõ£¬´Ó¸ÅÄîÌá³öµ½¼¼ÊõÑз¢µ½ÉÌÒµ·¢²¼£¬ÔÙµ½Êµ¼ÊÓ¦Óã¬×îÖÕ½«²úÆ·³ÊÏÖÔÚÓû§ÃæÇ°£¬ÕâÊÇÒ»¸öÂþ³¤¶ø¸´ÔӵĹý³Ì¡£ÔÚÕâµ±ÖУ¬ºÜ¶àÓд´ÒâÓÐÉúÃüÁ¦µÄ¼¼ÊõÒòΪ¸÷ÖÖÔÒòССÒź¶µØ²»ÐÒØ²ÕÛÁË¡£FlexÄÜ×ßµ½½ñÌìȷʵ²»Ò×£¬ÏÂÃæÈÃÎÒÃÇ´Ó²»Í¬µÄ½Ç¶ÈÀ´¿´Ò»ÏÂËüÊÇÈçºÎ¹ý¹ ......
1 °²×°Adobe AIR ÔËÐÐʱ£¬ºÍjavaµÄJVMÀàËÆ¡£
Adobe AIR ÔËÐÐʱÔÊÐíÔÚ×ÀÃæÔËÐÐAIRÓ¦ÓóÌÐò£¬ÍÑÀëÓÎÀÀÆ÷µÄÊø¸¿¡£
ÏÂÔØ°²×°Îļþhttp://labs.adobe.com/downloads/air.html
ÔÚÏÂÔØÒ³ÃæÓÐÑùÀý³ÌÐò£¨Sample Applications£©http://labs.adobe.com/technologies/air/samples/
2 °²×°¿ª·¢»·¾³
µ±È»ÎÒÃÇÑ¡Ôñ¿ª·¢Ð§ÂÊ×î¸ßµÄFlex B ......
PureMVCʵÏÖÁ˼òµ¥µÄMVC¿ò¼Ü£¬½«Ó¦Ó÷ÖΪmodel¡¢viewºÍcontrolÈý²¿·Ö¡£
ºÃ´¦ºÜ¶àÁË£¬½µµÍÁËÄ£¿éÖ®¼äµÄñîºÏÐÔ¡¢Ìá¸ßÁ˳ÌÐòµÄ¿Éά»¤ÐԺͿÉÀ©Õ¹ÐÔ¡£
fabricationÔÚPureMVC»ù´¡ÉÏ×öÁËÀ©Õ¹£¬¼ò»¯ÁËpureMVCµÄ¿ª·¢ÄѶȣ¬ÏÂÃæ¼òµ¥½éÉÜÒ»ÏÂfabricationµÄ¿ª·¢¹ý³Ì¡£
Ê×ÏÈ£¬¸ù¾ÝÐèҪʵÏÖorg.puremvc.as3.multicore.utilities.fabric ......
±¾ÎĽéÉÜһϹØÓÚflexÐÔÄÜÓÅ»¯,ÒÔ¼°flexÉú³ÉµÄµÄswf´óСÓÅ»¯.
1.¹Øµôbuild automaticly
2.רÐÄ×öÒ»¸öÏîÄ¿£¬¿ªÆðÀ´Ò»¸öflex builder
3.ÓÃflex builder¶ø²»ÓÃEclipse²å¼þ£¬ÕâÑù²»ÓÃÊÜÆäËüµÄ²å¼þµÄÓ°Ïì¡£
ÖÁÓÚºóÀ´ºÍÊý¾Ý¿âµÄ¾ÍÏȲ»ËµÁË,ÒòΪˮƽÓÐÏÞ
as3Ò»³öÀ´,flexÒ²¸ú×Å»ðÒ»°Ñ,ĿǰѧϰflexµÄÈËÒ²Ô½À´Ô½¶àÁË,µ«ÊǹúÄÚfl ......