Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

AS3 replay sound from beginning

Posted on 2011-02-22
2
Medium Priority
?
848 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 1000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
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…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
Suggested Courses

704 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