Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




SoundTransform: Clicks And Pops When Changing Volume



When using the soundTrasform to change the volume of a sound channel, especially when you're animating this (changing the volume constantly over time) clicks and pops become audible. This also happens when changing the pan.

I'm guessing this is because the sound's property is change instantaneously and so there is a sudden change in the waveform. For example if you've got a smooth curve going down (a point in a sine wave for example) and you put the volume down the next frame (sound frame, not Flash frame particularly) or sample is going to drop suddenly as it has been rescaled.

This all makes sense to me, but doesn't really help with the fact that it does this. Any ideas how to get around that kind of problem, or is the trick just to play your sound, then change it's volume on each repetition?



FlashKit > Flash Help > Actionscript 3.0
Posted on: 12-16-2008, 06:05 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

SoundTransform Volume Control
below is the 2 functions I created to alter the volume in my sound channel upon button click, my mp3 plays, but volume is not going up or down upon either button click. any help will be greatly appreciated sincerely newwave

lower_btn.addEventListener(MouseEvent.CLICK, onClicklower);
function onClicklower(e:MouseEvent):void{
myTransform.volume = -0.05;
}
upper_btn.addEventListener(MouseEvent.CLICK, onClickupper);
function onClickupper(e:MouseEvent):void{
myTransform.volume = +0.05;
}

Controlling The Volume / Soundtransform Of An Embedded Flv
i came out of hibernation.

anyone know how to do this? it was easy in AS 2, but I need to be able to control an embedded flv's sound in a timeline in AS 3. I am well versed with streaming .flv's externally in AS 3 / Custom video players, but I want to try and avoid that in this case if at all possible.

any ideas peeps?

thanks.

Changing Where A Pop Up Pops Up.
using the "create centered pop up" tutorial as a starting point how can i make a pop up appear in the top left hand corner..

obivously i need to change openWinCentre some how?

Volume Slider Tutorial (changing The Start Volume)
Hi,

This is my first post, also my first problem. Not going so well so far! Okay, i downloaded the tutorial and read through it. Maybe not so well, since i'm a little stuck.

I wanted to modify the slider, so rather than starting off as silent, it starts off so the sound can be heard. So i edited the slider and moved the indicator further along. However, the mp3 cannot be heard until the silder indicator is moved.

i tried modifying the play button to this;


ActionScript Code:
on (release) {    if (_root.mySlider.complete == 1) {        _root.mySlider.mySound.stop();         mySound.setVolume(_root.volume(ratio));        _root.mySlider.mySound.start(0, 99);    }}


but it still doesn't seem to work. Also the 'circles' don't automatically take the height. As soon as I move the slider, the circles 'jump' to the correct size and the volume plays properly.

Also i'd kind of like the song to start playing as soon as its loaded. Okay, i know that i could maybe download something that does all of this already, but i'd rather (or more likely be shown how to) modify the tutorial since i'm a beginner.

Apologies, i'm new to all this. I know some oop, but actionscript and all these properties are a bit new to me.

Thanks in advance,

Changing A Picture With Several Clicks.
Hi.

I an MC. By clicking, lets say, 5 times on it, it changes to another MC. Can i do this any other way then frames.
I can have 5 frames and every click (NextFrame). But i was wondering if there is another, more better, way to do it by ActionScript.

Thank you.

Changing A Picture With Several Clicks.
Hi.

I have an MC (MovieClip). By clicking, lets say, 5 times on it, it changes to another MC. Can i do this any other way then frames.
I can have 5 frames and every click (NextFrame). But i was wondering if there is another, more better, way to do it by ActionScript.

Thank you.

Two Clicks From Just One - Changing HTML & Flash From A Single Click
Hey Folks:

I have an HTML page with a Flash button that pops a window.

I want the HTML page to change when the user clicks the flash button and the window is popped.

I believe that this functionality would need to be contained in the flash button as that is what the user clicks on.

Any help will be greatly appreciated.

Changing Volume
Is there a way to lower the volume at a certain frame? Please help the newbie.

Thanks

Changing Volume Of SWF
Hello,
I have 9 SWFs, all of which contain audio (me talking, to be specific). The problem is, when I recorded them, my microphone was too far away and it is very quiet. It sounds fine when I turn my speakers up very high.

Is there a way to easily (without re-recording) raise the volume level of one of these SWFs? I don't have any FLA files, but I do have Flash.

Thanks for any help in advance.

-F

Changing The Volume ? [MX Pro]
Hi there, i have this code to load my file:

song = "lolas_them.mp3"
loadFile = new Sound();
loadFile.loadSound(song,false);
loadFile.onLoad = function(){
loadFile.start(0,100);
status.gotoAndStop(7);
}


and i want to be able to change the voume using buttons - say 5 buttons setting the level from 0 to 100 (0, 20, 40 etc).

