[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Changing button's text

Posted on 2004-11-27
Medium Priority
Last Modified: 2010-04-03
I'm new in flash, therefore I don't know much about it.

I have to make a menu for homepage with changable languages.
I'd like to make one .swf for all languages, not seperate .swf's for each language.

I found a way, how to do it, but I'm a bit confused - it does work in new flash document, but doesn't work, if I'm trying to edit some document (I already have a menu, that I need to change - doesn't work in this menu). Could anyone help me?

The way I'm doing it:
1. Create "Dynamic Text", using Text Tool
2. Right click on this Dynamic Text --> Convert to simbol (Behaviour: Button)
3. Select newly created button; write an action for it - on (release) {txt = txt + 'x';}
4. Double click on button
5. Select 'Up' frame --> select TextField --> Link it with variable 'txt' in Properties (write 'txt' in text box next to 'Var:')
6. Disable 'Selectable' property, if enabled
7. Press F12 to preview it. Click on button - it changes variable and also text of button
Question by:ZhaawZ
  • 3
LVL 14

Expert Comment

ID: 12687641
Hello ZhaawZ,
         I think it would be best if you could post the fla somewhere so that i can see for myself

LVL 11

Author Comment

ID: 12687661
Sorry, I think I'm not able to give away that .fla. Just thought that maybe somebody have had same problem. Could it be related to variables in different timelines?
LVL 11

Author Comment

ID: 12688108
Here is a .fla with same situation I have - http://lovelysoft.sytes.net/xxx.zip
There are 4 identical TextFields, associated with variable. 3 of them work fine, but the 4th doesn't.
3rd and 4th TextFields are in same timeline. Only difference is that 4th is associated with mask layer - does it matter?
LVL 11

Author Comment

ID: 12689240
There's no help needed anymore. It can be done at runtime with setMask(), not at design time.

>> Dynamic/Input textfields cannot be masked with a mask added at authortime (drawn in flash). If you need to do this, you should embed font outlines for the textfield in question. An alternate solution is to add the mask at runtime, using the setMask() function.

Accepted Solution

ee_ai_construct earned 0 total points
ID: 12724764
Question answered by asker or dialog valuable.
Closed, 125 points refunded.
ee_ai_construct (replacement part #xm34)
Community Support Admin

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
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): …
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.
Suggested Courses

834 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