function moveMe() { scback._y = 5; //get reference to the player symbol mon_contente = _root.mp3; //if mouse is over... stop here else hide the menu and do not stop on this frame if(doing == true)stop();
onEnterFrame = function(){ pinning = true; //scroll the list with mouse movement if(vidplayer._height>Stage.height){ //get the scrolling value value = _ymouse - mask._y; //bound to minimum and maximum if(value <0) value = 0; if(value >Stage.height) value = Stage.height; //scroll with an easing animation mon_contente.animate(vidplayer, "_y", (mask._y + 25) - (((vidplayer._height + 50) - Stage.height)*(value /Stage.height))); } if(vidplayer._width>Stage.width){ //get the scrolling value value = _xmouse - mask._y; //bound to minimum and maximum if(value <0) value = 0; if(value >Stage.width) value = Stage.width; //scroll with an easing animation mon_contente.animate(vidplayer, "_x", (mask._x + 25) - (((vidplayer._width + 50) - Stage.width)*(value /Stage.width))); } } onEnterFrame(); }
P.S. The function moveMe is activated when a button is pressed only.
If both are in one frame, then that's the problem, you can only have one onEnterFrame per object, and in this case, you have two, and one of them will cease to work! The solution would be to join the onEnterFrames together to only have one with both the codes!
I am back, guys ... and finally 18 :P
BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS
I have done this in the past but, the moveMe function does not work properly. The scrolling function does not function. Here is the example.
Actionscript Code:
moveMe(); function moveMe () { onEnterFrame = function() {
scback._y = 5; //get reference to the player symbol mon_contente = _root.mp3; //if mouse is over... stop here else hide the menu and do not stop on this frame if(doing == true)stop();
pinning = true; //scroll the list with mouse movement if(vidplayer._height>Stage.height){ //get the scrolling value value = _ymouse - mask._y; //bound to minimum and maximum if(value <0) value = 0; if(value >Stage.height) value = Stage.height; //scroll with an easing animation mon_contente.animate(vidplayer, "_y", (mask._y + 25) - (((vidplayer._height + 50) - Stage.height)*(value /Stage.height))); } if(vidplayer._width>Stage.width){ //get the scrolling value value = _xmouse - mask._y; //bound to minimum and maximum if(value <0) value = 0; if(value >Stage.width) value = Stage.width; //scroll with an easing animation mon_contente.animate(vidplayer, "_x", (mask._x + 25) - (((vidplayer._width + 50) - Stage.width)*(value /Stage.width))); } viel._x = 0; viel._y = 0; viel._width = Stage.width; viel._height = Stage.height; this.plst.gry._width = Stage.width; a = a * 2.800000E-001; maxScroll = minScroll - plst.cont._width + Stage.width - a; vidplayer._x = Stage.width/2 - vidplayer._width/2; vidplayer._y = (Stage.height)/2 - vidplayer._height/2; if(!slidingposition) { _root.footer.controlpanel.slider._x = _root.footer.controlpanel.seektotime._x + ns.time/ totaltime *_root.footer.controlpanel.seektotime._width; updateAfterEvent(); } else { seekpercent = (_root.footer.controlpanel.slider._x - _root.footer.controlpanel.seektotime._x)/_root.footer.controlpanel.seektotime._width; ns.seek(seekpercent * totaltime); updateAfterEvent(); } // end else if _root.footer.controlpanel.bufferedbackground._width = ns.bytesLoaded/ ns.bytesTotal*_root.footer.controlpanel.seektotime._width; _root.footer.controlpanel.sliderpassedtime._width = _root.footer.controlpanel.slider._x - _root.footer.controlpanel.sliderpassedtime._x; var _loc2; _loc2 = isNaN(totaltime); if(_loc2 == true) { _root.footer.controlpanel.lft.curtime.curtime.text = "00:00 | 00:00"; } else { _root.footer.controlpanel.lft.curtime.curtime.text = formattime(ns.time) + " | " + formattime(totaltime); } // end else if } onEnterFrame(); }