[Xerte] Re: Constraining a movie

Kemp Johnathan johnathan.kemp at ntlworld.com
Thu Mar 8 13:18:45 GMT 2012


Thanks.

I have preceded the call to setSize with my own code to calculate an
appropriate size based on the available space so that I can get the same
effect as constrain.

JK

On 8 March 2012 08:26, Julian Tenney <Julian.Tenney at nottingham.ac.uk> wrote:

> 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
>
>  This message and any attachment are intended solely for the addressee and
> may contain confidential information. If you have received this message in
> error, please send it back to me, and immediately delete it. Please do not
> use, copy or disclose the information contained in this message or in any
> attachment. Any views or opinions expressed by the author of this email do
> not necessarily reflect the views of the University of Nottingham.
>
> This message has been checked for viruses but the contents of an
> attachment may still contain software viruses which could damage your
> computer system: you are advised to perform your own checks. Email
> communications with the University of Nottingham may be monitored as
> permitted by UK legislation.
>
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>
> This message and any attachment are intended solely for the addressee and
> may contain confidential information. If you have received this message in
> error, please send it back to me, and immediately delete it.   Please do
> not use, copy or disclose the information contained in this message or in
> any attachment.  Any views or opinions expressed by the author of this
> email do not necessarily reflect the views of the University of Nottingham.
>
> This message has been checked for viruses but the contents of an attachment
> may still contain software viruses which could damage your computer system:
> you are advised to perform your own checks. Email communications with the
> University of Nottingham may be monitored as permitted by UK legislation.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20120308/ef04eeb4/attachment.html>


More information about the Xerte mailing list