A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: xml scrollin'

  1. #1
    Senior Member
    Join Date
    Apr 2001
    Posts
    144

    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.

  2. #2
    Senior Member
    Join Date
    Apr 2001
    Posts
    144
    Maybe use the toString command or something?? I'm lost. The text shows up. You'd think it could be scrolled.

  3. #3
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    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
    Flash-XML FAQ
    http://www.tupps.com/flash/faq/

  4. #4
    Senior Member
    Join Date
    Apr 2001
    Posts
    144
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center