开发者

remote class alias in air

Hi in Flex one can easily define the remote class alias like the following:

package samples.portfolio
{
 [开发者_高级运维RemoteClass(alias="flex.samples.marketdata.Stock")]
 [Bindable]
 public class Stock
 {     
  public var symbol:String;
  public var name:String;
  public var low:Number;
 }

}

But my question is how do you do it in AIR since the client app does not know about the server file structure.

Regards,


In your example above, you are hard coding the server side structure in the RemoteClass metadata tag. You allude to the fact that a Flex, web based, app knows something about the server side structure. It doesn't. It only knows what you tell it.

You can do it the same way in an Flex desktop based app using AIR.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