Solved

AS3 replay sound from beginning

Posted on 2011-02-22
2
838 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
Comment Utility
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
Comment Utility
Thank you!
missed setting isPlaying to false.
Thanks
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

772 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