A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Song "slideshow" idea

  1. #1
    Join Date
    May 2008

    Song "slideshow" idea

    for kusco .... i was wondering...

    can you make a "slideshow" for sounds

    i mean... a feauture so you have a slideshow with a song on every slide

    when a "slide" is playing the other slides are stoped.... so i don't have to make a script like

    element ("song2.mp3).play ()
    element ("song1.mp3).stop ()
    element ("song3.mp3).stop ()
    element ("song4.mp3).stop ()
    element ("song5.mp3).stop ()
    element ("song6.mp3).stop ()
    element ("song7.mp3).stop ()
    element ("song8.mp3).stop ()
    ... so on

    i hope you got the idea cuz my english really sucks XD anyway... that kind of thing would be very usefull
    Don't blame me cuz' my English sucks ) i'm from romania XD


  2. #2
    A Senior Newbie - How Odd ForumNewbie's Avatar
    Join Date
    Mar 2003
    This looks like another good opportunity to use an array

    In your starting script, set up the array, and specify what elements to use for the slides:

    MyPictures = new Array (3)
    MyPictures[1] = element("Picture1")
    MyPictures[2] = element("Picture2")
    MyPictures[3] = element("Picture3")

    // Now specify which sound goes with which picture
    MySounds = new Array (3)
    MySounds[1] = element("MySound1")
    MySounds[2] = element("MySound2")
    MySounds[3] = element("MySound3")

    // Whenever you want to change the displayed slide and music, change a variable 'PicNumber' to be the number of the slide to show.
    // This first part clears the screen and stops all sounds.
    for (a=0; a<=MyPictures.length; a++)

    // This part shows a picture and plays the right sound for that picture:

    There are probably better ways, but I think this is a nice easy starter

    Please note that my domain has changed to http://www.morganmultinational.com

  3. #3
    Senior Member Zoranan's Avatar
    Join Date
    May 2008
    That's a good idea.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center