Sounds Loading Too Soon In Flash CS3
I have a flash movie that has 11 scenes and the sounds are loading about 1 scene too early. I have tried switching between the the Stream option and the event option too see if there is a difference, but nothing changes (for better or worse). Each scene plays fine alone, it's just when the entire movie is exported or previewed that the problem occurs. I haven't been able to find any info online about this problem, and all my co-workers are stumped as well. This is my first animation in flash cs3. Is there something I'm missing? any info would be a big help! Thanks in advance!
FlashKit > Flash Help > Flash Newbies
Posted on: 10-04-2007, 12:27 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Stopping Flash Loading Sounds On First Frame
Not sure if anyones had this problem before, but I added a preloader to a flash project by inserting a load scene before the main movie scene.
The main movie contains sound clips.
The preloader does not work (well, the code etc does, its identical to this).
It seems, upon looking at the bandwidth profiler, the 1st frame is 512kb big whereas the 2nd frame (the main bit) is 27kb.
The preloader is on the first frame and upon ctrlentering it shows a blank screen where the preloader should be, loads, then at the last minute flashes up with the preloader at 100% and moves onto the movie.
My guess is we need to tell flash not to have all the weight on the first frame.
(because on the kirupa example, the first frame is 534bytes... the preloader, and the 2nd frame is however many kb, the image)
Any suggestions appreciated.
EDIT: I just figured out to stop the sounds loading on the first frame - properties on the sound then untick 'export on first frame'
BUT my sounds now dont work
Loading Sounds Into Flash 5 And Playing From An External Source
Dear ActionScripters,
Can anyone halp me with this problem of how to load a sound into Flash 5?
I would like if its possible to click on a button in the main movie and from this Flash to load and play from and external source an mp3 file. I would like not to have it in the main movie so that file size of the .swf can be keot as small as possible.
Any help on this will be gratfully recived
notatoy signing off
out
Problem Loading Sounds When Playing Flash Film In Internet Explorer
I'm trying to create a cd with some flash movies, that load their contents dynamically and when i run my files in the flashplayer everything works fine, including the sounds that are loaded to play, but if i try to open my swfs in internet explorer or another browser, the sounds are not even loaded, as well as some text contents. can anyone help please? this files are to work from the cd and not through some internet server.
Thanks
Loading Sounds
Does anyone know if it is possible to load a sound in like you might a movie clip??
Nice one
Loading Sounds- Is It Possible?
Hello again
Does anyone know if it is possible to load sounds into Flash using Actionscript as you would a movie (using LoadMovieNum). If it isn't possible, can you use a fsCommand to run something like media player with a switch in the cpommand line that tells it to open and play a particular sound?
Nice one
Loading Sounds
When my website loads, it tries to load all of the sounds at the very beginning, even before the preloader. As a result, it takes forever for even the preloader to show up. How can I choose when to start loading the sounds?
Loading Sounds
I have about 10 loops I'm going to put on my webpage. Each will have a preview button and a download button. When my page loads I want to make sure it does not load all the loops at once I think that would take a while for my page to come up. So how would I put the preview sound on their would I load them as a movie clip? not sure. If I put a stop action before my sounds will that help
[Edited by Drloops on 05-21-2002 at 11:10 PM]
Loading Sounds
In the linkage window I assigned an identifier to my sound to use it with action script, but what is the way to load it in another frame instead of the first?
Thanks
Loading Sounds
What would be the best way to load musicsounds I'm going to have about 10 music players on my site. Should I use the load and unload movie or should I use the goto and play. I just want to make sure all my sounds are not loading when someone comes to my page. That could run up into some time for the 56kers out their. Thanks for the help
Loading Sounds
Can anyone help me please?
I want to play a music and keep it going (as sort of an intro to my main movie) until it finish. Then i want put an action to a button that plays another music (say a soft one for a background) but not until as the intro music finishes.
When i click the button and the intro music is still playing... the second music must NOT play.
I did this in MX. Is my script correct?
on (release) {
if (onSoundComplete==false) {
gotoAndPlay(151);
}
getURL("file.html", "Frame1");
}
{
I need an immediate help. Thanks.
Loading Sounds
I have a movie that I am loading a swf into, which contains a sound loop.
However I want the main swf to load independantly of the sound loop, as oppose to the main maovie not loading untill the sound loop does. I have a movie clip on my main stage which has:
onClipEvent (load) {
loadMovieNum("loop.swf", 1);
}
I assume this is wrong for what I want to do. Maybe putting a preloader onto the loop swf would work?
Any suggestions?
Thanks.
Loading Sounds?
Hi there. How would I load sounds into a movie clip from an external place. eg loading a flashkit sound loop from an mp3 file in the same dir.
So if a user clicks a button-this sound is played from the external source. Understand me? If more details needed just say. Thanks. jason
Loading Sounds
I have to say i feel a bit dumb asking this question.
I've been working with flash for quite some time now but curiously enough I had never needed to use sounds on my files. However I'm now trying to use a background music file (just to make my presentation more friendly) but can't pull it off.
Here's what I've been doing: I insert the mp3 file I want to the library, then I open the Library Window (Window/Library) and drag and drop the file i want to the frame where i want it to start playing... and that's it, after that I run the file but nothing happens. I've checked and made sure the mp3 file is on the same folder. I've also been trying changing the sound properties from the frame property window, but still...nothing!!!!. Can anyone please give me a hand??!!!!!
Thanks a lot
Gabriel
Sounds Not Loading
Hi
Using MX 2004 , i have created a presentation (slideshow) and have a looped mp3 running through it and sound effects on button presses and slide transitions, everything works fine.
I have also created a small movie which acts as a preloader for the presentation, this simply contains the "loader" component and "progressbar" component.
At first glance everything is fine, the preloader loads up the presentation and the progress bar indicates what it should, however, once the presentation is loaded and you interact with it by clicking the next or previous buttons there are no sound effects.. the mp3 is playing in the background as it should but the sound effects re missing... any ideas?
Thanks
Dave
Loading Sounds
I've always just threw some sound in my timeline but this time I wanted to try something different and use the load sound option. It works fine on my desktop because it grabs the sound from my desktop but where do I put the sound when I upload to my ftp space?
Loading Sounds
I'm working on this game and I have one of five different sound clips play when the user clicks the mouse. On an earlier frame I have a pre loader but I don't think it is loading the sounds because a lot of times it skips the sounds. I don't really understand why it isn't working right. Any suggestions? Also I'm new to actionScript so any suggestions on how to clean this code up a bit would be much appreciated.
Thanks,
Joe Longstreet
Attach Code
//Sound Effects on Frame 3
////////////////////////////////////////////////////
var gunReq1:URLRequest = new URLRequest("357mag.wav");
var gunReq2:URLRequest = new URLRequest("44magnum.wav");
var gunReq3:URLRequest = new URLRequest("Gun_357mag.wav");
var gunReq4:URLRequest = new URLRequest("Gun_44magnum.wav");
var gunReq5:URLRequest = new URLRequest("Gun_Shot2.wav");
var gun1:Sound = new Sound();
var gun2:Sound = new Sound();
var gun3:Sound = new Sound();
var gun4:Sound = new Sound();
var gun5:Sound = new Sound();
gun1.load(gunReq1);
gun2.load(gunReq2);
gun3.load(gunReq3);
gun4.load(gunReq4);
gun5.load(gunReq5);
function soundEffects(event:MouseEvent):void {
var randomSound:int = Math.floor(Math.random()*5) + 1;
if (randomSound == 1) {
gun1.play();
} else if (randomSound == 2) {
gun2.play();
} else if (randomSound == 3) {
gun3.play();
} else if (randomSound == 4) {
gun4.play();
} else if (randomSound == 5) {
gun5.play();
}
}
//Preloader on Frame 1
/////////////////////////////////////////////////
stop();
addEventListener(Event.ENTER_FRAME, updatePreloader);
function updatePreloader(event:Event):void {
var loaded:Number = root.loaderInfo.bytesLoaded;
var total:Number = root.loaderInfo.bytesTotal;
var percent:int = loaded/total * 100;
if (loaded == total) {
removeEventListener(Event.ENTER_FRAME, updatePreloader);
gotoAndPlay(2);
} else {
preloader.gotoAndStop(percent);
preloader.status_txt.text = "loaded: " + loaded + "/" + total + " = " + percent + "%";
}
}
Loading Sounds?
I have a little sound player that works fine but I would like to know 2 things
1. how do I load the sounds as and when I need them so that they dont all load at the beginning? as this has a big effect on the initial loading time???
2. how do I show load bar for this??
on (release) {
spSound.stop("cool 1");
spSound.stop("cool 2");
spSound.stop("cool 3");
spSound.stop("world");
spSound = new Sound(this);
spSound.attachSound("cool 1");
spSound.start(0, 99);
}
please help me and also any tips on making a sound player would be cool
Loading Sounds
Im attempting to load a mini mp3 player into a site and when you select the first song everything seems to work fine but when you select the second song it just starts the first song over from the beginning. here is the part of the code that is giving me the problem.
function songlistChange(e:Event):void{
sc.stop();
if(!isPlaying){
var song:String = new String(songlist_mc.selectedItem.data);
var loadsong:URLRequest = new URLRequest(song);
music.load(loadsong);
music.addEventListener(ProgressEvent.PROGRESS, musicProgress);
trace(song);
playfromlist();
}
else{
var music:Sound = new Sound();
var song:String = new String(songlist_mc.selectedItem.data);
var loadsong:URLRequest = new URLRequest(song);
music.load(loadsong);
music.addEventListener(ProgressEvent.PROGRESS, musicProgress);
trace(song);
playfromlist();
}
}
if anyone can help thank you!
Loading Sounds
ok Ihad placed a thread about a preloader I could not get working right, which was due to me linking sounds out of the library. It seems when you do that the flash player creates a frame 0 even though it says export in the first frame it realy does not it loads as frame 0 then goes to frame 1. Not allowing my pre loader to start at 1 but rather at 50%. With a blank screen until that point. I don't know a way around that so I tried to load a seprate swf with movieclips and the sound linkages in there. Works fine only if you load into level 0. Which obviosly blanks the screen out again. I have sound loops that sound like crap if I place them on the stage to loop. So that is out. Itried playing with loadSound but had no luck with that eighther. Just wonderig if anyone knows what I may be able to do ar what I may be missing. I don't know why this should be so difficult then again its probably me making it difficult.
Loading Sounds Again...
Howdy Y'all...I'm a newby, and I don't know if you've posted this one anywhere...How do I make a song (MP3) play from a simple button? Or better yet, how do I make a list of songs on a page so that when you click on the song, it will trigger the song?
I'm having trouble with the tutorial on the Russell Chun book, Macromedia Flash Advanced...little help anyone?
Loading Sounds In External Swf
I'm making audio themes on my site, so that you can change the BGM and rollover sounds to another themed set. The filesize of these audio themes is quite large, so I want to load them in as external swf's, so the main timeline doesn't take years to load.
I can't get it to load the sounds in properly, I'm using loadmovie (theme2.swf, _level1) at the mo, and the sounds are attached to the external swf using linkages and attachSound.
Any ideas?
Loading Sounds One At A Time
I'm publishing my first piece with a LOT of small sounds. I was wondering, when does a Flash movie actually load the sounds on the user's side? I want to know what command I can use to load say 1 sound every frame during a little preloader. Is it the "new Sound()" command? I'm guessing this will be an easy one for someone to answer. All help is appreciated- thanx.
Dust
Loading External Sounds
ok i have a little jukebox or whatever you want to call it on my site...it has play, stop, back, and forward buttons...i want to know exactly how to make an external mp3 file load when u press play...to make this easier on me the file name is http://alfpogsmusic.tripod.com/diman...s.mp3...please help me!!! ive been trying to figure out this problem for almost a whole day now..thanks...btw if u couldnt tell i am somewhat new to this whole actionscript thing
Loading External Sounds
ok i have a little jukebox or whatever you want to call it on my site...it has play, stop, back, and forward buttons...i want to know exactly how to make an external mp3 file load when u press play...to make this easier on me the file name is http://alfpogsmusic.tripod.com/diman...s.mp3...please help me!!! ive been trying to figure out this problem for almost a whole day now..thanks...btw if u couldnt tell i am somewhat new to this whole actionscript thing
Loading Exported Sounds
I like to do my sounds with Scripting (rather than just throwing them in the timeline).
Does anyone know how to make a sound that has been exported for actionscript, load with the rest of the movie? I tryed unclicking the "load on first frame" button, but then i doesn't load at all.
Thanks for the help in advance
Probs With Loading Sounds
ok, i have a main timeline with other movieclips targeted from it and the main background music is placed on it too. my problem is that when i go into a clip then back to my main timeline i get another instance of my music playing over the top of the first. i could stop all sounds but then my music would just be stopping and starting on each new page, rather than neatly looping.
any help much appreciated
cheers
lev
Loading Sounds Dynamically?
I want to have a few different sound loops for background music that the user can select from. I would have 3 buttons called sample1, sample2 and sample3. Is there any way to load the sounds from a URL instead of importing them as part of the flash movie? This way, I can change the sounds periodically and just replace the sound on the server keeping the same URL to pull the sound from. Is this possible and if so does anyone know how to do this?
Thanks.
New Problem While Loading Sounds
Hi, I've managed to insert a sound file (mp3) in my flash document. However when I run it it only plays for like 3 seconds, then It's off again. Does anyone know what the trick is.????
The sound properties I use are Sync: Stream, no Effect, and a loop of like 80 in order to have it repeat during all the time I need it to.
THANKS A LOT FOR ALL YOUR HELP
Attaching Sounds In One SWF And Then Loading Into Another?
Forgive the lengthy post: I am trying to make a music player for a site...actually i have one that's functioning but not perfectly ( www.teetfist.com)
Anyway, I am now trying to do it by loading a SWF containing the sound into the main movie. So in the SWF I'm loading I have created the sound object, attached the sound and started the sound- it all works fine when I test that movie.
Then when I try to load that movie into my main movie it doesn't work. Is it because the sound being exported for action script isn't exported to the main movie?
Could this post be any less articulate?
If anyone has any suggestions, they'd be much appreciated. Even if they could direct me to some FLAs with good players. The one I have on the site now just loads SWFs for each track with a stop action on the first frame and the sound in frame 2 (with a bunch of frames after it). At the end of all those frames, at the end of the sound there is a function call to load the next track. I used to have the sounds in these clips streaming but it was really doing a number on the animation throughout the site and was causing loadMovie actions to be skipped in crucial areas. So I changed them to sync sounds, but now the call to the next track function isn't really in the right place (due to the behavior of sync sounds). So I was thinking of attaching the sounds with the sound object so i could use the on sound complete action...
Loading External Sounds
I would REALLY appreciate anyones help with this.
Thank you in advance.
I need to be able to let the user choose on of three songs, and have it loop indefinitely. Im using a new sound object so that I can control the loop. from what I understand, I have to set the second parameter in loadSound to false so that it is an event sound, so that I can set the loops to something high (like 999). But what I also understand is that I can t call the start() until the whole mp3 is downloaded, so I used setInterval to check and see if:
(soundloop.getBytesLoaded()>=soundloop.getBytesTot al()){
startsound();
it works locally, but not on the server. my only assumption is that the setInterval is not working and the startsound() is being called before the whole mp3 file is downloaded. am I doing this right? does anybody know? if you think you do, please help a brother out. ive been messing with this for so long, its a bit sloppy and getting bigger. any ideas on how to condense this are also welcome. heres the big sloppy shabang:
this.onEnterFrame = function() {
changeVolume();
}
function startsound() {
trace("started");
soundloop.start (0, 9999);
soundloop.setVolume (currentVolume);
}
function playsound() {
soundLoop.loadSound(whichsound, false);
myInterval = setInterval(checksound, 10);
function checksound() {
if (soundloop.getBytesLoaded()>=soundloop.getBytesTot al()){
startsound();
trace("loaded");
clearInterval(myInterval);
}
}
}
soundLoop = new Sound();
whichSound = "sound1.mp3";
playsound();
whichSelected = onebut;
whichDigit = one;
stopButton.gotoAndPlay("off");
playButton.gotoAndPlay("on");
playButton.enabled = false;
whichSelected.enabled = false;
onebut.gotoAndPlay("selected")
one.gotoAndPlay("selected")
isPlaying = true;
onebut.onRelease = function(){
if (isPlaying == false) {
_root.rainbow.gotoAndPlay("on");
}
isPlaying = true
whichSelected.gotoandplay("off");
whichSelected.enabled = true;
whichDigit.gotoandplay("unselected");
onebut.gotoAndPlay("selected");
one.gotoAndPlay("selected")
whichSelected = onebut;
whichDigit = one;
stopAllSounds();
soundLoop = new Sound();
whichSound = "sound1.mp3";
playsound();
stopButton.gotoAndPlay("off");
playButton.gotoAndPlay("on");
whichSelected.enabled = false;
playButton.enabled = false;
}
twobut.onRelease = function(){
if (isPlaying == false) {
_root.rainbow.gotoAndPlay("on");
}
isPlaying = true;
whichSelected.gotoandPlay("off");
whichSelected.enabled = true;
whichDigit.gotoandplay("unselected");
twobut.gotoAndPlay("selected");
two.gotoAndPlay("selected")
whichSelected = twobut;
whichDigit = two;
stopAllSounds();
soundLoop = new Sound();
whichSound = "sound2.mp3";
playsound();
stopButton.gotoAndPlay("off");
playButton.gotoAndPlay("on");
playButton.enabled = false;
whichSelected.enabled = false;
}
threebut.onRelease = function(){
if (isPlaying == false) {
_root.rainbow.gotoAndPlay("on");
}
isPlaying = true;
whichSelected.gotoandPlay("off");
whichSelected.enabled = true;
whichDigit.gotoandplay("unselected");
threebut.gotoAndPlay("selected");
three.gotoAndPlay("selected")
whichSelected = threebut;
whichDigit = three;
stopAllSounds();
soundLoop = new Sound();
whichSound = "sound3.mp3";
playsound();
stopButton.gotoAndPlay("off");
playButton.gotoAndPlay("on");
playButton.enabled = false;
whichSelected.enabled = false;
}
stopButton.onRelease = function() {
if (isPlaying == true) {
_root.rainbow.gotoAndPlay("off");
}
isPlaying = false;
whichSelected.enabled = true;
stopAllSounds();
stopButton.gotoAndPlay("on");
playButton.gotoAndPlay("off");
playButton.enabled = true;
} :confused:
Loading Sounds In The Background
Howdy
I'm currently redesigning the website I run with a friend to be navigated almost purely within flash. The main imperative at the moment is that the front page loads very quickly.
I've uploaded a prototype at
http://robertandtim.topcities.com/frontpage.html (I know it's currently too large for the screen for 800x600 users, I'm working on that but don't need your help )
Now, the six buttons have silly little clips which play on a mouseover, and a few of these require sound, which as you'd know bumps up the size. It's currently 173kb just based on the images and sounds currently present, but more sound is to come to flesh it all out (plus two animated presenters are to fill up the centre space and do some talking too)
I want to have the frontpage movie load sounds in the background once the preloader has finished and the front page is available for navigation. This would mean the movie would load super fast and the overclips would be temporarily muted while sounds were loaded (with perhaps a preloader in the space in the middle). This means that if the user didn't want to bother with mouseover clips and colourful stuff like that they could just click a link and move on.
..how would I go about doing this? My actionscript experience is purely self-taught and learn-as-you-need, and I'm clueless when it comes to loading external .swf's or using sound objects. Any help would be appreciated. Good help would be even more appreciated
P.S the links don't go anywhere, but http://robertandtim.topcities.com/index.html is the old site (which is ugly, crumbling and in need of a facelift)
Loading Sounds.. Special Way?
I am curious to know if there is a specialway to load sounds into a flash movie.
I am working with FLASH MX and I have sounds on buttons, a looping track that plays throughout my flash movie, and I have sound effects that are cued to play exactly when they reach a part on the timeline .. to go with the animation..
Is there a certain way to load sounds to assure that they will play when they are cued on the timeline?
Please help, suggestions are definitely welcomed here.
Loading Sounds From Another Movie
I am loading an external swf file into my movie. All the sound files are in my current (top) movie. What I want to do is play a couple of the sound files that are in my movie from a button in the swf that gets loaded. can this be done and if so can I see a example of the process...
I'm not sure this can be done...
Loading Sounds During Runtime
I currently have the following code in my movie:
var my_sound:Sound = new Sound();
my_sound.loadSound ("114.mp3", false);
Now, this code works perfectly. for loading reasons however, I want to instead load a sound that is ALREADY in the movieclip. the coding above loads an EXTERNAL file. is there any way of creating a variable (such as my_sound) that references an INTERNAL sound...one that has been embedded in the swf?
for coding reason i NEED the sound to be referenced as a variable, or else it makes everything REALLY difficult
thanks
irf2k
Preloader - Loading Sounds
I have a simple preloader (I have to keep it simple in order to understand!)
1. frame:
txtPercentage = Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100) add "% loaded";
tellTarget ("loader") {gotoAndPlay(Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100));
}
2. frame:
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
gotoAndPlay("main",1);
} else {
gotoAndPlay(1);
}
It works fine, but i have some sound-files... If i unclick "export in 1. frame" preloader works fine, but the music never starts!
If I don't music works fine, preloader doesn't!
Can anyone help?
Thz
Problem With Loading Sounds
How can I disable the audio of the sub-swf in master swf?
I am load a external swf file(with audio) into a master swf, but the audio in the sub swf starts play after loaded into master. Can anyone teach me how to disable it in master swf?
Code in sub-swf:
Code:
var mySound = new Sound(this);
mySound = new Sound();
mySound.attachSound("mix");
Loading Sounds From The Library
Hi There,
I am creating a soundboard for my website, that pronounces japanese words for my martial arts site.
When you click on a button it'll say a word or phrase,
I can create the first button to play fine, however the next buttons play the same sound.
This is the code I have got from the web:
var my_sound = new Sound();
my_sound.attachSound("sankyo");
my_sound.start();
I have tried changing the name of the file from ("sankyo") to ("ikkyo") and trying to create a new variable example:
var ikkyo_sound = new Sound();
ikkyo_sound.attachmSound ("ikkyo");
my_sound.start();
I have linked the ID correctly in the library and this continutes to the sankyo file name.
If anyone can help I'd would be very grateful,
Thanks and have a great weekend
James,
Loading Multiple Sounds
Hopefully, I'm just having a brain cramp on this one...
I'm creating multiple sound object, storing them in an array and trying to load mp3s off of a server into each sound object. So I'm doing a loop:
ActionScript Code:
// the following is from a class, so I've simplified a couple of things,
// but the loop is functionally as is the one in my project
var soundsToPlay:Array = new Array();
for (var i:Number = 0; i < sounds.length; i++) {
var soundObj:Sound = new Sound();
soundObj.onLoad = function(success:Boolean) {
if (success) {
trace(soundObj.duration + ": sound " + i + " loaded");
} else {
trace("sound failed to load");
}
}
// sounds is initialized earlier with paths to the mp3s on a server
trace(sounds[i]); // this returns a legitimate path to the expected sound
soundObj.loadSound(sounds[i], false);
soundsToPlay.push(soundObj);
}
What happens is that the trace in the if (success) conditional returns:
ActionScript Code:
0: sound 9 loaded
0: sound 9 loaded
0: sound 9 loaded
0: sound 9 loaded
0: sound 9 loaded
60526: sound 9 loaded
60526: sound 9 loaded
60526: sound 9 loaded
60526: sound 9 loaded
I'm loading 9 sounds. I'm actually succeeding in getting my sounds loaded as they should be. But why does my trace always reflect the same iterator (which is array.length + 1, the iteration AFTER I've been through the loop already) in my loop instead of for each separate sound that I'm loading?
Another thing is that my sound files are pretty big, pushing 1MB. But the traces are coming almost instantaneously. That doesn't seem right. Maybe they're now cached, but they weren't the first time around and the traces came just as quickly then.
Also, I'm not creating a movieclip for each of the sounds. I'll never be playing more than one at a time. Should I be linking the sounds to movieclips?
Thoughts, anyone?
Loading Sounds Across Servers.
okay I'm making an app that plays streaming shoutcast and it works fine on my machine but dude to the flash security stuff it won't work once I upload it. Other than the shim method does anyone know how I could proxy sound files (that are streaming) into my file?
Loading Mp3 Event Sounds
I'm having a major problem with loading in sounds! getBytesLoaded() just seems to work in a completely arbitrary manner: occasionally it will preload in the sound and at others it will equal getBytesTotal() from the start.
During these 'other times' by using the mySound.onLoad() function I know damn well that this isn't the case - it's not loaded in at all, but of course it means that any loading progress bar I implement is going to be screwy.
I've tried all sorts of preloaders including the one from kennybellew.com, to try and work out what's happening and I've tested it on and offline, but to no avail. These sounds seem to come to their own decision whether they want to load in properly all not - there is no uniform pattern here and they are the worst problems to try and solve! I'm thinking this is a bug, but nobody else seems to share this problem or have experienced anything like it
Any suggestions here would be great - would be nice to just have some empathy
Help With Loading SWFs And Sounds
I'm creating a flash projector.exe
The folder where I have subfolders is named "Hisp_Lat_2008",
I have a subfolder Movies from which my main movie Master_Template loads SWFs.
I used the following script to load SWFs
on (release) {
_root.createEmptyMovieClip("master_1", 0);
loadMovie("Movies/History _Spanish_Language_2008.swf", "master_1");
master_1._x =0;
master_1._y =81;
}
PROBLEM:
The original SWFs come with audio. Although they load into Master_Template, the SWFs don't have any audio.
What should I do?
Thanks for your assistance.
Loading Sounds Before Playing
I have created the following menu at http://www.clevelandbrowns.cc
There are 8 letters in the menu. Each letter provides a link when clicked and a sound when rolled over. The letters will NOT APPEAR on stage until their corresponding sound is completed loaded. I did this to avoid distortion during playback. The sound bit are pretty small as well.
Anyway, the sounds are still distorted during playback and I don't know why. They are all MP3. HELP PLEASE!! Here's the script for one of the eight letters (movieclips) only to limit size you'll have to look through:
public function Index() {
var D:MovieClip = new dMC();
D.x = 100;
D.y = 275;
var dURL:URLRequest = new URLRequest("
Hm.... Loading External Sounds
can i load a external song for my game its a realy big sound so i dont want do import it becouse of the filesize can it be done?
Loading Sounds Problem
I have some sounds that load into the movie they are exported on the first frame so they are loaded at the beginning but this makes the preloader start at 77% which is a bit rubbish!!
soes any one know how to resolve this???
Loading Sounds On Different Levels
{ I Apologize for the title... I meant to say "Loading sounds on the same level" }
Hey guys,
I have a pretty basic question to ask here.
haha all I want to figure out, and for some reason I'm retarded today, is how I can load sounds onto different levels. I have 6 six buttons that each load audible descriptions when clicked. I just want the previous sound to quit playing when a new button is pressed.
ActionScript Code:
on (release) { comment_txt.text = _root.comments1; mySound = new Sound(this); mySound.attachSound("01"); mySound.start(0, 1);}
That's all I'm using on each button
Thanks guys
Much appreciated
Help With Loading And Playing Sounds.
Hi there,
I've used the guides on the website to make an entire website in flash, although I've run into a problem.
I have music playing in the background and the client has asked for the music to repeat rather then playing once.
Code:
//Load Streaming mp3 behavior
if(_global.Behaviors == null)_global.Behaviors = {};
if(_global.Behaviors.Sound == null)_global.Behaviors.Sound = {};
if(typeof this.createEmptyMovieClip == 'undefined'){
this._parent.createEmptyMovieClip('BS_music01',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
_global.Behaviors.Sound.music01 = new Sound(this._parent.BS_music01);
} else {
this.createEmptyMovieClip('_music01_',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
_global.Behaviors.Sound.music01 = new Sound(this.BS_music01);
}
_global.Behaviors.Sound.music01.loadSound("music01.mp3",true);
_global.Behaviors.Sound.music01.setVolume(6);
// Play Sound Behavior
_global.Behaviors.Sound.music01.start(0,99);
// End Play Sound Behavior
The problem is that the start() operator will not use the variables specified therefor will not loop the music. Is this because I am streaming? - Or because of my syntax?
Thanks!
Loading Sounds Externally
Does anyone know any codes to do this?
For example, I have a sound file in the same folder of my FLA/SWF. How can I load this sound file into the flash?
Loading External Sounds
I don't have much experience in working with sound, so I need your help. I want to write a function that will load all of my external sounds stored in an array which are just strings of their filenames ie:
var soundList:Array = new Array();
soundList = ["sound1.wav", "sound2.wav", etc];
And create a new array with sound Objects that will have the sounds loaded in them (for later execution). After loading all of the sounds in the soundList array, the function should return or just set a _root value to 'true' ie:
var soundsLoaded:Boolean = false;
<###sounds being loaded ###>
soundsLoaded = true;
|