Solved

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

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
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 integrate Mailchimp with Facebook. This will be demonstrated using a Windows 8 PC. Mailchimp and Facebook will be used. Log into your Mailchimp account. : Click on your name. Go to Account Setti…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

697 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