i have tried adding this to the bottom of my code for testing purposes:

song.volume = 10;

but it's having no effect - can someone help me out here, many thanks,

Neil

Changing Volume Using Coordinates
Need some help here.

Id like to increase the volume of a sound loop gradually as the mouse gets closer to a button or mc, and decrease the volume as the mouse moves away.

Ive found one tutorial that is basically what im going for, but it doesnt provide the fla, so
i couldnt figure it out. its here:

http://iat.ubalt.edu/courses/old/pbd...Improved.shtml

Can someone explain. Its for a school project. Thanks.

Changing Volume Using Coordinates
Need some help here.

Id like to increase the volume of a sound loop gradually as the mouse gets closer to a button or mc, and decrease the volume as the mouse moves away.

Ive found one tutorial that is basically what im going for, but it doesnt provide the fla, so
i couldnt figure it out. its here:

http://iat.ubalt.edu/courses/old/pbd...Improved.shtml

Can someone explain. Its for a school project. Thanks.

Changing The Volume For My Streaming MP3
Im using the folowing code that plays my mp3 file once the flash loads, but its too loud. What code or change do I need to make to change the volume?

Heres the code:


Code:
if(_global.Behaviors == null)_global.Behaviors = {};
if(_global.Behaviors.Sound == null)_global.Behaviors.Sound = {};
if(typeof this.createEmptyMovieClip == 'undefined'){
this._parent.createEmptyMovieClip('BS_nothing_p4',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
_global.Behaviors.Sound.nothing_p4 = new Sound(this._parent.BS_nothing_p4);
} else {
this.createEmptyMovieClip('_nothing_p4_',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
_global.Behaviors.Sound.nothing_p4 = new Sound(this.BS_nothing_p4);
}
_global.Behaviors.Sound.nothing_p4.loadSound("http://www.childrenofconan.trap17.com/Nothing.mp3",true);

Changing The Volume Of A Sound
Hi, I have a streaming mp3 in my flash movie.

I want to add a control to raise/lower the volume.

Can anyone tell me how to do that in Flash MX 2004.

I have tried sound.getVolume() and sound.setVolume. However I think they are only for earlier versions of flash.

Changing Volume Using Coordinates
Need some help here.

Id like to increase the volume of a sound loop gradually as the
mouse gets closer to a button or mc, and decrease the volume
as the mouse moves away.

Im a bit of a beginner to actionscript, Ive found one tutorial that
is basically what im going for, but it doesnt provide the fla, so
i couldnt figure it out. its here:

http://iat.ubalt.edu/courses/old/pbd...Improved.shtml

Can someone explain. Its for a school project. Thanks.

Changing Volume Using Coordinates
Need some help here.

Id like to increase the volume of a sound loop gradually as the
mouse gets closer to a button or mc, and decrease the volume
as the mouse moves away.

Im a bit of a beginner to actionscript, Ive found one tutorial that
is basically what im going for, but it doesnt provide the fla, so
i couldnt figure it out. its here:

http://iat.ubalt.edu/courses/old/pbd...Improved.shtml

Can someone explain. Its for a school project. Thanks.

Changing Volume On External FLV
I've Flash 7.2 and i've created a very basic flv player swf

all it does is open a local flv and play it once. no control or anything like that.

The only thing i need to do is reduce the sound level off the flv..

Can someone tell me how i can do this or is it even possible?

CHANGING THE VOLUME IN AN EXPORTED SWF
Hi there,

Can anyone tell me if there's a way to reduce the overal volume of an exported SWF file? ...quickly

(sorry, that's not a "Quickly, tell me!" I'm looking for a speedy solution as we have a lot of SWF to change and no time to go back into premier)


any advice/feedback is greatly appreciated.

- Jamie




Changing The Volume Of A Sound Clip
Hello,

I am new to these forums and I am still quite new to flash so bear with me please.

I have created a flash movie which includes a sound clip. Thanks to the tutorials on this site, I have learned how to include an on/off button for the movie; however, the actual sound clip itself is rather loud. I'm guessing it was recorded at a high volume??? I have my volume on my computer set to low and it still blares out, which I'm afraid takes away from the value of the movie.

So, is there any way that I can edit the sound clip whether in flash or a suitable audio programme to reduce the volume so that the people visiting the website it's meant to go on aren't scared out of their whits?

Muting/Changing Volume Of Netstream
I am trying to write a video/audio chat tool and I am having a heck of a time with muting and changing the broadcasters audio netstream volume. Is there anyway to do this, I see there is a something called soundTransform but I think it is only for AS 3.0 and I am developing in 2.0. If you can give me any help I would appreciate it.

Thanks in advance

Changing The Same Sound's Volume On Multiple Buttons...
Hi,

I'm using the same sound for the "Over" state on a set of multiple buttons; is there a way to adjust the level of this sound globally without having to go in and change the envelope for each instance? -- I'd like the same adjusted level for all the buttons in the set.

The sounds are assigned directly to the button state frames. Is there a way to do this with sound objects? I'm new to Flash and I don't fully understand sound objects yet, even though I've read about them.

Thanks,
Todd Lerner

[F8] Externally Loaded SWF Changing Volume Of A Parent SWF
Hi everyone!!

I'm brand new to the forum and (relatively) new to Flash. I hope that someone here can lend a hand!

I have a visually empty movie clip (holder.swf). It loads an mp3 into the movie using the code:


PHP Code:



var audio:Sound = new Sound();
audio.loadSound("audio.mp3", true);




So when the movie loads, it plays a song. Easy enough.

I have a button in my HTML that, when clicked, loads a SWF (loop1.swf) into holder.swf. Now, loop1.swf has it's own sound. I want it, when loaded, to fade-out the volume of it's parent (holder.swf) and then unload the mp3. That way, when loop1.swf is going, it's volume is what we hear -- not the loaded mp3.

When loop1.swf is done, I want it to re-load the original mp3 into holder.swf and start the song over again.

I am having a beast of a time here!! Please, can anyone lend me a hand?

How do I make an externally-loaded SWF fade-out the audio in it's parent file? Then, after a period, how do I make it re-load the audio file?

Thanks everyone!
Chris

SoundTransform
There was a solution along these lines posted earlier, but I wanted to raise the question again regarding the Sound Transform function in .as files.

Below is my .as code for my button class. When you roll over a button it grows and makes a noise.
I'm trying to lower the volume of the "blip.mp3" via SoundTransform, but something is amiss.

-I based my code on info I extrapolated from the AS3 help files. I tried setting the volume to .2 in my constructor function, but it doesn't seem to be working.
Am I using the SoundTransform function improperly? -I'm still very much a novice at OOP.
thanks,
mike







Attach Code

package
{
import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.filters.BitmapFilterQuality;
import flash.filters.GlowFilter;
import flash.net.URLRequest;
import flash.events.Event;
import flash.media.Sound;
import flash.media.SoundTransform;
import flash.media.SoundChannel;





public class Button extends MovieClip
{
private var glow:GlowFilter = new GlowFilter();
private var mySound:Sound;
private var trans:SoundTransform;





public function Button()
{
this.buttonMode = true;
this.addEventListener(MouseEvent.MOUSE_OVER, expand);
this.addEventListener(MouseEvent.MOUSE_OUT, contract);

var soundRequest:URLRequest = new URLRequest("blip.mp3");
mySound = new Sound();
mySound.load(soundRequest);
trans = new SoundTransform(.2);

}






private function expand(event:MouseEvent):void
{
this.scaleX = 1.1;
mySound.play();
//this.glowOrange();

}

private function contract(event:MouseEvent):void
{
this.scaleX = 1;
//this.filters = null;
}

/*private function glowOrange()
{
glow.color = 0xFF9900;
glow.alpha = .5;
glow.blurX = 7.2;
glow.blurY = 7.2;
glow.quality = BitmapFilterQuality.MEDIUM;

this.filters = [glow];
}*/

}
}

SoundTransform
http://www.helmutgranda.com/2008/02/...d-swfs-in-as3/

I found this code through google search. I tried adapting it to my current code and I'm having trouble. Is it because this essentially creates a new class?


Here is my code without the mute option:

Code:
import flash.media.SoundTransform;
import flash.display.Loader;

var imageLoader:Loader;


function loadImage(url:String):void {
// Show Preloader
preloader.visible = true;

// Set properties on my Loader object
imageLoader = new Loader();
imageLoader.load(new URLRequest(url));
imageLoader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, imageLoading);
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
}
loadImage("swfs/pul.swf");

function imageLoaded(e:Event):void {
// Load Image

imageLoadArea.addChild(imageLoader);
imageLoader.name = "pulmi";
imageLoader.width = 320;
imageLoader.height = 280;
// Hide Preloader
preloader.visible = false;

}

function imageLoading(e:ProgressEvent):void {
// Get current download progress
var loaded:Number = e.bytesLoaded / e.bytesTotal;

// Send progress info to "preloader" movie clip
preloader.SetProgress(loaded);
}
I would think that I could just create a new SoundTransform and then apply it to my movieClip


Code:
function imageLoaded(e:Event):void {
// Load Image

imageLoadArea.addChild(imageLoader);
imageLoader.name = "pulmi";
imageLoader.width = 320;
imageLoader.height = 280;
// Hide Preloader
preloader.visible = false;
var mySoundTransform = new SoundTransform();
mySoundTransform.volume = 0;
imageLoader.soundTransform = mySoundTransform;

}
But I get this error:
1119: Access of possibly undefined property soundTransform through a reference with static type flash.display:Loader.

Problem With SoundTransform...
If I set my code up like this it works, plays the sound plus applies the volume change...


ActionScript Code:
var over_snd:Sound = new bleeep();
var sc:SoundChannel = over_snd.play();
sc.soundTransform = new SoundTransform(.2, 0);

but if I set it up like this, I get no errors, it plays but the volume does not change, any ideas?


ActionScript Code:
var rollover_3:Sound = new rollover3();
var sc:SoundChannel = new SoundChannel();
sc.soundTransform = new SoundTransform(.5, 0);

function blah() {
     sc = rollover_3.play();
}

Soundtransform Not Keeping Value
my first class not running off of a tutorial...still learning
every time i set the volume to the current mp3 playing and then start an new one the volume resets?
im setting the volume for channel1 shouldnt it remain even after i stop the channel and start an new mp3?
thanks for any help!

package {
//
import flash.display.MovieClip;
import flash.text.TextField;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.geom.Rectangle;
import flash.media.Sound;
import flash.media.SoundChannel;
import flash.media.SoundTransform;
import flash.net.URLRequest;
import flash.display.Graphics;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
import flash.text.TextFormat;
//
public class MP3 extends MovieClip {
//
var textVol:String;
var bx:Number = 0;
var by:Number = 0;
var bw:Number = 0;
var bh:Number = 100;
var bndRect:Rectangle = new Rectangle( bx, by, bw, bh );
var channel1:SoundChannel = new SoundChannel();
var newVol:Number;
var aMusic:Array;
//
function MP3():void {
trace("new mp3 player");
mVolume.slider.addEventListener(MouseEvent.MOUSE_D OWN, slidebarstart);
mVolume.slider.addEventListener(MouseEvent.MOUSE_U P, slidebarstop);
mVolume.slider.buttonMode = true;
mVolume.slider.mouseChildren=false;
mVolume.slider.tVolume.visible=false;
}
//Play MP3
private function playMP3(mp3URL:String):void {
channel1.stop();
var musicURL:URLRequest = new URLRequest(mp3URL);
var sndMusic:Sound = new Sound(musicURL);
channel1 = sndMusic.play();
//setVolume(this.newVol);
trace(newVol);
}
//Volume
private function setVolume(vol:Number):void {
var changeVol:SoundTransform = new SoundTransform(vol);
channel1.soundTransform = changeVol;
}
//Slidebar
private function changeVol(evt:Event):void {
var newVol:Number=(evt.target.y*-.01)+1;
setVolume(newVol);
var textVol:Number=evt.target.y-100;
mVolume.slider.tVolume.text=textVol;
trace("changing");
}
//
private function clickStage(evt:MouseEvent):void {
trace("clickStage");
mVolume.slider.stopDrag();
mVolume.slider.removeEventListener(Event.ENTER_FRA ME, changeVol);
}
//
private function slidebarstart(evt:MouseEvent):void {
trace(evt.target.name+"/"+bndRect);
evt.target.startDrag(false,bndRect);
evt.target.addEventListener(Event.ENTER_FRAME, changeVol);
stage.addEventListener(MouseEvent.MOUSE_UP, clickStage);
evt.target.tVolume.visible=true;
}
//
private function slidebarstop(evt:MouseEvent):void {
trace(evt.target.name);
evt.target.stopDrag();
evt.target.removeEventListener(Event.ENTER_FRAME, changeVol);
stage.removeEventListener(MouseEvent.MOUSE_UP, clickStage);
evt.target.tVolume.visible=false;
}
//Track List
public function setUpMusic(aMusicList:Array):void {
aMusic=aMusicList;
var count:Number=aMusic.length;

for (var i:Number=0; i < count; i++) {
trace(this.aMusic[i]);
var mTrack:MovieClip = new MovieClip();
//track box
mTrack.graphics.beginFill(0xFFE1C4);
mTrack.graphics.drawRect(0, 0, 250, 20);
mTrack.graphics.endFill();
mTrack.x = 0;
mTrack.y = i*21;
mTrack.addEventListener(MouseEvent.CLICK, trackClick);
mTrack.buttonMode = true;
mTrack.name=this.aMusic[i];
mTrack.mouseChildren=false;
this.addChild(mTrack);

//label
var labeled = new TextField();
labeled.autoSize = TextFieldAutoSize.LEFT;

var format:TextFormat = new TextFormat();
format.font = "Verdana";
format.color = 0x000000;
format.size = 10;

labeled.defaultTextFormat = format;
labeled.text=this.aMusic[i];
mTrack.addChild(labeled);

}
}
//
function trackClick(evt:MouseEvent):void {
trace(evt.target.name);
playMP3(evt.target.name);
}
//
}
}

SoundTransform Problems
Im trying to set up sound that will play the right speaker at one time and then the left.
What am i doing wrong??



mySound = new Sound();
mySound.attachSound("myMusic");
mySound.start("", 999);

mySound.setTransform(mySoundTransformObject);

mySoundTransformObject = new Object;
mySoundTransformObject.ll = 100;
mySoundTransformObject.lr = 0;
mySoundTransformObject.rr = 0;
mySoundTransformObject.rl = 0

NetStream SoundTransform Delay
Hi,
I'm programming a video player now and using the NetStream.soundTransform to control the volume of the video.
I have noticed that any change to the soundTransform will result in 1 second delay. Which means, that I can't use a volume scrubber smoothly. Any volume change will have effect only after 1 second.
I have a trace on the function that changes the NetStream.soundTransform and I see that trace right away. Only the volume itself has the delay.

Thanks,
Or.

Dual Audio Language And SoundTransform
Hi, I'm streaming a conference with 2 audio channels (1 for english and 1 for spanish), in a forum I founded a code to mute the right (spanish) audio channel and listen only left (english) audio channel but it doesn't work, also I'm trying to attach SoundTransform to a button so I can give the choice english or spanish audio. Thank you for your help.

Handling Double Clicks And Mis-clicks In AS3
Hi

I am making point n clicked based game. From time to time my moving objects stop and I assume this is happening due to me not handling double mouse clicks and mouse mis clicks. I would like to know how I can handle double click and mis clicks in AS3.

Thanks

P.S. To get a better understanding of what I mean, play my game at:

http://freelancer.987mb.com/download/fla/Gool/Gool.html

Its still under development.

Contact Php Pops Up
Hi, I have a flash contact form which goes to a php script to send the email. The script sends email with no problem, but when clicking submit on the form, the send.php pops up in a blank window. Is there any way I can correct this. here's the actionscript I'm using to trigger the php:

You can check the contact form out if it will help:
http://www.eclipsaphotographic.com/contact

Is there anybody that can assist with this?
Thanks,


var gatherForm:LoadVars = new LoadVars();

function sendForm() {
gatherForm.visitorname = contactForm.userName.text;
gatherForm.visitoremail = contactForm.userEmail.text;
gatherForm.visitorcomments = contactForm.userComments.text;

gatherForm.send("send.php", "POST");

}

Here's the PHP:

<?PHP

$to = 'address@address.com';

$subject = "Message from www.eclipsaphotographic.com";
$message = "Name: " . $_POST["visitorname"];
$message .= "
Email: " . $_POST["visitoremail"];
$message .= "

Message: " . $_POST["visitorcomments"];
$message .= "

nIP Adress: " . $_SERVER['REMOTE_ADDR'];
$message .= "
Browser: " . $_SERVER['HTTP_USER_AGENT'];

mail($to,$subject,$message,$from, '-f address@address.com');

?>

URL Pops Up On Mouse Roll Over
Hi everyone,
I've downloaded a file from this site and changed most of the elements. Problem is whenever go over a button it automatically opens a website. I've checked Actions to see if there is a "go to URL" for each button but there is nothing. Is there somewhere else i should check?

Finally the version of Flash i have is MX downloaded from Macromedia.
Thanks in advance everyone, i appreciate any help.

JJ

Help With Button That Pops Out Menu
Hey you guys I'm trying to make some buttons that I will add together for menu...

So I had this idea and made me a testing button. This testing button looks like a normal button - but when you click it it starts a flash animation and a semi transparent menu morphs next to it showing the additional categories/links. Basically that is dynamic text placed above the semi transparent menu and made into HTML links.

Now up to the part that you hit the button and the menu shows up and then the stop command holds it there so you can use the links on it - all is fine!

But...well somehow I need to make it so that when the user's mouse leaves the menu (rollout?) or the button that triggers it to show up in the first place - the menu disappears and the button returns to it's original stage. Basically the button itself never changes - it's just that the menu shows up next to it...

Anyway, how do I make it so that the menu disappears when the mouse rolls out of the button or the menu?

To give you an idea of what I'm trying to do - check the WOW site here: http://www.worldofwarcraft.com/

It's basically the same thing except that the menus don't just pop-up and they morph/animate.

[F8] Document Name Pops Up On Mac Firefox
I'm glad there is no such thing as a stupid question in this forum because this must be high on the list.

OK, I have a flash video all working good, but when displayed on Firefox on a Mac (doesn't happen with my PC), when I hover above movie, it pops up the movie name.

Now my newbie questions.
1. Where can I change the name (it's not the file name, that much I know)?
2. Can I get it to just not display that?
3. Maybe this is a dreamweaver issue not flash.

I think I'm missing something very obvious,

Thanks in advance

Text Fades Up To 75% Then Pops To 100%
When I put test in a movie clip and fade it from 0 to 100 the text fades up to 75% then pops to 100%.

anyone know why this happens and how to get around it - of course my client noticed and wants the fade up to be smooth.

HELP,
-M

In-Flash Navigation Pops...
I have a page in Flash in which I have five links. I want each of those links to open a URL in a pop window with pre-defined proportions.

How do I add my window preferences (size, placement, etc.) in ActionScript?

Thanks!

Preloading Popup Before It Pops?
Is it possible to show loadprogress on a popup before it launches?

so a main window with a progressbar that will launch a fully loaded popup when hitting 100%

sounding silly?

.flv Audio Skips And Pops?
I am certain that this has something to do with the internet download settings...but I am curious as to know what the best practices are here---

I have .flv files that will skip and pop when the download bar is hit by the playhead...meaning the download is not fast enough to outrun the playhead...

but the problem is, sometimes, even when the file is completely loaded it still pops and skips...???

I used the on2 encoder and the spark encoder each with different settings each with different, but unsatisfactory results....

all these identical files play just fine on the cd-rom version of the same interface.

I used Fraunhofer MP3 with 32 kbps -- 16 sample size -- 22050 Mono sound....

Basically the default setting for On2 384K within sorenson squeeze...

the site in question is

http://store.sorinex.com/Articles.asp?ID=124

Please Help. I Really Need A Loading Script On Btn While/until Fs Exec Pops Up.
Trying to make a loading anim embedded in a button to play while fs command exec pops up in another window. Anyone know how to do this?

Way So External Video Pops Up On Top Of Projector?
I am using the GetURL action to play a video in whatever the systems default player is via a button in a Flash projector. The problem I am having is when the vid opens it opens up BEHIND the projector. I am using the _blank attribute and have tried the others but still same result.

Any ideas on how to make sure the video pops up ABOVE the projector?

Any help would be great!
THX!

DepthChild0 In Form Pops Up When Index His Hit
I have a tab index in a form

When I hit the tab key a white box that is a Movie clip pops up?

the debugger says

Shape:
Movie Clip: Frame=1 Target="_level0.contactForm.depthChild0"
Movie Clip: Frame=1 Target="_level0.contactForm.depthChild0.boundingBo x_mc"

There is nothing that i put in the FLA to support this and i can not find the MC anywhere in Lib or code . Has anyone had this issue?


My code:

//----------tab index for the form----------
focusManager.setFocus(this.contactForm.userCompany );
this.contactForm.userCompany.tabIndex = 1;
this.contactForm.userTitle.tabIndex = 2;
this.contactForm.userFirstName.tabIndex = 3;
this.contactForm.userLastName.tabIndex = 4;
this.contactForm.userEmail.tabIndex = 5;
this.contactForm.userIM.tabIndex = 6;
this.contactForm.userPhone1.tabIndex = 7;
this.contactForm.userPhone2.tabIndex = 8;
this.contactForm.userPhone3.tabIndex = 9;
this.contactForm.userFax1.tabIndex = 10;
this.contactForm.userFax2.tabIndex = 11;
this.contactForm.userFax3.tabIndex = 12;
this.contactForm.userStreet.tabIndex = 13;
this.contactForm.userCity.tabIndex = 14;
this.contactForm.userState.tabIndex = 15;
this.contactForm.userZip.tabIndex = 16;
this.contactForm.userwebUrl.tabIndex = 17;
//--------------end tab index--------------

Making A Window That Pops Up In Flash
So I want to make a button that creates a component (Window) upon the clicking of it.
I figured that one out:
//
on (press) {

createClassObject(mx.containers.Window,"WindowName ",5,{label:"Window"});

}

//
if there are any errors, plz let me know hehe.

The problem is that I can drag the window away, then click the button again to make a second window. I only want one. So I tried doing a

instanceName.destroyObject("WindowName")

upon the pressing of the window. THe problem is that it doesnt work. I'm not sure how to get it to work either

If anyone knows what 'm doign wrong, or an easier way to do things plz let me know.

Flash Detection Script Pops Up
In the flash detection script why is it popping up the 'installation complete' window when I've commented out all the places where it was being called


ActionScript Code:
//Macromedia Flash Player Version & Revision Detection
//This is designed to support Macintosh, Windows, Linux, PocketPC versions of the Macromedia Flash player.
//All of this code should be on the first frame of the movie before any other code or assets.
////////////USER SETTINGS////////////
//These variables can be set on the object & embed tags In the HTML that hosts this Flash movie.
//They can be set here if preferred.
//-------------------
//the url that the visitor should be sent to if they do not have the required version of Flash.
altContentURL = "upgrade_flash/upgrade_flash.html";
//-------------------
//the url that the visitor should be sent to if they have the required version of Flash.
//flashContentURL = "flash_content/flash_content.html";
//-------------------
//The required player version necessary to view the content.
contentVersion = 8;
//-------------------
//The 'dot' release of the player necessary to view the content.
contentMajorRevision = 0;
//-------------------
//The revision number of the player necessary to view the content.
contentMinorRevision = 19;
//--------------------
//A flag to autoInstall the player on IE Windows. Basically skips the test here and goes right to the Flash content.
//:TRICKY: This should not be set to true here in ActionScript. If you want to skip the test for IE windows users, set this on the object tag
//Such as "flash_detection.swf?allowFlashAutoInstall=true"
//It must be set in the object tag NOT the embed tag, otherwise you would skip the detection when in Netscape Win.
//allowFlashAutoInstall = false;
//--------------------
//A flag to tell the detection code to look up the latest version of the player (see below)
requireLatestVersion = false;
//The following supports "require latest version" and also supports with the rare case when the player versions sometimes get out of synch
//these should be set here in the Flash file and must be updated by the author(you) when Macromedia publishes a new player that you require.
//The following versions should be current as of 01.07.2004
//set up the mac version
MACLatestVersion = 8;
MACLatestMajorRevision = 0;
MACLatestMinorRevision = 0;
//set up the Windows version
WINLatestVersion = 8;
WINLatestMajorRevision = 0;
WINLatestMinorRevision = 0;
//PocketPC version
WINCELatestVersion = 6;
WINCELatestMajorRevision = 0;
WINCELatestMinorRevision = 80;
//Linux version
UNIXLatestVersion = 6;
UNIXLatestMajorRevision = 0;
UNIXLatestMinorRevision = 79;

//--------------------
//:TRICKY: This deprecated code style below is necessary to support Flash 4.
//This utility splits up the version string into usable parts.
//first check to see that the $version is there at all.
if (eval("$version") eq "") {
        getURL(altContentURL, "_blank");
}
i = 1;
playerOS_str = "";
while (substring(eval("$version"), i, 1) ne " ") {
        playerOS_str = playerOS_str add substring(eval("$version"), i, 1);
        i++;
}
playerVersion = "";
i++;
while (substring(eval("$version"), i, 1) ne ",") {
        playerVersion = playerVersion add Number(substring(eval("$version"), i, 1));
        i++;
}
playerMajorRevision = "";
i++;
while (substring(eval("$version"), i, 1) ne ",") {
        playerMajorRevision = playerMajorRevision add Number(substring(eval("$version"), i, 1));
        i++;
}
playerMinorRevision = "";
i++;
while (substring(eval("$version"), i, 1) ne ",") {
        playerMinorRevision = playerMinorRevision add Number(substring(eval("$version"), i, 1));
        i++;
}
//if the user wants to check against the latest version (defined in this flash movie) change all the content version info to these latest version values.
if (requireLatestVersion eq "true") {
        contentVersion = Number(eval(playerOS_str add "LatestVersion"));
        contentMajorRevision = Number(eval(playerOS_str add "LatestMajorRevision"));
        contentMinorRevision = Number(eval(playerOS_str add "LatestMinorRevision"));
}
//go ahead with checking the player against the content rather than latest version
if (allowFlashAutoInstall eq "true" && playerOS_str eq "WIN") {
        //if we want to autoInstall on Windows go right to the content.
        //getURL(flashContentURL, "_blank");
} else if (playerVersion<contentVersion) {
        getURL(altContentURL, "_blank");
} else if (playerVersion>contentVersion) {
        //getURL(flashContentURL, "_blank");
} else if ((playerVersion eq contentVersion) && (playerMajorRevision<contentMajorRevision)) {
        getURL(altContentURL, "_blank");
} else if ((playerVersion eq contentVersion) && (playerMajorRevision eq contentMajorRevision) && (playerMinorRevision< contentMinorRevision)) {
        getURL(altContentURL, "_blank");
} else if ((playerVersion eq contentVersion) && (playerMajorRevision eq contentMajorRevision) && (playerMinorRevision >= contentMinorRevision)) {
        //getURL(flashContentURL, "_blank");
}
// This is the failsafe for when all the above is not understood by player version 3 or below.
// This must be the last operation in the detection scheme so do not move it up in the sequence
flash3test = 1;
if (flash3test<>1) {
        //This getURL will be called only in Flash versions < 4.0. Please edit the URL as you wish.
        //Because of backward compatibility requirement, this address cannot be set with a variable.
        getURL("upgrade_flash/upgrade_flash.html", "_blank");
}

It's this one "flashContentURL = "flash_content/flash_content.html";" but it still keeps popping it up even though i'm not calling it above

Sandman9

Email Link Pops Up Window In IE
I have selected text and used the mailto:xyz@xyz.com link to create an email link. I have tried static text and dynamic text and in IE, the mail client pops up, but so does an annoying window with "Navigation to Website was cancelled". It seems to work really well in Windows version Safari. Is there any way of getting rid of this extra window?

Thanks!
Jules

Java Menu Pops Under Flash
I'm creating a site and I'm using a java based dropdown menu from dynamicdrive.com (http://dynamicdrive.com/dynamicindex1/hvmenu/index.htm) It's a quality menu but if there's any flash on the page the drop downs appear underneath that flash. I was wondering if anybody guide me in the right direction on this.

thanks, shagPun

Sound Across Scenes & Changing Volume In Certain Scenes..
OK, this is kind of hard for me to explain but i'll try...

I want to have a continuous sound loop over various scenes, but I want the volume to increase (i.e. fade up - and i would like it to fade rather than just suddenly turn up) during one of the scenes.. and decrease (i.e. fade out) to 0 during another scene.

On top of that, I'd like the sound loop to stop altogether when they play another audio file on the movie - then the loop resume when they return to scene 1.

Anyone able to help me here - i know it's sounds complicated but I am sure someone knows how i can do this.

Any help would be much appreciated,

thanks,
Chris

How Do I Get The Volume Slider To Start At 50% Volume Instead Of 100% Volume?
I have code that sets the volume for the audio clips that I have loaded:

onClipEvent(load)
{
_root.soundstatus="on";
_root.mySound = new Sound(_level0);
_root.mySound2 = new Sound(_level1);
_root.mySound3 = new Sound(_level2);
_root.mySound4 = new Sound(_level3);
_root.mySound5 = new Sound(_level4);
_root.maxvolume=100;
_root.minvolume=0;
}

onClipEvent(enterFrame)
{
//if(_root.soundstatus=="on") {step=5}
//if(_root.soundstatus=="off") {step=-5}

//_root.maxvolume+=step;

if (_root.maxvolume>100) {_root.maxvolume=100;}
if (_root.maxvolume<0) {_root.maxvolume=0;}

_root.mySound.setVolume(_root.maxvolume);
_root.mySound2.setVolume(_root.maxvolume);
_root.mySound3.setVolume(_root.maxvolume);
_root.mySound4.setVolume(_root.maxvolume);
_root.mySound5.setVolume(_root.maxvolume);
}

I then setup a slider bar to adjust the volume:

onClipEvent (enterFrame) {
_root.maxvolume=this._x
trace(this._x)
}

Then I set the volume based on the dragging of the slider bar:

on (press) {
if(_root.soundstatus <> "off"){
startDrag(this, false, 1, 0, 100, 0)}
}
on (release) {
if(_root.soundstatus <> "off"){
stopDrag()}
}
The issue is that I cannot start the audio volume and slider at 50% of volume instead of 100%. Can someone please look at this code and help me understand how I can load this script so the slider volume starts at 50% not 100%? Thank you.

How Do I Get The Volume Slider To Start At 50% Volume Instead Of 100% Volume?
I have code that sets the volume for the audio clips that I have loaded:

onClipEvent(load)
{
_root.soundstatus="on";
_root.mySound = new Sound(_level0);
_root.mySound2 = new Sound(_level1);
_root.mySound3 = new Sound(_level2);
_root.mySound4 = new Sound(_level3);
_root.mySound5 = new Sound(_level4);
_root.maxvolume=100;
_root.minvolume=0;
}

onClipEvent(enterFrame)
{
//if(_root.soundstatus=="on") {step=5}
//if(_root.soundstatus=="off") {step=-5}

//_root.maxvolume+=step;

if (_root.maxvolume>100) {_root.maxvolume=100;}
if (_root.maxvolume<0) {_root.maxvolume=0;}

_root.mySound.setVolume(_root.maxvolume);
_root.mySound2.setVolume(_root.maxvolume);
_root.mySound3.setVolume(_root.maxvolume);
_root.mySound4.setVolume(_root.maxvolume);
_root.mySound5.setVolume(_root.maxvolume);
}

I then setup a slider bar to adjust the volume:

onClipEvent (enterFrame) {
_root.maxvolume=this._x
trace(this._x)
}

Then I set the volume based on the dragging of the slider bar:

on (press) {
if(_root.soundstatus <> "off"){
startDrag(this, false, 1, 0, 100, 0)}
}
on (release) {
if(_root.soundstatus <> "off"){
stopDrag()}
}
The issue is that I cannot start the audio volume and slider at 50% of volume instead of 100%. Can someone please look at this code and help me understand how I can load this script so the slider volume starts at 50% not 100%? Thank you.

Image Pops Slightly When Animating Alpha
I have an image with 2 keyframes. It starts at alpha 0 and goes to 100. But after I apply these alpha keys the middle of the image shifts over to the left slightly, the rest of the image is fine.

I have made sure that the image is on real numbers (no decimals) and tried absolutely every option to do with tweening and the image properties.

any help would be greatly appreciated.

Copyright © 2005-08 www.BigResource.com, All rights reserved