0 Replies Latest reply on Oct 4, 2007 4:07 AM by ponch

    writing an onClipEvent as a function

      Hi all,

      I'm currently using this to scale different symbols in various parts of my movie:

      onClipEvent(enterFrame) {
      speed = .3;
      this._xscale += speed;
      this._yscale += speed;

      As I'm attaching that directly to the movie clip instances it's obviously not very efficient to edit. How can I write this once as a function so that I can simply call it each time I want to use it?

      I've written simple functions before but for some reason this has thrown me. Any help appreciated.