[Flashcoders] Trouble Updating Frame Position Using onEnterFrame
Hans, I can hardly believe it, but #2 worked. Thanks a bunch. Kelly 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 _ On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Trouble Updating Frame Position Using onEnterFrame
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 Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Trouble Updating Frame Position Using onEnterFrame
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 Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders