Compile error 1061 displays when attempting to play timeline animation

  • Thread starter Thread starter fredlexus
  • Start date Start date
  • Tags Tags
    Animation Error
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 3K views
fredlexus
Messages
3
Reaction score
0
Hi,

Scenario: Click on button and timeline animation plays (the animation is a panel that rotates from the back to the front)

Flash 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.


Code:
[FONT="Verdana"][SIZE="1"]
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();
}
 
Physics news on Phys.org