jukebox to load next song

This is a discussion on "jukebox to load next song" within the Flash & Multimedia Forum section. This forum, and the thread "jukebox to load next song are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices




Closed Thread
 
LinkBack Thread Tools
  #1  
Old Dec 31st, 2003, 18:50
New Member
Join Date: Dec 2003
Location: USA
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
jukebox to load next song

Hi, i downloaded a jukebox from flashkit http://www.flashkit.com/movies/Sound...2176/index.phpand realized that that unless the user clicks on the next song, it will loop. I looked at other jukeboxes but the ones i've seen are looping. I'm guessing cuz most people don't use mp3's that much? but short loops?



At http://www.kennybellew.com/, under
"How to Invoke Actions When a Sound Object Ends" it says:

If you wanted the next dynamically loaded MP3 to load when myMusic completes, the following code could be used:
Code: Select all
myMusic.onSoundComplete = function() { _root.myNextSong.loadSound("sample02.mp3"); _root.myNextSound.start();}
what i'm using are swfs not mp3's for this player...
Code: Select all
loadMovieNum("song.swf", 11);
how would i go about changing this code...i'm don't know anything about coding.

Thanks, have a happy new year!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!

  #2  
Old Jan 2nd, 2004, 13:07
Reputable Member
Join Date: Aug 2003
Location: Singapore
Posts: 321
Thanks: 0
Thanked 0 Times in 0 Posts
Try getting a different jukebox. The source is not here, in the .fla file, but actually, this .fla file loads another file, which is in non-source-code format, 500x500.swf, which is what you see ( the jukebox ). If you want this jukebox, you have to mail the author of the site reqesting the source code for 500x500.swf...

loadMovieNum("http://www.v3o.com/500x500.swf", 1);
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old Jan 27th, 2004, 03:25
New Member
Join Date: Dec 2003
Location: USA
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Hi there!
Sorry I didn't reply sooner, but I never got email notification for the reply. Thanks for looking into this..
The source of swf 500x500 is replaced by my choice of songs.
I was able to have 15 songs so far, but they just don't play one after the other.
Thanks for helping me!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old Jan 27th, 2004, 08:03
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Hi there, sorry I didn't see this thread sooner!

If you are loading SWF files that contain sound through loadMovie, then you can add quite a high level of interation. For example, you can get your loaded SWF sound files to tell the file that loaded them certain things, like the fact that they have finished playing.

However that can be quite complex... There must be other Jukeboxes out there that are capable of what you are asking?

If you want I can whip up an example of the above that should play through all your tracks?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old Jan 27th, 2004, 23:19
New Member
Join Date: Dec 2003
Location: USA
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
hey there!
i've been searching at flashkit.com and couldn't find any similar jukeboxes and most of them play mp3's. I also looked through the flas but couldn't figure it out. It would be so great if you can show how the code would look like, or some tutorial sites relating to this or other open-source jukeboxes that play swfs. I would really appreciate any help you give me. Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old Jan 28th, 2004, 01:08
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
Yeah, Sirkent I would like to see what you do too. You could make a Tutuorial about it!!! I know how I would go about doing it, but I don't think it would be anything close to as cool as what you can make. So, once you do this, can you put it up for download?? If you need the space, I can even host the .fla for ya!! I got over 485 Megs free.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #7  
Old Jan 28th, 2004, 07:16
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
I'm comtemplating exactly how to do it... I think there's a really nice and hassle free way. I'll give this a shot later as I have to go into Uni this morning.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #8  
Old Jan 28th, 2004, 09:03
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Ok, so you want it to automatically load the next track when the current one has finished?

That is much easier with MP3 files. When you load an SWF, the MP3 is inside of that, so it requires more fiddling beforehand to get things to work as you need to edit every single SWF that has your track in it. I don't think I can get this to work without you fiddling with every one of your SWF files. So as I said, this would infact be MUCH easier with MP3s.

May I ask why you want to use SWF files instead?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #9  
Old Jan 29th, 2004, 05:53
New Member
Join Date: Dec 2003
Location: USA
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
in my experience, swf files load instantaneously and mp3 files take longer to load, so that's why I like this jukebox. I don't know what you mean by editing every swf's...i use Soundnails
...http://www.soundnails.com to change the mp3 to swfs.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #10  
Old Jan 29th, 2004, 07:52
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Well the difficulty here is finding out when a track has finished playing. If you use SWFs like that then I can't see any way of knowing when the track in that SWF has finished playing. SWFs are considered to be specially made flash files and they would usually contain control over the audio they have inside of them. Since you're using a program to make them, you can include them into another flash file and listen to them play and you can stop them by removing them, but you can't preload them and you can't tell when they've finished effectively.

