0

我正在 flex 3 和 action script 3 中应用 twitter,当用户编写我的应用程序时,这在文本区域中会自动将 http 地址更改为短地址,但我不知道在文本中找到地址,你可以帮助我请..

提前致谢

4

2 回答 2

1

如果您可以使用 http 网络服务,请尝试使用 bit.ly 提供的服务来缩短 url

http://code.google.com/p/bitly-api/wiki/ApiDocumentation#/shorten

http://api.bit.ly/shorten?version=2.0.1&longUrl=' + textarea.text}" result="doSomething(event)"/>

于 2010-03-15T15:29:18.237 回答
0

我从来没有使用过这个api,所以在使用前先研究一下:http: //userflex.wordpress.com/2008/05/29/tinyurl-flex-library/

它看起来像一组实用函数,简单如下: TinyURL.create(url,callbackFunction);

祝你好运,杰里米

于 2010-03-15T15:17:46.697 回答