repo.or.cz
/
swfdec.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add test for frames and bytes properties of empty movies
[swfdec.git]
/
test
/
trace
/
scope-chain-this.as
blob
c8e859378c7247b5dca4e063ed05e09a0fffe7f5
1
// makeswf -v 7 -s 200x150 -r 1 -o scope-chain-this.swf scope-chain-this.as
2
// taken with permission from http://www.timotheegroleau.com/Flash/articles/scope_chain.htm
3
4
a
=
5
;
5
test
=
function
() {
6
trace
(
this
.
a
);
7
};
8
9
obj
=
new
Object
();
10
obj
.
a
=
6
;
11
obj
.
meth
=
test
;
12
13
obj2
=
new
Object
();
14
obj2
.
a
=
7
;
15
obj2
.
meth
=
test
;
16
17
obj
.
meth
();
// 6
18
obj2
.
meth
();
// 7
19
20
loadMovie
(
"FSCommand:quit"
,
""
);