文件名称:flash制作电子地图
文件大小:320KB
文件格式:RAR
更新时间:2012-03-16 05:33:17
电子地图
_global.changeRate = function(MC:MovieClip, rate) {
MC._xscale = MC._yscale=rate;
};
//-----------------坐标-----------------
_global.setMC = function(MC:MovieClip, X:Number, Y:Number) {
setProperty(MC, _x, X);
setProperty(MC, _y, Y);
};
_global.moveT = function(X:Number,Y:Number,nowLevel:Number) {
_root.sizeBar.sizeBarDrag._y = -nowLevel*10+50;
_root.nowRate = _root.oriRate+nowLevel*int((_root.maxRate-_root.oriRate)/(_root.maxLevels));
_root.rateMC.dragMC.sites._visible = false;
_root.rateMC.onEnterFrame = function() {
changeRate(this, (_root.nowRate-this._xscale)/2+this._xscale);
updateAfterEvent();
if (Math.abs(_root.nowRate-this._xscale)<1) {
changeRate(this, _root.nowRate);
setSites();
_root.rateMC.dragMC.sites._visible = true;
delete this.onEnterFrame;
}
};
_root.rateMC.dragMC.onEnterFrame = function() {
setMC(this, (X-this._x)/2+this._x, (Y-this._y)/2+this._y);
updateAfterEvent();
if (Math.abs(this._x-X)<1) {
setMC(this, X, Y);
delete this.onEnterFrame;
}
};
}
//-----------------设置站点-----------------
_global.setSites = function() {
sites = _root.rateMC.dragMC.sites;
for (var i=1; i<=sites.getNextHighestDepth(); i++) {
if (sites.getInstanceAtDepth(i)) {
var nowSite = sites.getInstanceAtDepth(i);
changeRate(nowSite, 100*100/_root.nowRate);
with (nowSite) {
_x = siteX;
_y = siteY;
_visible = false;
if (siteIsShow == 1) {
if (_root.nowLevel>=siteLevel) {
_visible = (_root.showTools.showTools.siteType.scrollMV["type"+siteType].selected) ? true : false;
}
} else {
if (_root.manage>0) {
if (_root.nowLevel>=siteLevel) {
_visible = (_root.showTools.showTools.siteType.scrollMV["type"+siteType].selected) ? true : false;
}
}
}
}
}
}
};
//-----------------公交线路-----------------
_global.drawBusLine = function(MC:MovieClip, busLine:String) {
MC.lineStyle(3, 0x0000FF, 100);
var temp3:Array = busLine.split("~");
for (k=0; k
【文件预览】:
addSite.asp
getTypes.asp
getBuses.asp
traffic_FLASH 8.fla
map.swf
checkLogin.asp
delSite.asp
siteAddress.xml
searchBus.asp
search.asp
getSites.asp
traffic.swf
traffic_FLASH CS3.fla
modBusLine.asp
delBusLine.asp
as
----browseFunction.as(9KB)
----manageFunction.as(8KB)
config.asp
data
----data.mdb(356KB)
addBus.asp
modSite.asp
conn.asp
index.asp