Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scripts in loaded swf mc don't work

Status
Not open for further replies.

kur

Technical User
Apr 18, 2002
2
GB
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(&quot;_level0/position&quot;, _y);
if (Number(mouseposition)<150 or Number(mouseposition)>300) {
gotoAndPlay (1);
}
_______________

mouseposition = getProperty(&quot;_level0/position&quot;, _x);
picposition = getProperty(&quot;_level0/pic&quot;, _x);
if (Number(mouseposition)>=300 and Number(picposition)>Number(-2000)) {
setProperty (&quot;_level0/pic&quot;, _x, picposition-(0.01*(mouseposition-10)));
}
if (Number(mouseposition)<300 and Number(picposition)<10) {
setProperty (&quot;_level0/pic&quot;, _x, Number(picposition)+Number((0.01*(300-mouseposition))));
}
coords = mouseposition;
gotoAndPlay (3);
 
Do you have any stop actions that have escaped you? I get this sometimes, the way I get around it is to have a mymc.play (); action on the time line that holds the mc. Place the action on the frame where you want your mc to start. funkymonk B-)

rod@sameplanet.co.uk
********************


 
thanks for that
could have been a quick fix
unfortunately no escaped stop actions and the mymcplay suggestion doesn't seem to work.
I think it's to do with the pathnames.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top