Skip to main content
Participating Frequently
April 14, 2009
Question

Help with targeting scroll pane content

  • April 14, 2009
  • 1 reply
  • 1468 views

I was hoping someone may be able to help me out with a flash problem I am having.  I am using CS4 and actionscript 3.0.

I have a movieclip that loads a scrollpane onto the stage.  In that scroll pane I have some dynamic text boxes and some buttons.  I cannot figure out how to reference those buttons or text boxes, can anyone help me out.


For example, the instance name of the scroll pane is TAQ_Score then the content loaded into the scroll pane is TAQ_Score_Sheet. Then the instance name of the text box is TAQ_Score_Name.

So I assume the reference should be something like:   TAQ_Score.TAQ_Score_Sheet.TAQ_Score_Name.text = MyVariable;

This reference works fine outside of the scrollpane, but not when I put it into the scrollpane.

If anyone has any suggestions or knows what I am doing wrong, I would greatly appreciate some help.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
April 14, 2009

to reference your textfield use:

MovieClip(TAQ_Score.content).TAQ_Score_Name;

sturmanAuthor
Participating Frequently
April 14, 2009

So when I tried that, I got the same error.

Here is what I used:  MovieClip(TAQ_Score.content).TAQ_Score_Name.text = ClientName;

kglad
Community Expert
Community Expert
April 14, 2009

what error is that?