Compile error 1061 displays when attempting to play timeline animation

  • Thread starter Thread starter fredlexus
  • Start date Start date
  • Tags Tags
    Animation Error
Click For Summary
SUMMARY

The forum discussion addresses a compile error 1061 encountered in Adobe Flash AS 3.0 while attempting to play a timeline animation in CS5. The error indicates a call to an undefined method 'play' due to a static type reference issue. The solution involves ensuring that the function 'spinbul_pt_1' is defined correctly and that it is being called appropriately within the event listener. Properly defining the function and ensuring it references the correct movie clip will resolve the error.

PREREQUISITES
  • Understanding of Adobe Flash AS 3.0 programming
  • Familiarity with event listeners in ActionScript
  • Knowledge of timeline animations in Flash CS5
  • Basic debugging skills in ActionScript
NEXT STEPS
  • Review ActionScript 3.0 function definitions and scope
  • Learn about event handling in Adobe Flash CS5
  • Explore common compile errors in ActionScript and their solutions
  • Investigate best practices for managing timeline animations in Flash
USEFUL FOR

Flash developers, animators working with Adobe Flash CS5, and anyone troubleshooting ActionScript compile errors.

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();
}
 
Technology news on Phys.org

Similar threads

  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 6 ·
Replies
6
Views
6K