Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

FABridge½Ì³Ì(Flex+Ajax) 2

ʹÓÃ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="library://ns.adobe.com/flex/halo" minWidth="0" minHeight="0" width="400" height="300" xmlns:bridge="bridge.*">
<fx:Declarations>
<bridge:FABridge/>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<fx:Script>
<!--[CDATA[
import mx.controls.Alert;
public function btnClick():void
{
Alert.show("°´Å¥±»µã»÷ÁË","title");
}
]]-->
</fx:Script>
<s:TextInput x="160" y="96" id="txtName"/>
<s:Button x="218" y="139" label="°´Å¥" id="btn"/>
</s:Application>

È»ºó½«Õâ¸ö·½·¨±©Â¶¸øjs¶Ë£¬Ð޸썻òÖØÐÂÉú³É£©fademo.js£¬ÔÚfademoReady£¨£©·½·¨ÖÐÌí¼Ófademo¶Ôbtn°´Å¥¼°btnClick·½·¨µÄµ÷Óãº
function fademoReady() {
b_fademo_root = FABridge["b_fademo"].root();
fademo.getBtn = function () {
return b_fademo_root.getBtn();
};
fademo.getTxtName = function () {
return b_fademo_root.getTxtName();
};
fademo.callBack = function() {
b_fademo_root.callBack();
};
}

ÕâÑùÔÚhtmlÖУ¬ÒòΪÒѾ­¶Ôfademo.js×öÁËÒýÓã¬ËùÒԾͿÉÒÔÖ±½ÓʹÓÃж¨ÒåµÄÕâЩ·½·¨ÁË£¬ÐÞ¸Ähtml£º
<head>
<title>Test page for the fademo class</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<mce:script type="text/javascript" src="lib/FABridge.js" mce_src="lib/FABridge.js"></mce:script>
<mce:script type="text/javascript" src="fademo.js" mce_src="fademo.js"></mce:scr


Ïà¹ØÎĵµ£º

ÀûÓÃVC2008µÄ²å¼þÈ¥¿ª·¢FlexºÍRuby

tofino  http://www.ensemble.com/products/tofino.html
Ensemble Tofino for Visual Studio is a plugin that enables .NET
developers to create Flex front ends for their applications in the same
IDE that they normally use. Instead of using a separate text or XML
editor and manually invoking the c ......

Flex ¿ª·¢¿ò¼Ü

¸ü¶à Flex 4 ʾÀý£¬Çëµ½ http://www.slsay.com
ÏÖÓгÉÊì³£ÓõÄFlex¿ò¼Ü£º
 Cairngorm (Adobe Open Source) - MVC framework
 PureMVC (Open Source) - MVC framework
 Mate (Open Source) - tag-based, event-driven
 Swiz (Open Source) - Metadata-based Dependency Injection ......

flex»­Ö±ÏßʾÀý

<img src="{{----}}13730" mce_src="{{----}}13730"/><span id="__caret">_</span><?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationCo ......

ÔÚFlexÖеĸü¸Ä¹ö¶¯ÌõµÄÍâ¹Û

HScrollBar {
downArrowUpSkin:
Embed(source=”/assets/downArrow.png”);
downArrowOverSkin:
Embed(source=”/assets/downArrow.png”);
downArrowDownSkin:
Embed(source=”/assets/downArrow.png”);
upArrowUpSkin:
Embed(source=”/assets/upArrow.png”);
upArro ......

ajax Àý×Ó

 <script type="text/javascript">
  //¶¨ÒåXMLHttpRequest¶ÔÏó±äÁ¿
  var xmlHttpRequest;
  
  /*
   * ´´½¨XMLHttpRequest¶ÔÏó¡£
   * ±¾º¯ÊýÖ÷ÒªÍê³ÉXMLHttpRequest¶ÔÏóµÄ´´½¨£¬ºËÐÄ·ÖΪÒÔÏÂÁ½¸ö²¿·Ö£º
   * µÚÒ»²½£ºÊ×ÏÈÅж ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