ActionScript 3.0 :: Load() Function From The Sound Library Splitting Mp3 Files To Too Many Packets?

Oct 16, 2011

I paid someone to write a Flash application, he did what I asked him, but there is one problematic aspect that he doesn't know how to approach:The application consists of many small mp3 files that have to be preloaded in the beginning. The problem is that is takes FOREVER for these files to load. I changed the server to a VPS and nothing changed.The programmer uses the load() function from the sound library to load the mp3 filesI installed an HTTP packet sniffer and found out that every file is being split to many small packets, 1.3Kb in size each. So for example a 76Kb mp3 file is loaded in over 60 requests!

View 8 Replies


Similar Posts:


ActionScript 2.0 :: Call Sound Files From The Library And Play Them Each Time?

Jul 21, 2006

I have a 'back,play,stop,next btn in my playa...how to call sound files from the library and play them each time I press the 'Next' btn & the previous sounds files played in order when i press the 'back' btn?

View 1 Replies

ActionScript 3.0 :: Splitting A Mp3 (Sound) Into Small Segments?

Jan 13, 2009

I am looking for a way to split a loaded mp3 Sound into small segments. I have googled around but cannot find anyth on the matter. I am begining to think it is impossible. My approach was to load the mp3, then use the extract function to extract all the bytes. now for every small section when the user wants to play it it is filled using SampleDataevent with some values from the array. At first i tried to do my idea by loading an mp3 into a bytes array then writing it to a new file and playing that file but it does not work:

Code:
var snd:Sound = new Sound();
snd.addEventListener("complete",loaded);
snd.load(new URLRequest("Burn.mp3"));

[Code]....

View 0 Replies

ActionScript 3.0 :: Get Sound To Load From The Library?

Apr 10, 2008

I figured out how to get sound to load from the library in AS3, which is good, however I'm trying to do the same technique in another fla with different mp3s and i get the following error. WTF?

'Sound has no valid device sound path although exporting device sounds was requested in the export settings. This sound will be ignored.' You can check out my code below, anyone else thats run into this let me know.

[Code]...

View 2 Replies

ActionScript 3.0 :: Splitting Up A Class Into Multiple Files?

Jul 15, 2009

I've got a class that I create that extends the EventDispatcher class. My class has lots of variable declarations and getter and setter functions. I would love to split up the class into multiple AS files so that I can organize the variables and functions by category. Is there any way to do it and still maintain a relationship between all of the files so that one can easily call a function or a variable that exists in another? And so that other classes in my application can refer to one reference when accessing public functions in any of the AS files.

View 3 Replies

ActionScript 3.0 :: Splitting The Code Into Separate Files?

Oct 22, 2010

I'm looking for some help with the following script:

Main Class:

Code:
package {
// Flash Classes
import flash.display.MovieClip;
import flash.events.Event;

[code]....

Now, I'd like to move the blue color coded script to the separate package. When I do that, I've got many reference errors. how the code should look like, when it's in separate package, with all the references to variables that work? And how to call this function from Main class?

View 1 Replies

ActionScript 3.0 :: Load A Library Of Files Into Flash?

Mar 4, 2011

import or load a library of .as3 files into flash.I found a library that has many .as3 files in folders and subdirectories.How do I use these in a flash as3 project?Do I just stick the folder into the same folder as my project?

import myfolder.filename

Or is there a formal process for importing an entire folder with subdirectories of as3 files.

View 2 Replies

ActionScript 3.0 :: Security Sandbox Violation When Loaded Swf Tries To Load Sound From Library?

Jan 26, 2009

I have been having some problems regarding loaded swf files (i'm using SWFLoader). The latest is that, when I load an swf that is supposed to play a sound, flex shouts the following error and the sound does not play:

*** Security Sandbox Violation ***
SecurityDomain 'file://c:appcontents/animation.swf' tried to access incompatible context 'app:/swfplayer.swf'

[code].....

View 5 Replies

ActionScript 3.0 :: Function To Load Library Images?

Jul 2, 2011

Not supposed to send the linkage class as a string in the function call.

I can load an image in from the library with code by

1) creating a new object of the linkage class,

2) creating a new bitmap object using the new object, then

