Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Move The Movie Clip In Flash, Use the arrow key to move the Movie Clip.
flash4satheesh
post Oct 4 2007, 01:47 AM
Post #1


Newbie [Level 1]
*

Group: Members
Posts: 16
Joined: 3-October 07
From: India
Member No.: 51,046



Movie Clip

1.Create a Movie Clip and draw a Rectangle or your design in the Movie Clip.
2.Come Back to Scene 1.
3.Select the Movie Clip and set them instance name = “movie”.
4.Select the first Frame.
5.Press F9 and Copy Code Below and paste it.

CODE
setInterval(function () {
    if (Key.isDown(Key.RIGHT)) {
        setDirection(0);
        _root.movie._x += 3;
    }
    if (Key.isDown(Key.LEFT)) {
        setDirection(1);
        _root.movie._x -= 3;
    }
    if (Key.isDown(Key.DOWN)) {
        _root.movie._y += 3;
    }
    if (Key.isDown(Key.UP)) {
        _root.movie._y -= 3;
    }
    updateAfterEvent();
}, 10);


Demo:http://img57.imageshack.us/img57/1401/movezf8.swf
Go to the top of the page
 
+Quote Post
MotU2510
post Oct 9 2007, 06:00 PM
Post #2


Newbie [Level 2]
**

Group: Members
Posts: 28
Joined: 5-October 07
Member No.: 51,172



Oooh, I like that. Quite clever, changing the x and y coordinates. I like it. This would be useful for making a flash based game.
Go to the top of the page
 
+Quote Post
flash4satheesh
post Oct 20 2007, 08:48 AM
Post #3


Newbie [Level 1]
*

Group: Members
Posts: 16
Joined: 3-October 07
From: India
Member No.: 51,046



Thanks for your Comments.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Print With Flash And Datagrids Without Resizing!(3)
  2. Macromedia Flash(9)
  3. How To Get High Quality Gif Images In Flash(2)
  4. Appeal For Flash-related Help [kinda Urgent](0)
  5. Playing Flash Movies Without The One-click Activation: Simple Insertion Of Javascript(5)
  6. Flash Player Simpleviewer Using Flickr And Picassa2(0)
  7. Here Is A Really Good Flash Tutorial Site(7)
  8. Flash, Sqlserver And Asp(0)
  9. Flash Tutorial : Realistic Ball Movement(0)
  10. Flash Vs. Java Applets(2)
  11. Flash(3)
  12. Need Sugation About Flash(4)
  13. Flash Coding(1)
  14. Flash - Streaming Flv With Interactible Objects(3)
  15. Flash Problem(9)
  1. Flash As3 Question(2)
  2. Flash, Php And Facebook Integration(0)
  3. Flash Action Scripting Help Needed(6)
  4. Mouse Over Alpha Fade(8)
  5. The List Component(6)


 



- Lo-Fi Version Time is now: 22nd November 2008 - 07:53 PM