Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Compile error 1061 displays when attempting to play timeline animation

  1. Dec 17, 2011 #1
    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 (Text):
    [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();
    }[/SIZE][/FONT]
     
  2. jcsd
  3. Dec 17, 2011 #2

    Borek

    User Avatar

    Staff: Mentor

Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Compile error 1061 displays when attempting to play timeline animation
Loading...