Nobody answered my question (Mark my time ! Help !) in this forum.
Because I didn’t express myself very well???
Let’s try again:
I found this movie as a fla.
And I wonder if its possible to attach some mc’s (balla, ballb, ballc, balld) on the mc line.
balla, ballb, ballc, balld may not _xscale or _yscale because they content text.
So I putted some empty mc’s (refa, refb, refc, refd) on the mc line.
Problem: How to get and follow the –x and –y coordinates of refa, refb, refc, refd by the mc’s balla, ballb, ballc, balld?
At this moment I can not explain it more clearly, sorry!
I putted the movie online with the mc’s marked. I hope it will help you answering this question.
http://users.pandora.be/c.v.a/timeline/timeline.swf
Thank you!!
thothomas
These are the scripts on the movie.
_root
mc: control
onClipEvent (load) {
mcLine = _root.line;
mcBut1 = _root.but1;
mcBut2 = _root.but2;
}
onClipEvent (enterFrame) {
mcLine._x = mcBut1._x;
mcLine._y = mcBut1._y;
mcLine._xscale = mcBut2._x-mcLine._x;
mcLine._yscale = mcBut2._y-mcLine._y;
updateAfterEvent();
}
mc: but1
onClipEvent (enterFrame) {
if (dragging) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
}
button:
on (press) {
dragging = 1;
}
on (release) {
dragging = 0;
}
mc: but2
onClipEvent (enterFrame) {
if (dragging) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}
}
button:
on (press) {
dragging = 1;
}
on (release) {
dragging = 0;
}
mc: line
mc: refa
mc: refb
mc: refc
mc: refd
mc: balla
mc: ballb
mc: ballc
mc: balld