Sound Issues
alright. i have 2 errors.My first problem is my music control in my movie.i start off by defining my music withmy_music = new Sound();my_music.attachSound("musicc");my_music.start(0,1000);my_music.setVolume(13);and it works. it starts my music.then in my button i have on the on/off frames my_music.setVolume(0); and my_music.setVolume(13);My problem is that instead of just turning off the music. it turns all of the sound off.if someone knows the solution i would really appreciate it.My SEcond problem is... on the last scene of my movie. for some reason the sound does not play. when i watch my movie on the timeline, the music plays. but when i preview/publish it, the sound does not play. I checked and there is no actions turning it off. Once again if someone can solve my problem it would be a big help.EDIT:CS3 btwand i discovered that its not that specific scene that has sound issues, its that particular number of the sccene. if i switch its placee with another scene, that other scene now nolonger plays sound.
FlashKit > Flash Help > Flash ActionScript
Posted on: 01-04-2008, 09:56 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Sound Issues
i have an issue with this sound clip i'm using in flash i use it in the first of 3 scenes and when i continue on from the third scene to the 3rd scence via a button it repeats the sound over and over and over again and won't stop.... and i'm not sure why
Sound Issues
I am using MX
i made a movie with a preloader.... and sound.. i put the sound in time with the movie... btu when i upload the movie to a website it is out of time with the sound...??? why is this???
Sound Issues
I am trying to import mpeg sound files into a flash movie and not having much luck. The sound is a professionally recorded voice and sounds great through my media player but when I put it in flash and publish, the exe file makes it sound like he is talking through a tin can. What am I missing!?!?!?! I'm hoping one of you flash gurus out there can help me!!!
Hopelessly Lost,
jazzy5258
Sound Issues
Hey everyone,
Ok, this is the first time ive been working with a looping music clip. I made it in ACID, and when i exported it into an mp3 file, it adds a very small emptyspace at the very begining and end of the sound file. I tryed to loop it as an event, but it had that small pause. So I put it in an empty MC as a stream, and then put an action on the end to make it go back to frame 5(where the music accually started)... but even then it pauses... It shouldnt, but instead of going strait back to frame 5, it seems to take a moment to get back to frame 5...i have no clue how i would go by doing this... can anyone help me get a smooth loop?!?! Any help is greatly appriciated!
~Bill
Mac Sound Issues
Hi
Does anyone have issues where sounds work fine on a pc, but on a mac the sound that is meant to loop is the wrong one, even if the sound that is supposed to be looped is external and all others are imbedded?
Seems to some sort of bug on macs only. Does anyone have a way to fix this problem??
Sound Issues
Hi All,
I have a couple of questions regarding sound in MX...I have made an MP3 player for a friends website. It will play three to four streaming MP3s that I load using a loadSound object. This swf is then placed into an html file.
I want to have a sliding volume control, but cant figure out how to get it to work. I have looked over some tutorials and example movies, but its not clicking with me. Here is a link to download the fla file for reference:
http://www.cathughes.com/flash/jukebox.fla
My second question is: how can I make the MP3 play seamlessly across other pages when it is just a small swf embedded into multiple html files? Each time a user selects another page, it stops the music and forces it to restart once that page loads.
Any help is appreciated!
Thanks
Sound Issues
Hey People
I can get sound to work on a simple button using scripting.
on (release) {
snd = new Sound();
snd.attachSound("Chunka");
snd.start();
}
but when I attach this to one of my scripts for a button which changes on rollover and goes to another frame, it doesn't play. this is the script I have for this.
on (press) {
_root.gotoAndStop(3);
}
on (rollOver) {
gotoAndPlay(2);
}
on (rollOut) {
gotoAndPlay(3);
}
on (release) {
snd = new Sound();
snd.attachSound("Chunka");
snd.start();
}
any help is appreciated
David
Sound Issues
hi I'm having a sound problem in my flash project. I've added a sound at the beginning of a movie clip that I'm using as a page. It works fine but when i click on two other pages the sound plays at the beginning of them.
There is no reason why it should do this because the sound is only on that one movie clip. Do you know what is happening? it seems very randomm almost like there is a glitch with the swf file. can anyone help?
stuart
Sound Issues
Hi all,
I am creating a single webpage for a friend which requires when clicking on one section of the page an .mp3 to automatically play. There will also be a play/pause button and a stop button.
After advice I have managed to program the apparently correct actionscript however I am having no luck.
The current "play now" script I have is...
On the button: on (release) {
gotoAndstop(5);
}
In Frame 5: _root.mplaying = 2;
s1.loadSound("C:Documentslocationdown.mp3", true);
I you think think it would be easier I can email the .fla or give a link from where it can be downloaded.
Thanks,
Spug
[CS3] Sound Issues
So, I am producing this prototype maths program for children as part of my MSc project. It "talks" to the students by playing imported mp3s. I use the following AS3 code:
//Plays the first sound file that has been placed in the sounds array
function playFirst(): void
{
//If the array is empty, do nothing
if (sounds.length == 0)
{
return;
}
//Otherwise, remove the first sound from the array, and play it
else
{
var playSnd:Sound = sounds[0];
sounds.splice(0,1);
channel = playSnd.play();
//Add an event listener to run when the sound is finished
channel.addEventListener(Event.SOUND_COMPLETE, onPlayDone);
}
}
//Event listener that plays the next sound clip when the current one finishes playing
function onPlayDone(event:Event): void
{
channel.removeEventListener(Event.SOUND_COMPLETE, onPlayDone);
playFirst();
}
My problem is, the beginning few milliseconds of each mp3 seems to get chopped off, meaning that some words don't sound right at all. Anyone know why this is happening?
[MX] Sound Issues
I have this code on my first frame for music that plays
Code:
stop();
var snd = new Sound();
snd.attachSound("backsound");
snd.setVolume(100);
but I want later in a frame, on a button, to turn the volume to 0...I tried this code and it works but shuts all audio off and not just the sound.
Code:
on (press) {
snd.setVolume(0);
_root.gotoAndStop("L1");
}
Sound Issues
I'm using two sounds for this game coded in ActionScript 3.0.
The first sound "spacejet" plays well, but it doesn't loop to give my ship (Vulcon) that engine running effect.
The second sound is more complicated, because I am trying to trigger it at the same time as the laser shoots. I want the "blushat" which is the laser and the "phasershot" (sound effect) triggered by the same mouse click. After compiling the code I keep getting the response that "PhaserShot" is an undefined property.
I would appreciate any help on this.
Thanks!
Here's the source code:
var Vulcon:vulcon = new vulcon()
Vulcon.x = mouseX;
Vulcon.y = mouseY;
/*var loadSnd:URLRequest=new URLRequest("spacejet.mp3")
var thisSnd:Sound=new Sound();
thisSnd.load(loadSnd);*/
//import flash.media.SoundChannel;
var req:URLRequest = new URLRequest("spacejet.mp3");
var s:Sound = new Sound(req);
s.play();
//trigger mouse events
addChild(Vulcon);
stage.addEventListener(MouseEvent.MOUSE_MOVE, mousemove);
stage.addEventListener(MouseEvent.MOUSE_DOWN, shoot);
stage.addEventListener(MouseEvent.CLICK, playsound);
function mousemove(e:MouseEvent):void{
Vulcon.x = mouseX;
Vulcon.y = mouseY;
}
//firing laser
function shoot(e:Event):void{
var Blushat:blushat = new blushat();
Blushat.x = Vulcon.x;
Blushat.y = Vulcon.y;
addChild(Blushat);
Blushat.addEventListener(Event.ENTER_FRAME, moveBlushat);
}
function moveBlushat(e:Event):void{
e.target.x += 5;
if(e.target.x <= +10){
e.target.removeEventListener(Event.ENTER_FRAME, moveBlushat);
removeChild(MovieClip(e.target));
}
function playSound(e:Event):void {
var mySound:phasershot=new phasershot();
var myChannel:SoundChannel= mySound.play;
}
Sound Issues
I'm attempting to import .wav files into a small flash project for school. It seems that any .wav file I import to the library, flash will distort. Distort as in lower the tone, lengthen it, and make it last longer. Erm, example being the original file said 'Thank you' fine and dandy on the computer, but when importing it, the Thank you turns into a drawled out sound clip that's barely coherent.
I've asked my teacher and a flash-expert in class for help, and they're both stumped. I'm using Flash Professional 8, and the files sound perfectly fine on the computer.
Help would be greately loved...
Sound Issues
Hey everyone,
I have a problem with the way flash is handling my sounds. I'm running background music (looped) and then sound clips played throughout. This is for a game.
Below is my code. The problem is all the sound works but when sound is played at the same time, for instance if the background music is playing then a sound plays the volume of the background music increases/decreases.
Code:
//enemy dies
var enemydie:Sound = new Sound();
enemydie.attachSound("enemydie");
_root.enemydie.start();
_root.enemydie.setVolume(50);
//background music
var bg_sound:Sound = new Sound();
bg_sound.attachSound("bg_sound");
_root.bg_sound.start("","999");
_root.bg_sound.setVolume(15);
Any help is much appreciated.
-Dan
Sound Issues
Morning All,
This is where I am having a problem. I load a sound file and it runs for the expected time (ie my movie is 4 seconds long, the sound runs for 4 seconds). What I am trying to do is have a button on my movie so that I can skip the movie, this in effect should stop the sound from playing.
This is the code on my animation that loads the sound:
Code:
onClipEvent(load) {
IntroSound = new Sound(this);
IntroSound.attachSound("intro.mp3");
IntroSound.start(0, 1);
}
And it works perfectly, this is what I have put on my my button to skip through the movie:
Code:
on(release) {
gotoAndPlay("IntroMovie");
IntroSound.stop("intro.mp3");
}
Skipping to the next movie isn't an issue. My problem is that the sound keeps playing into the IntroMovie frames, the sound runs the full 4 seconds. I have tested it with the IntroSound.stop("") above the gotoAndPlay, yet it makes no difference.
What am I missing?
Thanks.
[AS2] - Sound Issues
I'm having a frustrating issue with sound and I have tried everything I can think of, so thats why I'm here seeking help.
The problem is I'm loading a sound and sometimes it will load and sometimes it wont.
Here is the code (I have taken out a lot if irrelevant extra stuff that I'm having the function do):
Code:
var my_sound:Sound = new Sound();
my_sound.onLoad = function(success){
if(success){
my_sound.start(0, 999);
}else{
trace("Error");
};
};
my_sound.loadSound(main[i].attributes.url);//all the XML stuff works fine.
Pretty straight forward code I think. I just cant figure out why it will sometimes call the onLoad function and sometimes wont, it seems random and I have no idea where to even start to find a solution.
Sound Issues
I'm having sound delays on my flash movie when it plays from a website. I have the sound event on "start" not "stream" but there is still a delay.
Any idea what I'm doing wrong and how I might go about fixing this problem?
- guru
Sound Issues In Projector
i have created a projector for PC using flash 5. If i were to close the projector using the windows (X) close button or the FScommand ("quit"), the sound still plays for a few seconds , sometimes a lot longer eventhough the projector is closed. This seems to be fine as an swf file. Any idea?
Sound Issues On Mac Browsers
I've got a large animation sequence that is giving very inconsistent results. It seems to happen most often on Mac IE browsers or Netscape (but has also occured on some PC's). The animation does work as designed on most machines.
The Symptom: Audio becomes unsynchronized with animations. OR Audio turns off and animation continues. OR browser completely turns off.
Has anyone had similar experiences and found any information as to what might cause this. Any help or suggestions for where I can find some info on this will be greatly appreciated.
Sound Synch Issues
I've created a number of content scenes and then added transitional scenes between them which have sound.
transition scene 1 > content scene 1 > transition scene 2 > content2 etc.
I've set Loop=0, Synch=Event. Once the transition scene is finished the movie jumps to the following content scene as intended but sound from the transition scene starts playing again. I think the sound is from subsequent transition scenes. When the movie reaches the following transition scene the sound doesn't play when it should.
There is navigation in the content scenes which jumps to frame 1 of the various transition scenes and when I click those the transition scene and sound plays as intended.
Anyone have any ideas as to what the problem is? Thanks.
Help Needed With Sound Issues
Hi,
I have 6 slides/frames in my movie and each one needs to play a narration/sound when the user goes to that slide. However, I need the previous sound to stop when the user decides to move halfway during a narration.
Ie: The user comes to the "home" slide and the "welcome" narration starts, but halfway through it the user clicks on the "contact" button to go to the "contact slide", I would like then want the "welcome" narration to stop and the "contact slide" narration to start.
Right now, I simply put an instance of each narration on the appropriate slide/frame and did the settings as shown below:
Sound: Track 1.wav
Effect: Fade in
Sync: Start
Loop: 0 times
But the previous sound keeps playing when the user advances to other parts of the movie and the becomes a jumble as the other sounds start playing.
Any help would be tremendously appreciated!!
(Thanks "bfly03" on the previous post - It worked
Best regards,
Zain
zainmagsi@hotmail.com
Sound To A Button Issues.... Help?
i am attempting to code buttons that will upload the music from the server. each time i test my movie I get this error message or something similar:
Error opening URL "file:///C|/Documents%20and%20Settings/Ren/Desktop/Blu%20Folder/foryou.mp3"
but all that jargon before the name of the mp3 file, i did not write. and why is it looking for an URL, when the music file is in the same folder that the index file is in?
Help... I can't find a tutorial
Sound Issues, Any Gurus?
Okay, I've got the bulk of a new site done but I'm having some sound issues--hopefully someone can point me in the right direction.
Basically, there's a simple intro with a sound loop that fades after x amount of loops. This works. But later it comes back when clicking random buttons throughout the site. It's all one single .fla, built using a number of different scenes, one after the other, starting with Intro, Home, 2, 3, etc.
Initially, when I noticed the sound coming back (when clicking random buttons on different pages/scenes), I went through every scene except the intro and in the first frame I put a key frame with the action "stopAllSounds" but I'm still having the same trouble.
Any help?
Here's the link: www.tuellertraining.com
Sound In Flash5/mx Issues
Hi.
My problem is the following,
I have a flash movie built in mx which uses
introSound=new Sound();
introSound.attachSound("intro");
etc...
to declare sound objects which are later controlled through further scripting with
_root.introSound.start(0,1);
introSound.onSoundComplete= function(){_root.midSound.start(0,4);};
midSound.onSoundComplete= function(){_root.dontuSound.start(0,1);};
dontuSound.onSoundComplete= function(){_root.midSound.start(0,4);};
etc
I'm exporting my swf as Flash 5 and it all works fine if you view the clip with Flash Player 6, but when you view it using Flash Player 5 there is no sound.
Is there a problem with using new Sound, on SoundComplete or function in Flash 5?
In any case it is being exported as Flash 5, so I don't quite understand why the swf behaves differently on different versions of the player.
This is happening on both Mac and Windows platforms.
Browser And Sound Issues
I have a flash 4 movie that needs to display in netscape and i.e. on an NT system. It will display in ie 5.5 after 3 minutes????
Also, the sound is not heard in netscape 4.76????
I know these are old browsers, but that is the requirement. Any ideas?
Global Sound Issues - Please Help
hello all...here is my situation:
-i have a master shell .swf that i am loading external content .swfs into a container MC
-on the master shell i have a sound off/on button
-the buttons that load these external files are in the shell swf
-on click, each loaded swf has its own specific streaming audio file that gets loaded along with it into another container MC
for example, say i click on about_us>>about_us.swf gets loaded into its container and about_usMP3.swf gets loaded into its own container, within the master shell swf
now, the on/off button will work perfectly, turning the audio all the way off or on within the loaded content swf BUT when you click on a new section, say contact for example, the newly loaded sound file overrides the on/off buttons actions
what i need is possibly a way to check to see if any audio is playing when you load a new section so if the sound was off on the previous section, IT STAYS OFF in the new one....i hope that all made sense
i fanyone has a solution or knows of a better way to approach this i would be so greatful...this is the last crease to iron out for our company site and i need to get this live...thanks for your time...i am posting the code separately below
Global Sound Issues
hello all...here is my situation:
-i have a master shell .swf that i am loading external content .swfs into a container MC
-on the master shell i have a sound off/on button
-the buttons that load these external files are in the shell swf
-on click, each loaded swf has its own specific streaming audio file that gets loaded along with it into another container MC
for example, say i click on about_us>>about_us.swf gets loaded into its container and about_usMP3.swf gets loaded into its own container, within the master shell swf
now, the on/off button will work perfectly, turning the audio all the way off or on within the loaded content swf BUT when you click on a new section, say contact for example, the newly loaded sound file overrides the on/off buttons actions
what i need is possibly a way to check to see if any audio is playing when you load a new section so if the sound was off on the previous section, IT STAYS OFF in the new one....i hope that all made sense
i fanyone has a solution or knows of a better way to approach this i would be so greatful...this is the last crease to iron out for our company site and i need to get this live...thanks for your time...i am posting the code separately below
Sound.position Issues
Site:
http://www.sonburst.com/nng/
Explanation of Problem:
the timer randomly skips seconds
Fix:
Currently Unknown but working on
More InDepth:
/*
do this to get acutal seconds out of the output which are millisecons
*/
var pos = Math.round(sound.position/1000);
When you output this the seconds roll along every second in the output panel and look much like this...
====================
0.334
1.454
2.556
3.662
4.692
====================
and by using the Math.round function, it will sometimes end up on a second that is later much like this
====================
0
1
2
3
4
5
7
====================
where you obviously can see 7 should be a 6, but because of the rounding, it rounds up....
please let me know if you have any ideas
axel@cfwebtools.com
http://axel.cfwebtools.com
Sound Issues And Fixes
I have had problems with strange popping noises in Flash when using sound. Here is a link that I thought may help some of you. Sound card issue.
http://www.macromedia.com/support/fl...soundclick.htm
Another workaround was to have a silent loop playing in the background. For some reason, if another sound was already playing, it didn't happen, although it delayed the sound by about a frame IIRC.
I just bought a Mad Dog (Entertainer) 7.1 and it fixed the problem. For more serious FX audiophiles, yuo may want to try the 2 following excellent audio cards: M-audio Audiophile 24/96 or maybe an Echo MIA MIDI. These work well with ProTools etc. Note: not made for gaming or internal waves etc. These are strictly higher-end DACs and ADCs.
Hope this helps someone. Good luck!
HK
Sound Sync Issues
i am exporting PNG sequences from Flash to be recompiled in After Effects. when i export the audio from the same timeline, the audio ends up being slightly longer than the PNG sequence when i bring it into AE (and subsequently slightly out of sync). my FLA is at 30fps as well as my AE file.
Flash CS3
windows XP
Xml-sound-listbox Issues
I get this error when I select an item in my listBox:
PHP Code:
Error opening URL "file:///C|/Documents%20and%20Settings/adam/Desktop/Working%20file%20browse%20%2B%20xml/undefined"
that url is the location of my swf file and xml doc, but not the location of my songs, which are defined in the xml doc, which looks like this:
PHP Code:
<song><songName>Dave Brubek - Take Five.mp3</songName><songLocation>C:Documents and SettingsadamMy DocumentsMy MusicDave Brubek - Take Five.mp3</songLocation></song>
this is what I have in actionscript:
PHP Code:
function getPlaylist() {var playlist:XML = new XML();playlist.ignoreWhite = true;playlist.load("playlist2.xml");playlist.onLoad = function() {//trace("Loaded");var baseNode = this.childNodes;var sLabel, sData;for (i=0; i<baseNode.length; i++) {sLabel = baseNode[i].firstChild.firstChild.nodeValue;sData = baseNode[i].firstChild.nextSibling.firstChild.nodeValue;//trace(baseNode[i].firstChild.nextSibling.firstChild.nodeValue);//songlist_lb.addItem({label: sLabel, data: sData});songlist_lb.addItem({label:sData,data:sLabel});}}} myselection = new Object();myselection.change = function(ListEvent){volume = 100;var theSong = songList_lb.getSelectedItem().data;mySongs = new Sound ();mySongs.loadSound (theSong, true);mySongs.setVolume (volume);}songlist_lb.addEventListener("change",myselection);
Any idea's why this is happening ?? Im clueless as to why Im getting this error....
Technical Issues---Sound
I am considering using MP3's for an upcoming project.
I have always been able to play MP3's ...I cannot remember a time when I could not.
Does anyone know for sure if a plug in for MP3 is packaged with the newest browser updates?
The upcoming project must be playable across a network of computers without needing to download any plugins.
The end-user has the latest browser --- but no access to download anything on the internet.
Thanks,
Janet
Sound Volume Issues
I am using about 24 different sound clips (mp3 files) in my flash piece, all loaded using the attachSound() method.
The problem I am having is that the volume of the sound output (its all voiceover) can vary by about 10-25%, even for the same clip. I will play one sound, then the next one loads and it blasts through the speakers. The next sound will load and it is not as loud. I can go back to the sound that blasted and it seems to be back to normal.
I have tried using setVolume() when I load all the sounds to try and equalize them (setting the level to 75), but it doesn't seem to help.
Anyone else have anything like this happen?
MP3 Sound Issues Post V6
Hi all, I have a jukebox type mc where the user can hit the tune button and it will loop thru the 'sounds' folder and play the next mp3 it finds in numerical order e.g. 0.mp3, 1.mp3 etc
It's been working fine for ages but I notice that it wont work if I publish for anything other than flash 6???
I now have a cd based projector.exe project to make and would like to use the same code but Iam worried it wont pick up the files in the directory.
Do I have to specifiy a url instead of a folder name post 6??
countdowner = -1;
function noise(){
mymusic=new Sound();
mymusic.onload = function(success:Boolean) {
if (success) {
tune._alpha = 100;
mymusic.start(0,500);
shownum.text = countdowner;
}
};
mymusic.loadSound("/sounds/" + countdowner + ".mp3", false);
}
Sound Performance Issues
Hi all,
I'm developing this game: http://www.gamestunt.com/CSG/
There's a bit of a problem with the present bounce sound - if you play the game, you'll notice a tiny pause when the present bounces off the plane which is introduced by me playing the sound:
Code:
boing.play (0 , 0);
Is there anything I can do about this?
Any help appreciated
Lar
Xml-sound-listbox Issues
I get this error when I select an item in my listBox:
PHP Code:
Error opening URL "file:///C|/Documents%20and%20Settings/adam/Desktop/Working%20file%20browse%20%2B%20xml/undefined"
that url is the location of my swf file and xml doc, but not the location of my songs, which are defined in the xml doc, which looks like this:
PHP Code:
<song><songName>Dave Brubek - Take Five.mp3</songName><songLocation>C:Documents and SettingsadamMy DocumentsMy MusicDave Brubek - Take Five.mp3</songLocation></song>
this is what I have in actionscript:
PHP Code:
function getPlaylist() {var playlist:XML = new XML();playlist.ignoreWhite = true;playlist.load("playlist2.xml");playlist.onLoad = function() {//trace("Loaded");var baseNode = this.childNodes;var sLabel, sData;for (i=0; i<baseNode.length; i++) {sLabel = baseNode[i].firstChild.firstChild.nodeValue;sData = baseNode[i].firstChild.nextSibling.firstChild.nodeValue;//trace(baseNode[i].firstChild.nextSibling.firstChild.nodeValue);//songlist_lb.addItem({label: sLabel, data: sData});songlist_lb.addItem({label:sData,data:sLabel});}}} myselection = new Object();myselection.change = function(ListEvent){volume = 100;var theSong = songList_lb.getSelectedItem().data;mySongs = new Sound ();mySongs.loadSound (theSong, true);mySongs.setVolume (volume);}songlist_lb.addEventListener("change",myselection);
Any idea's why this is happening ?? Im clueless as to why Im getting this error....
PRELOADER And SOUND LINKAGE ISSUES
OKay here's the thing,
i'm trying to preload a a movie, which has the sounds setup to be exported to symbols (LINKAGE);
now when i don't link the sounds; the preloader works freakin sweet
but when i link the sounds the preloader takes up half the load, so the preloader animation and loadbar doesn't show up at all till it's like at 50% i.e.
if the file is 94kb then the loader(in the bandwidth profiler) shows up as 47k so nothing shows up on the screen until those 47kb loads up.. and then the preloader is at least 50% done by that time....
i need help, to get around this
here is the code as it is in my actions layer:
------FRAME 1----------
loadpercent = "0%";
loadBytes = "0 of " + Math.round((_root.getBytesTotal() / 1024) * 1) / 1 + " Kb";
-----FRAME 2----------
loadPercent = (Math.floor(_root.getBytesLoaded()/_root.getBytesTotal()*100)+"%");
loadBytes = (Math.round((_root.getBytesLoaded()/1024)*1)/1+" Kb of "+Math.round((_root.getBytesTotal()/1024)*1)/1+" Kb");
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
loadPercent = "100%";
loadBytes = (Math.round((_root.getBytesLoaded()/1024)*1)/1+" Kb of "+Math.round((_root.getBytesTotal()/1024)*1)/1+" Kb Loaded");
gotoAndPlay ("main", "start");
}
-------FRAME 3------------------
gotoAndPlay(2);
the loadpercent and loadbytes display within text boxes and the loadbar works through _xscale
please help me.. how can i get the preloader to only be the 2-4k that it is, and display the full loadbar with sound linkage active.. HELP!!!!
Sound Issues When Loading A SWF Into Level1
Hello,
I have a SWF which I've loaded a new SWF into on level1.
Everything works fine except the sound doesn't play.
Why is this?
When I load the SWF not in a new movie, here's the sound variable output:
"Variable _level0.sfx = [object #4, class 'Sound'] {
duration:[getter/setter] 1019,
position:[getter/setter] 650
}"
When I load it inside a movie, here's the sound variable output:
"Variable _level1.sfx = [object #4, class 'Sound'] {}"
Here is how i'm initializing and playing the sounds:
_root.sfx = new Sound();
_root.sfx.attachSound("soundname");
_root.sfx.start();
Newbie Sound Issues (Flash MX)
I'm creating a presentation for my company in Flash MX, and I've had some moderate success using one of the built-in templates. The basic objective of the presentation is to teach people how to use a piece of software, using animated screenshots and a recorded voice-over. Now, the way I currently have this designed (and I imagine I'm going the wrong direction here), I'm using a sort of slideshow template, with arrow-buttons to navigate back and forth between frames. The template was designed more like a powerpoint presentation, so I may be trying to smash a square peg through a round hole, but I'm trying. What I've done is to create movie symbols for each frame, and inside of each movie/symbol, I've created what is essentially a stand-alone chapter. So far the individual chapter creation isn't too hard - simple layers with simple animations, no interaction.
So, now to the problems:
1) I'm been recording my voice-overs in .wav and converting to MP3 before importing, but for some reason the program doesn't seem to want to import larger mp3 files. Is there a limitation I haven't found?
2) When navigating back and forth between frames, the sound does not stop and start properly. What it should do is when I move from frame 1 to frame 2, the sound from frame 1 should stop, and the sound for frame 2 should start. I'm not using scenes (although I probably should be) because the tutorials I read first and the template I was using had no scenes in them. I'm not averse to even a drastic action at this point - I'm coming down to the wire with my boss breathing down my neck expecting me to be a genius programmer.
Any thoughts?
On Mouseover Sound Control Issues
I am having a hellish time trying to figure out how to get sounds in the movie I have to stop when the mouse is not on the banner I am making.
I have:
A generic title screen, with a blank button that loads a movie clip on the over position the clip plays fine on mouse over. but it plays the sound even when you are not over the banner.. I want it to stop the movie, and stop all sounds when I take the mouse off the banner. Right now the banner just keeps starting the sounds over and over if you run your mouse across the banner a bunch of times.. Doubles up the sounds and it is awful.
If anyone can help with this issue I would appreciate it.. I have searched the database and cannot find exactly what Im looking for.
Media
SlideShow And Sound Issues For NEWBIE
Hi,
I am working on a slide presentation and I am having this problem.
I have created a Layer on a slide in a slideshow and attached an MP3 file to that layer. When I advance the slide presentation to the next slide the sound from the first slide continues to play until it completes. I would like the following to happen and I dont understand how to do it.
I would like to have a sound attached to a slide and when I advance the slide I would like the sound on the first slide to stop and the sound on the second slide to begin.
All help is greatly apperciated. Remember I am a newbie and you can dumb it down as much as you want.
Note: I am using FLASH PRO MX and started my project using one of the provided templates
Sound Issues With Flash 8 ActionScript 2 - Please Help Me
Hi all,
I'm a newbie, so please don't "pitty the fool" lol
Ok,
I'd like to have a background sound start on the first frame, and then fade to zero when I click one of either 6 buttons, which are situated inside a motion tweeing movie clip. So, I guess the same code could apply to all of them really, right?
Also I'd like to have audio on my buttons on an "on(rollOver)", but then code on the other buttons, so when I move to the next all the others stop playing.
Please note, all my audio tracks are imported into the library, as I wish to keep them there instead of externally loading them (part of one task I have to learn for an assignment - linking audio to actionscript).
Anyway, that's it!
I do hope one of you experts can help me asap, as this is for an assignment for uni, which needs to be out the way so I can do more fun writing assignments lol
Cheers in advance to anyone that can help with these two big problems of mine.
Thanks
Ash
Sound Loop Issues On Web Site
My sound button (off/on) works great, but everytime I click on a different button with in the site a new sound loop starts. Before you know it, I have the same track playing four different times at the same time.
help!
Suffering Badly From Sound Issues
I'm getting desperate.
The sound in my movie gradually falls behind as the movie proceeds.
At first I just adjusted the sounds in the timeline, but it's gone too far.
At this poin in the movie, the sounds are fifty frames off. It's aggravating. This next scene I need a sound at the very beginning of the scene, but I can't do that, as I need to have fifty soundless frames before I can play anything or it's way off.
I'm asking everywhere and using all kinds of suggestions.
Nothing's working.
Help?
Sound Sync Issues With Other Events
I am going through and working on a test project for learning ActionScript3.0.
The project that I am doing is creating a simple Video Draw Poker game. And everything is going swimmingly. Until I came to the point of adding sounds.
As a little background...
Basically, what I am doing is not putting anything on the timeline or stage, and I am generating everything via ActionScript. I am handling the cards as sprites, updating their bitmaps when I change their graphics. The cards and sounds are already loaded into the library (and linked to Export for ActionScript), so I am not loading sounds and graphics on the fly.
When I press the DEAL or DRAW button, I set up a list of presentation actions, where I A)play a card "fwip!" sound, directly followed by B)updating the bitmap on the card. This is done quickly in successive order to each of the five cards.
What happens however, is that the "fwip!" sound "loses sync" with the graphics as they are changing, and they fall behind, as if they are stacking up in a queue or something. For example, even though I trigger the bitmap change for the 5th card and the sound effect for it at the same time, the sound effect happens about 1/3 of a second late. However, the first card and sound effect are completely sync-ed.
So I figured that they are waiting for the previous fwip! sound to play out. However, if I trigger all the cards to flip at NEARLY all the same, it's clear that all of the Fwip!s mix with each other.
I've tried numerous different approaches, including going back and forth between using timer events, and ENTER_FRAME events, but the results all seem to be the same.
The best that I can come up with is that whatever controls the mixing of sound channels is getting "pokey" as sounds mix together. Or at least that's my concept of what's going on.
Anyway, is it possible for anyone to shed some light on this? I can provide code samples if requested.
Sound Issues With Flash 7 & 9 On Linux
I am unsing Kubuntu with Kernel 2.6. If I turn off artsd Flash 7 & 9 will play sound just fine with Firefox 2.0. However, in this mode some other programs will not make sound (and of course there is no sound mixing). If I turn on artsd with either OSS or ALSA, I can't make Flash 7 or 9 make any sounds. it's possible I don't know how to configure it correctly.
This is really annoying. Your support site does not address any of these issues.
Sound Issues - Captivate In Flash
I've been working on a flash demonstration app for a client which simulates a user interacting with a website. I've captured all the interactivity using captivate in chunks and have built a container flash file to house the segments of demonstration. I have been having a few teething problems with Captivate and the way it deals with sound.
The demonstration has a number of audio clips included in the captivate project. When i load the exported captivate swf into flash, it does not recognise the sound object and therefore no sound is played. When the swf is played on its own, sound is fine, its just when its loaded into the template movie. The problem here is that Captivate seems to generate the sound object in a strange way. It creates it using the following code;
var soundHandler:AdobeCaptivate.rdSoundHandler = new AdobeCaptivate.rdSoundHandler();
Is there a simple way I can get my template movie to play all sounds being played in the nested .swf? I have tried placing the audio clips in the library of the template file but this makes them play as soon as the .swf is played.
A problem related to this is the way captivate deals with all it's audio clips. By default it "exports for Actionscript on the first frame". This means any pre-loader I build only initialises once flash has loaded all captivates audio and therefore the user has a blank screen until all audio has loaded (pre-loader kicks in around 40%).
The only way i can see around this is to keep the actual content separate from the template movie as I have explained above but then i am faced with this sound issue!
Anyone have any ideas?
Cheers.
[mx] Stupid Sound Looping Issues
Alright, so Macromedia says Flash can't really loop mp3s seamlessly, and suggests importing WAV files. But if you're using AS to load an external sound at runtime, this is not possible. So I ask you, coding geniuses, is there a work-around to the silence that Flash adds to the beginning (end?) of an mp3 file, thus causing it to loop incorrectly (I've already tried adding a decimal to the secondsOffset and it sounds awful).
Thanks in advance.
|