-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
104 lines (96 loc) · 2.76 KB
/
index.html
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>multiplatform communication demo</title>
<script type="text/javascript" src="out.js"></script>
<style>
body
{
font-family: arial;
}
a
{
text-decoration: none;
color: #999999;
}
#js_container
{
position: relative;
width: 540px;
height: 60px;
background-color: #dedede;
}
#box
{
position: absolute;
width: 40px;
height: 40px;
background-color: #666666;
top: 10px;
}
</style>
</head>
<body onLoad="setTimeout( MultiplatformComm.main(), 500 )">
<p><em>This example shows how to communicate (using notificatons) between different platforms using pureMVC and haXe remoting (flash 8 and 9 only). The core application is javascript based, but could be easily written in flash8/flash9.</em></p>
<p>choose value: <input type="text" id="distance" value="10" /> <a id="send_link" href="#">send</a></p>
<h4>view 1: flash9</h4>
<div id="flash9_container">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
width="540"
height="60"
id="haxe_fl9"
align="middle">
<param name="movie" value="out_fl9.swf"/>
<param name="allowScriptAccess" value="always" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="bgcolor" value="#dedede"/>
<embed src="out_fl9.swf"
bgcolor="#dedede"
width="540"
height="60"
name="haxe_fl9"
quality="high"
align="middle"
allowScriptAccess="always"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
/>
</object>
</div>
<hr />
<h4>view 2: flash8</h4>
<div id="flash8_container">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
width="540"
height="60"
id="haxe_fl8"
align="middle">
<param name="movie" value="out_fl8.swf"/>
<param name="allowScriptAccess" value="always" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="bgcolor" value="#dedede"/>
<embed src="out_fl8.swf"
bgcolor="#dedede"
width="540"
height="60"
name="haxe_fl8"
quality="high"
align="middle"
allowScriptAccess="always"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
/>
</object>
</div>
<hr />
<h4>view 3: javascript</h4>
<div id="js_container"><div id="box"></div></div>
<hr />
<div id="haxe:trace"></div>
</body>
</html>