~ubuntu-branches/ubuntu/jaunty/swfdec0.8/jaunty

« back to all changes in this revision

Viewing changes to test/trace/remove-with-onUnload.as

  • Committer: Package Import Robot
  • Author(s): Didier Roche
  • Date: 2008-10-10 19:15:24 UTC
  • Revision ID: package-import@ubuntu.com-20081010191524-5z85qiky1d4bvgfa
Tags: upstream-0.8.0
ImportĀ upstreamĀ versionĀ 0.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// makeswf -v 7 -s 200x150 -r 1 -o remove-with-onUnload.swf remove-with-onUnload.as
 
2
 
 
3
function foo () {
 
4
  trace (">> " + this);
 
5
  trace (_root.a + ": " + _root.a.getDepth ());
 
6
  trace (_root.a.a + ": " + _root.a.a.getDepth ());
 
7
  trace (_root.a.b + ": " + _root.a.b.getDepth ());
 
8
  trace (_root.a.c + ": " + _root.a.c.getDepth ());
 
9
  trace (_root.a.d + ": " + _root.a.d.getDepth ());
 
10
};
 
11
createEmptyMovieClip ("a", 0);
 
12
a.createEmptyMovieClip ("a", 0);
 
13
a.createEmptyMovieClip ("b", 1);
 
14
a.createEmptyMovieClip ("c", 2);
 
15
a.createEmptyMovieClip ("d", 3);
 
16
a.onUnload = foo;
 
17
a.a.onUnload = foo;
 
18
a.b.onUnload = foo;
 
19
a.c.removeMovieClip ();
 
20
a.removeMovieClip ();
 
21
a.removeMovieClip ();
 
22
a.d.removeMovieClip ();
 
23
foo ();
 
24
trace ("===");
 
25
 
 
26
loadMovie ("fscommand:quit", "");