皮皮网
皮皮网
3d展示源码

【黑码源码起爆】【桌面端源码demo】【汽车在线拍卖源码】tooltip控件源码_toolstrip控件

时间:2024-12-29 00:19:22 分类:探索 编辑:帝国目录源码
1.java 怎样记录鼠标在桌面的控控件的坐标 请给出代码 谢谢
2.谁有flash展示酷炫一点的源码

tooltip控件源码_toolstrip控件

java 怎样记录鼠标在桌面的的坐标 请给出代码 谢谢

       LS说的是很正确的一种方法。看LZ想要实现什么样的控控件黑码源码起爆效果了。

       我用HOOK实现的控控件桌面端源码demo。 属于第三方的控控件汽车在线拍卖源码类库了。

       Hook.MOUSE.addListener(new HookEventListener() {

        public void acceptHookData(HookData hookData) {

        if (hookData != null) {

        DealHookMouseData(((MouseHookData) hookData).getPointX(),控控件c 写badapple源码((MouseHookData) hookData).getPointY());

        }

        }

        });

        Hook.MOUSE.install();

       大概就是这个意思。

       LS的控控件歪歪邀请软件源码比较简单。

谁有flash展示酷炫一点的控控件源码

       import mx.utils.Delegate;

       import flash.display.BitmapData;

       var numOfItems:Number;

       var radiusX:Number = ;

       var radiusY:Number = ;

       var centerX:Number = Stage.width/2;

       var centerY:Number = Stage.height/2;

       var speed:Number = 0.;

       var perspective:Number = ;

       var home:MovieClip = this;

       var tooltip:MovieClip = this.attachMovie("tooltip", "tooltip", );

       tooltip._alpha = 0;

       var tool_txt_ary:Array = new Array();

       tool_txt_ary[0] = ".2寸笔记本";

       tool_txt_ary[1] = ".6寸笔记本";

       tool_txt_ary[2] = "金刚系列";

       tool_txt_ary[3] = "靓酷系列";

       tool_txt_ary[4] = "全能王系列";

       tool_txt_ary[5] = "网吧电脑系列";

       tool_txt_ary[6] = "雅典系列";

       var numOfItems:Number = 7;

       for (var i = 0; i<numOfItems; i++) {

        var imageBmp:BitmapData = BitmapData.loadBitmap("icon"+i+".png");

        var t = home.attachMovie("item", "item"+i, i+1);

        t.angle = i*((Math.PI*2)/numOfItems);

        t.onEnterFrame = mover;

        t.toolText = _root.tool_txt_ary[i];

        t.icon.inner.attachBitmap(imageBmp,1);

        t.r.inner.attachBitmap(imageBmp,1);

        t.icon.onRollOver = over;

        t.icon.onRollOut = out;

        t.icon.onRelease = released;

       }

       function over() {

        home.tooltip.tipText.text = this._parent.toolText;

        home.tooltip._x = this._parent._x;

        home.tooltip._y = this._parent._y-this._parent._height/2;

        home.tooltip.onEnterFrame = Delegate.create(this, moveTip);

        home.tooltip._alpha = ;

        home.tooltip.tipText._visible = true;

       }

       function out() {

        delete home.tooltip.onEnterFrame;

        home.tooltip._alpha = 0;

        home.tooltip.tipText._visible = false;

       }

       var moved = true;

       function released() {

        moved = false;

        speed = 0;

        this.onEnterFrame = function() {

        if (home._y>-) {

        home._y -= 2;

        home.bg_map._y+=2;

        } else {

        _root.attachMovie("messageBox","messageBox",this.getNextHighestDepth(),{ _x:0, _y:});

        messageBox.click_btn.onPress = function() {

        this._parent.black.onEnterFrame = function() {

        if (home._y<0) {

        home._y += 2;

        home.bg_map._y-=2;

        } else {

        home._y = 0;

        moved = true;

        this._parent.removeMovieClip();

        }

        };

        };

        messageBox.messages.tipText.text="";

        messageBox.menu1.screch_txt.text="";

        messageBox.messages.tipText.text = this._parent.toolText;

        messageBox.menu1.screch_txt.text = "金翔云-<"+this._parent.toolText+">";

        delete this.onEnterFrame;

        }

        };

       }

       function moveTip() {

        home.tooltip._x = this._parent._x;

        home.tooltip._y = this._parent._y-this._parent._height/2;

       }

       function mover() {

        this._x = Math.cos(this.angle)*radiusX+centerX;

        this._y = Math.sin(this.angle)*radiusY+centerY;

        var s = (this._y-perspective)/(centerY+radiusY-perspective);

        this._xscale = this._yscale=s*;

        this.angle += this._parent.speed;

        this.swapDepths(Math.round(this._xscale)+);

       }

       this.onMouseMove = function() {

        if (moved) {

        speed = (this._xmouse-centerX)/;

        }

       };

本文地址:http://abssuliao.net/news/86b402195892.html

copyright © 2016 powered by 皮皮网   sitemap