ActionScript 2.0 :: Reasons For Sound Not Working?

Aug 5, 2003

firstSound=new Sound();firstSound.attachSound("****");

that's easy...did the linkage thing and it doesn't work..did it with another mp3 file and it worked fine..any idea on what can be causing this particular mp3 not to work when attached with AS?

View 2 Replies


Similar Posts:


ActionScript 3.0 :: SharedObject.flush() Reasons For Failure?

Apr 9, 2010

So I've looked all over the internet for this answer and have found nothing.I'm writing data to a shared object and need to know when it's successfully written to disk so I can take further action.Most of the time the shared object gets successfully written, but some times, for reasons unknown, it will fail.So my question is, what are the reasons a call to flush() can fail and how best can I avoid that case and ensure that its successfully written?

View 5 Replies

ActionScript 2.0 :: Code Execution Delay For Unknown Reasons?

May 8, 2009

The following code is on a movieclip being used as a button.The code is pretty simple. Originally the code was just the code after the gap. This code loaded up a movieclip (filtermc) off-stage that runs through an xml file and preloads a form. This takes a second or two, and when finished that newly loaded movie tweens into position. The tween code is on a frame in the 'filtermc' movieclip.

The problem is that in the second or two that it takes for this movie to load, people could click the button a second time which messes up the form/movieclip (everything on it is unresponsive, I think because two movieclips having the same name)

Anyway, I decided to solve this problem by loading a transparent blocker movieclilp in front of this button to keep it from being double clicked. This blocker clip is just a movie that has an empty onRelease function in it so that the button below it cannot receive any new clicks. Also, the button goes to another frame where it says "loading..." to provide feedback to the user.

The Problem When I click this button, there is a delay of about 2 seconds before the semitransparent (for testing) blocker appears. In fact it appears just as the filtermc clip has started it's tween into place.

It is almost like this code is running out of order. The traces come back in the correct order so I know it is not running out of order, but why the 2 second delay before the blocker movie gets loaded up? The button also takes 2 seconds to show the "loading" frame. The traces also have the same 2 second delay.

If I comment out the second half of the code (the filtermc part) then the blocker movieclip pops up instantly and the button changes frame instantly.

PHP Code:

