point it to: _root.movieincludingmp3player.player.on.......blah blah
do that in the main movie that loads the player.swf ?
switch out the "_level0." with _root.movieincludingmp3player.player.on.... ?
nodeNode
Posted 12 April 2006 - 10:01 AM
point it to: _root.movieincludingmp3player.player.on.......blah blah
Posted 12 April 2006 - 10:21 AM
Posted 12 April 2006 - 11:37 AM
yep, exactly..
Posted 12 April 2006 - 12:03 PM
Posted 13 April 2006 - 02:17 PM
what about making a movie out of the complete mp3player swf, and then load it into your mainmovie?
then your pathing would look like this:
_root.mp3player.
Posted 13 April 2006 - 03:13 PM
Posted 18 April 2006 - 11:12 PM
Edited by 3dsign, 19 April 2006 - 12:00 AM.
Posted 31 May 2006 - 07:35 PM
stop(); title_txt.autoSize = "left"; timeDisplay_txt.autoSize = "left"; toolTip._visible = false; var amountLoaded:Number; var duration:Number; playlist = new XML(); playlist.ignoreWhite = true; playlist.onLoad = function(success) { if (success) { _global.songname = []; _global.songband = []; _global.songfile = []; for (var i = 0; i<playlist.firstChild.childNodes.length; i++) { _global.songname[i] = playlist.firstChild.childNodes[i].attributes.name; _global.songband[i] = playlist.firstChild.childNodes[i].attributes.band; _global.songfile[i] = playlist.firstChild.childNodes[i].attributes.file; attachMovie("butTemp","but"+i,i+10); eval("but"+i).id=i; _root["but"+i]._x = 450; _root["but"+i]._y = 550 + (i*15); _root["but"+i].but_txt.text = songname[i]; trace (songname[i]); if (i >= 3){ _root["but"+i]._x = 160 _root["but"+i]._y = -5 + (i*15); } _root["but"+i].onRelease = function(){ clearInterval(timeInterval); _root.timeDisplay_txt.text = "00:00/00:00"; _root.sound_mc.songStarter(songfile[this.id]); } } } _root.createEmptyMovieClip("sound_mc", 1); _global.song_nr = random(songfile.length); _root.sound_mc.songStarter(songfile[song_nr]); }; function timer(sound_obj) { time = sound_obj.position/1000; min = Math.floor(time/60); min = (min<10) ? "0"+min : min; sec = Math.floor(time%60); sec = (sec<10) ? "0"+sec : sec; timeDisplay_txt.text = min+":"+sec+"/"+totalDuration; } function duration (){ timed = _root.sound_mc.sound_obj.duration/1000; mind = Math.floor(timed/60); mind = (mind<10) ? "0"+mind : mind; secd = Math.floor(timed%60); secd = (secd<10) ? "0"+secd : secd; totalDuration = mind+":"+secd; } MovieClip.prototype.songStarter = function(file) { if (this.sound_obj) { this.sound_obj.stop(); delete this.sound_obj; } this.sound_obj = new Sound(this); this.sound_obj.loadSound(file, true); this.sound_obj.setVolume(0); this.onEnterFrame = function() { if (this.sound_obj.position>0) { delete this.onEnterFrame; timeInterval = setInterval(timer, 1000, this.sound_obj); track = this.sound_obj.id3.songname; artist = this.sound_obj.id3.artist; title_txt.text =artist+" - "+track; } else { title_txt.text = "loading..."; } }; this.sound_obj.onSoundComplete = function() { clearInterval(timeInterval); _root.timeDisplay_txt.text = "00:00/00:00"; (song_nr == songfile.length-1) ? _global.song_nr=0 : _global.song_nr++; _root.sound_mc.songStarter(songfile[song_nr]); }; volume1.dragger.onPress = function() { startDrag(this, true, 0, this._y, this._parent.volBG._width, this._y); toolTip._visible = true; //-----Para hacer el drag del Volumen //setInterval(draggableTip,100); /*function draggableTip(){ toolTip._x = _xmouse; }*/ this.onEnterFrame = function() { var p = (this._x/this._parent.volBG._width)*100; _root.sound_mc.sound_obj.setVolume(p); }; }; volume1.dragger.onRelease = function() { delete this.onEnterFrame; stopDrag(); }; volume1.dragger.onReleaseOutside = function() { toolTip._visible = false; stopDrag(); }; }; function soundStatus(){ var amountLoaded = _root.sound_mc.sound_obj.getBytesLoaded() / _root.sound_mc.sound_obj.getBytesTotal(); _root.loader.loadBar._width = amountLoaded * 260; duration = _root.sound_mc.sound_obj.duration; position = _root.sound_mc.sound_obj.position; playHead._x = 135 + position / duration * 272 + 5; } btn_play.onRelease = function() { clearInterval(timeInterval); this._parent.timeDisplay_txt.text = "00:00/00:00"; _root.sound_mc.songStarter(songfile[song_nr]); }; btn_stop.onRelease = function() { clearInterval(timeInterval); this._parent.timeDisplay_txt.text = "00:00/00:00"; _root.sound_mc.sound_obj.stop(); }; btn_fw.onRelease = function() { clearInterval(timeInterval); this._parent.timeDisplay_txt.text = "00:00/00:00"; (song_nr == songfile.length-1) ? _global.song_nr=0 : _global.song_nr++; _root.sound_mc.songStarter(songfile[song_nr]); }; btn_rev.onRelease = function() { clearInterval(timeInterval); this._parent.timeDisplay_txt.text = "00:00/00:00"; (song_nr == 0) ? _global.song_nr=songfile.length-1 : _global.song_nr--; _root.sound_mc.songStarter(songfile[song_nr]); }; playlist.load("playlist.xml"); setInterval(duration,100); setInterval(soundStatus,100);
Edited by jius, 31 May 2006 - 07:37 PM.
0 members, 0 guests, 0 anonymous users