3) sticking it into a Sprite, but when I try to make it into a function it doesn't work.

ActionScript Code:
//linkage name, width, height, string for .name property
container.addChild( crtLibImg("PNGlinkageName",100,50,"myPNGname") );
function crtLibImg(thisPng,w,h,mName)

[Code].....

View 0 Replies

ActionScript 3.0 :: Event.currentTarget - Use One Function For All Buttons - Load Another MovieClip In Library

Dec 7, 2009

I have a movieClip in my library that I am loading into a scrollPane. When I click on the scrollPane I want to know the name of the target I am clicking on. I am trying event.currentTarget but all that I get in the output box is ObjectMovieClip. I want to use one function for all my buttons so when I click on them it loads another movieClip in my library. I realize I could make 3 separate functions, but I'ld like to use just one.

[Code]....

View 13 Replies

ActionScript 2.0 :: Use LoadMovie Function Inside Loop To Load External PNG Files / When Game Is Loaded

Jan 19, 2009

I'm trying to use a loadMovie function inside a loop to load external PNG files when my game is loaded. Unfortunately, I can't get even a single loadMovie to work correctly, much less execute a bunch of them.The code is on the root time line, and is targetting an empty movie clip that is nested inside about 3 levels. There is a button, with a movie clip on it, and the empty clip I'm trying to load into on that.so the full target path is myBox_00.smallBox.myLogo(myBox_00 is the button, smallBox is the movie clip, and myLogo is the empty)[code].I even tried using a JPG image instead of a PNG and still no luck. The best I could do was number 4; and that didn't work, all it did was SOMETHING instead of NOTHING... unfortunately that something was to make the button (myBox_00) disappear entirely T_T.I've never had much luck with loading external images. What am I missing here?

View 9 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

Flash :: C++ - Tracking Application Packets

Dec 23, 2010

I have this flash application that opens a socket connection with a server. What I need to do is to read packets sent and received byt he application to write a sort of "history" ( in WIndows). Now, questions are: How is the simplest way to do it? Application hooking? Load the flash application in my application and take control over it? No packet sniffing allowed. Is it possible to do it in C++, or you think it's better to use another programming language? My first choice was java, but it seems that do it is troublesome...

View 2 Replies

Media Server :: RTMFP Drops A Lot Of Packets?

Jun 3, 2011

a client publishes a simple webcam and microphone. I noticed that if I use rtmfp the admin console shows between 30 to 200 messages dropped for a simnple webcam at 320x240 10fps quality 69 and audio speex at quality 6. sor after some minutes the video is unsynchronized with the audio. I turned off aggregateMsg and queue. if I use RTMP there is 0 dropped packets.
 
Is anyone can explain why FMS 4.0..1-r2009 on linux 64bits High Internet speed line on client side without any bandwidth problem last flash player

View 1 Replies

Php :: Encode (serialize) And Decode (deserialize) AMF Packets?

Jan 29, 2010

At the moment it seems I've tried every trick in the book trying to get this to work. I need some way of encoding AMF requests and then decoding the responses. At this point I don't care what language it's in, as long as it's doable and free (as in to me), however I would prefer PHP.I don't know what other information is needed

View 2 Replies

Actionscript :: Split Packets In Flash, XMLSocket?

Aug 27, 2010

I believe my flash client is losing some packets the server sends, because some packets get joined together hence I believe it drops them.Here is my packetHandler in flash

private var xmlsock:XMLSocket;
this.xmlsock = new XMLSocket();
xmlsock.connect("127.0.0.1", 1234);[code].......

A possible packet I sniffed sent by the server was.

u:105.w. aka (75 3A 31 30 35 00 77 00)

so the waiting packet never came in.

View 2 Replies

ActionScript 3.0 :: Load Video Files "randomly" / Random Function?

Feb 7, 2011

