Masks are being shown when the mask is set in code Mar 03, 2014 By Rob Verzera I'm wondering if anyone has run into this situation before. I have a mask that I create in a swf using this method bottomMask.cacheAsBitmap = true; node_4.cacheAsBitmap = true; node_4.setMask("bottomMask"); When I run the swf - the mask works as expected. But when I import it into articuate and preview the slide, I see the mask. If I go into the data/swf dir and run the swf directly, it displays as expected. Any ideas why this is not working, or how to get this work? ( using it as a web object is not an option here)
Bob Wiker over 10 years ago03/07/14 at 11:47 am (UTC) Have you tried it as HTML5 output? Not sure what it would look like, or if that's even possible, but just trying to think of ideas. Seems like you've encountered a Flash-in-Flash issue; not sure there's much hope if you're unwilling/unable to go the Web Object route...
Rob Verzera Author over 10 years ago03/07/14 at 12:06 pm (UTC) Well after some more playing around...I ended up figuring it out. Using these 3 lines : bottomMask.cacheAsBitmap = true; node_4.cacheAsBitmap = true; node_4.setMask("bottomMask"); The swf works just fine. But when played in Articulate - the mask would show. However - if I change the setMask to this : node_4.setMask(bottomMask); then it works. For some reason it did not like those quotes. That being said, I did not realize swfs are not like an exe file, they still are interpreted at runtime. I have found so many issues w/ articulate and swf files, it just drive me batty some times.
2 Replies
Have you tried it as HTML5 output? Not sure what it would look like, or if that's even possible, but just trying to think of ideas.
Seems like you've encountered a Flash-in-Flash issue; not sure there's much hope if you're unwilling/unable to go the Web Object route...
Well after some more playing around...I ended up figuring it out.
Using these 3 lines :
bottomMask.cacheAsBitmap = true;
The swf works just fine.
But when played in Articulate - the mask would show.
However - if I change the setMask to this :
node_4.setMask(bottomMask);
then it works.
For some reason it did not like those quotes.
That being said, I did not realize swfs are not like an exe file, they still are interpreted at runtime.
I have found so many issues w/ articulate and swf files, it just drive me batty some times.
This discussion is closed. You can start a new discussion or contact Articulate Support.