A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: play once, one object from 4 buttons

  1. #1
    Member
    Join Date
    Jul 2007
    Posts
    91

    play once, one object from 4 buttons

    Hi again

    The only thing i want is a play once, one object (Background 15) from 4 buttons, and if I turn off this object (button x), then i can play this again from one of 4 buttons, but only one time.

    test_site

    help
    Attached Files Attached Files
    Last edited by 3DH; 08-05-2007 at 02:59 PM.

  2. #2
    Member
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    76
    I can't really understand what's wrong with your movie. It works fine to me.

  3. #3
    Member
    Join Date
    Jul 2007
    Posts
    91
    If you klick on the button, then you play movie Bacground 15. This is ok, but I do not want play this movie again, when i klick in the buttons secund time.

    This is solution of my problem:
    Code:
    var test:Boolean = true; 
    button_1.onRelease = function() { 
       test ? foo(this._name) : null; 
    }; 
    button_2.onRelease = function() { 
       test ? foo(this._name) : null; 
    }; 
    button_3.onRelease = function() { 
       test ? foo(this._name) : null; 
    }; 
    button_4.onRelease = function() { 
       test ? foo(this._name) : null; 
    }; 
    function foo(n:String):Void { 
       trace(n); 
       test = false; 
    }
    But I don't know how I can use this script on 3DFA
    Last edited by 3DH; 08-05-2007 at 05:06 PM.

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