I have made a video player in AS3 and it works very well.Now, i would like to make a function to load and read randomly my video files.I'm looking for the best way to do that.What do you think about that ?I thought of these solutions :1 ) With an xml files2 ) With a database and some SQL3 ) Load randomly the files from a folder on the server.

View 4 Replies

ActionScript 3.0 :: WAV File - New Sound.extract() Function To Get Two Seconds Of A Sound Into A ByteArray

Nov 11, 2009

I'm having some trouble getting the following code to work - trying to use the new Sound.extract() function to get two seconds of a Sound into a ByteArray, and then create a new bytearray with a WAV header, and then output the file. The resulting 'test.wav' file sounds very wrong although slightly recognisable? I think I may have some of the WAV header settings may be wrong but I'm not quite sure what's the matter and after a long time scratching

[Code]...

View 5 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

ActionScript 3.0 :: Make A Small Realtime Game Using Sockets But Some Packets Simply Get Lost

Jun 19, 2011

[URL] I'm trying to make a small realtime game using sockets but some packets simply get lost (Wireshark says they arrive properly!)

View 1 Replies

Making A Sound Library

May 22, 2009

I´ve made a site for myself in flash (AS 2) and it works great. But one thing that I havent got the knowledge for is that I would like to have my own sound library.Anyway what I want is a xml updatable library, a simple list of sounds for visitors to download for free! A preview of the sound is also something that I need. The sounds are mostly very short sounds, so a rollover should work i think.[code]If there is someone here who would like to help me with this? Just to get me started. I fully understand if someone here thinks like, wow thats alot to ask for! how rude and so on, but if there is someone that maybe thinks that this could be fun or interesting and would like to give it a shot.

View 4 Replies

ActionScript 2.0 :: Flash8 - Load, Unload And Load Again From Library?

Jul 13, 2009

I am trying to load, unload and load again the same movie clip from library.

View 7 Replies

Professional :: Right-click Sound In The Library?

Jul 8, 2010

How can I edit sound from a timeline if I don't have the original sound file? When I right-click my sound in the library, I can't open it in any sound editor program. What do I do?

View 3 Replies

ActionScript 3.0 :: Fade In/out Library Sound?

Apr 1, 2012

having real problems finding anything about fading in and out sound in flash, have searched for 3 days now and found mostly as2 related articles,i have the following

var myintSnd:introSound;
var sndintChannel:SoundChannel;
myintSnd = new introSound;

[code].....

View 2 Replies

Flash :: How To Play Sound From Library In AS3

Apr 23, 2010

In Flash 10/AS3, I added some sound and it seems to be working alright, but I think I'm doing it wrong. I imported the sound into the library, but I believe that it's reloading it from the folder with the swf/sound. I'm loading them like so:

[Code]...

View 1 Replies

Play Sound From Swf Library In Script?

Mar 29, 2011

I have to play some sound on a webpage with javascript, and probably flash is the best choise, so i created an swf library with mi sounds wit swfmill [url]...[code]...

View 1 Replies

Flash :: Sound Library For Project?

Nov 22, 2011

I am looking for a good and simple as3 library that can help me manage sounds in a Flash app I develop.

I need something that will hold my sounds (not more than 25) and when I call certain sound to play it should play it.

View 2 Replies

ActionScript 3.0 :: Play A Sound From Library

Sep 22, 2007

So, in actionscript 3, how can I play a sound from library when someone clicks on a button?

View 12 Replies

ActionScript 3.0 :: Preload Sound From Library?

Apr 16, 2009

I'm creating a flash game where all of my library symbols, including my sounds, are contained in an assets movieclip on the second frame. The first frame is a preloader and it works fine, however, when I uncheck "export in first frame" for my mp3 sounds in the library I get the error:

1046: Type was not found or was not a compile-time constant: mySound

I have all of the sounds on seperate layers and they all have class names defined. I've seen quite a few threads that bring up this issue, but none that solve it. So, how do you preload a hefty mp3 from your library without exporting it on the first frame?

View 1 Replies







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