| Package | com.swfjunkie.tweetr.utils |
| Class | public class URLShortener |
| Inheritance | URLShortener flash.events.EventDispatcher |
| Property | Defined by | ||
|---|---|---|---|
| url : String [read-only]
The Shortened URL
| URLShortener | ||
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new URLShortener Instance
| URLShortener | ||
|
destroy():void
Completely destroys the instance and frees all objects for the garbage
collector by setting their references to null.
| URLShortener | ||
|
shorten(url:String):void
Shortens the given URL
| URLShortener | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Dispatched when the instance has successfully shortened an url. | URLShortener | |||
| Dispatched when the instance has encountered an error while trying to encode your url. | URLShortener | |||
| url | property |
url:String [read-only]The Shortened URL
Implementation public function get url():String
| URLShortener | () | constructor |
public function URLShortener()Creates a new URLShortener Instance
| destroy | () | method |
public function destroy():voidCompletely destroys the instance and frees all objects for the garbage collector by setting their references to null.
| shorten | () | method |
public function shorten(url:String):voidShortens the given URL
Parametersurl:String — Long URL that should be shortened
|
| complete | event |
flash.events.Event
Dispatched when the instance has successfully shortened an url.
| ioError | event |
flash.events.IOErrorEvent
Dispatched when the instance has encountered an error while trying to encode your url.