A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Dynamic text box showing global variable in a button

Threaded View

  1. #1
    Junior Member
    Join Date
    May 2010
    Posts
    23

    Unhappy Dynamic text box showing global variable in a button

    Hello.

    I have a button, and inside the button, i have a dynamic text field that i want to display a global variable in the "over" frame. (when the mouse goes over the button)

    Normally, to make a dynamic text field show a global variable, I put the dynamic text box INSIDE a movie clip, and then define the variable in the movie clip.


    For example, i would put this into the movie clip containing the dynamic text box:
    Code:
    onClipEvent(enterFrame) {
    variable = _global.variable
    }

    Inside a button though, it doesn't work! I'll leave an attachment as an example of what I want.

    thanks in advance!!


    Attached Files Attached Files

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center