ActionScript 2.0 :: Load More Then 1 Sound On Different Frames?
Feb 7, 2009
i have an example fla i made of my real project..a nd basically i need a diffrent sound on all 3 frames so i put my sounds in my library and the sound works when i first start up but if i sitch to a diffrent frame it stops and willnt start the next one
fla attatched at the folowing link... (flash cs3/cs4 compatible) [URL]
View 3 Replies
Similar Posts:
Jan 2, 2011
I have an SWF that's 30MB. Sound files (music) make up 25MB, art and other things make up the remaining 5MB.
Would it be possible for me to load the 5MB of necessary art and other things first to allow the user to operate the app, then after that's all loaded and they are operating the app, load the remaining 25MB of sound files in the background?
UPDATE: Loading SWF (or other entities) externally is not an option.
View 1 Replies
Apr 20, 2009
I am using a sound on frames and when I am stopping the frame the sound continuous playing but the frame stops.
View 3 Replies
Dec 16, 2005
I'm trying to load sound dynamically into a clip and then play it randomly. The AS I came up with works great if the sound is embedded and I use the .attachSound() method instead of loadSound(). Now, when I load it dynamically and use the code below, the sound plays very fast and at a higher pitch.
Code:
var crows = new Sound(this);
crows.loadSound("Raven.mp3", false);
crows.setVolume(100);
[Code].....
View 1 Replies
Jun 22, 2003
I am loading small sounds dynamically with the loadSound command. These small sounds are activated with a rollover. see script below. This works ok. however. i want the first sound to keep playing while the rollovers load sound. a bit like playing the piano. This works ok when i import all the sounds into the library and place them on their very own button. however the size of the flash movie increases to 140k. whereas when i load them dynamically the size of the movie is 20k. obviously i want to load dynamically.
But with dynamic loading each sound stops when another sound is rolled over, so that there is only ever one sound playing at once. I need to load the sound into a different level or something, so that the first sound can keep going while the smaller, shorter sounds play over the top. this is my script below. The first sound loads when the movie starts. This is the one i want to keep playing. Then there are the smaller ones with rollovers. does this make any sense? there's actually 13 little sounds.
[Code]...
View 3 Replies
Jan 8, 2009
Does anyone happen to know how i can attach sound to a certain section of frames so when it plays that section you hear the sound?
View 6 Replies
Jun 17, 2009
In Flash, when I use a sound, I can set its type to Play, Stream, etc., right? "Play" just plays the sound directly, while "Stream" makes it adhere to the frames.
Purely in Actionscript, is there any way to make a Sound object behave the same as the "Stream" type? That is, make it sync to the actual framerate of the application, instead of just making it play regardless of the frames? I need this because I'm designing a game where the audio needs to be consistent and repeatable.
I know that the default behavior of Sound objects is the standard "Play" type, because if I have something like this[code]...
View 0 Replies
Nov 29, 2010
the sound is place inside a movieclip timeline on the first frame. its about 600 frames long the sound. the main timeline were the movieclip is situated is only 1 frame long. The main timeline is 50 frames long.I thought if the movieclip was not on the frame the sound wouldnt play.
i have an issue with the sound in the game.ive place a soundtrack on the first frame. its a long sound track. over 600 frames long. I place the sound inside a movieclip due to a large size. My issue i have is it sound plays even on the frames the movieclip is not situated on.when i return to the frame. the sound starts to overlap and play twice which is a bit of a mess and a racket.
View 4 Replies
Sep 8, 2009
I got this video player in frame 3
i got this code
video_player.addEventListener(Event.REMOVED_FROM_S TAGE, stopMovie);
function stopMovie(e:Event=null) {
video_player.stop();
}
to make the player invisible when the user goes to other frame
but video player stays on the frame when the user used fullscreen function and goes back to the next frame.
View 4 Replies
Jun 24, 2009
I am having problems with a flash file i am working on. Basically i have created a slideshow/ebook that includes two buttons that move forward and backward on the timeline. On each page or frame of the main timeline are other buttons and movie clips. Anyways, I am trying to figure out how ,for example , if the user flips forward quickly through the slideshow that the sounds do not continue to play on the next or previous frames. Everything else on the file works great , it's just a matter of keeping the sounds from overlapping.
View 2 Replies
Nov 19, 2010
I've been making the transition from AS2 to AS3 for the last week and am making progress. But I'm having a problem that hopefully someone can help me with. I'm using Flash CS5. I have a fairly simple Flash website I'm working on. I have sections on the timeline like Home, About, Photos, Media ... all set up using labels for each of those sections. Everything is working fine but when I go to my Media section where I have a video placed (using the flv component) I'm having a problem as follows:
The video auto plays fine when I go to the Media section but when I attempt to leave the section and go to another the sound of the video doesn't stop. It continues to play when I go to another section and if I go back to the section it starts again. The video is not there when I go to another section which is the part that's confusing me. In AS2 when I did this the video and the sound both stopped because you went to another section on the timeline. Why is the sound of the video not stopping in AS3?
View 28 Replies
Feb 11, 2011
I'm trying to modify many .fla files (in CS3) that have a voiceover layer on them. Because I'm adding or deleting other items on the stage, I need to adjust the audio fo synch with the modified flash file. I have tried deleting frames and this happens - I select the unwanted frames, such as frames 200 to 300 of a 500 frame file. Then, the audio from frames 300 to 500 (at the end of the file) gets deleted instead.
I need to create gaps (like 200 frames of no sound) in the audio (.wav) file so I tried adding blank frames. When I click on "insert frames" in the middle of the timeline, Flash adds the new frames to the end of the sound timeline.
I also tried adding a keyframe at the beginnig of the range and Flash deleted all the frames after the keyframe.
It looks like any modification to the sound/audio layer only affects the end of the timeline. How do I modify sound parts in the middle of the timeline? I know this can be done but how?
Details: The audio layer (.wav) runs the whole length of the Flash file. The .wav file is a sound file in the Library; 22kHz Mono 16-bit 27.4s 12.1kb. The files were created in CS3. These files work fine.
View 1 Replies
Apr 24, 2009
My problem is that whenever I switch frames the music in my flash project restarts and overlaps and sounds incredibly crappy. Is there any way I can make it so that my music opens on my first frame and continues playing through all subsequent frames? Oh and by the way here is the code I'm using:
[Code]...
View 5 Replies
Apr 13, 2009
i have imported a flv file into my library and placed a instance of it on the time line but It asks me if I want to add the amount of keyframes to show the movie which I would rather not as it slows down every think, is it possible to start the movie from actionscript command in a named frame and not have to add a load of frames?
View 1 Replies
Dec 14, 2010
my varloader.fla sample will load up a couple of variables from a .txt file (numbers.txt) and it will display them just fine in the dynamic text boxes on the layer below the actionscript layer. but if I move one of the dynamic text fields to another frame, lots of errors happen.
i gather this is because when the movie moves to the next frame, it 'forgets' all of the definitions in the actionscript of frame 1, but certainly there must be a way to do one load of the variables from the text file and use them project wide? please tell me i don't need to write a loader to parse my .txt file in ever frame I want to use the .txt variables?? how can i make these variables global? all i want to do is be able to display first_txt and second_txt on subsequent frames from the frame with the AS...
ActionScript Code:
here is my actionscript:[code]......
View 0 Replies
Aug 4, 2010
I'm interested in having my flash movie play at say, frame 50 and then if you refresh - it will again select a predefined (but randomly selected) frame to play from.So, the order could be as follows:
Refresh - frame 50
Refresh - frame 150
Refresh - frame 150
[code]....
View 2 Replies
Sep 18, 2009
I am new to AS3 and was doing a little bit of research before diving in. I wish I could just create external swfs to load with each button, but the CMS system that I am uploading to won't allow it~ so I HAVE to make the thing into one swf, but the file size is too large. Is it possible to make a button that loads only a few frames within the timelime? and the next button will load another few? this is what i found and it says i can't:[URL]
View 1 Replies
Dec 20, 2010
Im trying to create a motion where as when you select a object from the home page all the objects slide out and off screen before the new content loads.
Ive got it set up so that it all loads into a swfLOADER. Is their a way that i can make it gotoAndPlay an out phrase before loading in the next content on the swfLOADER. I dont even know if what im trying to do is possible?
Have not sucseeded so far as it just wipes the page before playing the out phase. Is their any way that i can make this work??
currently got it saying on release gotoAndPlay "out" and then on the next line loadMovie "about"
View 4 Replies
Mar 24, 2011
I want to be able to load external images into different frames in a movieclip and then control it from inside the code. For this, I need to know how to create a blank movieclip with an ammount of frames that I can specify inside the code and how to put different images on different frames of the movieclip. How can I do this?
View 1 Replies
Feb 12, 2011
I have a question about flash is it possible to load first 2-3 frames of a a clip and while those are playing to load the rest?
Also if the answer is affirmative at the first question id it possible to change the loading order considering what happened in the first part?
View 2 Replies
Dec 3, 2003
I am trying to load a movie without using a frame script. Basically I have the below AS to load the movie (which works fine)
However I want to play frames "40-47" then load home.swf.
I understand I could have it just goto and play frame 40 with a load home.swf frame script on frame 47. But this does not work for what I am trying.
on (release) {
this._parent.content.loadMovie("home.swf");
}
View 1 Replies
Feb 19, 2003
I know this can be done in html but flash I don't know. I want to stay on the same url page and load another url in my flash movie. You can do this with SWF's, you have a main movie and then you can load a second swf into the main movie. Can this be done with a main swf and load in a url page into the swf?
View 8 Replies
Jan 15, 2006
I am building a video wall sort of thing. I am wondering whether to use a jpg to preview content of each video or load the video's directly with only loading the first 5 frames running a loop then killing the download on the rest of the movie till requested to start again by the user. Is this possible?
View 1 Replies
Feb 9, 2010
I have seen flash sites that wait to load different parts of the flash file until you click on a link, thereby starting a loading graphic that then loads the content you're looking for. I can't find any information on how to do this, and I'm guessing I just can't find the right terminology.
View 11 Replies
May 4, 2008
The three text fields below (txt1, txt2, txt3) are in three different frames (1, 2, 3)... With my current code, text data from my xml file seems to be uploaded only in the textfield in the first frame. How do I load the other items from my xml file into the other textfields?
Code:
var myXML:XML = new XML;
var myXML:XML = new XML;
myXML.load("file.xml");
myXML.ignoreWhite = true;
[Code]...
View 2 Replies
Mar 6, 2010
My 1 frame load screen zips by and the next frame plays right away. When I click on a button that goes to another frame, it only goes to the last loaded frame, which is the wrong place. This happens for a few seconds until all the frames are loaded. In the meantime, it looks like my buttons are broken.Here's the code I'm using:
if (this.getBytesLoaded()=this.getBytesTotal()) {
this.gotoAndPlay(2);
}
This is the error I get in the compiler:
Left side of assignment operator must be variable or property.
View 6 Replies
Oct 3, 2009
I have managed to load an external text file in one place one the maintimeline. I would like to do the same thing on other frames. When I go to duplicate the same thing that I did on the first one I get a duplicate textReq request. Do I need to give the textReq a more specific name for each section? When I did this the movie wouldn't even recognize and of the code that was working before.I am attaching link so you can see sections I am talking aboutAlso you will notice that the swf file I loaded won't go away. That's another problem...ugh.Here is code on maintimeline:
stop();
import fl.transitions.*;import fl.transitions.easing.*;
import flash.net.URLRequest;import flash.display.Loader;import flash.events.Event;import
[code].....
View 7 Replies
Mar 8, 2012
I'm actually creating a pretty simple banner that needs to stay under 40k size. I'm trying to load and unload an external .swf to my main swf file. So far, I only managed to load my external .swf, without finding a way to make it appear and disappear at specific frames (the external .swf shows up directly at frame 1, then when the animation loops over, it stacks over and over).
I read some things about onEnterFrame and counters but still wasn't able to solve my issue.
Here's my actual code. It makes the "horse.swf" file (located in the same folder as my main swf) fades in into my main swf after it has been loaded.
By the way, I used The LoaderMax system from greensock. because it seemed lighter and easier to manage than the native Adobe Loader one.
Code:
import com.greensock.*;
import com.greensock.loading.*;
import com.greensock.events.LoaderEvent;
[Code].....
View 6 Replies
Feb 11, 2010
I've got a flash movie containing 6 individual SWF's. These contain a short clip, with some sound effects. Also, I got 1 additional SWF that calls for each SWF in numeric order.
Now, I'd like to have a theme song going on in all of these 6 SWF's, and it needs to be seperatly, so that the sound does not stop until my movie is done.
Actionscript for my movie is;
ActionScript Code:
//
var movie1:URLRequest=new URLRequest("1Intro.swf");
var movie2:URLRequest=new URLRequest("2Troldmand.swf");
var movie3:URLRequest=new URLRequest("3Superman.swf");
[Code].....
View 1 Replies
Jan 28, 2009
trying to make a play/pause toggle button in AS3. I'm a newbie but I've finished the site except for this element. my audio file works when i import to the library and it plays it in the preview. its in the same folder as the fla. working in cs3. This is what i've done.new as3 file. code.
var req:URLRequest = new URLRequest("ocean.mp3");
var s:Sound = new Sound(req);
s.play();
whats the deal? I get no compiler errors. i'm hitting option+Return on the mac to test the movie. I downloaded some one else's and it worked. i copied theirs into my project and it didn't work. i have a feeling its something to do with classes that i don't know about
View 1 Replies