I have a scrolling movieclip which works fine by itself.
When this is loaded into another timeline as a .swf it doesn't work.
any suggestions?
The movieclip (or swf) itself consists of the pic clip and the position clip which has four frames with the following script:
startDrag ("", true);
mouseposition = getProperty("_level0/position", _y);
if (Number(mouseposition)>=150 and Number(mouseposition)<=300) {
gotoAndPlay (3);
}
____________
gotoAndPlay (1);
______________
mouseposition = getProperty("_level0/position", _y);
if (Number(mouseposition)<150 or Number(mouseposition)>300) {
gotoAndPlay (1);
}
_______________
mouseposition = getProperty("_level0/position", _x);
picposition = getProperty("_level0/pic", _x);
if (Number(mouseposition)>=300 and Number(picposition)>Number(-2000)) {
setProperty ("_level0/pic", _x, picposition-(0.01*(mouseposition-10)));
}
if (Number(mouseposition)<300 and Number(picposition)<10) {
setProperty ("_level0/pic", _x, Number(picposition)+Number((0.01*(300-mouseposition))));
}
coords = mouseposition;
gotoAndPlay (3);
When this is loaded into another timeline as a .swf it doesn't work.
any suggestions?
The movieclip (or swf) itself consists of the pic clip and the position clip which has four frames with the following script:
startDrag ("", true);
mouseposition = getProperty("_level0/position", _y);
if (Number(mouseposition)>=150 and Number(mouseposition)<=300) {
gotoAndPlay (3);
}
____________
gotoAndPlay (1);
______________
mouseposition = getProperty("_level0/position", _y);
if (Number(mouseposition)<150 or Number(mouseposition)>300) {
gotoAndPlay (1);
}
_______________
mouseposition = getProperty("_level0/position", _x);
picposition = getProperty("_level0/pic", _x);
if (Number(mouseposition)>=300 and Number(picposition)>Number(-2000)) {
setProperty ("_level0/pic", _x, picposition-(0.01*(mouseposition-10)));
}
if (Number(mouseposition)<300 and Number(picposition)<10) {
setProperty ("_level0/pic", _x, Number(picposition)+Number((0.01*(300-mouseposition))));
}
coords = mouseposition;
gotoAndPlay (3);