Looking for Scroller w/ Easing tutorial

Just as the title says. I am using Flash 8, and I am looking for a tutorial that covers using a scroller with easing applied to text that is being dynamically loaded in through XML. Any help would be greatly appreciated.

Thanks.

Have you thought about using Claudio’s scroller?

scotty(-:

Hey Scotty,

I have but I am really not sure what is going on. That is a really long thread and I am not sure what to read/which files to glance at, etc. That and towards the end it looks like people are having a hard time getting CSS to work, which I need to have working. Are there specific posts I should look at?

There is also another tutorial on easing scrollbar.

http://www.kirupa.com/forum/showthread.php?t=206127

Hope that helps.

Martha Stewart.

I was just looking at that.

How would I go about implementing some CSS formatted XML into this? I’m sorry I am familiar with CSS and XML but actionscript still troubles me.

Thanks.

As ong as you use CDATA and a html enabled textfield, there shouldn’t be any problems I think. I fyou want to use different fonts, be sure you have all fonts embedded, you can use dummy textfields for this.

scotty(-:

Hey scotty.

I’m trying to combine different .fla’s I am finding all over the place and I am not having any luck. I took kirupa’s scroller w/ the easing and tried to make it load XML and can’t even get it to do that. I actually can’t get it to load anything, mainly because I’m a moron.

Post your files?

scotty(-:

Uh…I don’t want to sound noobish but its just the code from that kirupa scroller with easing and some XML code I had from another example. The only problems I seem to have is getting the XML to show, in the dynamic text field, inside of the movie clip, as per kirupa’s scroller. I can get it to show as long as it isn’t in the movie clip.

Did you embed the font, cause it’s working for me…

scotty(-:

Yes sir. Still not having any luck.

Here’s an example of Claudio’s scroller with xml and CSS :slight_smile:

scotty(-:

Hey scotty,

Thanks for this example. It makes more sense to me seeing the code and how it works, except…

the CSS isn’t working. I fixed all the code in the CSS file to this


.headerText {
  font-family: Arial,Helvetica,sans-serif;
  font-size: 15px;
  color: #FF0000;
}

.bodyText {
  font-family: Arial,Helvetica,sans-serif;
  font-size: 12px;
  color: #0000FF; 
}
a:link {
  font-family: Arial,Helvetica,sans-serif;
  font-size: 12px;
  color:#0000FF;
}

a:hover {
  font-family: Arial,Helvetica,sans-serif;
  font-size: 12px;
  color:#FF0000;
}



and I changed the XML to this


<?xml version="1.0" encoding="UTF-8"?>
<test>
	<txt><![CDATA[<span class="headerText">Hi there</span><br /><a href="http://www.kirupa.com">Kirupa</a> ]]>
	</txt>
</test>


When I left it the way you had it the CSS didn’t work at all. The text showed but it wasn’t styled. Now that I changed it to how CSS should look and what not, the text now doesn’t show at all either.

Sigh.

Weird, it wasn’t styled in the swf as well?
Change your CSS like this

.headerText {
  font-family: Arial;
  font-size: 15px;
  color: #FF0000;
}

.bodyText {
  font-family: Arial;
  font-size: 12px;
  color: #0000FF; 
}
a:link {
  font-family: Arial;
  font-size: 12px;
  color:#0000FF;
}

a:hover {
  font-family: Arial;
  font-size: 12px;
  color:#FF0000;
}

and it will work (embed the font)

scotty(-:

Ok this is strange. when I change the font on the dummy FoundrySansBold text field my styled text stops working. If I leave it at FoundrySansBold (which I don’t have) it for some reason styles the text? :h: This makes no sense to me lol.

Skip the dummy field and change the font in the main mc textfield to Arial and embed it.
Or leave the dummy field and change it there to Arial.

scotty(-:

Sweet that worked. Now one last question if you don’t mind.

If I don’t want to use Arial how would I get that to work?

EDIT: Hey scotty nevermind. I just removed the font tags from the CSS document. Thanks a lot buddy!!!

you’re welcome :thumb: