Changing button's text

Posted on 2004-11-27
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
    LVL 14

    Expert Comment

    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

    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

    Here is a .fla with same situation I have -
    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

    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

    Question answered by asker or dialog valuable.
    Closed, 125 points refunded.
    ee_ai_construct (replacement part #xm34)
    Community Support Admin

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Suggested Solutions

    This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
    I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
    The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
    The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

    761 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

    8 Experts available now in Live!

    Get 1:1 Help Now