Is that all the code from Frame 1? Line 11 is a closing brace..
The error is saying that you tried to call the play method from a Function class. So either spinbul_pt_1 or bul_pt_1_MC is a Function instead of a MovieClip.
- Is that all the code from Frame 1? Line 11 is a closing brace..
There is additional code that is commented out (and not included in the post) between '{' and 'spinbul_pt_1.play();' which puts 'spinbul_pt_1.play();' at line 11.
- I was attempting to create the function 'spinbul_pt_1' using the piece of code 'function spinbul_pt_1()'.
- bul_pt_1_MC is a movie clip
How do I create the function?
Well you are trying to call a function spinbul_pt_1.play();
Later the function's name is spinbul_pt_1.
What are you trying to do with the .play() part ?
You can just do this, there is no need for calling another function.
Oh and also in your fla file you might want to put a stop(); command at the beginning of the motion tween because it starts playing without clicking the button.
Sorry was AFK for a bit, attached is the fixed fla.
Some comments:
1) You dont need any extra frames on your main timeline. (just the one is needed- and if you work with mc's, it is better not to have the timeline animate and loop.)
2) No need to make a function which does nothing other than 'run' a method. IE. a function for just play() or stop() for a movieclip class is not needed and makes your code harder to work with.
3) Never use buttons- A common rookie mistake. Sprites or Movieclips are always the better bet.
In short, the error is caused by calling a function as if it was an instance.
The function should be called like: spinbul_pt_1();
Not: spinbul_pt_1.play();