[Xerte] Resize Graphics IN Xerte
Tenney Julian
Julian.Tenney at nottingham.ac.uk
Mon Jun 2 09:00:48 BST 2008
use a couple of calls to iconID.tween(...) as you can run several tweens
together. This is the new tween function I added a couple of weeks ago
that uses mx.transitions.
Alternatively, use an onEnterFrame handler to manage the transition
yourself:
if (count == someNumber){ //24 frames per second
//the transition is finished
delete iconID.onEnterFrame;
} else {
iconID._x++;
iconID._xscale -= 10;
---etc---
count++;
}
________________________________
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul
Beckwith, AC&S Ltd
Sent: 27 May 2008 15:15
To: 'Xerte discussion list'
Subject: RE: [Xerte] Resize Graphics IN Xerte
Although this works brilliantly on it's own, if I try and move the image
at the same time, both scripts will not run together?
Here is what I'm trying to do...
Id.animate(294,249,20, 'linearTween');
Id.scaleTo(50,20);
Anybody any ideas?
Paul
________________________________
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Lockley
Patrick
Sent: 27 May 2008 11:44
To: Xerte discussion list
Subject: RE: [Xerte] Resize Graphics IN Xerte
Hello all,
I'll try my best to answer (not sure I can say if this is the best way
or not), but after having a look through the help file and with a quick
play, I see two possible possibilities (not sure on the english there)
id.setScale(new scale in percent) (no tween)
id.scaleTo(new scale in percent, steps) (has a tween)
Hope this helps.
Pat
________________________________
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul
Beckwith, AC&S Ltd
Sent: 27 May 2008 11:23
To: 'Xerte discussion list'
Subject: [Xerte] Resize Graphics IN Xerte
Morning everyone,
I'm trying to minimize or "zoom out" an image on-the-fly and in
the middle of a transition. I have tried using _x = number from
actionscript 2 but no joy.
What's the best way to do this?
Thanks,
Aerospace Consulting & Services Ltd
Engineering, Training, Consultancy <http://www.acns-gmbh.com/>
Paul Beckwith
Multimedia Developer
AC&S LTD
35A Victoria Road East
Thornton-Cleveleys
Lancashire
FY5 5BU
UK
paul.beckwith at acns-group.com <mailto:mark.tomlinson at acns-group.com>
www.acns-group.com <http://www.acns-group.com/>
tel:
fax: :
+44 1253 855 997
<http://www.plaxo.com/click_to_call?lang=en&src=jj_signature&To=%2B44+12
53+855+997&Email=mark.tomlinson at acns-group.com>
+44 870 762 6818
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20080602/91bf1e87/attachment.html
More information about the Xerte
mailing list