-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathWebEvent2.as
More file actions
58 lines (41 loc) · 1.48 KB
/
WebEvent2.as
File metadata and controls
58 lines (41 loc) · 1.48 KB
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
53
54
55
56
57
58
package webService2
{
import flash.events.Event;
import mx.rpc.AsyncToken;
/**take status value to check if this process is successful*/
public class WebEvent2 extends Event
{
public static const CONNECTED:String = "CONNECTED",
NO_CONNECTTION:String = "NO_CONNECTTION",
//TICKET_PROBLEM:String = "TICKET_PROBLEM",
RESULT:String = "RESULT";
//Problems list
/**default connection problem*/
public static const error_connection_problem:uint = 0 ;
/**null receved from web service that means current tocken is expired*/
public static const error_loginProblem:uint = 1 ;
/**if Boolean data receved and it was false*/
public static var error_not_done:uint = 2 ;
/**User problem list from WebEvent class <br>
* error_connection_problem<br>
* error_login_problerm<br>
* error_not_done*/
public var connectionProblemCode:uint ;
public var token:AsyncToken ;
public var pureData:Array ;
public var problemHint:String ;
public function WebEvent2(type:String,pureString:Array=null,myToken:AsyncToken=null,ConnectionProblemCode:uint = error_connection_problem,ProblemHint:String='')
{
pureData = pureString ;
token = myToken;
problemHint = ProblemHint ;
connectionProblemCode = ConnectionProblemCode ;
super(type,true);
}
override public function clone():Event
{
var newEvent:WebEvent2 = new WebEvent2(type,pureData,token,connectionProblemCode,problemHint);
return newEvent ;
}
}
}