A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Swapping out masks

  1. #1
    Member
    Join Date
    Nov 2001
    Posts
    49

    Swapping out masks

    Hi,

    I need to swap out masks in 3dfa. This would be user selectable from a list or prev/next type selection.
    I tried adding the slideshow function & placing the masks inside, however this wont work with vector masks, I can get it to work using bitmaps with transparency, however I'd rather use vector.

    Anyone have any tips on how to show one user selected mask while hiding possibly dozen's of other masks?

    Thank you.

  2. #2
    If these maps are set and don't need to be changed while the movie is running, you might try having multiple paint objects in the mask, and make them visible/invisible to swap them. I've never done it, so I'm not sure if it will work.

  3. #3
    Senior Member
    Join Date
    Dec 2006
    Posts
    274
    Not in 3dfa preview but at least in flash9 export this works if paint objects are above of "to be masked" element. I tested with 3 different paint object and changed a mask runtime..

    element ("red sky").mask = element ("Paint 4");

  4. #4
    Member
    Join Date
    Nov 2001
    Posts
    49
    Thanks for the tips so far, but my project involves possibly dozens or hundreds of masks.

    The nice feature of the slideshow function is that it displays one slide & hides ALL others.

    With the above tips I would have to "hide" each mask I dont want to display, which would be tedious with a large amount of masks.

    Has anyone sucessfully used a vector mask in the slideshow?

    Thanks again fellas.

  5. #5
    Is this a vector mask that will change at runtime, or hundreds of pre-made masks?

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