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
Similar Posts:
May 27, 2010
I am using CS3 with Actionscript 2.0I am trying to get a play / pause button to control a movie clip.I have placed the MC on one layer and the button on another layer.The button works great.All I need is the AS to control the timeline of the movie clip.
View 1 Replies
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
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
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
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
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
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
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
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
Nov 22, 2009
I have four buttons in flash and only one of them work. I have attached the fla file and an index page in a zip file. It seems only one button will work at a time.
[Code]...
View 5 Replies
Mar 16, 2009
I have to play a sound file and show the progress of the sound file being played. I am using import flash.media.Sound; import flash.media.SoundChannel; But the PROGRESS event gives theprogress of loading of file. I want to know of much of the song has been played and how much more is left.
View 3 Replies
Oct 6, 2010
the method for stopping/playing sound in 2.0 don't work for 3.0. i can stop the sound by going to a different page/frame on the site.but i want the buttons.
1. play button?
2.stop button?
3.mute button?
View 1 Replies
May 27, 2009
having trouble accessing a button within an mc placed on the stage using attachMovie.[code]it just doesn't seem to reference the button with the instance name 'zoom' that is inside the 'text01' mc. i've tried _root.text01.zoom as well.
View 3 Replies
Apr 4, 2007
Basically, the attached xml file and fla does not work.
View 2 Replies
Mar 10, 2010
I am thying to create a movieClip class that has a button attached at the right corner, and then load multiple instances at the stage. My problem is, that although one MovieClip is loaded correctly, all the rest have no button attached! How is that possible? what am i doing wrong???Also i would like to note, that besides the button i am attaching one more movieclip with and image (from a loader)Let me show you what I mean:
package multi{
public class Multi extends MovieClip{
var rightButton:SimpleButton=new SimpleButton();
[code]....
View 2 Replies
Apr 8, 2005
I attached some movieclips dynamically from the library, and the MC contains a button symbol called "myBtn", I would like to let it load another swf on _level3...below is part of my Actionscript.
[AS]
stop();
//-------------------------
this.container.myText.html = true;
[code]....
How would I go about targeting the button instance and tell it to load an swf?
View 8 Replies
Apr 15, 2010
I've assigned a sound to the button over frame and a different one to the button down frame. When i over over the button the button over sound plays. When I then click the button, the button over sound plays AND the the sound I put in the button down frame plays.
View 8 Replies
Apr 21, 2009
I have a full browser scrollbar I found from here, that has class of 'ScrollExample'.as, but I have a difficult time adding it my website.I used a UIloader on my main site with the instance name of 'loadit' and placed it on top left corner of my site.I have a button on my main site with the code:
Code:
btn_1.addEventListener(MouseEvent.CLICK, ContactClick);
function ContactClick(event:MouseEvent) {
var loadit = new Loader();
[code]....
but when I click on btn_1 I get this error:
Code:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at ScrollExample/initStage()
at ScrollExample()
View 5 Replies
Mar 5, 2010
The file attached firing non-stop. I want to set a timer to control its firing.
View 1 Replies
Oct 4, 2011
I use attachMovie to call movie clips succesively on the stage. I use a forward button to slide them in progression but when I want to go back in the same order everything gets messed up. You can see the swf playing here, [URL]..I numbered each frame so you can see when clicking on back button it gets messed up.
// Each of the button functions here call the add_page() function and pass the Identifier of the page that they will display b_0.onRelease = function() {
[Code]...
View 1 Replies
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
Sep 21, 2011
how to add mute sound and unmute sound script in a single button?
View 2 Replies
Feb 14, 2010
How do I link the pictures in the attached file to different websites. Example, when image 1 appears, I want users to be able to click on it to take them to story 1. Then when picture 2 appears, users can click on it to go to story 2, etc.
View 16 Replies
Jun 12, 2009
Can any answer the following questions and maybe point me to a "for dummies" tutorial on 'Classes'. I have the books but they have seemed to disappoint me. Unfortunately I can never ask "why" when reading a book.
1) Does a Class file need to be attached to a library symbol?
2) How do you know what to import?I know this sounds funny but should you always import flash.display.MovieClip? I just want to create a line using a class to begin with and call it from a flash swf with two parameters (start and end).Wouldn't it only need to be a import flash.display.Graphics
3) What is "Base class is final."? Anybody had this error before?[code]
View 4 Replies
Apr 5, 2007
I have attached a file called datetool.fla, inside this fla i have created 5 buttons which has Prev Date, Prev Week, Next Date, Next Week, Toady. And 3 dynamic text boxes.
View 13 Replies
Aug 5, 2010
I have a bit of a problem with sound.. I have a main container animation with background sound that's loaded with soundChannel..I also have an externally loaded SWFs with Movie Clip buttons that have a sound ON ROLLOVER on the timeline..after rolling off - I place the:SoundMixer.stopAll();to stop the button from playing the sound once the mouse is rolled off.. However, the problem I'm running into is that it also stops the sound of the main container movie cli
View 1 Replies
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
Nov 21, 2010
I have a long mp3 file hosted on a standard apache server (30 minutes long so far, but I would like it to work with longer sounds too).I'd like to start playback of this audio within at a specified point. When attempting to use Flash Actionscript 3, my basic tests show that ALL the audio from the start to the position I choose is buffered before playback (Sound.bytesLoaded was my friend here). If I start one second in, it takes about 3 seconds to start playback, 30 seconds in, takes about 25 secondsObviously with a really long mp3, like skipping playback to the middle of a 3-hour audiobook, this isn't going to be practical.Here's the ActionScript 3.0 code I'm using:
button.addEventListener(MouseEvent.MOUSE_DOWN, function():void {
var s:Sound = new Sound();
var req:URLRequest = new URLRequest("http://example.com/audio.mp3");
[code].....
View 1 Replies
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