Added: 2 years ago
From: ddoodm
Views: 7,956
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (21)

Sign In or Sign Up now to post a comment!
  • this is great, but how would you restrict the movement to between 2 points on an axis, so the object wont move right to the edges of the page on the x or y axis?

    cheers

  • I cannot make this work on Flash CS5 AS2 or AS3.

    The ball simply does not move!!

    Any thoughts?

    Thanks for the video though!

  • can this tutorial applicable for flash cs3? 

  • @manesshardey Yes. But you'll need to select ActionScript 2 instead of ActionScript 3 when creating a new flash document. :)

  • can anyone explain what is the need for writing : "OnEnterframe" , since we are not inserting any frames in the timeline..

  • @Ahmadkhanize Although the stage only contains one frame, the clip still must know when to execute it's code. onEnterFrame is a function that is called whenever it's host frame is shown. So, for example, if the clip is on frame three, the code would be executed on frame three.

    If we were to use another function, such as, onLoad, the code would execute when the clip is loaded.

    Hope that helps!

  • @ddoodm , tnx a lot..now it is clear for me..Wish u all the best luck

  • coooll man with this you can to do small game!!

  • Thanks'' MINE Friend

  • how can you make it go in any directions?

  • @legobatman1 I've tried this onEnterFrame = function(){

    ball1._x = _xmouse;

    ball1._y = _ymouse;

    }

  • actually the human eye can see up to 75 frames a second but it depends on lighting and the amount of activity you are seeing ect

  • Oh ok cool! Thought it would be something around there. :) Don't know why those retards are saying you can only see 25. :)

    Thanks for sharing!

  • Can you make a video of how to make an object follow when the mouse is CLICKED? Ive been searching... And i thought this is what I needed but, good video!!! ;)

  • there already is one =D look through Luther92's videos.

  • @xrayblaze67 Im thinking you need to you a boolian statement (if or else). as in

    " if (spacebar is down)

    {  person lives;

    }

    else

    { person explodes;

    }"

    lol

  • thanks man,cool n easy.gud one buddy

  • you do flash tutorials too :o didn't work in flash for so long time. It's understandable and stuff but i think adding the script to the description will be a good idea ;)

  • Haha! Yep! :)

    Oh cool idea! :) Will do right now! Thanks for the comment!

  • Still don't understand...... 5 ***** though!

  • Haha! Two comments from the same guy! :D That's a first for me! :) Thanks for the 5 stars! :) Really appreciate it! :)

  • Cool stuff man!!

    I have no idea what just happened there... but I liked it!! :)

  • Haha! Thanks Dave! :) Great comment! :D

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more