I must also point out that MP3s to not take any longer to load whatsoever if you use the same bitrate and frequency.

So it's impossible to do using SWFs that have been generated from a program like that.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #11  
Old Jan 29th, 2004, 13:50
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
Actually, I thought that MP3's loaded faster if you did them by their file name than with an SWF... Last few times I messed around with them they did anyways. What happens is that if you include them in SWF's your SWF slows down and takes longer to load. Also, you lose quality and even sometimes you will lose visitors because they can't see anything happening if their connection isn't Broadband.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #12  
Old Jan 29th, 2004, 14:08
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
OHHH OHHH... I think I know a way that may work though.... Can you edit the SWF's that you make with this program?? If not, all they are doing is importing it to flash and setting it to streaming video. What you can do is do the sound on streaming and on the very last frame insert a keyframe. In that keyframe Put this code in that frame...

loadMovieNum("YourNextSWFSName.swf", 0);

that will load the next movie into the place of the current movie. If you can't edit them than you are going to have to put the mp3's into Seperate SWF's by yourself. HTH!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #13  
Old Jan 29th, 2004, 14:46
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
That's the point, I'm guessing that you can't edit them.

In which case using MP3s is a MUCH better alternative.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #14  
Old Jan 29th, 2004, 15:10
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
Yeah, I agree with you Sirkent, but if Sarafina wants it done SWF's or nothing that will work. I would defiantely use MP3's though.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #15  
Old Jan 29th, 2004, 16:38
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Well it would work, except that you can't edit SWFs directly like that, you'd have to put the music in them anyway... so it would be completly pointless.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #16  
Old Jan 29th, 2004, 18:12
Highly Reputable Member
Join Date: Aug 2003
Location: Australia
Posts: 662
Thanks: 0
Thanked 0 Times in 0 Posts
Well I would love to see what you could come up with even if this is not what Sarafina wants. Can you build a MP3 player and show us the FLA??? I know you know how, and your talent still amazes me to this day. I have seen you do things that normally a team of people create.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #17  
Old Jan 29th, 2004, 20:55
New Member
Join Date: Dec 2003
Location: USA
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Hey guys, this may be a silly question, but is there a way of making the swfs without using the soundnails program? the only reason why i used soundnails was that i didnt know any other way.
Since the jukebox that i'm using loads the swfs externally, would that make it very hard to know when a song is finished anyway?
About the mp3/swfs' load time, i've tried other jukeboxes with external mp3's, the last one i tried was this http://www.flashkit.com/movies/Scrip...8522/index.php
which was great, plays songs one after the other and more,.. but i tried it and each song took some time to load compared to gbox http://www.flashkit.com/movies/Sound...2176/index.php which was immediate. I would show you the difference between each, if I still have it all uploaded but I just deleted the "xml driven music player" and its mp3s.

So, so far i haven't seen a mp3 player load faster than swfs. I'm not sure what you mean by
the same bitrate and frequency though..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #18  
Old Jan 29th, 2004, 21:33
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Ok, I think the confusion here between MP3 and SWF loading time is that, the player you used probably preloaded the files (it loaded them before it played). I can easily write something that can do this for MP3s.

SWF files are files created by Macromedia Flash. They contain animation and sound (you've definetly seen them around the web).

Loading the files externally does mean that it would be VERY difficult because, in flash, SWF files are meant to look after themselves (they are the published end result). In this case you want to use them just as audio files and that means that most of the control we have over them is lost.

I'll give this mp3 loader a try and see what I come up with... But don't expect anything before tomorrow afternoon!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread

Tags
jukebox, load, next, song

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Chocolate Song Daniel Webforumz Cafe 6 Dec 19th, 2007 11:02
Load Last fizzgig JavaScript Forum 5 Sep 20th, 2007 20:07
load commands acrikey Flash & Multimedia Forum 11 Aug 17th, 2007 08:13
Just want simple Background Song (.mp3) and a simple start/stop. BlackReef Flash & Multimedia Forum 4 Jun 28th, 2007 07:04
Flash Jukebox.... Rob Flash & Multimedia Forum 8 May 14th, 2004 22:16


All times are GMT. The time now is 21:48.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved