ActionScript 2.0 :: Audio File Wont Replay?
Dec 1, 2009
i have a problem i have an audio file what plays and on the page i have next/back button when i click next it takes me to the next "page" but the audio still carrys on so i put StopAllSounds(); on and now when i navigate back to the audio page i click play and nothing but this only happens oce the audio file has been played ive tryed loading the audio file on entrance to the frame but nothin
View 7 Replies
Similar Posts:
May 3, 2011
I have a project where an external video plays with cue points that trigger the elements on my main timeline (captions). I have a custom mute button for the video so that the guy talking on the video can be muted if necessary (did not use a skin for video controls but set it up as a button). The problem is, when I reach the end of the video and I click a "replay" button to restart at the beginning, the timeline and video start but if the video was muted previously, the video remains muted while my button shows that it isn't. How do I get the audio to turn back on automatically when restarted, or at a minimum show that it's still muted when replaying? My replay button AS2. mcPlayer is my flv.
[Code]...
View 9 Replies
Jun 24, 2010
What is the code to replay a movie using replay button on stage? Using actionscript 3.
View 1 Replies
Jan 14, 2011
I have created a linear flash file to show the steps of a user flow.
This uses a single 'next' button which navigates through the flow and at the final screen navigates back to the first screen to allow the user to view the file again.
However it sticks at screen1 and will not progress.
I have addressed the following points suggested by someone else,
1. make sure your button listener code is on the first keyframe that contains your button.
2. your button should be on its own layer
3. that layer should extend to length of your timeline
4. there should be no keyframe in your button's layer OTHER than the first keyframe. ie, there's only one keyframe containing your button and your button exists throughout your timeline.
View 3 Replies
Dec 14, 2010
I am new to using flash and am working on small flash movie for a class assignment. I had to add a replay button at the end of my movie which I did according to my text and other tutorials I have read unfortunately my replay button is not working. Just realized I cannot upload my file as it is too large, can email them my file.
View 3 Replies
May 29, 2010
I've got a .flv file uploaded on my server that plays just fine I created the video in Apple Motion, exported out a .MOV reformatted it using Adobe Media Encoder. Imported into Flash using the import video menu command. I ended up with a .swf and a .flv. I upload both to my server, built a webpage and use the swf to play the .flv.Anyway. Everything plays. I need a button that a viewer can push and replay the video once it stops.I can create shapes in flash and can turn them into buttons. Easy enough. Seems like I need to create a script to go with that frame in the timeline?I keep reading about creating a listener and an event? But it's confusing finding answer because the is no clarification whether people are using AS2 or AS3 and I feel like I'm just chasing my tail.
View 11 Replies
Jul 1, 2009
I've created a repaly button to replay an imported swf file (instance name=dpCuspSub_mc) located in frame 1 of a movie clip. It works, but then it starts looping and I want it to replay only once.
replay_btn.addEventListener(MouseEvent.CLICK,replay); function replay(evt:MouseEvent):void {dpCuspSub_mc.gotoAndPlay(1);}
I'm a graphic artist who has just started learning Flash, so please simplify as much as possible.
View 17 Replies
May 15, 2007
I'm looking for a (free) flash player that I can embed in my site and use to play a .m4a (.mp4 with AAC audio) file that will be obtained using a URL (i.e. it's not local to the server hosting the web page).I've tried searching on google for one, but either I'm searching wrong or no one has made such a thing. Ideally this would be very simple (small user interface with play button and maybe a progress bar) and it would be easy to have multiple instances of on an html page (can create the player with an <object> tag).
View 7 Replies
Aug 6, 2010
If I import an FLV video is there any way to remove the audio, put the audio into a byte array, and then re-add the audio to the flv video?
View 1 Replies
Jan 21, 2011
I have AS3 project, made with FlashBuilder. I'm using MovieClips from an external .SWC-file. In a MovieClip from the .SWF-file, I want to use an audio-file. Is it possible to preload a sound-file (e.g. .MP3) in my FlashBuilder project, and access it in a MovieClip inside the .SWC?
View 1 Replies
Sep 27, 2009
i am new to actionscript i need to download .mp3 and vedio file form my remote server how to do this give me any example source code for this.when i download .pdf its downloading properly. but not audio.
View 1 Replies
Sep 8, 2009
I find myself inbetween the AS2 and AS3 world with this project. I added an audio file in a project which is a narrated presentation. If I play the timeline the audio plays but when I stop the playhead the audio continues to play. To tell you the truth I could not even remember having to do this in AS2 not alone in AS3. I have the audio preferences set to specch to make the file smaller, have the frame rae up to 30 frames per second as I'm using FlashEff for text and movieclip effects.
Is there away to be able to stop the audio so i can see and hear where I am when I start dropping the text and pics in the project?
View 1 Replies
Sep 22, 2010
A quick question. Is it possible to play a mp4 video file with 2 audio tracks in it and switch between the two audio tracks? In stead of subtitles we want to provide the user with audio in their own language. As a test I received a mp4 video file with 2 audio tracks, an English and a German. When I load and play the mp4 video file I default hear the English audio track. Is it possible to switch to the German audio track?
View 5 Replies
May 1, 2011
I am not familiar with flash, and I would like to change an audio file from an annoying noise to a silent (aka, blank) file. Before you ask "why use it at all" - It is used for an online chat client, and invokes a Jquery error if the file is not present. The current file. It would be outstanding if someone could whip-up an error.swf file that is silent.
View 1 Replies
Oct 1, 2009
I have an assignment to create an mp3/wav file using flash. This player is expected to record voice from a speech mic and also be controlled by a foot pedal. How to record voice data and convert it into .mp3 file but haven't found anything yet.
View 1 Replies
Dec 12, 2006
Ok, so I've accomplished fading out the flv file once activated by a cue point, but I'd like to fade out the audio with it as well. Does anyone know if this is possible, and if it is, what the necessary AS would be?
Code:
var vid:Object = new Object();
vid.cuePoint = function(cues) {
vidTest.onEnterFrame = fade;[code]......
View 1 Replies
Mar 31, 2009
How do I get the length of an audio file? I need this value to set up a timer that depends on the length of the song playing.I have tried the following, but only get a value of ZERO.
from my code:
var gettheme:URLRequest;
var nextA: Sound;
var SC_A:SoundChannel;
var songLong : Number = 5; // just to set a number
[code]....
View 1 Replies
Jun 16, 2010
My flash app needs to popup a browse file dialog box and select an audio file. After selection, it will then play the audio file inside flash.
View 1 Replies
Nov 18, 2008
I managed to use a loader to load an swf that has a video/audio track encapsulated within it. It starts and plays fine. Because of property rights considerations, I must use the provided swf with the video within it rather than converting it to an FLV.
And using the unload command I get the video portion to stop, but not the audio.
I know that I need some kind of audio stop to stop the audio, but haven't been able to figure out exactly how.
The parent swf is pretty simple, no buttons, it just plays 6 external swfs under control of another program that starts it and stops it with no other interaction.
View 6 Replies
Mar 29, 2010
I am trying to import an audio file into Flash, but do not know what file extentions it recognizes. The file is .m4a that was created in iTunes. I can see how Flash would not recignize it, so what does Flash recognize, and I'll see if I can convert the file.
View 2 Replies
Aug 29, 2010
I've been sent a link to an FLV file that plays in the browser and when downloaded plays in Adobe Media Player.
However, when I try to import it into Flash, I get the error message
unsupported audio codec
It'll bring in the video no problem.
I've tried to use Adobe Media Encoder to convert the file but it doesn't see the audio either.
Is this some kind of protection on the audio? What am I missing?
View 1 Replies
Oct 23, 2011
When i load the audio as mp3 file some time it will throw error.The error is "one or more files cannot be imported" Then i convert the audio file as wav file,but the quality of the audio is not good.
View 1 Replies
May 26, 2010
Is there a way to detect whether an FLV file contains video, audio or both?The flv file is streamed to a flash client, that needs to show a certain view depending on the data in wrapped in the flv file.
View 1 Replies
Mar 30, 2011
I'd like to record audio from a microphone and I'd like the user to be able to add cue points during the recording so when he loads the file afterwards, he can jump easily to a specific position.
I don't really know what file format I should use and how to store the metadata (cue points)
I thought about
encoding a wav/mp3 and stores metadata in a .cue file (easy to do but 2 files to store)storing XMP data in a mp3 file (seems a bit harder but standard metadata embedded in 1 file)flv/f4v with audio only and standard cue points but I'm not sure I can create them directly from the client
View 3 Replies
May 11, 2011
I was wondering if there is a current class or library in a web language (php, perl, etc.) that is able to extract audio from flash files or youtube links directly.
View 2 Replies
Jan 28, 2012
I'm working on an app to stream audio from shoutcast. The streaming goes well on my computer and when debugging it with an Android-configuration. But when I deploy it to an APK-file and run it on a Samsung Galaxy S, the streaming doesn't work.
My code for streaming the audio:
var urlRequest:URLRequest = new URLRequest("http://.../;");
var soundContext:SoundLoaderContext = new SoundLoaderContext(2000, true);
soundChannel = new SoundChannel();
sound = new Sound(urlRequest, soundContext);
soundChannel = sound.play();
I've also tried an addEventListener(Event.COMPLETE), it seems my app doesn't get there when running on a Samsung Galaxy.
View 1 Replies
Jan 4, 2010
I have a captivate generated SWF file which has a .FLV inside it.In flash on click of a button I unload the movie(SWF), the video goes away but the .FLV still plays the audio
View 6 Replies
Feb 19, 2011
I've been working with displaying data from the tumblr API and all is pretty good except for some videos [wil have to get in to later] and audio.
Does anyone know a way you can take this data they give you and get it to play the audio file in flash?[code]...
View 1 Replies
Jun 10, 2010
Isn't possible to edit an audio file using flash as3. I mean the user dhould be able to select a few portion of audio file, then he needs to edit that portion.
View 2 Replies
Nov 17, 2009
I am trying to create an audio that only uses the first entry in an xml file. I have most of the things working but I keep getting an error related to the audio file.
TypeError: Error #1034: Type Coercion failed: cannot convert "http://rivervalleychurch.net/sermonaudio/Podcast/06_Jesus_Save_Your_Church_First_Love.mp3" to flash.net.URLRequest.
at latestMessage_fla::MainTimeline/frame1()
I inserted the url for the file into error message so you can see if there is s problem with that. I was initially trying to use a variable to hold the url for me, because this xml file gets updated every week and I only want to access the most recent entry.
This is my first attempt at making an audio player in flash, so I am sure I have made a simple mistake, but for the life of me I cannot figure out what it is.
Here is the code I have so far: (Please Try not to Laugh, at least not out loud)
//Load the podcast.xml File
var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
[Code].....
One last question is in regards to using id3 tags versus xml tags to fill dynamic text fields in the player. Currently I am using the xml file to do this, are there any advantages one way or the other for this. The only reason I ask is that I am hoping to display an "album art" image from the id3 tag in the player. Would it be better to grab all of the information from the mp3 file?
View 4 Replies