toggle on/off

This is a discussion on "toggle on/off" within the Flash & Multimedia Forum section. This forum, and the thread "toggle on/off are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 5th, 2006, 18:25
Up'n'Coming Member
Join Date: Oct 2006
Location: Zurich
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to berjoe Send a message via Yahoo to berjoe
toggle on/off

I'm trying to make the music in my website on and off using the toggle button...! I can manage how to turn the music off using the turn off all sound behaviour, but I can not manage how to turn it on..!!! Am I supposed to use Actionscript or what...?

hugs,
berjoe
Reply With Quote

  #2 (permalink)  
Old Oct 6th, 2006, 05:24
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Re: toggle on/off

The correct answer would be..."Actionscript or what"

Actionscript is the only way that I know of to achieve this effect in flash. Oh wait, no, wait, ok I guess you could use a movie clip. But that would be hard. So I answered your above question. If you need help with the code let me know.
Reply With Quote
  #3 (permalink)  
Old Oct 6th, 2006, 10:04
Up'n'Coming Member
Join Date: Oct 2006
Location: Zurich
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to berjoe Send a message via Yahoo to berjoe
Re: toggle on/off

yes I think I woud need help with the code..!!! Since I'm working with toggle button, so I work with two layers of frame, the layer 'on' and the layer 'off'. I put "stop all sound behaviour" in the layer 'off', but I need actionscript for the 'on' layer... please.. help me with the code...!!!

hugs,
berjoe
Reply With Quote
  #4 (permalink)  
Old Oct 9th, 2006, 22:44
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Smile Re: toggle on/off

Well I finally have replied to your post. Here is my recommended solution.

Code: Select all
btnSoundOff.onRelease = function() {
globalVolume.setVolume(0);
}
Code: Select all
btnSoundOn.onRelease = function() {
globalVolume.setVolume(100);
}
Any questions, let me know!!
Reply With Quote
Reply

Tags
music, flash, action script, onoff, toggle

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with a show/hide toggle thing (JS) belledumonde JavaScript Forum 1 Sep 5th, 2006 20:24
Drop Down Menu not Working Since I added Toggle Javascript to Page davva JavaScript Forum 1 May 19th, 2006 15:03


All times are GMT. The time now is 02:00.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43