as\flex ÖÐÌí¼ÓʼþaddEventListener()ʱ´«µÝ²ÎÊý
/**
* @author:ycccc8202
* @ÓÃ;:×¢²áʼþ½øÐд«µÝ²ÎÊýµÄ´úÀíÀà
* @date:2007.8.26
* @example:
* import com.ycccc.utils.JEventDelegate
stage.addEventListener(MouseEvent.MOUSE_DOWN,JEventDelegate.create(mouseDownHandler,"a","b"));
function mouseDownHandler(e:MouseEvent,...arg) {
trace(e)
trace(arg)
}
*/
package com.projectstateview.comm.method
{
import flash.events.Event;
public class JEventDelegate
{
public function JEventDelegate()
{
}
public static function create(f:Function,... arg):Function
{
return function(e:Event):void
{
f.apply(null,[e].concat(arg));
}
}
public static function toString():String
{
return "Class JEventDelegate";
}
}
}
Ïà¹ØÎĵµ£º
ÔÚflex¿ª·¢»·¾³Öбàдas3´úÂëÊǺܷ½±ãµÄ£¬½èÖúflex¿ª·¢»·¾³´úÂë¶¼ÓÐ×Ô¶¯Ìáʾ¹¦ÄÜ£¬µ«ÊÇÔÚ×öflashÓÎÏ·µÄʱºò£¬ÔÚÉæ¼°µ½¶Ô»°¿òµÄʱºò£¬ÎÒÓöµ½Ò»¸öºÜ¼¬ÊÖµÄÎÊÌ⣬¾ÍÊÇÔÚÃÀ¹¤ÓÃflash cs²¼¾ÖºÃÁ˵ĽçÃæ£¬ÎÒÔÚ½çÃæÉÏÃüÃûÁËʵÀý£¨ÈçtextfieldÀàÐÍ var nameText:String£©£¬ÔÚµ¼³öÕâ¸öÀࣨguestDialog£©µÄʱºò(Õâ¸öÀà¼Ì³Ð×ÔMovieClip ......
ExternalInterface.callµÄÎÊÌâ
ÇëÁôÒâÒÔÏÂÇé¾°£¬ÒªÀûÓÃÍⲿӦÓóÌÐòµ¯³öÎļþÑ¡Ôñ´°Ì壬²¢·µ»ØËùÑ¡µÄÎļþ·¾¶¡£
ʹÓÃExternalInterface.callÀ´ÊµÏÖ£¬µ±Óû§60Ãë(FlexÒѾÉèÖÃ×µÄµÈ´ýʱ¼ä)ÄÚδÄܹ»Íê³ÉÎļþÑ¡Ôñ»áµ¯³ö"1502"µÄ´íÎó£¬ÑÏÖØÓ°ÏìÓû§ÌåÏÖ¡£
ËùÒÔ£¬Ò»Ð©±È½ÏºÄʱµÄ²Ù×÷(³¬¹ý60s)£¬»òÎÞ·¨È·¶¨ºÎʱµ÷ÓÃÍê³ÉµÄ· ......
Flex
4 SDKÔ´ÂëdzÎö£¡
Èç´ó¼ÒÒª×ªÔØ£¬Çë±£Áô±¾È˵İæÈ¨:
/*
*Description:PV3DÀà¼Ì³ÐÌåϵ½á¹¹
*Auther:³ç³ç-ÌìÕæµÄºÃÀ¶°¡
*MSN:chongchong2008@msn.com
*Blog:chongchong2008
*Dates:2009-06-02
*Copyright:ChongChong2008
YiChang HuBei China
*/
Flex 4 SDKÔ´ÂëdzÎö£¡
×î½üÏÂÁËFlex 4 SDK £¨flex_sd ......
ÓÐÒ»¶Îʱ¼äûÓнӴ¥flex £¬Óе㲻Ôõ»áÓÃflex¡£»¹ºÃ×î½üŪÁËһϷÖÒ³µÄ¶«Î÷£¬¶Ôxml½øÐзÖÒ³»¹ÊÇͦ¹ÜÓ᣽èÓÃ֮ǰ·â×°ºÃµÄÀà¾ÓÈ»½â¾öºÜ¾Ã֮ǰµÄÎÊÌâ¡£¶ÔDataGrid µÄ×é¼þ·ÖÒ³£¬¿ÉÒÔͨ¹ý¶ÔXML½øÐÐһЩ´¦Àí£¬¿´ÆðÀ´ÕæµÄ·ÖÒ³ÁË¡£Êµ¼ÊÉÏÖ»ÊÇÒ»ÖÖ´í¾õ¡£
Ê×ÏÈÏÈ×¼±¸Ò»¸öÊý¾ÝÔ´XML¡£´ó¸ÅÒÔÒ»¸öÔ±¹¤×÷ÐÕÃû ÄêÁäºÍÐ ......
flexǶÈëµ½html£º
ÓÃswfobject,ÏÂÔØµÄ.jsµØÖ·£ºhttp://www.adobe.com/devnet/activecontent/articles/devletter.html
ÔÚÄãµÄ HTML Ò³ÃæÍ·²¿<head>ÇøÇ¶ÈëÕâ¸ö½Å±¾Îļþ£º<script type="text/javascript" src="swfobject.js"></script>
ÔÚÄãµÄ HTML ÖÐдһ¸öÓÃÀ´·Å Flash µÄÈÝÆ÷£¬±ÈÈç<div> ......