Solved

AS3 replay sound from beginning

Posted on 2011-02-22
2
842 Views
Last Modified: 2012-05-11
I have a play button that I need to have replay the sound from the beginning after SOUND_COMPLETE. I can reset the button to play, but my progress bar doesn't reset and clicking play doesn't replay the sound.

I'm getting to my soundComplete function, but can't seem to get it to do what I want it to.
Thanks!

(the large-ish .txt file is actually the .mp3)
A-200.zip
0
Comment
Question by:pixystk
2 Comments
 
LVL 17

Accepted Solution

by:
deepanjandas earned 250 total points
ID: 34961046
Replace the function soundComplete with this one:
function soundComplete(event:Event):void
{
	trace("done!");
	controls.gotoAndStop("play");
	trace(progressBar.scaleX);
	progressBar.scaleX = 0.00;
	
	isPlaying = false;
	pausePoint = 0;
}

Open in new window


Warm Regards
Deepanjan Das
0
 

Author Closing Comment

by:pixystk
ID: 34961945
Thank you!
missed setting isPlaying to false.
Thanks
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now