3 Replies Latest reply on Jun 20, 2006 9:56 AM by ricklecoat

    Populating a ComboBox with actionscript

    ricklecoat
      I'm currently learning Flash 8 Pro by working my way through a 'Teach Yourself Flash 8' book and have run into an teaching example that appears not to work. The (very basic) AS code is to populate three lines of a ComboBox component (with the instance name "myComboBox"). I've double checked the syntax against that in the tutorial and it matches precisely. However, testing the movie results in errors such as:

      **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 3: There is no method with the name 'removeAll'.
      and
      **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 4: There is no method with the name 'addItem'.

      Can anyone help a total Flash newbie who is not sure whether the error is in the tutorial or in his own implementation of it? Or even if there is something wrong with my Flash installation? I'm learning this stuff one tiny step at a time and I don't feel confident moving forward until I get this issue resolved. Wobbly foundations, and all that.

      Many thanks in advance.

      Here is the AS code that I'm using: