Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jan 2006
    Posts
    243
    Thanks
    14
    Thanked 2 Times in 2 Posts

    erasing with actionscript

    Is it possible to erase color with actionscript, so that a hitTest returns false?
    Normally I'd overpaint with the bgcolor but this won't fool the hitTest function which I mean to use.

    I've been thinking of using a mask, but I fear it's quite cpu heavy and I don't know of it'll play nicely with some of the filters I'm using; It's plan B for now.

    Any suggestions for a plan A?

  • #2
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    I don't know exactly, but could you describe what you want to remove the color from, and what the purpose is exactly?
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.

  • #3
    Regular Coder
    Join Date
    Jan 2006
    Posts
    243
    Thanks
    14
    Thanked 2 Times in 2 Posts
    I'm trying a sort of multiple dissolving trails effect. I want to erase parts of lines drawn with the actionscript drawing API, but I need to have a transparant bg.

  • #4
    Senior Coder gnomeontherun's Avatar
    Join Date
    Sep 2007
    Location
    Houston
    Posts
    2,846
    Thanks
    10
    Thanked 238 Times in 229 Posts
    I don't know exactly, thats tough. The idea that I have come up with is that your mouse has to draw 100 little movieclips in the trail, and that each one has a different opacity from 100 to 1 so that it fades out, and hopefully it would be done in such a way that then you could remove the last movieclip and its smooth, otherwise plan B sounds better to me.

    Maybe someone else has other ideas?
    jeremy - gnomeontherun
    Educated questions often get educated answers, and simple questions often get simple answers.


  •  

    Posting Permissions

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