[Xerte] Re: Constraining a movie
Julian Tenney
Julian.Tenney at nottingham.ac.uk
Thu Mar 8 08:26:01 GMT 2012
Constrain is a method of ICON, but the MOVIE is not a movieclip, so you should use setSize()
From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Kemp Johnathan
Sent: 07 March 2012 17:22
To: Xerte discussion list
Subject: [Xerte] Constraining a movie
According to the Xerte reference constrain() is a method of the icon class, so I would have expected it to be available to a movie icon.
However I noticed that in the code for the textVideo page the code uses
movie.setSize(800,434);
rather than
movie.constrain(800,434);
I tried using constrain as I wanted to ensure the movies aspect ratio was not affected by a change of size and it appeared to have no effect.
Is constrain() not available as a method for movie icons?
Kind regards
Johnathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20120308/bfcb7944/attachment.html>
More information about the Xerte
mailing list