-
Can you apply a fade-in action to a setMask?
Hello,
I have an external swf that is loaded into the main.swf. I'd like to mask it and apply a fade-in action to the mask.
I can get the mask to work, but I don't know how to fade it in? I've tried adding actions to the mask itself, but it did not work. I also tried tweening the mask on the timeline and this didn't work either.
Is it possible to apply any sort of action to the setmask? If so, how could I do this? I need to apply the action to the mask, not the myContainer mc.
Mask works! But what code could I use on the setmask to get it to alpha fade?
PHP Code:
init = function () {
this.myContainer = this.createEmptyMovieClip("cont", 1);
cont._x = 160;
cont._y = 30;
this.myContainer._alpha = 100;
this.myContainer.loadMovie("picture.swf");
this.preloadJpg();
};
preloadJpg = function() {
this.onEnterFrame = function() {
if (this.myContainer.getBytesLoaded()>100 && this.myContainer.getBytesLoaded()>=this.myContainer.getBytesTotal()) {
myContainer.setMask(mask);
}
};
};
this.init();
Last edited by sirenetta1; 09-24-2005 at 06:10 PM.
-
Senior Member
You cant fade a mask. When you mask an object the part of the image that is underneath spots where the mask movie clip are gets masked regardless of whether the mask is of lowered alpha or anything. If you want to though, you could put both the mask and the jpeg inside of a movieclip and fade that movie clip.
-
Dricciotti,
If you want to though, you could put both the mask and the jpeg inside of a movieclip and fade that movie clip.
EXCELLENT IDEA! Thanks for your help!
Last edited by sirenetta1; 09-24-2005 at 06:42 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|