Skip to main content
Inspiring
September 22, 2017
Question

I got scrollbar but don't know which object is it's owner

  • September 22, 2017
  • 1 reply
  • 584 views

I got many objects on stage (containers, components, etc) and one of them creates scrollbar, but I don't know which one. I've set  horizontalScrollPolicy="off" verticalScrollPolicy="off" on most of them but the scrollbar still appears.

It will take me long time to check each component separetly, because they are all connected and removing one of them will force me to change a lot of code.

Is there any simple way to check out which object is parent or owner of this scrollbar?

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
September 22, 2017

you could use the trace function:

trace(your_scrollbar.parent.name);

or

trace(your_scrollbar.scrollTarget.name)

or what ever else you mean by 'owner'.

IbarimAuthor
Inspiring
September 22, 2017

By owner I mean object which created this scrollbar.

But I don't know where to find this scrollbar, I see it on stage, but don't know which object created it.

So I can't trace it - in your answer I need scrollbar's instance name? But it's not my scrollbar, it's build-in scrollbar of some object.

kglad
Community Expert
Community Expert
September 22, 2017

if you mean you can't find it in the fla, then you can't be helped via a forum (unless someone else checks the fla and finds it).