Flex Metadata in ActionScript3
metadata×îÏÈ¿ªÊ¼ÓÚdotnet°É£¬½Ð×öAttribute£»È»ºójavaÒ²½ôËæÆäºó£¬½Ð×öAnnotaion£»actionscriptÔò½Ð×öMetadata¡£ÆäÖÐdotnetÓëActionScriptµÄÓï·¨¸ñʽÉ϶¼ÊÇÏàËƵģ¬ÈçASÖеÄ[Bindable]¡£ÔÚJavaÖÐÔòÊÇÓÃ@XXXÕâÑùµÄÓï·¨£¬Èç@override¡£²»¹ýÄ¿µÄ¶¼ÊÇÒ»¸ö£¬¸øÀà»ò·½·¨»òÊôÐÔÔö¼Ómeta data±ê¼Ç£¬´Ó¶øʵÏÖ¶ÔÕâЩ±»±ê¼ÇµÄ´úÂë½øÐÐһЩÌØÊâ´¦Àí¡£Æ©ÈçFlexUnit4£¬ ²»ÔÙÒªÇó´Ó²âÊÔÓÃÀýÖеIJâÊÔ·½·¨±ØÐëÒÔtest¿ªÍ·£¬¶øÊÇÔÚ·½·¨Ö®Ç°ÓÃ[Test]½øÐбê¼Ç¡£Õâ¸ö¸úJUnit 4ÊÇÒ»Öµģ¬ÒòΪFlexUnit4Ó¦¸ÃÊDzο¼ÁËJUnitµÄ¡£ÔÚdotnetÖпÉÒÔÓÐÈçϵÄÀý×Ó£¨¸ÃÀý×ÓÒý×Ôhttp://ondotnet.com/pub/a/dotnet/excerpt/prog_csharp_ch18/index.html?page=4
£¬ ¸ÃÎÄÕÂÊÇһƪºÜºÃµÄ¹ØÓÚ½éÉÜdotnet AttributeµÄÎÄÕ£©
namespace Programming_CSharp
{
using System;
using System.Reflection;
// create custom attribute to be assigned to class members
[AttributeUsage(AttributeTargets.Class |
AttributeTargets.Constructor |
AttributeTargets.Field |
AttributeTargets.Method |
AttributeTargets.Property,
AllowMultiple = true)]
public class BugFixAttribute : System.Attribute
{
// attribute constructor for
// positional parameters
public BugFixAttribute
(int bugID,
string programmer,
string date)
{
this.bugID = bugID;
this.programmer = programmer;
this.date = date;
}
// accessor
public int BugID
{
get
{
return bugID;
}
}
// property for named parameter
public string Comment
{
get
{
return comment;
}
set
{
comment = value;
}
}
// accessor
public string Date
{
get
{
return date;
}
}
// accessor
public string Programmer
{
get
{
return programmer;
}
}
// private member data
private int bugID;
private string comment;
private string date;
private string programmer;
}
// ********* assig
Ïà¹ØÎĵµ£º
flexºÍºǫ́½»»¥Êý¾Ý×îÖØÒªÊÇͨ¹ýÒì¹¹´«ÊäµÄhttpserivceµÄxml½á¹¹¡£¶ø¸ßЧÂʺÏÀíµÄÒì²½´«ÊäÊý¾ÝÊÇflexµÄ¿ª·¢ÖеĺËÐÄ¡£ÎҾ͹«¿ªÒ»ÏÂ×Ô¼ºÃæÏò½Ó¿ÚµÄhttpserviceµÄд·¨¡£Ï£ÍûÓÐÈË¿ÉÒÔÖ¸Õý¡£
Ê×ÏȵÚÒ»¸ö½Ó¿ÚÊǾö¶¨Í¨¹ý»ñÈ¡xmlµÄ½Ó¿Ú£º
package com.sunshine.framework. ......
ÔÚmxmlµÄapplicationÀà¿ÉÒÔͨ¹ýgeturl»ñÈ¡µ±Ç°url¡£»ñÈ¡url¿ÉÒÔÌṩһ¸öºÜºÃµÄ·½Ê½¶Ôswf´©²ÎÊý¡£ÔÚ¹«Ë¾µÄÏîÄ¿ÖоʹóÁ¿µÄÓ¦ÓÃÏà¹ØµÄ¼¼Êõ¡£¾ÍºÍ´ó¼Ò·ÖÏíÒ»ÏÂÏà¹ØµÄд·¨£¬Èç¹ûд²»ºÃ¾Í²»ÒªÐ¦»°Å¶¡£
·ÖÎöurl²ÎÊýÀࣺ
package com.sunshine.framework.control
{
import com.sunshin ......
http://corlan.org/2008/11/13/flex-and-php-remoting-with-zend-amf/ ZEND+FLEXÊÕ²Ø
http://www.keithcraigo.com/archives/66ZEND+FLEXÈÏÖ¤
http://www.keithcraigo.com/archives/181ZEND+FLEXÈÏÖ¤
http://ressources.mediabox.fr/tutoriaux:flashplatform:dynamique:remoting:zendlogin:zendlogin1ZEND+FL ......
sdk3.2 Ï»áÓдËÎÊÌâ.
ÏîÄ¿ÖÐÏëÓÃmoduleLoader¼ÓÔØÄ£¿é,´ïµ½Ä£¿é»¯¿ª·¢µÄÄ¿µÄ.µ«ÊdzöÏÖÁ˹²Ïí±äÁ¿µÄÎÊÌâ:
TypeError: Error #1034: Ç¿ÖÆת»»ÀàÐÍʧ°Ü:ÎÞ·¨½« Object@406e651 ת»»Îª mx.messaging.messages.IMessage¡£
´úÂë+ÉÏ// import mx.managers.PopUpManager;
// private var popUpManage ......
ÏÂÃæÊÇһЩ³£¼ûµÄ±àÒëÆ÷²ÎÊý£º
1£¬¡¾verbose-stacktraces¡¿
Ö¸¶¨SWFÔÚÔËÐÐʱÒì³£ÐÅÏ¢Öаüº¬ÐкźÍÎļþÃû£¬Õ⽫ʹ²úÉúµÄSWFÎļþ¸ü´óЩ£¬´ø
verbose-stacktracesµÄSWF»¹ÊǺ͵÷ÊÔ°æ±¾µÄSWFÓÐÇø±ðµÄ¡£
2£¬¡¾source-path path-element¡¿
Ìí¼ÓÆäËûÔ´´úÂëĿ¼»òÎļþ£¬¿ÉÒÔʹÓÃͨÅä·ûÀ´Ìí¼ÓĿ¼ÖÐËùÓÐÎļþ»ò×ÓĿ¼£¬Ò²¿ÉÊ ......