From: sprecks1 on
I've got a text field in flash 8 that I have set to dynamic and scrollable and
I was under the impression all i had to do to get a scrollbar was to drag the
component onto the textfield and set the Instance Name of the
_targetInstanceName to the name of the Instance Name used for the textfield.
This isn't working tho, and i'm not sure if its a glitch, or should I be using
some sort of actionscript or something?

From: David Stiller on
sprecks1,

> I've got a text field in flash 8 that I have set to dynamic and
> scrollable

I'm not sure what you mean by "set to ... scrollable." In my Properties
inspector for text fields, I see Single, Multiline, and Multiline no wrap.

> I was under the impression all i had to do to get a scrollbar
> was to drag the component onto the textfield and set the
> Instance Name of the _targetInstanceName to the name of
> the Instance Name used for the textfield.

To test just now, I used the Text Tool to draw a smallish rectangle. I
made this text field dynamic and multiline, then gave it the instance name
myText. I dragged the UIScrollBar Component to the Stage, hovered it over
the text field, then let go. To add more text than the text field could
display at one time, I use the following ActionScript (in a frame) ...

myText.text = "Lorem ipsum dolor sit amet ...";

.... where my text content was, of course, much longer.

Upon testing the SWF, I see the scroll bar correctly scrolling my text.


David
stiller (at) quip (dot) net
"Luck is the residue of good design."


From: sprecks1 on
when you have the move tool selected, you can right-click on a dynamic text
field and make it scrollable so that you can choose the size of your text field
and have the text scroll. i just don't know how to link this scrollable text
with the scrollbar ui component

From: David Stiller on
sprecks1,

> when you have the move tool selected, you can right-click
> on a dynamic text field and make it scrollable

Interesting. You're absoutely right. I guess this is related somehow
to the TextField.scroll property, or other related properties. I'll have to
do some more research. At first glance, that setting makes no difference
.... I can grab the text in a dynamic text field -- from a SWF, I mean -- and
drag to scroll, and I can use the mouse wheel to scroll whether or not that
setting is true or false.

> i just don't know how to link this scrollable text with the
> scrollbar ui component

Did you follow the same steps I outlined in my test?


David
stiller (at) quip (dot) net
"Luck is the residue of good design."


From: sprecks1 on
yeah, i tried it, and i tried your original method from scratch to and couldn't
get it to work, its prob something really simple i'm missing

all i get is a big white box up the side of my text, with no arrows or
scrolling bar, so i know i'm half way there, but dont quite have it yet