Director 11.5 How do I change the text in the text member by clicking the button?

I have 1 button and 1 text member

How do I change the text in the text member by clicking the button?

Please xplain all steps and code.

Thanks!
LVL 21
NerdsOfTechTechnology ScientistAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Chris-ChambersConnect With a Mentor Commented:
Hi,

Put your button and your text member on the stage.
Select your button, open the Property Inspector, select the 'Flash Component' tab, and make sure the 'eventPassMode' is #passAlways.
Make sure the text member is named "myText".
Create a behavior script:

on mouseUp(me)
  member("myText").text = "Hello!"
end

Drop this onto the button on the stage.

Hope this helps,

Chris.

0
 
NerdsOfTechTechnology ScientistAuthor Commented:
I must mention, the button is classified as a flash object inside director.
0
 
NerdsOfTechTechnology ScientistAuthor Commented:
Thanks! Worked perfectly.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.