Volledige versie bekijken : Nieuwe website voor een party
djashuard
%Europe/Berlin %541 %2008, 12:59
Heb gisteren deze website afgemaakt
wat vinden jullie ervan?
Klopt het ook dat de website blijft vastzitten bij het laden van de music?
link : hindilounge (http://www.hindilounge.net/index2.php)
alexju
%Europe/Berlin %552 %2008, 13:16
mijn IE7 crasht gwn bij laden van muziek :D
djashuard
%Europe/Berlin %601 %2008, 14:26
dat is echt raar....
//Mp3 Player with playlist
//Written by John Bezanis for SWF Spot. http://www.swfspot.com
stop();
var songs:Array = new Array();
var curtrack:Number = 0;
var playingsong:Sound = new Sound();
if (_root.playlist == undefined || _root.playlist == "") {
_root.playlist = "playlist.xml";
}
var playlistXml:XML = new XML();
playlistXml.ignoreWhite = true;
playlistXml.load(_root.playlist);
playlistXml.onLoad = function() {
loadSongs();
loadplaylistbox();
loadSong(curtrack);
if (_root.autostart == "true") {
toggleplaypause();
}
};
function loadSongs() {
for (songIndex=0; songIndex<playlistXml.childNodes[0].childNodes.length; songIndex++) {
var songdata:Object = new Object();
songdata.url = playlistXml.childNodes[0].childNodes[songIndex].childNodes[0].childNodes[0].nodeValue;
songdata.artist = playlistXml.childNodes[0].childNodes[songIndex].childNodes[1].childNodes[0].nodeValue;
songdata.title = playlistXml.childNodes[0].childNodes[songIndex].childNodes[2].childNodes[0].nodeValue;
songs[songIndex] = songdata;
}
}
function loadSong(track) {
playingsong = new Sound();
playingsong.loadSound(songs[track].url, true);
playingsong.start(0);
updatevolume();
playingsong.onSoundComplete = function() {
loadSong((curtrack+1)%(songs.length));
};
playpause.gotoAndStop(1);
playpause.playpausebutton.onPress = function() {
toggleplaypause();
};
songdisplay.text = songs[track].artist+" - "+songs[track].title;
eval("playlistbox.playlistitemcontainer.playlistitem"+curtrack+".playlistitemhighlight")._alpha = 4;
eval("playlistbox.playlistitemcontainer.playlistitem"+track+".playlistitemhighlight")._alpha = 20;
curtrack = track;
}
function loadplaylistbox() {
for (songIndex=0; songIndex<playlistXml.childNodes[0].childNodes.length; songIndex++) {
playlistbox.playlistitemcontainer.attachMovie("playlistitem", "playlistitem"+songIndex, playlistbox.playlistitemcontainer.getNextHighestDe pth(), {_x:0, _y:15*songIndex});
eval("playlistbox.playlistitemcontainer.playlistitem"+songIndex+".playlistitemtext").text = songs[songIndex].artist+" - "+songs[songIndex].title;
eval("playlistbox.playlistitemcontainer.playlistitem"+songIndex).songindex = songIndex;
}
}
playpause.playpausebutton.onPress = function() {
toggleplaypause();
};
function toggleplaypause() {
if (playpause._currentframe == 1) {
playpause.gotoAndStop(2);
playpause.curpos = playingsong.position;
playingsong.stop();
} else {
playpause.gotoAndStop(1);
playingsong.start(playpause.curpos/1000, 0);
}
playpause.playpausebutton.onPress = function() {
toggleplaypause();
};
}
onEnterFrame = function () {
if (songdisplay.movingright) {
songdisplay.hscroll -= 10;
if (songdisplay.hscroll<=0) {
songdisplay.movingright = false;
}
} else {
songdisplay.hscroll += 10;
if (songdisplay.hscroll>=songdisplay.maxhscroll) {
songdisplay.movingright = true;
}
}
if (!draggingslider) {
progressslider._x = (playingsong.position/playingsong.duration)*182+61;
if (progressslider._x == 0) {
progressslider._x = 61;
}
}
if (draggingplaylistscroller) {
updateplaylistscroll();
}
if (draggingvolmeslider) {
updatevolume();
}
tempsongtime = "";
if (Math.floor(playingsong.position/60000) == 0) {
tempsongtime += "0";
} else {
tempsongtime += Math.floor(playingsong.position/60000);
}
tempsongtime += ":";
if (Math.floor((playingsong.position/1000)%20)<10) {
tempsongtime += "0";
}
tempsongtime += Math.floor((playingsong.position/1000)%20);
tempsongtime += "/";
if (Math.floor(playingsong.duration/60000) == 0) {
tempsongtime += "0";
} else {
tempsongtime += Math.floor(playingsong.duration/60000);
}
tempsongtime += ":";
if (Math.floor((playingsong.duration/1000)%20)<10) {
tempsongtime += "0";
}
tempsongtime += Math.floor((playingsong.duration/1000)%20);
songtime.text = tempsongtime;
//trace(Math.floor(playingsong.position/60000));
//if(Math.floor(playingsong.position/1000)%60)
//songtime.text=Math.floor(playingsong.position/1000)%20+"/"+Math.floor(playingsong.duration/1000)%20;
};
progressslider.onPress = function() {
draggingslider = true;
progressslider.startDrag(true, 61, progressslider._y, 243, progressslider._y);
};
progressslider.onRelease = progressslider.onReleaseOutside=function () {
progressslider.stopDrag();
playingsong.start(((progressslider._x-61)/182)*playingsong.duration/1000, 0);
playpause.gotoAndStop(1);
playpause.playpausebutton.onPress = function() {
toggleplaypause();
};
draggingslider = false;
};
progressbar.onPress = function() {
playingsong.start(((_xmouse-61)/182)*playingsong.duration/1000, 0);
playpause.gotoAndStop(1);
playpause.playpausebutton.onPress = function() {
toggleplaypause();
};
};
volumebar.onPress = function() {
draggingvolmeslider = true;
volumebar.volumeslider.startDrag(true, 0, volumebar.volumeslider._y, 47, volumebar.volumeslider._y);
};
volumebar.onRelease = volumebar.onReleaseOutside=function () {
draggingvolmeslider = false;
volumebar.volumeslider.stopDrag();
updatevolume();
};
function updatevolume() {
playingsong.setVolume((volumebar.volumeslider._x/47)*100);
}
previoussong.onPress = function() {
loadprevioussong();
};
function loadprevioussong() {
var loadtrack = (curtrack-1)%(songs.length);
if (loadtrack<0) {
loadtrack = songs.length-1;
}
loadSong(loadtrack);
}
nextsong.onPress = function() {
loadnextsong();
};
function loadnextsong() {
var loadtrack = (curtrack+1)%(songs.length);
loadSong(loadtrack);
}
playlistscroller.onPress = function() {
draggingplaylistscroller = true;
playlistscroller.startDrag(true, 283, 70, 283, 171);
};
playlistscroller.onRelease = playlistscroller.onReleaseOutside=function () {
draggingplaylistscroller = false;
playlistscroller.stopDrag();
};
playlistscrollup.onPress = function() {
playlistscroller._y = Math.max(70, playlistscroller._y-10);
updateplaylistscroll();
};
playlistscrolldown.onPress = function() {
playlistscroller._y = Math.min(171, playlistscroller._y+10);
updateplaylistscroll();
};
var mouseListener:Object = new Object();
mouseListener.onMouseWheel = function(delta:Number) {
playlistscroller._y = Math.min(171, Math.max(70, playlistscroller._y-delta));
updateplaylistscroll();
};
Mouse.addListener(mouseListener);
playlistscrollbar.onPress = function() {
playlistscroller._y = Math.min(171, Math.max(70, _ymouse));
updateplaylistscroll();
};
function updateplaylistscroll() {
playlistbox.playlistitemcontainer._y = -((playlistscroller._y-70)/101)*(playlistbox.playlistitemcontainer._height-149);
}
function visitswfspot() {
getURL("http://www.druk123.nl", "_blank");
}
var myMenu = new ContextMenu();
var menubezz = new ContextMenuItem("HindiLounge.net by Druk123.nl", visitswfspot);
myMenu.customItems.push(menubezz);
var menuplaypause = new ContextMenuItem("Play / Pause", toggleplaypause);
menuplaypause.separatorBefore = true;
myMenu.customItems.push(menuplaypause);
var menuprevioustrack = new ContextMenuItem("Previous Song", loadprevioussong);
myMenu.customItems.push(menuprevioustrack);
var menunexttrack = new ContextMenuItem("Next Song", loadnextsong);
myMenu.customItems.push(menunexttrack);
myMenu.hideBuiltInItems();
_root.menu = myMenu;
dat is de code van me actionscript is het mogelijk om ergens in te stellen,,, dat het bij het laden van 2% al begint aftespelen ipv dat hij een hele grote deel laad...
WernerL
%Europe/Berlin %683 %2008, 16:24
dat is echt raar....
Raar? Neehoor, IE7 ;)
De webbrowser (wat ik gebruik dus) doet het wel goed. :-)
Ziet er overigens best netjes uit, enkel crashte (gelukkig 1 tab maar) van mijn browser nadat ik van pagina wisselde... :')
Elendill2003
%Europe/Berlin %694 %2008, 16:39
Ziet er erg cool uit, zitten wel nog een aantal dode links in. Oa de vlinder, en de link naar de flyer.
Mooi design verder, lekker kleurrijk. En leuke animaties ook.
djashuard
%Europe/Berlin %750 %2008, 18:01
ja klopt ik krijg de flyer nog en dan kan je dat maken..
en persbericht krijg ik nog..
alleen moet ik nog uitzoeken hoe je een popup vanuit flash opent want dat lukt me niet... en hoe je een flv. bestand kan afspelen in je swf.
En het probleem van musicplayer ga ik ff bij actionscript een topic opennen kijken wie me kan helpen.
Lavis
%Europe/Berlin %767 %2008, 18:25
Bij mij firefox, en crasht ook ... Ligt waarschijnlijk wel aan mijn slechte pc x)
Thierry
%Europe/Berlin %794 %2008, 19:04
Dat doe je goed! Bij mij lopen zowel IE als Firefox vast! Ik wil weten hoe je dat doet! :P
Verder ziet de site er wel goed uit. Ik vind de individuele vakken wel vet maar ik vind het dan wel weer jammer dat ze allemaal een scrollbalk hebben.
- 'Coming soon' met één 'm'.
- Je preloader is niet helemaal goed. De balk loopt te ver door.
En als laatste: wat een buttmuziek!
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.