| |||||||
Du magst keine Werbung? Wir auch nicht!
Einfach registrieren und die Werbung ist weg. Diese Nachricht sehen nur nicht registrierte Nutzer.
![]() |
| | LinkBack | Themen-Optionen | Ansicht |
| | #1 (permalink) |
| Neuer User Registriert seit: Nov 2007
Beiträge: 2
| sliding menu
hallo, habe ein nettes menu gefunden, dass ich gern sowohl per mouseclick (standard) als auch automatsch ablaufen lassen möchte. habe leider keine ahnung, wie ich den automatischen ablauf bewerkstelligen kann. kann mir jemand einen tip geben? |
| | |
| | #2 (permalink) |
| hilft gerne... Registriert seit: Feb 2007 Ort: Carlsberg
Beiträge: 416
|
Mh ich habe leider nicht die Zeit, mich durch deinen Code zu arbeiten, aber mal als kleinen Tipp: Gewöhn dir mal an, wenn überhaupt auf der Zeitleiste, dann möglichst nur in einem Schlüsselbild (das erste auf _level0) deinen Code aufzusetzen. Ist für die Übersicht und fürs Lesen leichter =) Grüßle
__________________ MfG Jan Meine 2 besten Freunde: Flash-Hilfe und die Foren-Suche =) |
| | |
| | #3 (permalink) |
| Neuer User Registriert seit: Nov 2007
Beiträge: 2
|
habe die codes mal rausgeschrieben ... vlt kann mir dann jemand einen kleinen tip geben: damit startet die szene: Code: increment = 20;
ratio = 0.4;
content_width = 5*increment;
items = 4;
x_values = new Array(items);
i = 0;
while (i<items) {
x_values[i] = i*increment;
i += 1;
} Code: onClipEvent (enterFrame) {
_root.mouse_pos = getProperty(_root.movie, _xmouse);
_root.menu_pos = Int(_root.mouse_pos + 11) ;
with (_root.roller) {
gotoAndStop(Int(_root.mouse_pos) + 11);
}
// set new x positions
setProperty("_root.movie.square_0", _x, (_root.movie.square_0._x+(_root.x_values[0]-_root.movie.square_0._x)*_root.ratio));
setProperty("_root.movie.square_1", _x, (_root.movie.square_1._x+(_root.x_values[1]-_root.movie.square_1._x)*_root.ratio));
setProperty("_root.movie.square_2", _x, (_root.movie.square_2._x+(_root.x_values[2]-_root.movie.square_2._x)*_root.ratio));
setProperty("_root.movie.square_3", _x, (_root.movie.square_3._x+(_root.x_values[3]-_root.movie.square_3._x)*_root.ratio));
} Code: on (release) {
// set destinations
if (nr == 1) {
_root.x_values[0] = 0;
_root.x_values[1] = _root.x_values[0] + _root.content_width + _root.increment;
_root.x_values[2] = _root.x_values[1] + _root.increment;
_root.x_values[3] = _root.x_values[2] + _root.increment;
}
if (nr == 2) {
_root.x_values[0] = 0;
_root.x_values[1] = _root.x_values[0] + _root.increment;
_root.x_values[2] = _root.x_values[1] + _root.content_width + _root.increment;
_root.x_values[3] = _root.x_values[2] + _root.increment;
}
if (nr == 3) {
_root.x_values[0] = 0;
_root.x_values[1] = _root.x_values[0] + _root.increment;
_root.x_values[2] = _root.x_values[1] + _root.increment;
_root.x_values[3] = _root.x_values[2] + _root.content_width + _root.increment;
}
if (nr == 4) {
_root.x_values[0] = 0;
_root.x_values[1] = _root.x_values[0] + _root.increment;
_root.x_values[2] = _root.x_values[1] + _root.increment;
_root.x_values[3] = _root.x_values[2] + _root.increment;
}
} |
| | |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | |
| |