dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Music on /off button

Hybrid View

  1. #1
    Space for rent
    Join Date
    Mar 2001
    Location
    Underground
    Posts
    388

    Cool


    Howdy folks..

    OK, lets just say i got my music loop and i want to make a on/off button. can someone please tell me the action script for this?

    Gedion

  2. #2
    Junior Member
    Join Date
    Mar 2001
    Posts
    5
    You've got a good tutorial there:
    http://www.virtual-fx.net/tutorials/...usiconoff1.htm
    Hope it helps!

  3. #3
    Space for rent
    Join Date
    Mar 2001
    Location
    Underground
    Posts
    388



    Thanks!

    I just dont understand what they mean when they say "tell target" How do i tell flash what my target is and what to do? Please be patient with me. I'm new at this.

    Gedion

  4. #4
    Bin Laden And Co.
    Join Date
    May 2000
    Posts
    869
    You tell flash to target movieclips..
    YOu give movieclips instance names..
    And with actions like
    on (release) {
    if (Number(playing) == 0) {
    stopAllSounds ();
    tellTarget ("sound") {
    gotoAndStop ("stop");
    tellTarget ("but") {
    gotoAndStop ("off");
    }
    }
    playing = 1;
    } else {
    tellTarget ("sound") {
    gotoAndStop ("play");
    tellTarget ("but") {
    gotoAndStop ("on");
    }
    }
    playing = 0;
    }
    }


    My target movieclips are sound and but...
    I tell them to do specific things like goto certain frames and stop or play by targetting them..
    Hope it helps dude..


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