Hy everyone,
Im trying to move a movieclip only in X, deacourding with my mouse movement…
i use this code… for when i enter frame…
addEventListener(Event.ENTER_FRAME, animFlor);
function animFlor():void{
speed = ( 400 + mouseX - this.x) * 0.004;
flashmo_plant.x += speed;
}
flashmo_plant is the movieclip im trying to move…
But im getting always the some error when im executing the project…
ArgumentError: Error #1063: Incompatibilidade de contagem do argumento index_fla::MainTimeline/animFlor(). Esperado 0, obtido 1.
English:
ArgumentError: Error #1063: Incompatibity of count of the argument index_fla::MainTimeline/animFlor(). Expected 0, getting 1.
Hope u guys can help me… im not seing what is the problem…