kateWoolley
09-24-2002, 08:29 AM
Hi.
After reading the other threads from simple stuff, I felt brave enough to ask my question, for a problem that I am convinced is so simple that I can't see it.
I'm not completely ignorant of Flash, but this one has me stumped :(:
I'm working from a book called Flash MX Studio, it's by Macdonald (et al). I'm stumped on THE FIRST tutorial on movement (Making a movie clip with easing)... I can't get it to work.
The directions say to open up a new Flash file (550x400 with 31fps), draw a black circle, convert it to movie clip (F8), and name it. (seems simple enough)
Then you add another layer beneath the circle layer, and (making sure you're in expert mode)enter the code on the blank layer that is underneath the circle layer:
ball_mc.onEnterFrame = function() {
this._x += (this._parent._xmouse-this._x)/4;
this._y += (this._parent._ymouse-this._y)/4;
};
after that you save, and then play it, and the ball is supposed to follow the cursor. well, it DOESN'T WORK, at least not for me. I am very frustrated, as I have re-done this experiment several times assuming it's something I was doing wrong.
I'm also curious that it seems to be only One frame that they want you to create... I wonder whether or not the problem is that there is no where for the movie clip to go since you've only made the one frame?and that there are no other frames in which to play? or is that way off base? I've made other basic movies (involving keyframes and continuous tween movement) before with movement, which is why I am wondering this...
I would greately appreciate any help you could give before I go insane!
Thanks,
Kate.
After reading the other threads from simple stuff, I felt brave enough to ask my question, for a problem that I am convinced is so simple that I can't see it.
I'm not completely ignorant of Flash, but this one has me stumped :(:
I'm working from a book called Flash MX Studio, it's by Macdonald (et al). I'm stumped on THE FIRST tutorial on movement (Making a movie clip with easing)... I can't get it to work.
The directions say to open up a new Flash file (550x400 with 31fps), draw a black circle, convert it to movie clip (F8), and name it. (seems simple enough)
Then you add another layer beneath the circle layer, and (making sure you're in expert mode)enter the code on the blank layer that is underneath the circle layer:
ball_mc.onEnterFrame = function() {
this._x += (this._parent._xmouse-this._x)/4;
this._y += (this._parent._ymouse-this._y)/4;
};
after that you save, and then play it, and the ball is supposed to follow the cursor. well, it DOESN'T WORK, at least not for me. I am very frustrated, as I have re-done this experiment several times assuming it's something I was doing wrong.
I'm also curious that it seems to be only One frame that they want you to create... I wonder whether or not the problem is that there is no where for the movie clip to go since you've only made the one frame?and that there are no other frames in which to play? or is that way off base? I've made other basic movies (involving keyframes and continuous tween movement) before with movement, which is why I am wondering this...
I would greately appreciate any help you could give before I go insane!
Thanks,
Kate.