Solved

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

Posted on 2009-05-17
5
368 Views
Last Modified: 2013-12-24
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!
0
Comment
Question by:NerdsOfTech
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 19

Author Comment

by:NerdsOfTech
ID: 24407687
I must mention, the button is classified as a flash object inside director.
0
 
LVL 7

Accepted Solution

by:
Chris-Chambers earned 500 total points
ID: 24411022
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
 
LVL 19

Author Closing Comment

by:NerdsOfTech
ID: 31582424
Thanks! Worked perfectly.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Now that Expression Web 4.0 (http://www.microsoft.com/expression/products/Upgrade.aspx) is free if you buy or have the full version of Expression Web 3.0, now is the best time to  migrate from FrontPage to Expression Web (http://www.frontpage-to-exp…
Dramatic changes are revolutionizing how we build and use technology. Every company is automating, digitizing, and modernizing operations. We need a better, more connected way to work together as teams so we can harness the insights from our system…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question