on (release) {
//problems occur if button is pressed twice before filtermc scrolls into view
//this button must be disabled until the filtermc finishes loading

[code]....

View 1 Replies

Flash :: Flex - What Are Possible Non-code-related Reasons For A Blank Screen In Builder 4.6 Design View?

Dec 13, 2011

I was editing a very basic mobile Flex project, and after I debugged the master (application) mxml file, Design View stopped working (blank screen displayed, no Design View errors) for all files. Creating new projects, either mobile or else, or testing old, working projects, doesn't work either. Out of the related issues I've found info on, most concern earlier versions of the IDE, and deal with either Design View errors (got none), use of certain functions or custom components (I get the error even on a new project), or are solved by changing styles back-and-forth (tried already, to no avail).

I can't drag and drop components to the design area, either (a "prohibited" symbol appears and nothing happens when I drop); so I'm pretty sure it's not code-related or a bug, but probably something stupid, like a configuration issue, so I definitely need someone to take a fresh look at it.

View 1 Replies

Streaming SWF With Timeline Sound Not Working?

Jun 6, 2008

I'm streaming an external SWF into another movieclip, the external SWF has a timeline animation and sound (voice speech) as well on the timeline, it also has a preloader on it which it's set up that when 30% loaded is completed to start playing the animation.But when I run the main movieclip the streaming of the external SWF works fine for the animation but the sound does not play until the preloader is 100% completed.

View 1 Replies

ActionScript 3.0 :: Sound Not Working In CS4 Flash?

Apr 28, 2011

I was trying to import sound file in mp3 format to my flash.It is working fine but after I testing the movie the sound doesn't work.

View 2 Replies

ActionScript 3.0 :: Flash Sound ID3 Not Working?

Apr 16, 2010

I am trying to use the id3 tags from second table, output display undefined..
 
var sound:Sound = new Sound;     var url:URLRequest = new URLRequest("1.mp3");     sound.load(url);     var player:SoundChannel = sound.play();     sound.addEventListener(Event.ID3, id3Listener);     function id3Listener(event:Event) {               var info:ID3Info = sound.id3;               trace(info.TIME);
trace(info.TRDA);

View 2 Replies

ActionScript 3.0 :: Sound Keep Working After Finished?

Mar 27, 2012

i did this

package{
import flash.display.MovieClip;

import flash.events.MouseEvent;[code]...

it works but only one time i wanna the sound keep working after finished

View 5 Replies

Actionscript :: Why Is Sound Not Working In Flash

Mar 18, 2010

This is what I have as far as code, it is in the first frame of the movie.

nature = new Sound(this);
nature.attachSound("sound_naturally");
nature.setVolume(50);

[Code].....

I have the sound exporting to ActionScript with the link identifier 'sound_naturally', not exported to the first frame. I don't understand why it's not working. I did like the exact same thing like 3 hours ago and it worked fine, but I lost the file so I had to redo it and now it won't work at all.

View 2 Replies

ActionScript 2.0 :: [FMX] Attached Sound Isn't Working

May 1, 2004

I have the following problem. I have a attachSound for three wav files in the library. This is the code:

Code:
song1 = new Sound();
song1.attachSound("song1");
song2 = new Sound();

[code].....

This is also working.When I press the button the music stops. When I press the song1 button, song1 start playing again. But when I press on of the othet two buttons nothing happens. This is the code for the buttons:

Code:
on (release){
_root.mc_menu.song1.start();
_root.mc_menu.song2.stop();
_root.mc_menu.song3.stop();
}

View 5 Replies

ActionScript 2.0 :: Working With Sound Objects?

Apr 7, 2003

I came accross this very comprehensive webpage about sound objects in flash mx about a month ago. Since there has been 2 or 3 threads started about working with sound just today, thought i'd share it [URL]..

View 5 Replies

ActionScript 2.0 :: [FMX]Attached Sound Isn't Working?

May 1, 2004

I have the following problem. I have a attachSound for three wav files in the library. This is the code:

Code:
song1 = new Sound();
song1.attachSound("song1");

[code]...

View 5 Replies

ActionScript 3.0 :: Play Sound Only Once SOUND_COMPLETE Not Working?

Apr 11, 2009

I have a button that rotates a wheel 90 degrees each time the button is pressed. What I'm trying to do, is play a sound when the wheel stops at each rotation. So something like this:

Wheel rotates to 90 degrees.
90 degrees = sound #1
Sound #1 plays once.

The rotation works fine, but the problem is, when I tried to do this I put in a statement that with my wheel named "wheel" if wheel.rotation==90 play my sound. But my sound keeps looping and SOUND_COMPLETE is not firing to trigger it to stop.

[Code]...

View 4 Replies

ActionScript 3.0 :: Sound Stops Working Randomly?

Dec 6, 2009

I imported a .aif sound in to my library and gave it a class name of "Beat". I'm using this sound as a rollover effect. So I have my variable initiated at the top like so:

Code:
var snd:Beat= new Beat();
My listener's function like so:

[code].....

View 1 Replies

ActionScript 3.0 :: SWF With Sound On Frame - UnloadandStop Not Working

Feb 17, 2011

I have a loaded swf which contains sound on its frame. Even though I have unload it, the sound still playing. I cannot get rid of it. I've tried:
- _loader.unloadAndStop();
- SoundMixer.stopAll();
- System.gc();

View 1 Replies

ActionScript 1/2 :: Sound Isn't Working With Control Buttons

Apr 10, 2009

I have a scene with a voice over. I have split the voice over in to multiple sound files (mp3). The voice over plays correctly as long as you don't use the btns. When the forward btn is used the the file goes to the correct frame in the timeline but won't play the sound. Next issue, after pausing then using play the scene plays but without sound.

[Code]...

View 5 Replies

Flash :: MX - Sound On/off Button Not Working Properly?

Aug 8, 2009

I used the tutorial found here. The 3 frames of my button are in a movie clip, within a keyframe in the main timeline. I used the code at the end in the tutorial for the first keyframe, so that the clip begins with music playing. However; I cannot get the buttons to work. I cannot stop the sound.

View 1 Replies

ActionScript 3.0 :: Working On Stuff Using The Flash Sound API ?

Feb 13, 2010

Has anyone been working on stuff using the Flash Sound API recently? I like working on dynamic audio and was wondering what the progress is on it.

View 1 Replies

Professional :: Custom Envelope For Sound Not Working?

Jul 1, 2010

I'm trying to set a custom envelope for a sound in Flash CS5. I can bring up the envelope editor fine. But, I find that all the control points are after the end of the sound itself. If I click on the waveform to create a new control point, the point momentarily appears where I click it, then automatically jumps to the end of the waveform. If I try and drag any of the control points from after the waveform to during it

View 1 Replies

ActionScript 3.0 :: Pause Sound Not Working Correctly?

Jun 1, 2011

I'm using a version of the pause sound code found on the adobe/page, but it's not resuming the sound from the pausePoint.  I have the pause/play function tied to the stage so that my external swfs pause as well.  Here's a clip of my code,This is the load audio with swf part:

var fl_Loader_5:Loader;var fl_ToLoad_5:Boolean = true;var channel:SoundChannel = new SoundChannel();var snd:Sound = new Sound();var req_1:URLRequest = new URLRequest("audio/Introduction.mp3");

[code]......

View 27 Replies

ActionScript 2.0 :: Sound Trigger Buttons Not Working?

Jul 28, 2010

First check this website:Go to the sound menu, and try to play any of the songs. Try the first one, than try it from the bottom.You will notice, that for a few seconds the buttons are not working. After a while they just start function.The Actionscript is on the "playBtn_mc":

var my_sound5:Sound = new Sound();
my_sound5.loadSound("zene5.mp3", false);
play5_b.onPress = function() {

[code]......

View 0 Replies

ActionScript 3.0 :: Flash External SWF, Sound Not Working

Sep 2, 2011

I have a main swf that would eventually call out to another SWF file. Both of them have background music playing in them. Both swf runs fine without any error when I tested on them individually(both test movie and running the swf files themselves). But when the main swf calls the sub swf, the music doesn't play which is strange....

this is how I load my music(in both swf):

Code:
private var myMusic:Sound = new Sound(new URLRequest("main_music/myMusic.mp3"));

private var myMusic:Sound = new Sound(new URLRequest("sub_music/myMusic.mp3"));
All the swfs and music resides in the same folder. I am confused, I do not see the reason why the sound doesn't play on sub.swf when the main.swf calls the sub.swf when the main.swf works perfectly fine.

View 3 Replies

ActionScript 3.0 :: Position Working, But When Resumed / Sound Rewinds A Little

May 28, 2008

I have a pause button that pauses a sound playing in a sound channel. It works, but when I resume the sound, it isn't in the correct position, almost like it was rewinded a little.[code]

View 3 Replies

ActionScript 3.0 :: Soundchannel.position Working, But When Resumed, The Sound Rewinds A Little?

May 28, 2008

I have a pause button that pauses a sound playing in a soundchannel. It works, but when I resume the sound, it isn't in thecorrect position, almost like it was rewinded a little. I'm usingthe code straight from the

View 1 Replies

ActionScript 3.0 :: Flash SoundTransform: Stereo Play Sound From Left To Right Not Working

Sep 6, 2011

i'm trying to play a sound from left to right using actionscript3. i have putted in the first keyframe the code. what i have wrote is:

Code:
var soundClip:Sound;
var channel:SoundChannel = new SoundChannel();
var trans:SoundTransform = new SoundTransform();

[Code]...

View 1 Replies

Media Server :: Microphone Sound Recording,saving / Playing Flv File Is Saved But Not Working

May 4, 2009

While recording the flv is saved inside applications/stream/samples/audio.flv. But it is not working properly.[code]

View 1 Replies

Actionscript 3 :: Sound Latency - Set It For Any Silence Before The Actual Sound By Calling The Sound

Apr 16, 2011

I am triggering short sounds dynamically from the library for a game (Specifically Air for Android). When the user clicks a button the sound can take up to 600ms to actually play. I have set it for any silence before the actual sound by calling the sound like so:

[Code]...

All return the same results. I know there are threads here that talk about this but none have offered a real solution that I can find. Is there no way to cache the sound or store it in a buffer?

View 1 Replies

ActionScript 2.0 :: Sound.loadSound("1.mp3",false) Not Working?

Mar 3, 2006

sound.loadSound("1.mp3",false)where 1.mp3 is residing in my current folder (as the swf).However, the sound does not get played. It is only played when I say:sound.loadSound("1.mp3",true) //(hence a streaming sound)I want the first one to work, in order to be able to use the onSoundComplete event

View 11 Replies

Loading With Sound Only Played Once But Keeping Hover Over Menu Item Sound Intack?

May 21, 2010

I have a flash header that was never completed because the guy I hired took people's money and ran. So now I even wonder if what he said could work with my flash header is true or not. But, usually there is always a way to make it work.

I have a flash header that does two important things: 1) Upon entering the site, it loads and plays an audio track 2) Makes an animal noise when you hover over each animal menu item. (not sure if I'm able to give a link to it or not on here. If I able to and someone would like to see it let me know)

I want to know if my flash header can support the following additional functionality/changes:

1) Currently, it loads everytime a page is selected. I only want it to load the one time of entering the site because the audio gets annoying. Set a cookie maybe?

2) But, I do not want to turn the audio off completely because I still want the hover over each menu item sound.

3) Have a link on it to allow them to select to turn on / off the sound completely. It currently has that, but only for the current page. Once you select another page, the audio is back to on.

4) Lastlly, is there a way for it to detect that someone doesn't support flash and to display an html version of it? And can flash create a html version from my fla file?

I don't know much about flash (but am learning) so I'm not sure if I'll be able to do this myself. However, I want to find out if my flash header will even work this way before I invest the time learning it just for these changes. I know it will be pretty deep with script code, but I'm hoping I could find base code already available for these features. Not sure I can afford help now because of being laid off and two different scammers taking advantage of me. So I'm going to try to do myself and see if there is any suggestions/support on here that can help. I have Flash CS4.

View 2 Replies

ActionScript 1/2 :: Make Button On Rollover Starts Sound And Rolloff Stops Sound?

Jul 28, 2009

I have several buttons in a movie and I want to be able to rollover an individual button and play the sound for that button and when I rolloff I want the sound for that button to stop.

View 6 Replies







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