have you received mine or list emails? hope it's clear if you did..
pinatti
On Wed, Mar 11, 2009 at 3:48 PM, Gustavo Duenas <
gdue...@leftandrightsolutions.com> wrote:
> Thanks, I 've just solved minutes ago, apparently it gives me the error
> when the part of the function is
> xTween.continueTo
Thanks, I 've just solved minutes ago, apparently it gives me the
error when the part of the function is
xTween.continueTo(event.MouseX, duration);
so I've just erased the event part , it is now:
xTween.continueTo(MouseX, duration);
so now is ok.
:)
any explanation though?
I guess flash was tr
mouseX and mouseY are member variables of the Sprite class. You don't need
to import member variables, only classes. Once you import the Sprite class,
all the members come with it.
replace your mouseX and mouseY imports with:
import flash.display.Sprite;
and you'll be golden.
Dave
On Wed, Ma
Event types doesn't have mouseX. Only MouseEvent has, and even, you should
use target or currentTarget and get it.
ie:
addEventListener(MouseEvent.CLICK, mousecords);
function mousecords(event:Event):void {
xTween.continueTo(event.target.mouseX, duration);
yTween.continueTo(event.target.mouseY, d
import flash.display.Sprite.mouseX;
import flash.display.Sprite.mouseY;
???
import flash.display.Sprite;
:)
Gustavo Duenas wrote:
Hi Coders I have this code, is simple I want to move something using
as3, but when I do the movie test with it, it gives me this error
1172: Definition flash.di
Hi Coders I have this code, is simple I want to move something using
as3, but when I do the movie test with it, it gives me this error
1172: Definition flash.display.Sprite:mouseX could not be found.
same for the mouseY, I don't understand since the code appears to be
in the import flash
6 matches
Mail list logo