need to stop my cursor leaving the flash stage area in browser?


hi, need stop cursor moving on points on stage. i'm using magnifying glass effect in browser show glass stage need stop moving past points. can see mean if move magnify glass left or right here:

 

www.zoeglazebrook.co.uk

 

this code have magnify glass:

 

var moveglass:number;

 

magnifyingglass.onpress = function() {
    moveglass = setinterval(startglass,1);
};
function startglass() {
    magnifyingglass._x = _root._xmouse;
    magnifyingglass._y = _root._ymouse;
}

magnifyingglass.onenterframe = function(){
     this.largeobject._x = (this._parent.original._x-this._x)*2;
     this.largeobject._y = (this._parent.original._y-this._y)*2;
}


 

var moveglass:number;

 

magnifyingglass.onpress = function() {
    moveglass = setinterval(startglass,1);
};
function startglass() {

if(_root._xmouse>magnifyingglass._width/2 &&_root._ymouse>magnifyingglass._height/2&&_root.magnifyingglass._xmouse<stage.width-magn ifyingglass._height/2){
    magnifyingglass._x = _root._xmouse;
    magnifyingglass._y = _root._ymouse;

}
}

magnifyingglass.onenterframe = function(){
     this.largeobject._x = (this._parent.original._x-this._x)*2;
     this.largeobject._y = (this._parent.original._y-this._y)*2;
}



More discussions in ActionScript 1 and 2


adobe

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???