Masks are being shown when the mask is set in code

Mar 03, 2014

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)
2 Replies
Rob Verzera

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.

This discussion is closed. You can start a new discussion or contact Articulate Support.