Ask a Question related to Macromedia Flash Actionscript, Design and Development.

  1. #1

    Default bouncing ball

    hi,

    if you check out this link :

    [url]http://www.atreyuonline.com/flash/gravity.html[/url]

    You will see i've got a bouncing ball and a red bar across the middle of the movie, how would i make the ball bounce off the the bar in the middle as it does when it hits the walls?

    Also, is it possible that when the ball collides into the bar that you can assign a gotoAndPlay action to it?

    if you click the link below you can download the .fla file so if someone could have a look into it and let me know what to do that would be awesome, im unfamiliar with the hitTest action so i don't know where to start!

    [url]http://www.atreyuonlin.com/flash/gravity.fla[/url]

    thanks alot :)


    Joso webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Age old table bouncing question
      Hi, I started designing in CSS a few months back after doing it in tables for a few years. Recently got a request to update a site for a friend...
    2. Bouncing mail
      How can i get the bouncing mail ids from the coldfusion log file? let me know whether the incoming and outgoing details will be there? Thanks in...
    3. Bouncing mails
      Al Kaibala DO YOU READ THIS? List members, As administrator of the Linux SIG List, I am getting bounces for mail addressed to kabalg@localhost...
    4. Bouncing Ball... Help
      I used to have a problem controling a ball with the key up, then someone gave me the following script to resolve the problem (thank's TRALFAZ) : ...
    5. bouncing objects
      Im looking for a good tutorial for making bouncing objects with colisions, does anyone know a good one ?
  3. #2

    Default Re: bouncing ball

    Joso, u can use the HitTest and Hit Area commands to check the moment in which the ball touches the bar, look for these commands on the Help.




    iEdgar webforumsuser@macromedia.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139