SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Old Fogey mancroft's Avatar
    Join Date
    Oct 2002
    Location
    lost
    Posts
    445
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Drawing a line in actionscript using a movie clip

    Drawing a line in actionscript using a movie clip

    is it possible to take a small image file, turn it into a movie clip and then use that to draw a line?

    I know how to use lineto to create a single color line and beginGradientFill to create a gradient color but can you use an image file to create a line?
    :

    :

  2. #2
    Old Fogey mancroft's Avatar
    Join Date
    Oct 2002
    Location
    lost
    Posts
    445
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    solved it:

    the following works:

    button1.onRelease=function(){
    for(hiThere=1;hiThere<8;hiThere++){
    circle1.duplicateMovieClip("circleCopy"+hiThere, hiThere);
    _root["circleCopy"+hiThere]._y=100;
    _root["circleCopy"+hiThere]._x=hiThere*circle1._width;
    }
    }
    :

    :


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •