开发者

Adobe AIR: How do I get the current endpoint URI?

开发者 https://www.devze.com 2023-04-01 18:18 出处:网络
I need to open a HTTP link to the webserver which my air app is talking to but I don\'t want to hard-code the webserver URL into the Flex code. If I can get the endpoint URI then I can work from there

I need to open a HTTP link to the webserver which my air app is talking to but I don't want to hard-code the webserver URL into the Flex code. If I can get the endpoint URI then I can work from there. 开发者_运维技巧I'm using GraniteDS in case that is relevant.


import mx.messaging.config.ServerConfig;

ServerConfig.getChannel(CHANNEL_ID).uri;

0

精彩评论

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

关注公众号