Hi,
im not sure what you want to do, but:
1. change the x position: it should be window.pie._x = x;
2. change the current frame for the pie clip: you should use whole numbers and not 54.3 and 87.6, so gotoAndStop (Math.floor(x));

greetz
Hans

At 09:15 PM 11/29/2005, kelly snyder wrote:
I am using the following code in the root movies to attempt to update the frame position of a child movieclip using the Flash 6 player with Actionscript 1 (compiled on Flash 8):

function onEnterFrame() {

   window.pie.gotoAndStop(x);

   trace(x + "," + window.pie._currentframe);

}

As I change the variable x, the output reads something like "54.3,30" "87.6,30". The code is running, but the movieclip position is not changing. The code works fine when I run it at initialization, the problem seems to be associated with my use of it within the onEnterFrame function. What am I doing wrong? Any suggestions?

Kelly

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to