# Scroller wont work for some Reason

**URL:** <https://forum.kirupa.com/t/scroller-wont-work-for-some-reason/101910>\
**Category:** Uncategorized\
**Created:** [February 17, 2004, 9:16pm UTC](https://forum.kirupa.com/t/scroller-wont-work-for-some-reason/101910 "2004-02-17T21:16:00Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![marc123](https://avatars.discourse-cdn.com/v4/letter/m/65b543/32.png) [@marc123](https://forum.kirupa.com/u/marc123)\
**Post date:** [February 17, 2004, 9:16pm UTC](https://forum.kirupa.com/t/scroller-wont-work-for-some-reason/101910/1 "2004-02-17T21:16:00Z")

</div>

okay. on my scene there is a ‘bothleftnrightmain’ Movie Clip & in that MC there is ‘maintextbox’ Movie Clip & ‘rightImages’ movie Clip. in the ‘maintextbox’ Movie Clip i have a mask over my scrolling text that moves left to right. but for some reason when i test my fla. the text does not appear. i think i did every thing rite…

1. my text is dynamic.
2. the text box instance name is TextField
3. on my up arrow i put…

on(press) {  
textField.scroll -= 1;  
}

1. on the down arrow i put…

on(press) {  
textField.scroll += 1;  
}

when i text it every thing appears but the text…? any ideas? really stuck & the deadline is tomorrow morning…plz

---

<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:** [February 17, 2004, 11:02pm UTC](https://forum.kirupa.com/t/scroller-wont-work-for-some-reason/101910/2 "2004-02-17T23:02:22Z")

</div>

anyone…

---

<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:** [February 17, 2004, 11:03pm UTC](https://forum.kirupa.com/t/scroller-wont-work-for-some-reason/101910/3 "2004-02-17T23:03:09Z")

</div>

can you post the FLA for us?

🙂

---

<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:** [February 18, 2004, 2:23am UTC](https://forum.kirupa.com/t/scroller-wont-work-for-some-reason/101910/4 "2004-02-18T02:23:12Z")

</div>

i tried its too big. (i ziped it to) maybe i can email it to some1.

---

<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:** [February 18, 2004, 3:09am UTC](https://forum.kirupa.com/t/scroller-wont-work-for-some-reason/101910/5 "2004-02-18T03:09:32Z")

</div>

Embed the font.

---

<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:** [February 18, 2004, 3:22am UTC](https://forum.kirupa.com/t/scroller-wont-work-for-some-reason/101910/6 "2004-02-18T03:22:55Z")

</div>

^ okay. how do i embed the font?

where is that?

---

<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:** [February 18, 2004, 3:25am UTC](https://forum.kirupa.com/t/scroller-wont-work-for-some-reason/101910/7 "2004-02-18T03:25:20Z")

</div>

[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=45706&highlight=embed+font](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=45706&highlight=embed+font)

---

<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:** [February 18, 2004, 4:09am UTC](https://forum.kirupa.com/t/scroller-wont-work-for-some-reason/101910/8 "2004-02-18T04:09:20Z")

</div>

> \*Originally posted by claudio \*  
> \*\*I dont have mx2004 here, but heres how you do it on mx:  
> on properties panel, hit the button _Character…_ and select the option _All Characters_ \*\*

i am using 2004 & i dont see ‘all characters’.

there are two options. 1. No characters 2. Specify ranges. and a ‘auto fill’ button…??

any ideas? i am lost

---

<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:** [February 18, 2004, 4:11am UTC](https://forum.kirupa.com/t/scroller-wont-work-for-some-reason/101910/9 "2004-02-18T04:11:54Z")

</div>

Why you have this posted on mx forum if you are on mx2004 then?  
Try the auto option…  
Im moving this to mx2004 forum.

---

<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:** [February 18, 2004, 4:14am UTC](https://forum.kirupa.com/t/scroller-wont-work-for-some-reason/101910/10 "2004-02-18T04:14:11Z")

</div>

sorry my bad. i really need to figure this out tho. its driving me crazy! because i know its most likely really simple.

plz

---

<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:** [February 18, 2004, 4:15am UTC](https://forum.kirupa.com/t/scroller-wont-work-for-some-reason/101910/11 "2004-02-18T04:15:00Z")

</div>

Have you tried the auto option?

---

<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:** [February 18, 2004, 4:25am UTC](https://forum.kirupa.com/t/scroller-wont-work-for-some-reason/101910/12 "2004-02-18T04:25:11Z")

</div>

thanks man. it is ‘auto fill’

another thing if possible. how do i do the max sroll. so when i hold down on the button. it goes to the bottom. does that require code in the actions panel…?

---

<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:** [February 18, 2004, 4:31am UTC](https://forum.kirupa.com/t/scroller-wont-work-for-some-reason/101910/13 "2004-02-18T04:31:52Z")

</div>

welcome  
[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=35917&](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=35917&)

---

<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:** [February 18, 2004, 6:40am UTC](https://forum.kirupa.com/t/scroller-wont-work-for-some-reason/101910/14 "2004-02-18T06:40:43Z")

</div>

> \*Originally posted by claudio \*  
> \*\*Delete every action on the buttons and apply the following code on the timeline. Remember to give instance names to your buttons[AS]scrollUp = function() {  
> this.onEnterFrame = function() {  
> text1.scroll\<=0 ? delete this.onEnterFrame : text1.scroll -= 1;  
> };  
> };  
> scrollDown = function() {  
> this.onEnterFrame = function() {  
> text1.scroll\>=text1.maxscroll ? delete this.onEnterFrame : text1.scroll += 1;  
> };  
> };  
> //up\_button and down\_button are the buttons instance names  
> down\_button.onRollOver = function() {  
> scrollDown();  
> };  
> up\_button.onRollOver = function() {  
> scrollUp();  
> };  
> down\_button.onRollOut = up\_button.onRollOut=function () {  
> delete this.\_parent.onEnterFrame;  
> };[/AS] \*\*

ummm. i really dont understand that…could u kinda break it down for me…i jus want to add max scroll to my up & down arrows…

---

<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:** [February 18, 2004, 1:43pm UTC](https://forum.kirupa.com/t/scroller-wont-work-for-some-reason/101910/15 "2004-02-18T13:43:29Z")

</div>

Have you tried that script?

---

<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:** [February 18, 2004, 5:16pm UTC](https://forum.kirupa.com/t/scroller-wont-work-for-some-reason/101910/16 "2004-02-18T17:16:32Z")

</div>

yes. i did. i not really sure but i removed the…

on(press) {  
textField.scroll -= 1;  
}

on both buttons & applied the script in the 1st frame on the timeline. & i gave my instance names upp butt : “up\_button”.  
down butt: “down\_button” & text field instance name is ‘text1’

but nothing is working?

maybe because my text is inside a MC that is inside MC & the script is on that timeline, maybe it needs to be on the timeline of the scene…???

---

<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:** [February 18, 2004, 5:23pm UTC](https://forum.kirupa.com/t/scroller-wont-work-for-some-reason/101910/17 "2004-02-18T17:23:34Z")

</div>

You need to give the correct path to the textfield.  
[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=12462](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=12462)

---

<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:** [February 18, 2004, 5:47pm UTC](https://forum.kirupa.com/t/scroller-wont-work-for-some-reason/101910/18 "2004-02-18T17:47:24Z")

</div>

dang. i am really not understang that stuff…isnt there jus a script i can add after…

on(press) {  
textField.scroll -= 1;  
}

on the buttons. to make it max scroll?

---

<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:** [February 18, 2004, 6:14pm UTC](https://forum.kirupa.com/t/scroller-wont-work-for-some-reason/101910/19 "2004-02-18T18:14:05Z")

</div>

Heres an example.

---

<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:** [February 18, 2004, 6:36pm UTC](https://forum.kirupa.com/t/scroller-wont-work-for-some-reason/101910/20 "2004-02-18T18:36:04Z")

</div>

ummm…i did everything the same & applied it to my site & got this error message…

**Error** Symbol=mainTextBox, layer=Layer 4, frame=25:Line 1: String literal was not properly terminated  
myTextField.text = " RoCkit Q & A

**Error** Symbol=mainTextBox, layer=Layer 4, frame=25:Line 3: Syntax error.  
What is RoCkit?

**Error** Symbol=mainTextBox, layer=Layer 4, frame=25:Line 4: ‘:’ expected  
RoCkit is the brand name given to Cybercell’s GSM pre-paid service available locally from BaTelCo.

Total ActionScript Errors: 3 Reported Errors: 3

[Next page](https://forum.kirupa.com/t/scroller-wont-work-for-some-reason/101910.md?page=2)
