0 Replies Latest reply on May 15, 2006 10:49 AM by juro_el_muerto

    AS1: instanceof Movieclip subclass

    juro_el_muerto
      Hi,
      I have a problem with an ActionScript 1 movie (I would like to upgrade, but unfortunately there isn't a newer standalone Flash player for Linux).

      I have created a class XYZ which is a subclass of MovieClip with a custom method createXYZ(). Now I attach a few XYZ instances to the _root movie, so the object structure lookes like this:
      _root.xyz1
      _root.xyz2
      _root.xyz3
      _root.xyz4
      Now when I call the custom method createXYZ() with this
      _root.xyz1.createXYZ()
      nothing happens. And displaying the instance of _root.xyz1
      instanceof(_root.xyz1)
      returns moviclip, which is not totally correct. So here are my questions:
      1. Can I call my custom method in the way I am trying?
      2. If not, how can I achieve this?

      Thank you in advance
      juro