-
xml scrollin'
Code:
onClipEvent (load) {
size = _parent.scroll_Bar._height-this._height;
startX = _x;
startY = _y;
}
onClipEvent (enterFrame) {
if (_parent.profile_txt.textHeight>_parent.profile_txt._height) {
_parent.profile_txt.scroll = Math.round((_y-startY)/size*_parent.profile_txt.maxscroll);
this._alpha = 100;
} else {
_parent.scroll_Bar._alpha = 50;
}
}
I have a function creating some movieclips with a simple homemade scroller in it. It doesn't scroll the text. And it sounds like XML has some problems scrolling. Any advice??? Thanks.
-
Maybe use the toString command or something?? I'm lost. The text shows up. You'd think it could be scrolled.
-
Senior Member
XML is a data format, it can deliver data to your flash player, but it does not do anything in terms of the display of the data. XML data is typically just text strings to flash.
Thanks
Luke
-
Turns out I was refering to the text field variable rather than the instance. Dumb.
Thanks, Tupps. You're the man.
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
|