Solved

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

Posted on 2009-05-17
5
364 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Eclipse for PHP 1 95
Download Adobe Flash Player 6 59
What xml editor to use. 8 84
Add server behaviors to Dreamweaver CC 2015 2 129
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
Objective of This Article In 1990’s, when I was a budding software professional, I had a lot of confusion about which stream or technology, I had to choose to build my career. In those days, I had lot of confusion like whether to choose System so…
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

919 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now