[Xerte] erte 2.11 - Setting the height _h and Width _w of graphic icon in script

Michael G Taylor Michael.G.Taylor at nottingham.ac.uk
Mon Jun 28 14:35:56 BST 2010


Hi Peter,

To control size using AS 2.0 try using ._width & ._height instead of ._w
etc...

e.g. 
Graphic._width = 500;
Graphic._height = 400;

Mike

-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Peter
Snowball
Sent: 28 June 2010 14:14
To: Xerte discussion list
Subject: [Xerte] erte 2.11 - Setting the height _h and Width _w of
graphic icon in script

Hi All

With a very limited understanding of Action script 2  I am trying to 
control the size of a graphic icon through script. Can alter or set the 
position with script no problems but height and width seem to have no 
effect.

eg : Graphic._x = 200;
         Graphic._y = 100;

but  Graphic._h =400; or Graphic._w = 500;  has no effect.

It seems  like I need some script similar to 'resize' in the page 
wizards triggered by an onload event etc. but I have no idea how to do
this.
Any help appreciated.

-- 
Peter Snowball
Dept Of Economic Development
Tasmania

_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte


More information about the Xerte mailing list