thanks for the help guys, I'll certainly look into Fuse and learn a bit more
about those undocumented events that Tween dispatches. Any suggestion as to
where I can find documentation on that, or is that a bit sarcastic of me?


kind regards,
Ben


On 8/29/06, Ryan Potter <[EMAIL PROTECTED]> wrote:

Ben-

I don't know if you have played with Fuse but it can do exactly what you
want using the built in events.  The mx tweens may be able to do the
same thing, but I don't know.

If you are going to use fuse look at the event "onUpdateTween".

http://www.mosessupposes.com/Fuse/

http://www.mosessupposes.com/Fuse/fuse1.1docs/ZigoEngine.html


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ben
deroo
Sent: Tuesday, August 29, 2006 7:55 AM
To: [email protected]
Subject: [Flashcoders] MC position at any given time

/*

the question:

I want to detect the position of a MovieClip at any given time during a
transition.
When the clip reaches a certain point somewhere in the transition,
i want the second clip to start moving also...

e.g.  startpoint before transition = 100px
endpoint after transition  = 200px
when the MovieClip(square_mc) passes for example
past .y=123px, i'd like to trace("your position is..."+current position)
and then move square2_mc to ._y=200 (or whatever position i enter in AS)

*/
import mx.transitions.*;
import mx.transitions.easing.*;
_root.attachMovie("blok_mc", "square_mc", getNextHighestDepth());
_root.attachMovie("blok_mc", "square2_mc", getNextHighestDepth());
//
//
square_mc._width = 60;
square_mc._height = 20;
square_mc._x = 100;
square_mc._y = 20;
//
square2_mc._width = 60;
square2_mc._height = 20;
square2_mc._x = square_mc._x+square_mc._width+4;
square2_mc._y = 20;
//
//
//
function bounceUp(theMc) {
var sqdown:Tween = new Tween(theMc, "_y",
mx.transitions.easing.Elastic.easeOut, 20, 200, 10, true);
}

/*
function bounceDown(theMc) {
var sqdown:Tween = new Tween(theMc, "_height",
mx.transitions.easing.Bounce.easeOut, 200, 20, 1, true);
}
*/
square_mc.onRollOver = function() {
bounceUp(this);
};
/*
square_mc.onRollOut = function() {
bounceDown(this);
};
*/





Any help would be appreciated,
Ben
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to