# Masking

**URL:** <https://forum.kirupa.com/t/masking/18774>\
**Category:** Uncategorized\
**Created:** [April 20, 2003, 11:38pm UTC](https://forum.kirupa.com/t/masking/18774 "2003-04-20T23:38:56Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![OpTimus](https://avatars.discourse-cdn.com/v4/letter/o/59ef9b/32.png) [@OpTimus](https://forum.kirupa.com/u/OpTimus)\
**Post date:** [April 20, 2003, 11:38pm UTC](https://forum.kirupa.com/t/masking/18774/1 "2003-04-20T23:38:56Z")

</div>

Hi guys,

I’m creating a news bulletin… !! try to explain: say my main background is “red”, ok I hit the rectangle tool to create a black box in the middle of movie. OK, now I want to insert text in that black box. Once I insert the text, I want it to scroll up but once it reaches the top of the black box, I dont want the text to be visible on the red background how am I able to do this?

I heard “masking” is the route for me but I cant find no good tute for it. Can some one plz help?

Thank You

ps I know I sound desperate but I’ve been on this for two days now…☹

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 20, 2003, 11:49pm UTC](https://forum.kirupa.com/t/masking/18774/2 "2003-04-20T23:49:19Z")

</div>

[http://www.kirupa.com/developer/mx/textscroller.htm](http://www.kirupa.com/developer/mx/textscroller.htm)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 20, 2003, 11:54pm UTC](https://forum.kirupa.com/t/masking/18774/3 "2003-04-20T23:54:08Z")

</div>

thx, but instead of having to scroll the text, I like for it to be able to move on its own at a continuess pace. Any ideas?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 21, 2003, 12:08am UTC](https://forum.kirupa.com/t/masking/18774/4 "2003-04-21T00:08:48Z")

</div>

ohhh ok i understand what you mean  
I’m sorry, I don’t know how to do this, but I’ll search for a tutorial for ya

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 21, 2003, 12:14am UTC](https://forum.kirupa.com/t/masking/18774/5 "2003-04-21T00:14:55Z")

</div>

if we’re talking about the same thing than yesterday, you could use a function to scroll the TextField automatically, no masking involved. =)

```auto
// prototype
TextField.prototype.autoScroll = function(ms) {
	aScroll = function(field) {
		field.scroll == field.maxscroll ? field.scroll=1 : field.scroll++;
	};
	this.field = this;
	this.interval = setInterval(aScroll, ms, this.field);
};
// usage
myTextField.autoScroll(1000/12);

```

unfortunately, i can’t test it at this moment so i don’t know if it works. 😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 21, 2003, 12:15am UTC](https://forum.kirupa.com/t/masking/18774/6 "2003-04-21T00:15:39Z")

</div>

I just searched on google for like 10 minutes(long time in my mind) and then u just whip that uup:\*(

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 21, 2003, 12:17am UTC](https://forum.kirupa.com/t/masking/18774/7 "2003-04-21T00:17:37Z")

</div>

sorry… :-\

would you do me a favor a test the script, please? :beam:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 21, 2003, 12:22am UTC](https://forum.kirupa.com/t/masking/18774/8 "2003-04-21T00:22:19Z")

</div>

me?  
how do i go about testing it?  
I’m not entirely sure what to do, but ill give it a shot

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 21, 2003, 12:24am UTC](https://forum.kirupa.com/t/masking/18774/9 "2003-04-21T00:24:56Z")

</div>

I set up a static text field, and then named it myTextField and nothing happened, am I supposed do anything else?  
I also tried it with a dynamic text field, but it didnt work either

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 21, 2003, 12:27am UTC](https://forum.kirupa.com/t/masking/18774/10 "2003-04-21T00:27:10Z")

</div>

thx alot for the help guys…man ive been on this for two days now…uurrgghh I did get advuce just create text, create new layer, place a box over the text and then mask and when i inserted action to the text no luk i dont even see the text… !!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 21, 2003, 12:28am UTC](https://forum.kirupa.com/t/masking/18774/11 "2003-04-21T00:28:16Z")

</div>

kax i cant get it to work, donno what to name my stff

op masks are tricky!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 21, 2003, 12:28am UTC](https://forum.kirupa.com/t/masking/18774/12 "2003-04-21T00:28:20Z")

</div>

:stunned:

oh! well… i’ll go get my laptop and test it. :-\

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 21, 2003, 12:29am UTC](https://forum.kirupa.com/t/masking/18774/13 "2003-04-21T00:29:59Z")

</div>

thanks for trying mdipi and 28… i’ll fix it and attach and example fla. 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 21, 2003, 12:32am UTC](https://forum.kirupa.com/t/masking/18774/14 "2003-04-21T00:32:30Z")

</div>

heres an example well was he must had took the text out to update but guys might get the picture on where im shooting at  
[http://www.shield-overalls.com/main.html](http://www.shield-overalls.com/main.html)

once ure at the main index, look to ure right and you will see “Latest News” within that box he had text scrolling up, like a news bulletin… !! that might show you what im shooting for, i wish he had the news scrolling though but check it out… !!

ps I think there should be a main tute on this…🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 21, 2003, 12:41am UTC](https://forum.kirupa.com/t/masking/18774/15 "2003-04-21T00:41:10Z")

</div>

ok… it actually works. =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 21, 2003, 12:46am UTC](https://forum.kirupa.com/t/masking/18774/16 "2003-04-21T00:46:09Z")

</div>

i think i got it now but what about the two layers? 1 for box other for text? and there was no masking envolved? thx alot kax

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 21, 2003, 12:47am UTC](https://forum.kirupa.com/t/masking/18774/17 "2003-04-21T00:47:22Z")

</div>

huh… not even close to what i did, i get it sorta tho

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 21, 2003, 12:49am UTC](https://forum.kirupa.com/t/masking/18774/18 "2003-04-21T00:49:35Z")

</div>

here is something i tried, i learned about masks with it just now. pull it apart. as is its a lot like wat you want. you will see how it does not come in at the top yet farther down…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 21, 2003, 12:51am UTC](https://forum.kirupa.com/t/masking/18774/19 "2003-04-21T00:51:22Z")

</div>

wowx didnt think it would be like that…cool!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 21, 2003, 12:53am UTC](https://forum.kirupa.com/t/masking/18774/20 "2003-04-21T00:53:46Z")

</div>

😛

- optimus  
yes… no masking, just a dynamic TextField and the script.  
and it’s up to you if you use different layers (but yeah… i’d use one layer for the TextField and another one for the box). 😉

- xxviii  
sorry if i confused you… :-\

- mdipi  
thanks. :beam:

[Next page](https://forum.kirupa.com/t/masking/18774.md?page=2)
