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.
|
|
|
|
|
![]() |
||
jukebox to load next song
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
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:
Thanks, have a happy new year! |
|
|
|
#2
|
|||
|
|||
|
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); |
|
#3
|
|||
|
|||
|
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! |
|
#4
|
|||
|
|||
|
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? |
|
#5
|
|||
|
|||
|
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! |
|
#6
|
|||
|
|||
|
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.
|
|
#7
|
|||
|
|||
|
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.
|
|
#8
|
|||
|
|||
|
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? |
|
#9
|
|||
|
|||
|
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. |
|
#10
|
|||
|
|||
|
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. |
|
#11
|
|||
|
|||
|
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.
|
|
#12
|
|||
|
|||
|
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! |
|
#13
|
|||
|
|||
|
That's the point, I'm guessing that you can't edit them.
In which case using MP3s is a MUCH better alternative. |
|
#14
|
|||
|
|||
|
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.
|
|
#15
|
|||
|
|||
|
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.
|
|
#16
|
|||
|
|||
|
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.
|
|
#17
|
|||
|
|||
|
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.. |
|
#18
|
|||
|
|||
|
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! |
![]() |
| Tags |
| jukebox, load, next, song |
| Thread Tools | |
|
|
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 |