1 Reply Latest reply on Nov 13, 2006 4:47 AM by arunbe

    object.watch

    jupiter100
      Hi there

      I am altering a flash variable via javascript.
      Once altred I want to do something in flash.
      The variable is called 'varq' and there is an instance on the stage called 'cat'.

      I'm using trace to check the routine but it doesn't work.
      This is the code I have in the frame.

      var itemIDWatcher:Function = function(prop, oldVal, newVal){

      trace("watchit");
      return newVal;
      }

      cat.watch("varq", itemIDWatcher);

      Could someone help pls.
        • 1. Re: object.watch
          arunbe Level 1
          To communicate with flash there is some third party tools and files are available. You cant change the flash variables directly from the javascript.
          Just search as JS Communicator in Google. you can find some js and flash files... you can use those freeware files.