Jump to content


Scrolling Problem


  • You cannot reply to this topic
4 replies to this topic

#1 Wowzers

    Young Padawan

  • Members
  • Pip
  • 40 posts

Posted 04 December 2006 - 06:30 PM

Funky gave me the link to the flash radio that had a scrolling track listing (THANK YOU!). I only took that code and mixed it with the first one, because I didn't need all the other things that came with his version. I have it scrolling but my problem is, it does not scroll back around. You can view it here.

Code for the scoll I'm using:
this.onEnterFrame = function() {
	_root.display_txt._x -= 1;
	if (_root.display_txt._x < (-100-_root.display_txt.width)) {
		_root.display_txt._x = 225;
	}
}

My text field x position is 225 thats why I dont get why it isn't scrolling back =/

#2 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 04 December 2006 - 11:03 PM

this.onEnterFrame = function() {
	_root.display_txt._x -= 1;
	if (_root.display_txt._x < (-100-_root.display_txt._width)) {
		_root.display_txt._x = 225;
	}
}

A good way to see where the text is going to is to disable the masking and change the number upfront from_root.display_txt._width

#3 Wowzers

    Young Padawan

  • Members
  • Pip
  • 40 posts

Posted 05 December 2006 - 12:56 AM

I removed the mask, and toyed with the number and it still just goes off the stage and doesnt come back lol.

#4 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 05 December 2006 - 06:56 AM

replace the scrolling code with this:
this.onEnterFrame = function() {
	_root.display_txt._x -= 1;
	if (_root.display_txt._x < (120-_root.display_txt._width)) {
		_root.display_txt._x = 225;
	}
}


#5 Wowzers

    Young Padawan

  • Members
  • Pip
  • 40 posts

Posted 05 December 2006 - 07:44 AM

thank you thank you thank you thank you :D





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users