Solved

AS3 replay sound from beginning

Posted on 2011-02-22
2
845 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
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 live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

630 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