3 Replies Latest reply on Sep 10, 2009 7:19 AM by Ned Murphy

    variable to track position in timeline

    AESS1981 Level 1

      Hi guys, I am trying to create a variable in Actionscript 2 that will record the position in the timeline, so Flash knows the user's last position on the timeline.


      The first line in the mc is:

      var portfoliostate;


      On frame 20 of the timeline, I have the following actionscript:

      portfoliostate = "1_portfolio";


      When a button is clicked, I want Flash to recognise if the user has been on frame 20 or not. The code on the button is:

      this.onRelease = function() {

      if (portfoliostate="1_portfolio") {



      else {






      However it does not seem to be working. I am implementing this correctly?

      Many thanks