My favorites | Sign in
Project Home Downloads Wiki Issues Source
Repository:
Checkout   Browse   Changes   Clones    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package net.justinfront.utils;

import neash.events.EventDispatcher;
import haxe.Http;
import js.Lib;

class HtmlLoader extends EventDispatcher
{

private var _str: String;
private var _file: String;

public function new()
{

super();

}


public function load( file_: String )
{

_file = file_;

var r = new Http( _file );
r.onError = Lib.alert;
r.onData = htmlLoaded;

r.request( false );

}


private function htmlLoaded( r )
{

_str = cast(r);
DispatchCompleteEvent();

}


public function getHtml():String
{

return _str;

}


}

Change log

fa42ab1409cf by JLM <j...@justinfront.net> on Jul 15, 2009   Diff
initial commit
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 807 bytes, 52 lines
Powered by Google Project Hosting