Scenario: Click on button and timeline animation plays (the animation is a panel that rotates from the back to the front
)
AS - 3.0
CS5
Error:
Scene 1, Layer 'actions', Frame 1, Line 11
1061: Call to a possibly undefined method play through a reference with static type Function.
What does this error mean and what code needs to be added to fix it?
Any help will be appreciated.
Expand|Select|Wrap|Line Numbers
- AS Code:
- import flash.events.MouseEvent;
- bullet_btn.addEventListener(MouseEvent.CLICK, bullet);
- function bullet(event:MouseEvent) :void
- {
- spinbul_pt_1.play();
- }
- function spinbul_pt_1(){
- bul_pt_1_MC.play();
- }