Solved

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

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Virus or Outlook 2007 problem, how to tell? 8 84
You Tube Videos not playing 9 126
FTP Software Needed.  Filezilla?  Or..... what do you say? 7 83
Summernote required 3 144
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
When setting up new project requests for our site, one of the most powerful tools our team has available to use is Axure (http://www.axure.com/). It’s a tool for creating software and web prototypes that can function and interact as if it were the a…
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

825 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