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


Similar Posts:


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

Button With MP3 File Attached - Sound Cut Off At End

Nov 10, 2007

I have a button with a sound attached to it. The button should play the sound when the mouse is in its down state. When I play the sound in the .swf file the sound plays but it's cut off at the end (maybe the last 3 seconds). I'm using mp3 files for the sound. This is happening with many of the buttons in the program. It's a simple operation within the program. The user clicks a button and voice-over is supposed to play.

View 0 Replies

ActionScript 2.0 :: Attached Sound To Movie?

Oct 8, 2004

What is the best way to attached sound to my movie. I used to used the sound obejct as such:

my_Sound_sound = new Sound();
mySound_sound.attachSound("soundID");

But by under the linkage menu I am only able to select export in the first frame. Which makes my first frame super huge. Than my preloader will not load until the sound, so it is no good.

View 4 Replies

ActionScript 2.0 :: Preloading The Attached Sound?

Dec 29, 2005

I have read lots of posts with similar problems, however, my preloader is slightly different as it is a separate file altogether. I have attached a sound on frame 50 of my movie using 'attach sound'.It plays fine. On my linkage I have ticked 'export on first frame'. When this is not ticked it does not play. So I left it ticked.

My preloader is a seperate .swf that loads the movie that has the sound.I can tell the sound has loaded as the preloader takes a lot longer. However, when the movie has loaded and begins to play the sound just does not exist. Or it is shy and does not want to talk.I can't do the thing everyone is suggesting (moving sound to frame 3 and unchecking 'export on first frame', then modifying my preloader script) because my preloader is separate to my movie.

View 1 Replies

ActionScript 2.0 :: Sound SWF Won't Play When Attached

Dec 10, 2006

I have a sound SWF that plays fine on its own. But when I attach it to the main timeline of another SWF there's no sound. How do I need to reference the Sound object and vars to get the Sound to play?

Here's the code for the sound SWF:

Code:
var mainLoop:Sound = new Sound();
mainLoop.attachSound("mainPageLoop");
// Starts at beginning and loops 2 times.

[Code].....

View 4 Replies

ActionScript 2.0 :: Attached Sound To The Movie?

Oct 8, 2004

What is the best way to attached sound to my movie. I used to used the sound obejct as such:

my_Sound_sound = new Sound();
mySound_sound.attachSound("soundID");
etc etc.

But by under the linkage menu I am only able to select export in the first frame. Which makes my first frame super huge. Than my preloader will not load until the sound, so it is no good. What shall I do?

View 4 Replies

ActionScript 2.0 :: Why Does Attached Sound Play Automatically

Jul 4, 2011

AS in frame 1:

[Code]....

the MC soundLoader is there on the stage, and the file is linked correctly from the library, meaning that it works (the movie makes a single sound when the mouse hovers over it), except that the attached sound plays immediately when the swf loads. This is annoying on a page with about 16 of these!

View 1 Replies

ActionScript 2.0 :: Attached Movies Not Working

Sep 20, 2006

why the attached movies when they are bigger than the stage go to the next line but tahy stay all in the same location

[Code]....

View 4 Replies

ActionScript 2.0 :: Array Of Strings - Input By Colored Buttons With Sound Attached

Apr 17, 2012

I've got an array of Strings each of which have been input by a series of coloured buttons with sounds attached. When a play button is pressed the strings that correspond to different coloured sounds should play one after the other. Instead they all play at the same time as one jumbled mess of noise and I have tried everything to get it to work. The trace shows that the for loop through the array seems to be doing the right thing which is why I can't understand why it won't just play back one after the other.

This is the code for the play button:
PlayBTN.onRelease = function(){
trace("PlayButton Pressed");
for(var i:Number =0; i<songArray.length; ++i){
trace("Inside Loop");
trace(i);
[Code] .....

View 1 Replies

ActionScript 2.0 :: OnRollOut Not Working On All Attached Clips

May 21, 2007

i'm trying to make this little news section and for some reason the rollover and rollout works only on the last news itemClip to be attached. you can take a look at it HERE and see that the bottom one is the only one working.[code]

View 3 Replies

NetStream Class - How To Detect If Working Video Attached

Jul 31, 2011

I'm building a video chat in flash and everything works really well, except for the part where I'm trying to detect if the other user is sending a working video stream. There's a couple of reasons why the other user isn't sending video.
-The other user got no camera
-The other user got a camera, but the camera is currently being occupied by another application(Skype, Photo Booth, Google Talk, etc.)
-The other user got a camera but hasn't allowed the use of his/hers camera.
(Other unexpected problems I guess...)

So how do I detect if the stream I receive from the other user is a black stream(because of the reasons above) using the NetStream class? The closest thing I have came up with is by adding a timer that polls the currentFps() function from the stream I receive from the other user. But so far this seems pretty unreliable because I might get currentFps() == 0 and show an error because of this even though I actually got video from the stream in some cases. The reason for this is because I poll the API every 4 seconds for the currentFPS function and let's say at 00:00:04 I get "no video" according to the poll but at 00:00:05 the video kicks in, and therefor I need to wait until the next tick until the error message disappears

This is what my current poll looks like
function subscribingStatusPoll(e:TimerEvent):void {
if (subscribingStream.currentFPS == 0){
error.text = "No video found from the other user...
} else {
error.text = "";
}}

This is the only hack I that I can come up with to detect this, but this is unreliable and I actually would prefer a way to instantly detect if the stream I receive got a working video attached to it.

View 2 Replies

ActionScript 2.0 :: Flash8 - OnRelease Functions Not Working With Attached Button?

Jan 12, 2010

I'm loading an item to the stage and trying to apply a function to it but it doesn't seem to work.

Code:
_root.attachMovie("FullScreenBTN","FullScreenBTN",_root.getNextHighestDepth());
_root.FullScreenBTN.onRelease = function(){
trace("test")
}

When I press the button nothing happens, but when I remove the attach code and just put the button on the stage with the appropriate instance name it does work.

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

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







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