Guest_imported
New member
- Jan 1, 1970
- 0
hi everyone, i have created an image scroller within an mc. the instance of it on the main time line has the script:
onClipEvent (load) {
myNumber = _parent._parent._name;
mySpeed = 10-myNumber;
}
onClipEvent (enterFrame) {
Xsquare = this._x;
Xdiff = _root.Xpos-Xsquare;
Xmove = Xdiff/mySpeed;
this._x = Xsquare+Xmove;
updateAfterEvent(enterFrame);
}
and five correlating buttons that scroll the image with
on (release) {
Xpos = 1165;
}
for example. it works by itself (in a single file), but when placed within another animation, the buttons dont work and do nothing.
as i copied the code and are quiet unknowledgable with scripting, my guess is that it has sth to do with the _parent._parent._name;
and the button action call no specific mc.
but HOW to do this is the question. please anyone, a suggestion or hint ???
thanx in advance ...
onClipEvent (load) {
myNumber = _parent._parent._name;
mySpeed = 10-myNumber;
}
onClipEvent (enterFrame) {
Xsquare = this._x;
Xdiff = _root.Xpos-Xsquare;
Xmove = Xdiff/mySpeed;
this._x = Xsquare+Xmove;
updateAfterEvent(enterFrame);
}
and five correlating buttons that scroll the image with
on (release) {
Xpos = 1165;
}
for example. it works by itself (in a single file), but when placed within another animation, the buttons dont work and do nothing.
as i copied the code and are quiet unknowledgable with scripting, my guess is that it has sth to do with the _parent._parent._name;
and the button action call no specific mc.
but HOW to do this is the question. please anyone, a suggestion or hint ???
thanx in advance ...