# Masking problem

**URL:** https://forum.kirupa.com/t/masking-problem/262838
**Category:** Uncategorized
**Created:** [June 10, 2008, 2:27pm UTC](https://forum.kirupa.com/t/masking-problem/262838 "2008-06-10T14:27:12Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![madcobra](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@madcobra](https://forum.kirupa.com/u/madcobra)
#### Post date: [June 10, 2008, 2:27pm UTC](https://forum.kirupa.com/t/masking-problem/262838/1 "2008-06-10T14:27:12Z")

</div>

Hi,

I made a mask animation. De mask (animated) slides aways and you will see the image.

BUT if a set the stop(); function my animation will stop (good) but my images is gone (BAD)!!

So what can i do??

---

<div class="post-metadata">

### Author: ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)
#### Post date: [June 10, 2008, 2:40pm UTC](https://forum.kirupa.com/t/masking-problem/262838/2 "2008-06-10T14:40:34Z")

</div>

buy, buy more now

I have little idea what you are blabbering about.

you mean it disappears, it goes off screen what?

I can only assume stop reset the animation

---

<div class="post-metadata">

### Author: ![madcobra](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@madcobra](https://forum.kirupa.com/u/madcobra)
#### Post date: [June 10, 2008, 2:50pm UTC](https://forum.kirupa.com/t/masking-problem/262838/3 "2008-06-10T14:50:17Z")

</div>

[quote=randomagain;2340068]buy, buy more now

I have little idea what you are blabbering about.

you mean it disappears, it goes off screen what?

I can only assume stop reset the animation[/quote]

I want to stop the animation from my mask en display the picture.

---

<div class="post-metadata">

### Author: ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)
#### Post date: [June 10, 2008, 3:01pm UTC](https://forum.kirupa.com/t/masking-problem/262838/4 "2008-06-10T15:01:05Z")

</div>

I can only suggest that you google “mask” in flash and try to find a unMask control I am sure there is one

without a fla/swf, or greater detail, we are all waisting our time

---

<div class="post-metadata">

### Author: ![madcobra](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@madcobra](https://forum.kirupa.com/u/madcobra)
#### Post date: [June 10, 2008, 3:07pm UTC](https://forum.kirupa.com/t/masking-problem/262838/5 "2008-06-10T15:07:20Z")

</div>

[quote=randomagain;2340088]I can only suggest that you google “mask” in flash and try to find a unMask control I am sure there is one

without a fla/swf, or greater detail, we are all waisting our time[/quote]

Yes i googled.

But here is the link with my swf

[http://www.wellnessmedia.nl/test1/welleness\_media.swf](http://www.wellnessmedia.nl/test1/welleness_media.swf)

---

<div class="post-metadata">

### Author: ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)
#### Post date: [June 10, 2008, 3:12pm UTC](https://forum.kirupa.com/t/masking-problem/262838/6 "2008-06-10T15:12:23Z")

</div>

post the code…

screen cap the timeline

give me something to work with

---

<div class="post-metadata">

### Author: ![madcobra](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@madcobra](https://forum.kirupa.com/u/madcobra)
#### Post date: [June 10, 2008, 3:16pm UTC](https://forum.kirupa.com/t/masking-problem/262838/7 "2008-06-10T15:16:33Z")

</div>

[quote=randomagain;2340100]post the code…

screen cap the timeline

give me something to work with[/quote]

sorry 😛

[www.wellnessmedia.nl/test1/welleness\_media.rar](http://www.wellnessmedia.nl/test1/welleness_media.rar)

Here is the rar

---

<div class="post-metadata">

### Author: ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)
#### Post date: [June 10, 2008, 3:24pm UTC](https://forum.kirupa.com/t/masking-problem/262838/8 "2008-06-10T15:24:21Z")

</div>

the effect you have I like lol :stare:

its fairly simple from the looks of things you are animating the mask in to the “on” position

then throwing it back to off

…

try not to put code and items on the level on the time line

also I can’t see any stop() command

press f6 and place the stop() command in there near the end of the animation

…

I guess you want it to play once then stop…

…

i assume

---

<div class="post-metadata">

### Author: ![Rik81](https://avatars.discourse-cdn.com/v4/letter/r/9fc348/32.png) [@Rik81](https://forum.kirupa.com/u/Rik81)
#### Post date: [June 10, 2008, 3:28pm UTC](https://forum.kirupa.com/t/masking-problem/262838/9 "2008-06-10T15:28:23Z")

</div>

In the “priegelmov” clip, frame 67, the mask simply doesn’t cover the image; plus there’s no script to stop the clip, so it shows all over the same empty frame…You might wanna stop the clip at frame 65.

Too late…As usual.

---

<div class="post-metadata">

### Author: ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)
#### Post date: [June 10, 2008, 3:41pm UTC](https://forum.kirupa.com/t/masking-problem/262838/10 "2008-06-10T15:41:20Z")

</div>

if the above works, one thing is that the end of the image looks chopped off…

---

<div class="post-metadata">

### Author: ![Rik81](https://avatars.discourse-cdn.com/v4/letter/r/9fc348/32.png) [@Rik81](https://forum.kirupa.com/u/Rik81)
#### Post date: [June 10, 2008, 3:45pm UTC](https://forum.kirupa.com/t/masking-problem/262838/11 "2008-06-10T15:45:06Z")

</div>

True. But that is easily done, adjusting the mask image.  
I’ve tried to stop the clip at frame 65 and it works, so if MadCobra works a little on the mask image, it’s done.

---

<div class="post-metadata">

### Author: ![madcobra](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@madcobra](https://forum.kirupa.com/u/madcobra)
#### Post date: [June 11, 2008, 2:16pm UTC](https://forum.kirupa.com/t/masking-problem/262838/12 "2008-06-11T14:16:55Z")

</div>

[quote=Rik81;2340129]True. But that is easily done, adjusting the mask image.  
I’ve tried to stop the clip at frame 65 and it works, so if MadCobra works a little on the mask image, it’s done.[/quote]

THank you!!! DONE!!!

---

<div class="post-metadata">

### Author: ![madcobra](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@madcobra](https://forum.kirupa.com/u/madcobra)
#### Post date: [June 12, 2008, 7:50am UTC](https://forum.kirupa.com/t/masking-problem/262838/13 "2008-06-12T07:50:38Z")

</div>

and could you please help me with my loading the picture? i want a fade in effect, but it’s not working.

what’s the problem with that?

---

<div class="post-metadata">

### Author: ![Rik81](https://avatars.discourse-cdn.com/v4/letter/r/9fc348/32.png) [@Rik81](https://forum.kirupa.com/u/Rik81)
#### Post date: [June 12, 2008, 7:57am UTC](https://forum.kirupa.com/t/masking-problem/262838/14 "2008-06-12T07:57:57Z")

</div>

Well, I’m not sure about that, but if you use a tween\* in the clip you wanna load, and you put the tween at the beginning of your clip, when it gets loaded it should fade in, I guess…Try it!

- You set the alpha to 0% in the first keyframe of the tween, and to 100% in the last one.

---

<div class="post-metadata">

### Author: ![Rik81](https://avatars.discourse-cdn.com/v4/letter/r/9fc348/32.png) [@Rik81](https://forum.kirupa.com/u/Rik81)
#### Post date: [June 12, 2008, 8:02am UTC](https://forum.kirupa.com/t/masking-problem/262838/15 "2008-06-12T08:02:16Z")

</div>

I’n not so sure about that, but you could create a tween\* in the clip you wanna load. You put the tween at the beginning of your clip, and when it’s loaded, it should fade in!

\*Using alpha: in the first keyframe set the value of alpha to 0%, in the last one to 100%.

Probably the whole thing can be achieved with actionscript, but since you’re not a programmer (neither am I…), this could work!

…Whops, I messed with posts…

---

<div class="post-metadata">

### Author: ![madcobra](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@madcobra](https://forum.kirupa.com/u/madcobra)
#### Post date: [June 12, 2008, 8:09am UTC](https://forum.kirupa.com/t/masking-problem/262838/16 "2008-06-12T08:09:29Z")

</div>

[quote=Rik81;2341240]I’n not so sure about that, but you could create a tween\* in the clip you wanna load. You put the tween at the beginning of your clip, and when it’s loaded, it should fade in!

\*Using alpha: in the first keyframe set the value of alpha to 0%, in the last one to 100%.

Probably the whole thing can be achieved with actionscript, but since you’re not a programmer (neither am I…), this could work![/quote]

Thath’s the problem i nedd to load it with actionscript. I’m an video animator not a programmer. Spmeone suggested a tween class. but i never worked with that. I gogled but…

---

<div class="post-metadata">

### Author: ![Rik81](https://avatars.discourse-cdn.com/v4/letter/r/9fc348/32.png) [@Rik81](https://forum.kirupa.com/u/Rik81)
#### Post date: [June 12, 2008, 8:25am UTC](https://forum.kirupa.com/t/masking-problem/262838/17 "2008-06-12T08:25:12Z")

</div>

> [@madcobra;2341243](#):
>
> Thath’s the problem i nedd to load it with actionscript. I’m an video animator not a programmer. Spmeone suggested a tween class. but i never worked with that. I gogled but…

Maybe you know it, but there’s a tutorial here on Kirupa:

[http://www.kirupa.com/developer/actionscript/tween.htm](http://www.kirupa.com/forum/../developer/actionscript/tween.htm)

With the tween class, you can set different parameters…

---

<div class="post-metadata">

### Author: ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)
#### Post date: [June 12, 2008, 8:43am UTC](https://forum.kirupa.com/t/masking-problem/262838/18 "2008-06-12T08:43:42Z")

</div>

lol

erm rik81 is that you doing a thumbs up or picking your nose:P

---

<div class="post-metadata">

### Author: ![Rik81](https://avatars.discourse-cdn.com/v4/letter/r/9fc348/32.png) [@Rik81](https://forum.kirupa.com/u/Rik81)
#### Post date: [June 12, 2008, 8:51am UTC](https://forum.kirupa.com/t/masking-problem/262838/19 "2008-06-12T08:51:08Z")

</div>

Geez, I completely messed up…I thought I was in another topic, “linking an external swf”…So I was figuring a different situation…Well, I’m hopeless…  
Madcobra, which image do you want to fade in? Be patient with me, and speak veeery slowly…

---

<div class="post-metadata">

### Author: ![madcobra](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@madcobra](https://forum.kirupa.com/u/madcobra)
#### Post date: [June 12, 2008, 9:08am UTC](https://forum.kirupa.com/t/masking-problem/262838/20 "2008-06-12T09:08:21Z")

</div>

I found IT!

But maybe u van help me:

import mx.transitions.Transition;  
import mx.transitions.TransitionManager;  
class mx.transitions.Fade extends Transition {  
#include "Version.as"  
public var type:Object = Fade;  
public var className:String = “Fade”;  
private var \_alphaFinal:Number,3;

function Fade (content:MovieClip, transParams:Object, manager:TransitionManager) {  
this.init (content, transParams, manager);  
}  
function init (content:MovieClip, transParams:Object, manager:TransitionManager):Void {  
super.init (content, transParams, manager);  
this.\_alphaFinal = this.manager.contentAppearance.\_alpha;  
}

private function \_render (p:Number):Void {  
this.\_content.\_alpha = this.\_alphaFinal \* p;  
}  
}

This is the fade tween class… where do i need to fix it?
