PDA

View Full Version : two challenging flash5 questions



javadi82
May 9th, 2003, 07:06 AM
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

blah-de-blah
May 9th, 2003, 07:34 AM
i'm not too sure about question 1, but question 2 you use the {}'s to open and close it.

eron19
May 9th, 2003, 11:41 AM
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.

senocular
May 9th, 2003, 12:34 PM
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 return will break from an onClipEvent