flex ÓÒ¼ü²Ëµ¥¹ÜÀí¹¤¾ßÀà
/*============ʹÓÃ==========*/
var contextmenu:ContextMenuManager=new ContextMenuManager();
contextmenu.add("×î´ó»¯",menuHandle);//menuHandle´¦Àíº¯Êý
/**==================ContextMenuManager.as==========================*/
package file
{
import flash.display.InteractiveObject;
import flash.events.*;
import flash.errors.IllegalOperationError;
import flash.ui.*;
import flash.utils.getQualifiedClassName;
public class ContextMenuManager extends EventDispatcher
{
protected var menu:ContextMenu;
protected var target:InteractiveObject;
public function ContextMenuManager(target:InteractiveObject,hideBuiltInItems:Boolean=true)
{
this.target=target;
menu=new ContextMenu();
if(hideBuiltInItems)
{
menu.hideBuiltInItems();
}
this.target.contextMenu=menu;
menu.addEventListener(ContextMenuEvent.MENU_SELECT,passEvent);
}
public function add(caption:String,handler:Function,separatorBefore:Boolean=false,enabled:Boolean=true,visible:Boolean=true):ContextMenuItem
{
var result:ContextMenuItem=createItem(caption,handler,separatorBefore,ena
Ïà¹ØÎĵµ£º
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 ......
java¿ª·¢µÄ×ÜÏ뾡¿ì°ÑflexºÍjava½áºÏÆðÀ´,ÎÒÒ²ÊÇ,µ«ÕâÈÝÒ׺öÊÓһЩ»ù´¡µÄ¶«Î÷,¸Õ°ÑflexºÍjavaÕûºÏµÄµÚÒ»²½×öÍê,ºöÈ»ÏëÔÚflexÒ³ÃæÖе¯³ö¸ö¶Ô»°¿ò,²»ÖªµÀÔõôдÁË,ÍøÉϲéÁ˰ëÌì²Å³öÀ´.
ÔÀ´ÕâÒ»¾ä»°¾Í¸ã¶¨ÁË
Alert.show(content,title,flags,parent,closeHandle,iconClass,defaultButtonFlag);
ÒÔÏÂÊÇÍøÉÏÕÒµ½×ÊÁÏ,¹©²Î¿¼. ......
FlexÓëJavascript»¥ÏàͨÐÅ¡£
ÔÚFlexÖÐÓÐÕâôһ¸öÀࣺExternalInterface.ÔÚÕâ¸öÀàÖÐËü¸øÎÒÃÇ£ºcallºÍaddCallback
FlexÖÐAsµ÷ÓÃJsµÄ·½·¨ÊÇ£º
1¡¢µ¼Èë°ü £¨import flash.external.ExternalInterface;£©
2¡¢Ê¹ÓÃExternalInterface.call("Jsº¯ÊýÃû³Æ",²ÎÊý)½øÐе÷Óã¬Æä· ......
<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Ö»ÊÇÒ»ÖÖ¿Í»§¶Ë¼¼ÊõÆä±¾Éí²¢²»ÄÜÖ±½ÓͬÊý¾Ý¿â½»»¥£¬ÔÚʵ¼ÊµÄÓ¦Óÿª·¢¹ý³ÌÖÐFlexÌṩÁËÈçURLRequest¡¢HTTPService¡¢RemoteObject¡¢WebServiceµÈÀàÒÔʵÏÖͬ·þÎñÆ÷µÄͨѶºÍÊý¾Ý½»»¥£¬ÏÂÃæ×öһЩ½éÉܺÍʵÀý½âÎö:
1¡¢Ê¹ÓÃURLRequestÏò·þÎñÆ÷·¢ËÍÇëÇó£¬Ê¹ÓÃURLLoader½ÓÊÕ·þÎñÆ÷·µ»ØµÄÊý¾Ý:
& ......