i’ve added it to a text field where i keep a log on my site.
in the tut is says that I should name the text field ‘scroller’ and add ‘scroller’ to the params of the scrollbar.
can we use another inst name instead of ‘scroller’, cause i’d like to use it on a couple of text fields and If you have more than one inst name of ‘scroller’ then i think it’ll have some issues.
Of course you can use something else. Instance names are assigned by you and can be whatever you want, it’s like giving a name to your baby
well i went and used ‘log’ for both and then the text field didn’t work. so i was wondering what was up with that.
the instance name for both can’t be log, the instance name of the textbox needs to be log, and the Target Texfield option in the scrollbar properties needs to be set to the instance name of the textfield (in this case… log)
that’s how i set it up and it doesn’t pull the text in.
so i’m not sure what’s up with it.
so i guess i can’t change it
Post the fla
Yeah I had a problem with this too. If I name it anything other than scroller, it stops working.
You can name your textfield anything you want and it should work. You just need to reference them right.
And remember the instance name can only contain letters, numbers and underscores, and it cannot begin with a number. Also, words used by ActionScript should never be used to name variables or instances.
[SIZE=1]Please, someone correct me if im wrong[/SIZE]
Thats what I thought but it didnt work. ?? Maybe I am changing the AS wrong
same here
just garb the fla on the site cause that’s what i’m using
go in there and change the text feild and the name it refs and it won’t work
It works perfectly fine for me.
Are you sure you updated the script to add the text to the textbox?
scroller.text = this.kirupatext would obviously need to be changed to log.text = this.kirupatext since the textfield instance of scroller doesn’t exist anymore.
yup. did that. i can send you the fla if you want to see it
Sure, if you could attach it or upload to a server and toss me a link (either via a post or a PM) I will take a look at it.
Right now I gotta take a shower (not that you needed to know that, I guess I just like people to know I am clean :beam: ) so I will be back in a few minutes.
Ok. Well I have to find it on my computer
This is it. Desn’t work for me
I see your problem. You never updated the target on the scrollbar component itself.
You have scrollPanel in the actions on the frame and scrollPanel as the instance of the textbox, but you need to right click on the scrollbar component itself and open the properties panel and in the “Target Textfield” area you need to update “scroller” to “scrollPanel” (no quotes)
ah gotcha.
All working now?
yup