A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: drawing on components?

  1. #1
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244

    drawing on components?

    I wanted to draw on a library item that I made.

    this code when applied to a library item doesn't work but it works on standard clip


    mc1.lineStyle(3,x00ff00,100,false,"normal","round" ,"round",1);
    mc1.moveTo(0,0);
    mc1.lineTo(40,0);
    mc1.lineTo(40,40);
    mc1.lineTo(0,40);
    mc1.lineTo(0,0);

    Update: Actually it works fine if there are no shapes on the library item. But if I draw on clip it seems it's behind any shapes on the clip. So the question becomes how do I draw on Top of the shapes.
    Last edited by blanius; 08-07-2006 at 08:50 AM.

  2. #2
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    You could create a child movieclip on a higher depth level and draw on that.

  3. #3
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Quote Originally Posted by w.brants
    You could create a child movieclip on a higher depth level and draw on that.
    Oooh Hadn't thought of that

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center