ActionScript 3.0 :: Adding Sound - Is It Taking Time To Load

Mar 28, 2010

I have built a SoundClass which handles my sound. Any time I want to call upon a sound, I call upon the class and its function. Problem is, there is like a buffering time or something. For instance, when I jump with my character, I am trying to play the jump from the SoundClass I created. It plays, but takes about 3 seconds. Btw, it does this regardless of if its in its own class, or in the same class I am calling it from. The jump.mp3 is only 4KB.

Here is how I have it set up

Code:
package {
import flash.display.Sprite;
import flash.events.*;

[code]....

If I am in another class, I can call upon this by using "soundClass.jumpS();" It plays, but takes a few seconds. I have a trace on the function jumpS() and it traces immediately.

View 2 Replies


Similar Posts:


ActionScript 1/2 :: Taking Time To Load Image?

Jun 23, 2009

I have implemented an image scroller. Now the client had reported that a few seconds are taking to load images. We have a local server. When we load images from it, it's not taking that much time to load images.You just copy the following code in a notepad save it as .html extension, which is the widget taken from client site.

[Code]...

View 10 Replies

Flash :: Taking A Really Long Time To Load?

Aug 3, 2009

Whenever I launch the Flash application or try to save or load a file, I get the "beach ball" for 30-60 seconds, sometimes a bit longer.I have plenty of disk space, plenty of memory.I'm on a 8 core Mac Pro with 10GB of memory, so I don't get it.  It should load instantaneously just like Photoshop and In Design do.

View 2 Replies

Flex :: Screen Taking Lot Of Time To Load?

Feb 10, 2011

We have a flex application and in that we have a screen that taking a lot of time to load, almost 60 seconds.Basically the screen is a very big form. I wanted to divide the form as a wizard but the client wants a single form with Vertical Scroll on. Now there are 8 sections in the form, each section has two form elements (so around 16 form components) but i have divided each section into a separate component of its own as some pieces are reused .So the whole screen is like Form - Divided into 8 sections Each Sections is an mxml components contained in a Almost each components contains two form components kept side to side in horizontal flow i.e something like that.This screen is taking hell of a lot of time to load. How should i speed it up, please tell the approaches.Also the main application doesn't take much time to load, this particular screen is loaded on the click of a button and on clicking the button the screen gets stuck because its taking a lot of time to load.

View 2 Replies

Flash Webcam Recorder File Swf Taking Long Time To Load

Dec 15, 2010

I have never worked on flash - I used a developer to code a flash based webcam recorder that runs on red5 as backend. He provided me with the swf file and the source like mxml file.This recorder has 3 images and the total size of swf file is 800KB.Now when I load it on my production server - this page takes sometimes upto 10 secs to load. I'm completely lost as to what the reason is and not sure where to start debugging.I'm not sure if the problem is in the flash code or is it that red5 is taking a long time to establish the connection.

View 1 Replies

ActionScript 3.0 :: Adding A Or Taking Away A Tween?

Jul 16, 2009

I made a scrolling gallery of thumbnails. It extends for 25 frames, and has two buttons (play and rewind). I have it set up so that if you hold down on either button, you continuously scroll until you reach the end or beginning of the animation. Then, along the timeline, I have spots chosen for the scroll to stop if you are not holding down on one of the buttons.

What I want to happen now, is for the animation to easeIn to the stop points on the time line if you are not holding down on the scroll buttons, but play smoothly if you are holding them down. Does anyone know I way to do this?

View 1 Replies

ActionScript 3.0 :: Projects Outside Of It Taking Up Most Of Time?

Jun 17, 2010

I haven't played around in flash for awhile due to other projects outside of it taking up most of my time, but I'm trying to create a simple 4 digit count-up display that uses a sprite-like movieclip instead of a dynamic text field.

The movieclip has 0-9 layed out vertically and each interval basically shifts the movieclip instance up by 20 pixels. There are 4 instances of the movieclip on stage side by side.

I'm wondering if there is a simpler way to do this other than how I did. I honestly can't wrap my brain around this anymore without going insane, and just wanted to get some other opinions.

[Code]...

View 9 Replies

ActionScript 2.0 :: SWF Taking A Long Time To Initiate

May 26, 2004

I have a product demo in Flash that's roughly 1MB in size. When people access a page that this demo lives on, the demo doesn't visibly "appear" until over half of the total bytes have already been loaded..You can see this by clicking here, and seeing that by the time the swf materializes on the screen, the preloader progress bar is already over 50% (or so).How can I fix it so that at least something shows up right away, so that the user isn't staring at a blank screen for 30 seconds? The preloader seems to work ok.

View 3 Replies

Flash :: Taking Much More Time To Open Than Usual

Nov 29, 2010

I do not why but now my flash files are taking much more time(Ctrl+Enter) to load than usual .. Automatically debugger starts when i run the file. And for heavy files, the file hangs and ends up in restarting my Flash Application. I am using CS4.

View 1 Replies

ActionScript 3.0 :: FLV Player - Playback Taking Long Time

Feb 10, 2009

I implemented a flv player with actionscript 3.0. The player loads a list which contains the url of flv. Users allow to choose different flv to play. However, when playing 3rd flv, the player uses a lot of time to play.

View 1 Replies

ActionScript 3.0 :: NetStream: Video Is Taking A Long Time To Begin Buffering

Jul 28, 2009

I'm trying to implement a simple NetStream video player with Progressive Video, but for some reason the video is taking about 12-13 seconds to begin buffering...I don't get it. If you check this link, you can see the buffer progress, you can see that it sits at 0 for >10s, until finally starting to buffer, at which point it finishes very quickly. [URL] It's a hard one to search for as any query using connection or slow obviously returns a bunch of crap that I don't need...

[Code]...

View 1 Replies

ActionScript 3.0 :: File Upload Event.Complete Taking Long Time To Fire

Dec 23, 2009

I've got a file upload that's working just fine except for the fact that the Event.COMPLETE event seems to take way longer than it should to fire. The Progress event is firing just fine and filling up the progress bar, and on top of that the entire file arrives on the server just fine, and way before the complete event fires. I've read I need to echo something back from the server, but I have no idea what that should be.

View 4 Replies

Media Server :: Dynamic Streaming Taking Too Long Time To Switch Video Using NetStreamPlayOptions In AS3

Aug 18, 2010

why dynamic streaming taking too much time to switch video from lower bit rate to higher bit rate and vice versa. I am doing dynamic streaming in following ways -
  
var param:NetStreamPlayOptions = new NetStreamPlayOptions();
param.oldStreamName=oldStream();
param.streamName=newStream()

[code]....
 
I am using duel buffering and that is 3 seconds when video starts and 10 seconds when "NetStream.Buffer.Full". Video taking approximately 30-50 seconds to switch video and when I am calling the above code.

View 6 Replies

ActionScript 1/2 :: Slideshow Taking WAY Too Long To Load

Mar 13, 2009

I have a slideshow posted at url....My client is saying it takes too long to load, and I am finding that it is loading all of the photos first before you can scroll through and view them. It's just not functioning properly.I wonder if someone could look at the actionscript and give me any suggestions? Maybe there's something else going on?I have attached the script from the original fla file.

View 6 Replies

Flash Movie Taking Too Long To Load Up?

May 31, 2007

My website[URL]is taking too long to upload, can somebody tell me how to fix this problem

View 2 Replies

ActionScript 2.0 :: Jpg Pictures Taking Too Long To Load?

Jul 3, 2008

I have made an application in flash, which is more like a photo/video gallery, in it, an event(birthdays parties) can be selected and a scroller appears which contains the thumbnails of all the pictures of that event, and one video appears in another panel,basically one video per event(birthdays and parties) is supported.My problem is that pictures are around 50, and there size can be around 2 MB, sometimes it happens that whole flash CS3 hangs, it is too difficlt to use the application this way...near impossible..these pics are loaded dynamically through xml file and i have used loadMovieClip.loadClip() method to load pics to movieclips and loadMovieClip.onLoadInit() method to resize them to make thumbnail and the main picture in the gallery

View 12 Replies

ActionScript 1/2 :: Sound Control Adding Text Into The Linkage Field But Still Sound Doesn't Work

Jan 21, 2010

How to import sound with AS? Cuz i have tried it and my sound just wount play. Can you explain me where my sound should be and what is the as code for importing cuz i use

mysound = new Sound();
mysound.attachSound("SoundOn");
mysound.start();

and this SoundON from where i get it, i try to add linkage to the sound file but in CS4 i cant find the option;. I do it from the library, adding text into the linkage field but still my sound doesn't want to play?

View 15 Replies

ActionScript 3.0 :: Why Are 100 - 300kb Images Taking So Long To Load Even On A ADSL Connection

Mar 7, 2011

Some background info: I'm trying to create a website to upload my photography portfolio to; the URL is as such [URL] So what I have done is create a parent page and created a variable that functions as a loader. Whenever a button is clicked an external swf file is loaded into that variable. And within those external swf files are additional buttons that will load an image into another loader.

Here's my question; for those of you who've tried the site will realise the images are taking an eternity to load, everything I learn about actionscript tells me this should not be the case. Each of the photographs are between 100 - 300kb in file size and really should not take more than a few seconds. This leads me to conclude theres something wrong with my code.

The code itself is nothing special, in fact it is the absolute most newbie way of creating a function eventlistener for every button. This is the code for the parent page;

var loader = new Loader();
var Xpos:Number = 440;
var Ypos:Number = 380;

[code]...

Here is where things got hectic for me for a while. I tried using the same type of code in the parent page for the external swf pages, for some reason it does not work, I had use the loader component (component's instance name is interfaceloader);

Product_A.addEventListener(MouseEvent.CLICK,Produc tA);
function ProductA(event:MouseEvent):void {
interfaceloader.source = "Product_A.jpg";
}

Once again to summarise my issues; why are 100 - 300kb images taking so long to load even on a ADSL connection and is my code part of that problem?

View 0 Replies

Android :: Performance - Taking Too Much Time To Finish The Activity In Android?

Jul 20, 2011

I have loading the webview in my Activity. the Web content is having some flash content. when i try to finish the Activity. Its taking too much time. the screen goes to blank screen for little time and resuming to the app.

View 1 Replies

Actionscript 3 :: Adding Time Zone Hours Difference To Time

Apr 23, 2010

I need to add in extra hours to the time, and the day will change automatically too. How should I change the code below?[code]

View 1 Replies

Flash :: Synchronizing Sound - Sound Gets Terrible As Time Passes?

Jan 31, 2010

It appears my sound is off sync and the longer I play the movieclip, the farther off sync it goes. Its nothing too complicated, just some basic shooting sounds that fire every time I hit the space bar. My code is below:

package com.objects{

import flash.display.MovieClip;
import flash.media.Sound;
import flash.media.SoundChannel;[code]....

The Attack() method gets called from another class that handles all keyboard controls.when it gets called the sound then plays.firesound and firesound2 are almost the same. firesound2 sounds a little off pitch to make it sound more realistic.At first the sound sounds pretty good, not great. but then it gets terrible as time passes.

I made a new .fla project. and I attached the following class to it by it self. so the following is the only code in the entire .fla project and the issue still occurs. I press the spacebar and the sound starts a day late.

package {
import flash.display.MovieClip;
import flash.events.*;[code]......

View 2 Replies

Actionscript 3 :: Load SWF Data Without Loading Sound, Then Load Sound Later?

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

ActionScript 3.0 :: First Time Load A Miracle Second Time Load A Nightmare

Sep 20, 2011

I load an external movie fine with:
 
f_btn.addEventListener(MouseEvent.CLICK, finteractiona);
function finteractiona(event:MouseEvent):void{
var loadera = new Loader();

[Code].....
 
It takes 2 clicks to close (or unload) Why?

View 10 Replies

ActionScript 2.0 :: Random Sound Load And Start Is Speeding Up The Sound?

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

ActionScript 2.0 :: [FMX] LoadSound - Sound To Keep Playing While The Rollovers Load Sound

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

CS3 : Adding Sound To A Button?

Mar 25, 2009

I am having problems with a flash template that I am redesigning. Currently when the movie loads it automatically starts a song in the background. When you click my music navigation link my music page comes up and there are a few links there that I want to add music to. I also need to stop that background music so the song from the link can play.

View 1 Replies

Adding A Time Delay?

Mar 30, 2009

Is there actionscrip to add a delay to something....

e.g 1.

I click on a button, i want MovieClip1 to move to the right, then i want a 3 second gap and then i want MovieClip2 to move downwards....

View 2 Replies

IDE :: AS 2 Adding Time To Timer

Jan 26, 2010

I am creating a flash game with a timer and as you answer questions I would like the time to increase or decrease but I can't seem to figure out how to do so.

View 1 Replies

Media Server :: Flash Media Server Taking Forever To Load Large Files

Jan 12, 2011

We purchased FMIS and we are encoding large 15+ hour MP4 recordings using flash media encoder. When opening these large files for playback, which have not been opened recently  the player displays the loading indicator for up to 4 minutes! Once it has apparently been cached on the server it opens immediately from any browser even after clearing local browser cache. So a few questions for the experts

1. Why is it taking so long to load the file. Is it because the MP4 metadata is in the wrong format and the file is so huge? I read somewhere that Media Encoder records with incorrect MP4 metadata is that still the case?
 
2. Once its cached on the server, exactly how much of it is cached. Some of these files are larger than 500mb.

3. What fms settings do you suggest I change. FMIS is running on windows server R2 64 bit, but FMIS itself is 32 bit. We have not upgraded to the 64 bit version. We have 8GB of ram. Is it OK to set FMS cache to 3GB. And would that only have enough room for 3-4 large files, because we have hundreds of them.

View 1 Replies

ActionScript 2.0 :: Adding Sound - Doesn't Come Out

Jan 12, 2010

I am doing a game such that when the score++, there is a certain sound. And when the score--, there is another sound. Cause I'm not really sure if this is the correct way. So I have two sound files, linkage "hit" and "miss" The actionscript goes like this on my movie clip:

[Code].....

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved