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

« back to all changes in this revision

Viewing changes to test/image/focusrect-simple.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 focusrect-simple.swf focusrect-simple.as
 
2
 
 
3
rectangle = function (mc, color, x, y, w, h)
 
4
{
 
5
  mc.beginFill (color);
 
6
  mc.moveTo (x, y);
 
7
  mc.lineTo (x, y + h);
 
8
  mc.lineTo (x + w, y + h);
 
9
  mc.lineTo (x + w, y);
 
10
  mc.lineTo (x, y);
 
11
  mc.endFill ();
 
12
};
 
13
 
 
14
createEmptyMovieClip ("a", 0);
 
15
rectangle (a, 0xff, 0, 0, 50, 50);
 
16
a.focusEnabled = true;
 
17
Selection.setFocus (a);
 
18
a._x = 50;
 
19
a._y = 50;