nooran
30-12-2004, 10:50 PM
-------
لتحميل الدرس...حفظ الهدف باسم (http://nooran2004.jeeran.com/drsscroll21.html)
بسم الله الرحمن الرحيم
مثال
.
.
.
WIDTH=500 HEIGHT=400
.
.
]هذا الدرس مجهودي:55:والله طلعت عيوني لغاية مانضبط:11:واخيرا طلع النور وهو عمل مصغر للصور بالضغط على المصغرات تشوفوا الصوره مكبره والشرح مرفق للتحميل.
http://nooran2004.jeeran.com/d1.gif
http://nooran2004.jeeran.com/d2.gif
http://nooran2004.jeeran.com/d3.gif
http://nooran2004.jeeran.com/d4.gif
http://nooran2004.jeeran.com/d5.gif
الان على اول صورة مصغره ضعي هذا السكربت.
n (rollOver) {
_parent._vx = 0;
}
on (rollOut) {
_parent._vx = _parent.speed;
}
on (release) {
_root.showImage("image1");
}
--------------------------------------------------------------------------------
وفي كل صوره ضعي نفس السكربت مع تغيير الرقم مثلا
_root.showImage("image1");
}
هنا شو ايمج ون خليه 2 وهكذا كل الصور.
الان نضغط على السيسن ونضيف هذا السكربت
السكربت
function showImage(img) {
for (x in images) {
if (images[x] != images[img]) {
images[x]._visible = 0;
trace(images[x] add "=" add images[x]._visible);
}
}
images[img]._visible = 1;
trace(images[img] add " visibility = " add images[img]._visible);
}
http://nooran2004.jeeran.com/NOOR.bmp
------------------------------------------
السكربرتات
1-
onLoad () {
speed = -75;
pad = 15;
setProperty(thumbs.width_holder, _width, (_parent._width+pad));
menuWidth = thumbs._width;
startX = this._x;
right_menu._x = thumbs._x + menuWidth;
left_menu._x = thumbs._x - menuWidth;
left_menu._y = thumbs._y;
right_menu._y = thumbs._y;
}
onEnterFrame(includingFirstFrame) {
if (this._x >= menuWidth || this._x <= (startX-menuWidth)) {
this._x = startX;
}
}
onFrame (1) {
this._vx = speed;
}
2-
onFrame (35,afterPlacedObjectEvents) {
stop();
}
3-
n (rollOver) {
_parent._vx = 0;
}
on (rollOut) {
_parent._vx = _parent.speed;
}
on (release) {
_root.showImage("image1");
}
4-
function showImage(img) {
for (x in images) {
if (images[x] != images[img]) {
images[x]._visible = 0;
trace(images[x] add "=" add images[x]._visible);
}
}
images[img]._visible = 1;
trace(images[img] add " visibility = " add images[img]._visible);
}
لتحميل الدرس...حفظ الهدف باسم (http://nooran2004.jeeran.com/drsscroll21.html)
بسم الله الرحمن الرحيم
مثال
.
.
.
WIDTH=500 HEIGHT=400
.
.
]هذا الدرس مجهودي:55:والله طلعت عيوني لغاية مانضبط:11:واخيرا طلع النور وهو عمل مصغر للصور بالضغط على المصغرات تشوفوا الصوره مكبره والشرح مرفق للتحميل.
http://nooran2004.jeeran.com/d1.gif
http://nooran2004.jeeran.com/d2.gif
http://nooran2004.jeeran.com/d3.gif
http://nooran2004.jeeran.com/d4.gif
http://nooran2004.jeeran.com/d5.gif
الان على اول صورة مصغره ضعي هذا السكربت.
n (rollOver) {
_parent._vx = 0;
}
on (rollOut) {
_parent._vx = _parent.speed;
}
on (release) {
_root.showImage("image1");
}
--------------------------------------------------------------------------------
وفي كل صوره ضعي نفس السكربت مع تغيير الرقم مثلا
_root.showImage("image1");
}
هنا شو ايمج ون خليه 2 وهكذا كل الصور.
الان نضغط على السيسن ونضيف هذا السكربت
السكربت
function showImage(img) {
for (x in images) {
if (images[x] != images[img]) {
images[x]._visible = 0;
trace(images[x] add "=" add images[x]._visible);
}
}
images[img]._visible = 1;
trace(images[img] add " visibility = " add images[img]._visible);
}
http://nooran2004.jeeran.com/NOOR.bmp
------------------------------------------
السكربرتات
1-
onLoad () {
speed = -75;
pad = 15;
setProperty(thumbs.width_holder, _width, (_parent._width+pad));
menuWidth = thumbs._width;
startX = this._x;
right_menu._x = thumbs._x + menuWidth;
left_menu._x = thumbs._x - menuWidth;
left_menu._y = thumbs._y;
right_menu._y = thumbs._y;
}
onEnterFrame(includingFirstFrame) {
if (this._x >= menuWidth || this._x <= (startX-menuWidth)) {
this._x = startX;
}
}
onFrame (1) {
this._vx = speed;
}
2-
onFrame (35,afterPlacedObjectEvents) {
stop();
}
3-
n (rollOver) {
_parent._vx = 0;
}
on (rollOut) {
_parent._vx = _parent.speed;
}
on (release) {
_root.showImage("image1");
}
4-
function showImage(img) {
for (x in images) {
if (images[x] != images[img]) {
images[x]._visible = 0;
trace(images[x] add "=" add images[x]._visible);
}
}
images[img]._visible = 1;
trace(images[img] add " visibility = " add images[img]._visible);
}