16*16 bmp格式的图片,谁帮我做一下《急》??
答案:1 悬赏:0 手机版
解决时间 2021-04-30 07:48
- 提问者网友:却不属于对方
- 2021-04-29 06:50
16*16 bmp格式的图片,谁帮我做一下《急》??
最佳答案
- 五星知识达人网友:雾月
- 2021-04-29 08:03
import mx.utils.Delegate;
import flash.display.BitmapData;
var numOfItems:Number;
var radiusX:Number = 300;
var radiusY:Number = 75;
var centerX:Number = Stage.width/2;
var centerY:Number = Stage.height/2;
var speed:Number = 0.05;
var perspective:Number = 130;
var home:MovieClip = this;
var tooltip:MovieClip = this.attachMovie("tooltip", "tooltip", 10000);
tooltip._alpha = 0;
var tool_txt_ary:Array = new Array();
tool_txt_ary[0] = "10.2寸笔记本";
tool_txt_ary[1] = "11.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 = 100;
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>-150) {
home._y -= 2;
home.bg_map._y+=2;
} else {
_root.attachMovie("messageBox","messageBox",this.getNextHighestDepth(),);
messageB
import flash.display.BitmapData;
var numOfItems:Number;
var radiusX:Number = 300;
var radiusY:Number = 75;
var centerX:Number = Stage.width/2;
var centerY:Number = Stage.height/2;
var speed:Number = 0.05;
var perspective:Number = 130;
var home:MovieClip = this;
var tooltip:MovieClip = this.attachMovie("tooltip", "tooltip", 10000);
tooltip._alpha = 0;
var tool_txt_ary:Array = new Array();
tool_txt_ary[0] = "10.2寸笔记本";
tool_txt_ary[1] = "11.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 = 100;
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>-150) {
home._y -= 2;
home.bg_map._y+=2;
} else {
_root.attachMovie("messageBox","messageBox",this.getNextHighestDepth(),);
messageB
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