1 Reply Latest reply on Jun 6, 2006 12:28 PM by Newsgroup_User

    API drawing

    Tolk
      When using the movieClip methods beginFill etc.
      If i created a fill object by doing e.g.

      beginFill();
      lineTo(bla);
      lineTo(bla);
      etc.
      endFill();

      and then once it had draw i started a new beginFill but this time instead of closing the object off i closed an area of the above fill off without redrawing over the line there where already there would that area then take the new fill colour - like using the fill colour tool in flash.
      If not is there another method that acts like the fill colour tool in flash?
      Sorry for bad explanation, it's hard to exaplain what i'm asking.

      Thanks for help!
        • 1. Re: API drawing
          Level 7
          You do not have a change fill color in a MovieClip. You simply draw again
          with another color. If you place the drawing into a function or part of an
          extended class for the movie clip all you need to do is pass the parameters
          that change.

          Then call the function to change the fill.

          --
          Lon Hosford
          www.lonhosford.com
          Flash, Actionscript and Flash Media Server examples:
          http://flashexamples.hosfordusa.com
          May many happy bits flow your way!
          "Tolk" <webforumsuser@macromedia.com> wrote in message
          news:e642on$1hd$1@forums.macromedia.com...
          When using the movieClip methods beginFill etc.
          If i created a fill object by doing e.g.

          beginFill();
          lineTo(bla);
          lineTo(bla);
          etc.
          endFill();

          and then once it had draw i started a new beginFill but this time instead
          of
          closing the object off i closed an area of the above fill off without
          redrawing
          over the line there where already there would that area then take the new
          fill
          colour - like using the fill colour tool in flash.
          If not is there another method that acts like the fill colour tool in
          flash?
          Sorry for bad explanation, it's hard to exaplain what i'm asking.

          Thanks for help!