onEnterFrame vs onMouseMove
Input Needed for onEnterFrame vs OnMouseMove
this.positiveDmmLead = function() { this.posProbe.onPress = function() { if (posDepth < negDepth){ posDepth = 15; posLine_mc.swapDepths(15); posLine_mc0.swapDepths(16); posPort.swapDepths(17); posProbe.swapDepths(18); } _root.probeActive = true; Mouse.hide(); //X & Y variables to store the click offset on the probe this._xOffset = this._xmouse; this._yOffset = this._ymouse; //this.startDrag(true, 0,0,-550,600); //dont use startDrag this._parent.onEnterFrame = this._parent.posLead; }; this.posProbe.onRelease = function() { _root.probeActive = false; Mouse.show(); // this.stopDrag(); delete (this._parent.onEnterFrame); }; }; this.posLead = function() { //move the the probes same as the line //I may have the numbers wrong way around here!? (ie. the 0,-550,600, and 0) posProbe._x = Math.min(0, Math.max(-550, this._xmouse - posProbe._xOffset)); posProbe._y = Math.min(600, Math.max(0, this._ymouse - posProbe._yOffset)); var yPosition = (posProbe._y+posProbe._height)-5; var xPosition = (posProbe._x+posProbe._width)-5; this.createEmptyMovieClip("posLine_mc", 15); this.posLine_mc.lineStyle(6, 0x990000, 100); this.posLine_mc.moveTo(this.posPort._x, this.posPort._y); this.posLine_mc.curveTo(135, 475, xPosition, yPosition); this.createEmptyMovieClip("posLine_mc0", 16); this.posLine_mc0.lineStyle(2, 0xFFFFFF, 70); this.posLine_mc0.moveTo((this.posPort._x+3), (this.posPort._y+3)); this.posLine_mc0.curveTo(135, 475, xPosition, yPosition); posDepth = posLine_mc.getDepth() };<>FlashGuru Consulting » ASBroadcaster
_listeners array contain a property named onMouseMove , the broadcastMessage ... we will add an onEnterFrame event notification to the Movieclip object, ...
WebEngineer codex » Coding
onEnterFrame Vs. setInterval 8 January 2007. Well just had one of those weekends when you go home, pull out an old machine and test your latest creation, ...
AS2: Performance Impact of OO Coding Style
Class Instances vs. Object Instances vs. Object Literals ... or low-instance-count objects that don't get created in onEnterFrame or onMouseMove. ...
RaidenX - Official Site
function onMouseMove() { _x = _root._xmouse; _y = _root._ymouse; ... __onEnterFrame=function() 2. Play vs. stop: gotoAndPlay(3) __vs.__ gotoAndStop(3) ...
ActionScript Event Handlers
Movieclips and frame actions vs buttons with button actions ... onrelease, onrollover, onrollout, onmousemove, onpress, event handlers, actionscript in ...
Los Angeles Flash Users Group
onMouseMove = function() { var myXmouse = _parent._xmouse; this._x = myXmouse; } var mSparkle:MovieClip =. ... onEnterFrame to null rather than deleting it. ...
Related Posts by Categories
3:54 AM
|
Labels:
Events
|
This entry was posted on 3:54 AM
and is filed under
Events
.
You can follow any responses to this entry through
the RSS 2.0 feed.
You can leave a response,
or trackback from your own site.
0 comments:
Post a Comment