dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Changing Button Actions Dynamically ?

  1. #1
    Senior Member
    Join Date
    Apr 2001
    Posts
    118
    Is it possible to have a single instance of a button but change its action dynamically by clicking another button?

    If so can someone give me a nudge in the right direction on the scripting for this:-)


  2. #2
    Senior Member chi-styler's Avatar
    Join Date
    Jul 2001
    Location
    Bristol, UK
    Posts
    1,237
    Hi, have you tried something like:

    Code:
    button1.onRelease = function () {
      trace("original code");
    }
    button2.onRelease = function () {
      button1.onRelease = function () {
        trace("new code");
      }
    }
    Chi

  3. #3
    Senior Member
    Join Date
    Apr 2001
    Posts
    118
    no ...............but i will try it out!

    many thanx!

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