Simple drag and drop help
I am making a simple game of a snowman and his "parts". I have the parts on the right side of the screen. All I want to do is drag the items to the snowman and drop them. I have made the hat and converted the image to a movie clip(think that is right?). I then wen to the actions panel to find the global functions. I am being told that the movie clip is not able to have an action assigned to it. Not a clue what to try next. Any help? Thanks!
You can't select a movieclip and then put code on it. Code can't go on movieclips. If you select a movieclip and then enter code in the Actions editor, you're telling Flash to make that code part of the movieclip, just as the clip's color is part of it.
Flash doesn't allow that. (It used to in an old version.) Code can only be placed on keyframes in the Timeline or in external text files that you link to the FLA.
You need to give the hat an instance name by selecting it and typing a name in the Properties Panel. (I'll assume you name it hat.) You the need to select the keyframe where the hat first appears (so that your code will go in that frame, not on the hat, bring up the Actions editor, and enter code that looks something like this:
(example file: http://www.grumblebee.com/stuff/cow/snowman.fla )
Author "After Effects Expressions"
Co-author "After Effects For Flash, Flash For After Effects"
Artistic Director, Folding Chair Classical Theatre, Inc
Senior Flash Developer, Zeitbyte.com