1 Reply Latest reply on Jan 19, 2007 8:01 AM by Newsgroup_User

    function calls did something change in Flash 8

    ooba Level 1
      Hi everyone,

      My question is what has changed from flash mx pro to flash 8 pro when calling functions.
      On frame 1 I have several functions that use to work. Such as
      function getRaterRatingData(result)...
      and I could call them from that frame or nested movie clips. But, now I have had to change the functions to
      _global.getRaterRatingData = function(result)...
      in order for me to call them.

      Any ideas as to why this is? I was not getting any errors the previous way, it was just that the functions were not being called.
        • 1. Re: function calls did something change in Flash 8
          Level 7
          ooba,

          > My question is what has changed from flash mx pro
          > to flash 8 pro when calling functions.

          Honestly ... not a thing. ActionScript has new features (new APIs) in
          Flash 8 that weren't available in Flash MX 2004 -- and MX 2004, in turn, had
          new features that weren't available in Flash MX -- but those are mainly
          enhancements to the corresponding Flash Player, with each release. The
          manner in which functions are called hasn't changed since Flash 5.

          > On frame 1 I have several functions that use to work.
          > Such as function getRaterRatingData(result)...
          > and I could call them from that frame or nested movie
          > clips.

          You should still be able to do that.

          > But, now I have had to change the functions to
          > _global.getRaterRatingData = function(result)...
          > in order for me to call them.

          There must be something else going on that you haven't told us (or
          aren't aware of yet).

          > Any ideas as to why this is? I was not getting any errors
          > the previous way, it was just that the functions were not
          > being called.

          How did you test for that? Did you troubleshoot with a trace()
          statement, maybe?


          David Stiller
          Adobe Community Expert
          Dev blog, http://www.quip.net/blog/
          "Luck is the residue of good design."