Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
21
Task/HTTP/ActionScript/http.as
Normal file
21
Task/HTTP/ActionScript/http.as
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
package
|
||||
{
|
||||
import flash.display.Sprite;
|
||||
import flash.events.Event;
|
||||
import flash.net.*;
|
||||
|
||||
public class RequestExample extends Sprite
|
||||
{
|
||||
public function RequestExample()
|
||||
{
|
||||
var loader:URLLoader = new URLLoader();
|
||||
loader.addEventListener(Event.COMPLETE, loadComplete);
|
||||
loader.load(new URLRequest("http://www.rosettacode.org"));
|
||||
}
|
||||
|
||||
private function loadComplete(evt:Event):void
|
||||
{
|
||||
trace(evt.target.data);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue