# Maks on external swf is not working

**URL:** <https://forum.kirupa.com/t/maks-on-external-swf-is-not-working/260564>\
**Category:** Uncategorized\
**Created:** [May 16, 2008, 8:20pm UTC](https://forum.kirupa.com/t/maks-on-external-swf-is-not-working/260564 "2008-05-16T20:20:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![samifox](https://avatars.discourse-cdn.com/v4/letter/s/ecae2f/32.png) [@samifox](https://forum.kirupa.com/u/samifox)\
**Post date:** [May 16, 2008, 8:20pm UTC](https://forum.kirupa.com/t/maks-on-external-swf-is-not-working/260564/1 "2008-05-16T20:20:31Z")

</div>

[LEFT][FONT=Times New Roman][SIZE=3]Hi,[/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3]Im using flash cs3 , [/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3]I have a gradient in a movie using the following script[/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3] [/SIZE][/FONT]  
[SIZE=3][FONT=Times New Roman]main.cacheAsBitmap=true;[/FONT][/SIZE]  
[SIZE=3][FONT=Times New Roman]mask.cacheAsBitmap=true;[/FONT][/SIZE]  
[FONT=Times New Roman][SIZE=3]main.setMask(“mask”);[/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3] [/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3]in the movie its ok but when loading it as external movie the mask doesn’t work.[/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3] [/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3]I publish it both to Flash 9 player, any idea?[/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3] [/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3]Thanks[/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3]S[/SIZE][/FONT][/LEFT]
