ActionScript 2.0 :: Load The Sound And Play And Stream It

Mar 21, 2004

I have a button which loads a sounclip into a movieclip: [AS]_root.myMusic = new Sound(emptyMC); _root.myMusic.loadSound("song1.mp3", true);[/AS] it will load the sound and play and stream it ... but in my output i constantly get this every sec: Error opening URL "file:///E|/Dir/Dir/Dir/undefined"

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Play MP3 Sound From Buffer (ByteArray / Stream)?

Oct 25, 2009

I have a buffer with MP3 data (If I would save this buffer and call it buffer.mp3 it would play, but in this situation I should not save it to file system). I have to play it, but I can not, what shall I do? I tried the next code to play that buffrer(ByteArrayStream) (I get MP3 data from server the method of getting data works fine (tested on text int's etc) I call the returned ByteArray readResponse because I have some seading method and It is it's response).

[Code]....

View 5 Replies

IDE :: Can't Play/load Sound In CS3?

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

ActionScript 2.0 :: Load The Sound To Play?

Aug 26, 2004

face some problem here : Have 2 page of text to be show with sound. Also have 1 page let user to click on radio button to choose whether want to listen to the sound or not listen to the sound.

how to load the sound to play while the user click on tat page n if the user choose to off the sound all the sound on page 1 n page 2 will off.

View 4 Replies

Professional :: Sound Stream From One Clip Playing Over Stream From Another

Jan 23, 2011

I have a layout with narration and a nav bar. When I click a nav button for section 2, the audio from section 1 (set to stream) continues to play over the audio for section 2. This cumulates so if I click buttons for sections 3, 4 and 5, I get five audio files playing on top of each other. Sections are individual movie clips with embedded audio streaming on a Sounds layer in each movie clip.

View 3 Replies

ActionScript 3.0 :: Closing Sound To Load And Play Another

Mar 19, 2007

I am trying to close a sound so that I can load and play another but when I call the .close() on my sound object I get this error...
Error: Error #2029: This URLStream object does not have a stream opened.
at flash.media::Sound/close()
It tells me this even though the sound object is currently playing.

Here is the code I am using to initialize.
mainMusic = new Sound();
mainMusic.load(new URLRequest("lvl1.mp3"));

Then elsewhere I call...
Code:
mainMusic.close();
mainMusic.load(new URLRequest("WaterWorld.mp3"));

View 4 Replies

ActionScript 3.0 :: Simply Play Sound Then Load Webpage?

Apr 23, 2009

A rudimentary question from a neophyte. I just want to play some music as part of my swf file and at the end of the song, automatically retrieve a web page. I'm finding a lot of answers for very complex questions, but nothing quite so basic.

View 11 Replies

Sound Stream From One Clip Plys Over Stream From Another?

Jan 24, 2011

I have a narration and a nav bar. When I click the button for Section 2, the audio for Section 1 continues to play on top of the audio for Section 2.

View 1 Replies

Media Server :: Access Log- Stream Play & Stream Stop?

May 24, 2010

I have recently installed FMIS 3.5.3. In checking the access logs I find data in both logs that display the same stream stop and stream play time .I'm not sure why the time is the same (00:19:27 example below). Videos play fine when testing from work (T3 connection). However, occasionally a very slight hesitation when playing video from home (I have cable connection). [code]...

View 4 Replies

ActionScript 2.0 :: Load And Play A Sound From Within A CLASS Definition File?

Aug 3, 2009

I need to know how to load and play a sound from within a CLASS definition file. I know the normal way of doing this, but Flash MX rejects that syntax, so there must be some special way of using sounds in a class file.

I need to know how to code for "if the score increases by any value." So, if the score goes from 0 to 1, the sound plays ONCE. If it increases from 1 to 2, the sound plays ONCE again.

View 0 Replies

ActionScript 2.0 :: Broken Linkage - Load .swf Into Another Movie The Sound Doesn't Play?

Apr 14, 2005

I have an mp3 exported for actionscript with the linkage name bgmusic.When I play the sound using a sound object, it works fine.However, I take that same .swf and load it into another movie and the thing breaks... the sound doesn't play.How do I fix the linkage so that it'll play again?

View 5 Replies

Media Server :: Send Sound With Stream (both Sound And Mic Audio)?

Oct 6, 2011

I have a broadcasting project that I've got where the host of the show can have multiple sound effects they can use on their show.I'm wondering if the only way to go about this is for all the clients listening to the show need to download the mp3 of that sound effect or if the sound effect could come from the host ...like combining his mic (for his voice) but also straight audio (the sound effect) into the stream.

View 1 Replies

ActionScript 3.0 :: Sound Event - Buffer Needs To Load And Everytime The Song Resumes Play State?

Jan 14, 2009

I'm having a sound object being loaded. And I want that for as long as it is buffering to have it written in a textfield "loading..." and when it starts playing to write in that textfield the name of the song. And i want this to happen everytime the buffer needs to load and everytime the song resumes play state.

View 1 Replies

Media Server :: Stream.play (live_from_FMLE, -1, 4500, True) Got No NetStream.Play.Start?

Nov 5, 2010

I got a bunch of live stream from FMLE, say: "FMLE_channel1", "FMLE_channel2", "FMLE_channel3". And then on the server side, I created several corresponding republished stream called "channel1", "channel2", "channel3".

On periodical basis, we call Stream.get("channel1").play("FMLE_channel1", -1, 10, true) every 10 seconds. Similar things were done on the second channel & third channel.Soon after the above Stream.get("channel1").play() call, I should get the following events in sequence:info :NetStream.Unpublish.Successinfo :NetStream.Publish.Startinfo :NetStream.Play.Resetinfo :NetStream.Play.Start In the above case all are happy. Clients can view channel1, channel2, channel3 well.But then after a while, one of the three channels, in most case it would be channel1, will not be viewable.

With the server trace info, I found that after the Stream.get("channel1").play() call, only the following two events exists:

info :NetStream.Unpublish.Successinfo :NetStream.Publish.Starti.e. I was missing the play.reset and play.start event.I further checked and confirmed that the FMLE was publishing all three channels fine to the server. I was able to view the "FMLE_channel1" from flash clients, but not the republished "channel1". the version is FMS 3.5.0.

View 3 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 :: Create Dynamic Sound To Play Sound-file?

Oct 14, 2009

It's possible to play a sound file through AS, either by loading it from a folder or import it to flash. It's also possible to play a dynamic tone with flash.media.Sound + writeFloat.

But... is it possible to play a sound file with flash.media.Sound + writeFloat in some way? I want to play a sound file without having to deal with any files except the .swf!

View 9 Replies

ActionScript 2.0 :: Play Sound/stop Sound Button?

Feb 13, 2007

i want to make a single button to play a sound, and if pressed again, stop the sound. and if pressed again, play the sound, and so on...
i know it has to be made with a boolean variable, true/false, but i just can't figure out how.

View 13 Replies

ActionScript 3.0 :: Stopping A Stream Sound?

Aug 5, 2009

how do we stop a streaming sound?

sound.stop();
or
sound.close();

View 1 Replies

Sound Choppy In Stream Mode.?

Oct 9, 2009

I placed my audio in the timeline, but I want it streamed rather than event driven because people will be jumping around the timeline When I change the sound to Stream the audio gets incredibly choppy.

View 6 Replies

Read Using C++ (C#) Sound Stream Sent By Flash?

Feb 28, 2010

I need to read sound stream sent by flash audio in my C++ application (C++ is not a real limitation, it may be C# or any other desktop language). Now flash app sends audio to another flash app but I need to receive the same audio by desktop application.So, is there a standard or best way how to do it?

View 5 Replies

ActionScript 3.0 :: Stoping Sound Stream?

Oct 20, 2009

i make my first flash homepage this time, and i got a problem with my intro.It takes a lot of time to make this work because its my first projekt.So iïve made a flv file as the movie clip and an mp3 for the sound.And i lode it by Actio Script.Here is my code.

//Intro-Video laden
var IntroConnection:NetConnection = new NetConnection();
var IntroStream:NetStream;

[code]........

View 0 Replies

ActionScript 3.0 :: Sound Stream Is Not Available Anymore?

Sep 11, 2010

I load icecast stream into Sound object, using some tricks to overcome memory leakage. Generally it works quite well, unless someone reloads either icecast or stream source program on the server. In that case flash player just mutes itself forever. I'm looking for some way to detect this case internally and reload the stream without refreshing web-page.My problem is caused by the fact that onComplete event for some reason doesn't trigger, maybe there's another event happening, but I just couldn't find any.One thing that I tried was noting down stream progress point and checking consequently for 200 times if it stays the same and if it did I was manually calling stream reload function.

View 1 Replies

ActionScript 3.0 :: Open And Close A Sound Stream?

Jan 11, 2010

I am stumbling across this issue as I open and close a sound stream. This is the code I use, not sure if closing and opening a stream on the same function is a good idea.

[Code]...

View 4 Replies

Professional :: Sound Synch: Stream Vs Event

Apr 23, 2010

I'm working in Flash CS3. My animation is about a minute long, with a single audio track that plays from beginning to end. The sound quality is noticably better when I set the synching to Event, but unless I set it to Stream the sound falls behind the animation. Is there any way to maintain proper synchronization with the Event setting? Also: will the lag be consistent on different machines and players? I thought about adjusting the timing of the animation so that it matches the Event-set sound in playback, but that's such a clunky a solution it seems likely to cause other problems.

View 2 Replies

Actionscript 3 :: Sound Stream Stops Loading?

Jan 28, 2011

I have a little sound stream script here, but sometimes if you press play to the next track before the current has done loading the next track doesn't comeplete loading

package player {
import flash.events.Event;
import flash.display.Sprite;

[Code]....

View 1 Replies

Professional :: Flash - Animation With Stream Sound Not Playing In Mac?

Jul 29, 2011

I have made a 5 min animation with stream sound. Its playing perfectly in PC. But in mac, its not playing. Stream sound starts from frame 60. So mac plays the swf plays till 60 frame, after that it pauses. I tried importing different sound format (wav, aif, mp3) and tried with all sound export setting but the problem remain same; its playing only till 60.When i removed the sound, it played till end. Even with event sound, it plays till end. But with stream sound, the problem. The problem is only in mac; in pc its perfect.I am using VMware Mac OS x leopard in window xp for testing purpose.

View 2 Replies

Flex :: Change The Sound Volume Of A Live Stream?

Apr 20, 2010

I have something like this:

private var myVideo:Video;
public var videoDisplay:UIComponent;
...
videoDisplay.addChild(myVideo);

[Code]....

how can I change the volume of this stream, I would like to bind the volume to a slider

View 2 Replies

Flash :: Encoding Speex Into A SWF Version 10 Sound Stream

Mar 1, 2012

Adobe's "SWF File Format Specification v10" says that Speex encoded data can be used for streaming sound (a little clarification of the "streaming sound" definition here: "The SWF file format supports a streaming sound mode where sound data is played and downloaded in tight synchronization with the timeline. In this mode, sound packets are stored with each frame." - this has nothing to do with any FMS streaming, no ActionScript needed - just plain SWF).This should be accomplished by using a single SoundStreamHead2 tag with StreamSoundCompression set to 11 (which means "Speex", as stated in the abovementioned Specification) and then N pairs of ShowFrame and SoundStreamBlock tags. However, this does not work - Flash Player plays no sound when playing the SWF generated by me this way. Please note, that I am capable of generating such SWFs containing streamed MP3 or PCM data, which then play perfectly. Just not Speex...

I strictly conform to the Specification:URL...I tried the streaming sound approach as well as the event sound - both do not work.Moreover, I was not able to find (anywhere on the Internet) any sample SWF with streaming sound (nor event sound) encoded in Speex. Do they even exist? Anyway, Flash CS5.5 is not capable of generating them.I would just like to know whether Speex support for SWF streaming sound can be found anywhere else than in the Specification. (I know that FLV can contain Speex and that Flash Player can stream Speex from a microphone and that FMS can stream Speex to its clients, but this is not what I am asking for)

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







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