Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 05-01-2004, 07:40 PM   #1
Andy S
Registered User
Join Date: May 2004
Location: Hermosa Beach, California
Posts: 16
Default Automatic screen and sound change at end of sound file

I am very new to flash. I have created a presentation using screens in Flash 2004 Pro and each screen contains a different mp3 file. I would like it to change to the next screen each time the mp3 file finishes its sound, and keep changing to the next screen each time the mp3 files finishes - so that the entire show plays by itself and loops. I've looked everywhere to learn how to do this, but can't find an answer. Any help would be greatly appreciated.

Currently I have 1 sound file on each screen however they all start playing at the same time. I don’t know how to write the ActionScript that will play the sound on each screen one at a time, and go to the next screen when the sound finishes. Again, any help is welcome and would be appreciated.

Andy S
Andy S is offline   Reply With Quote
Old 05-01-2004, 08:22 PM   #2
Billy T
Oops I did it again
Billy T's Avatar
Join Date: Oct 2001
Location: Melbourne
Posts: 8,579

you need to play the sounds using a sound object


mySound=new Sound();

(or attachSound)
and then you can react to the onSoundComplete event


//do stuff

remember to search
Online Galleries
iPhone Safety App - iStaySafe
Free Flash Video Tutorials
Photo Website Template

Don't email or PM me questions...
Billy T is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 01:25 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.