School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 307,078 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,251 people online right now. Registration is fast and FREE... Join Now!




Movie Clip stuff

 

Movie Clip stuff

Ribs

14 Nov, 2008 - 02:43 PM
Post #1

New D.I.C Head
*

Joined: 12 Nov, 2008
Posts: 10

I would like to learn how to get a movie clip to move in a straight lne without using actionscript.

I'm not looking for actual code, Ijust need a push in the right direction.

Thanks.

User is offlineProfile CardPM
+Quote Post


BetaWar

RE: Movie Clip Stuff

14 Nov, 2008 - 03:16 PM
Post #2

#include <soul.h>
Group Icon

Joined: 7 Sep, 2006
Posts: 4,777



Thanked: 277 times
Dream Kudos: 1400
My Contributions
Look into motion tweens. That is the only way to move a MC without having AS involved. I believe there is a tutorial in the Flash tutorials section on it.
User is online!Profile CardPM
+Quote Post

Ribs

RE: Movie Clip Stuff

14 Nov, 2008 - 03:38 PM
Post #3

New D.I.C Head
*

Joined: 12 Nov, 2008
Posts: 10

Oops!
What I meant to say was "using actionscript".
User is offlineProfile CardPM
+Quote Post

BetaWar

RE: Movie Clip Stuff

15 Nov, 2008 - 08:53 AM
Post #4

#include <soul.h>
Group Icon

Joined: 7 Sep, 2006
Posts: 4,777



Thanked: 277 times
Dream Kudos: 1400
My Contributions
Okay, then there are a number of ways. You could just put an onEnterFrame function in the movieclip that will tell it to move x and/or y position each frame until it has reached a certain point or you could look into the Tween class (which comes standard with Flash). It allows for all sorts of interesting tween types without you having to worry about the guts that makes it work, however I have noticed that it does have issues sometimes (at least in Flash 8) with not stopping in the right place, but that isn't too bad and it normally works right.

Here is a pretty good tween tutorial:
http://www.kirupa.com/developer/actionscript/tween.htm

Hope that helps.
User is online!Profile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 10:28AM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month