Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple answer needed? movie clip in button problems

Status
Not open for further replies.

motte

Programmer
May 31, 2001
155
US
I hope someone can help. How do I refer to a movie clip in a button? Let me tell my problem. On the root timeline I have a button. When I cursor over the button, it activates the buttons movie clip. Inside that movie clip I have a dynamic textfield that should display "hello". What I can't do is display the text in that field. I can do it if the textfield is in the root timeline, but I don't want it that way.

The button is named...button
The movie instance is...mov_instance
The textfield in mov_instance is textfield...just to keep it all simple.

I tried this (pseudocode):
on(rollover)
{
mov_instance.textfield="hello";
}

That doesn't work. I'm guessing because mov_instance is not at the root. But how do I refer to it then? Please let me know.

Mike
 
you could just set the text field variable to /:textfield and use the following actions on your button:
Code:
on (rollOver) {
    /:text = "yourtext";
}

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
you could just set the text field variable to /:textfield and use the following actions on your button:
Code:
on (rollOver) {
    /:textfield = "yourtext";
}

TYPO in text variable in first post

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Thanks for the tip. All is well now.

Mike
 
cheers for the info Mike, I'll let you know of my progress in the coming weeks/months ;-)

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top