-
Bmcc*81
Scrolling works only once
Hi,
I made a scrolling text box that I feed xml into.
The only thing is when I scroll down or up I can only get it to work once.
PHP Code:
on (press) {
_root.scrollingText_mc._y = - 10;
}
I want it so that every time I that I press the button that I scrolls down.
Can anyone tell me where I've gone wrong.
Thanks,
Bmcc
-
Flash/Flex Developer
Change your line to this
PHP Code:
_root.scrollingText_mc._y -= 10;
Some people are like Slinkies, not really good for anything, but they bring a smile to your face when pushed down the stairs.
-
Bmcc*81
That works but...
That moves the text box and not the text inside.
I'm not sure if I've done this wrong. Could you have a look?
Please!
FLA
THX,
BMCC
-
Bmcc*81
I think I need to make a mask in Actionscript in order for this to work... buit I'm not sure and I haven't done that before.
Does anyone know???
-
Bmcc*81
That works but it scrolls the MC, but inisde the MC I have a createTextField which...
That works but it scrolls the MC, but inisde the MC I have a createTextField which that needs to scroll.
This is my created text field which gets populated by XML
PHP Code:
function fnCreateText() {
// trace('arr: '+ arPokerDates);
this.createTextField('tourny_txt',0,5,0,200,165);
var myTextFormat:TextFormat = new TextFormat();
myTextFormat.size = 10;
myTextFormat.font = "Arial"
myTextFormat.color = 0xFFFFFF;
for (i=0; i<arPokerDates.length; i++) {
_root.scrollingText_mc.tourny_txt.text = tourny_txt.text+arPokerDates[i][13]+' - '+arPokerDates[i][1]+newline;
this.tourny_txt.setTextFormat(myTextFormat);
}
}
How do I scoll that text now?
Thx,
-
I made a dynamic text box and filled it with text. I simply just told that text box to scroll, not the movieclip.
msg being the instance name of the text box.
-
Bmcc*81
Thanks
Wow,
Does it ever make it easy to make scrolling text box. I thought I was missing a big part but that built in function did the trick.
Many thanks,
- Bmcc
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
|