PDA

View Full Version : Scrolling text Problem


guitarjunky
06-07-2005, 01:00 AM
I have been trying to get scrolling text to function properly, but I seem to have run into a major problem. When I test load the movie, the buttons appear but the text is missing from the page. The text box is within a movieclip named "papers" that is within the main movie. I can't seem to figure out why I can see the text in editing mode but not when I create the .swf file


I have created a dynamic text box with scrollable functionality enabled as well as the buttons up and down which would control the box. Here's my code:

up arrow: on (press) {news.scroll -=1}

down arrow: on (press) {news.scroll +=1}

the instance of the dynamic text box is "news"

I would greatly appreciate any help/tips for a beginner at flash.

MaxFarago
06-07-2005, 01:02 AM
Perhaps Flash is looking for news in the main mc, instead of in papers. Did you try papers.news.scroll instead of news.scroll?

farafiro
06-07-2005, 11:41 AM
guitarjunky
welcome to the forums

see the scrolling text tutorial in the tuts section

guitarjunky
06-07-2005, 04:37 PM
yeah I tried using papers.news.scroll like this:

up arrow: on (press) {papers.news.scroll -=1}

down arrow: on (press) {papers.news.scroll +=1}

..still not showing the text when I test load the movie..
I m sure that you're right about it trying to search for the "news" in the main mc but i dont know how to call the movieclip "news" while inside the "papers" movieclip.

Any other suggestions would be greatly appreciated.

farafiro
06-08-2005, 06:52 AM
again, if u'd just saw the tut
first embed your fonts
then
var up = false
var down = false
//up arrow:
on (press) {
up = true
}
on (release) {
up = false
}
//down arrow:
on (press) {
down = true
}
on (release) {
down = false
}
//on the first frame
this.onEnterFrame = function(){
if(up){
papers.news.scroll -=1
}else if(down){
papers.news.scroll +=1
}
}