Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Actuate
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 24th, 2003, 10:23 PM
INE-Kpro... INE-Kpro... is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Australia
Posts: 113 INE-Kpro... User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 38 m 7 sec
Reputation Power: 5
volume slider problem?

movieA which is the volume slider on the main timeline has this code

onClipEvent (load) {
top = _y+50;
left = _x;
right = _x;
bottom = _y;
}
onClipEvent (enterFrame) {
if (dragging == true) {
_root.a.setVolume(50-(_y-bottom));
}
}

on the same frame but different layer on the main timeline, there is this action script
a = new Sound();
a.attachSound("mySound");
a.start(secondsOffset, "100");

movieA has a button inside it with this code
on (press) {
startDrag("", false, left, top, right, bottom);
dragging = true;
}
on (release, releaseOutside) {
stopDrag();
dragging = false;
}
__________________
INE-Kpro...
(eye-yen-kay pro)
http://www.INE-Kpro.com
enquiries@INE-Kpro.com
<--- watch this space --->

Last edited by INE-Kpro... : September 24th, 2003 at 10:32 PM.

Reply With Quote
  #2  
Old September 24th, 2003, 10:34 PM
INE-Kpro... INE-Kpro... is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Australia
Posts: 113 INE-Kpro... User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 38 m 7 sec
Reputation Power: 5
part 2 of question

I changed the original 100 onclipevent code to 50 because the slider was sliding too far. it only slides half the distance now to get to the maximum or minimum. But the problem is that when I touch the slider now, the volume of the music is half as loud on maximum. I have lost maximum volume.
If I was to let it go back to 100 on the clip event part, it slides too long, but I get maximum volume. How can I cut the distance of the slider and still get maximum loudness on maximum.
Can someone explain to me how this code works. Which value controls the sliding distance. Not only that, this volume slider controls the volume of everything, including my bleeps and fxs. I only wanted it to control the volume of mySound ( which I have linked properly to the music I wanted controlled).
Is there a limit to the number of words per post?
TIA

Last edited by INE-Kpro... : September 24th, 2003 at 10:37 PM.

Reply With Quote
  #3  
Old September 25th, 2003, 11:23 AM
bret bret is offline
flash junkie
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: CO, USA
Posts: 172 bret User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 38 sec
Reputation Power: 6
Send a message via Yahoo to bret
so, the concept behing this needing to represent 100 values of possible volume (That's why the original value was 100). You can' t have a volume less than 0 or greater than 100... So with this in mind, if you only have 50 scrolling amounts, just multiply it by two:

Code:
_root.a.setVolume((50-_y-bottom) *2); 


This way, the volue will be 0-100 but your slide will be 0-50.

All the code does is drags the movieclip according to the specific constraints you passed into the startDrag() function. These are determined in you onClipEvent(load) function... need more detail on how it works?

-bret

Reply With Quote
  #4  
Old September 25th, 2003, 08:55 PM
INE-Kpro... INE-Kpro... is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Australia
Posts: 113 INE-Kpro... User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 38 m 7 sec
Reputation Power: 5
how about the part where it affects all sounds, how come?

how come it doesnt affect my audio that i have linked as mySound only?

how do I rectify this?

Reply With Quote
  #5  
Old September 26th, 2003, 12:54 AM
INE-Kpro... INE-Kpro... is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Location: Australia
Posts: 113 INE-Kpro... User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 38 m 7 sec
Reputation Power: 5
"bump"

Last edited by INE-Kpro... : October 6th, 2003 at 10:48 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > volume slider problem?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Actuate




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway