Two challenging flash5 questions

  1. If I have a ‘fish’ drawing, and I want to produce bubbles at its mouth, how will I know where its mouth is through Actionscript?

In general, if I have a complex drawing and I want to identify a single part how do I do that using actionscript? This complex object could be an octopus. Then, how do I locate the arm number 3(an octopus has 8 arms?) of the octopus?

2.How do I exit from onClipEvent() when a condition is met?
For eg, in VB I have the exit function but there is no EXIT function in flash 5 from which I can exit whenever a condition is met?

ps:i am working with flash 5

i’m not too sure about question 1, but question 2 you use the {}'s to open and close it.

for his mouth you can turn the fish into a movieclip. then inside the fish movieclip, put another movieclip (an invisible one) on top of the fishes mouth, then track where the invisible movieclip is to keep up with where the mouth is.

  1. it depends how they are moving IF they are moving. For whatever circumstance you have you would use some means of finding a coordinate either by checking it on the screen or even moving empty clips along with their animation to specify locations

  2. a [color=blue]return[/color] will break from an onClipEvent