אני חייבת עזרה מכם...
יש לי גלריה מסויימת של תמונות ואני רוצה שכאשר אני לוחצת על אחת מתמונות הגלריה... יקפוץ לי סוג של פופ אפ
הבעיה שהפופאפ קובץ אבל מסתתר מאחורי חלק מתמונות הגלריה ואני רוצה שהוא יהיה מעליהן
הפקודה swap deapths לא עובדת לי ולא מגיבה לי...
אשמח אם תוכלו לעבור על הקוד ולראות אם עשיתי טעות מסויימת... או אם יש לכם פתרון אחר בשבילי
תודה!!!
tn0 - הפופאפ , שנמצא על הבמה במצב visible=false
Using actionscript3 Syntax Highlighting
_root.tn0_mc.onRelease=function(){
_root.s_tn0_mc._visible=true;
_root.s_tn0_mc.swapDepths(1);
trace(s_tn0_mc.getDepth());
}
function mover()
{
this._x = Math.cos(this.angle) * radiusX + centerX;
this._y = Math.sin(this.angle) * radiusY + centerY;
var s = this._y / (centerY + radiusY);
this._xscale = this._yscale = s * 100;
if (this._xscale > 75)
{
this._alpha=100;
this._xscale = this._yscale = 75;
}
if (this._xscale < 70)
{
this._alpha=50;
this._xscale = this._yscale = 60;
}
this.angle += this._parent.speed;
var d:Number=Math.round(s * 100) + 100;
if(d<100){
d=100;
}
this.swapDepths(d);
//trace(this.getDepth());
}
_root.s_tn0_mc._visible=true;
_root.s_tn0_mc.swapDepths(1);
trace(s_tn0_mc.getDepth());
}
function mover()
{
this._x = Math.cos(this.angle) * radiusX + centerX;
this._y = Math.sin(this.angle) * radiusY + centerY;
var s = this._y / (centerY + radiusY);
this._xscale = this._yscale = s * 100;
if (this._xscale > 75)
{
this._alpha=100;
this._xscale = this._yscale = 75;
}
if (this._xscale < 70)
{
this._alpha=50;
this._xscale = this._yscale = 60;
}
this.angle += this._parent.speed;
var d:Number=Math.round(s * 100) + 100;
if(d<100){
d=100;
}
this.swapDepths(d);
//trace(this.getDepth());
}
Parsed in 0.032 seconds, using GeSHi 1.0.8.4
חדשות