When I publish my movie to flash 6 using the 2 methods below the code works fine but when I publish this to flash 7 neither method stop the code from going into a loop and eating the cpu when you view the files online.
onClipEvent (load) {
easeMove = function (xpos, ypos) { _x += (xpos-_x)/5;_y += (ypos-_y)/5;};
_root.news.cases.onEnterFrame = function() {
this.easeMove(700, 297);
};
_root.news.cases.onEnterFrame = function(){
if(this.easeMove(700, 297)== true){
delete _root.news.cases.onEnterFrame
}
}
and this
onClipEvent (load) {
easeMove = function (xpos, ypos) { _x += (xpos-_x)/5;_y += (ypos-_y)/5;};
_root.news.cases.onEnterFrame = function() {
if (Math.round(this._x)>432) {
this.easeMove(432, 297);
}
}
The same thing happens on mac computers when published to 6 using the flash 7 player
Any thoughts?