Solved

Dynamic Text within a Button?

Posted on 2003-10-22
2
209 Views
Last Modified: 2010-04-03
I am going crazy!  I am trying to change the text in a dynamic text field that is within a button object.

Is it IMPOSSIBLE to change the text of a dynamic text field that is within a button?

the important part of code is something like.

<currentmovie>.<instanceNameOfMyButton>.<fieldName>.text = "UPDATED"

If I keep my code the same, but change the button object to a movieclip, I can change the text.

<currentmovie>.<instanceNameOfMyMovieClip>.<fieldName>.text = "UPDATED"

What am I doing wrong?
0
Comment
Question by:fatttymelt
[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 Comments
 
LVL 5

Accepted Solution

by:
Calron earned 500 total points
ID: 9601801
With buttons flash hides the content of the button and does not let you access it.  (Have a look at it in debug mode and switch the button to a movieclip)

So if you need a button where you can dynamically change the label you will have to set up a movieclip as a button. YOu can do this by adding several frames and stopping the movie in specific positions. Wait for events i.e. on (rollOver), rollOut, release, mousePress, and move the clip to the correct frame. That way you have a movieclip that behaves like a button and you can change the caption.
0
 
LVL 1

Author Comment

by:fatttymelt
ID: 9602048
Thanks Calron.  I did as you said, and things are working just fine.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
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…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.
Suggested Courses

738 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