1 Reply Latest reply on Jun 23, 2006 5:50 PM by kglad

    Flash optimization with JavaScript

      I'm working with medium numbers of items (1000-4000), each with several properties (10-400).
      At very small time intervals, the parameters of some items need to be modified. In order to do this, the whole data collection needs to be iterated over.

      1. This objective could be achieved by a simple iteration in ActionScript.
      2. Another way is by sending the data collection once to JavaScript, using the External Interface. Then, when needed, call a JavaScript function from Flash, let JavaScript iterate over the data collection, build a list with the items that need updating and return this list back into ActionScript so that only the needed items are iterated over and get modified.

      Which of these methods do you guys think gets executed faster ?