/*

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

Reply via email to