Search code examples
apache-flexactionscript-3twitterbit.ly

tiny URL api Automati in flex 3


i am working in application of twitter in flex 3 and action script 3 , this in the text area when the user write my application automatically change http address to a short address but i don't know find the address within the text you can help me please..

thanks in advance


Solution

  • if you can use http webservices try to use one provided by bit.ly to shorten 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)"/>