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

« back to all changes in this revision

Viewing changes to test/trace/jump-out-and-back-into-with-2.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 movie68.swf movie68.as
 
2
 
 
3
// note that the real checks are binary-modified to produce the desired tests.
 
4
// The branch offsets have been adjusted.
 
5
trace ("Check how jumping out of a With and back in works");
 
6
x = 0;
 
7
o = new Object ();
 
8
o.x = -10;
 
9
with (o) {
 
10
  trace (x);
 
11
  x++;
 
12
  if (x > 10) {
 
13
    asm {
 
14
      branchalways "hi"
 
15
    };
 
16
  }
 
17
}
 
18
asm {
 
19
  branchalways "hi"
 
20
};
 
21
 
 
22
loadMovie ("FSCommand:quit", "");