| |||||||
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: Jul 2002 Ort: MUC
Beiträge: 96
| AS-NAVI--->code->ergänzen...bitte
Hallo Flasher! kann mir bitte jemand dieses Script ergänzen.. monmenu = new Array("1", "2", "3", "5"); // var speed = 50; // fondmenu = 0xFFFFFF; // couleurtypo = 0x000000; // fondmenuroll = 0xCED0FF; // var finalSpeed = String(speed/100); positionmenu = 100; // taillepolice = 12; // xtext = 200; // ytext = 16; // espacement = 16; // nbrerub = (monmenu.length); monformat = new TextFormat(); with (monformat) { font = "standard 07_53"; color = couleurtypo; size = 8; align = "center"; // blockIndent = 10; } // ************************************************** ********************************* // // ************************************************** ********************************* _root.createEmptyMovieClip("menuconteneur", 0); for (i=0; i<nbrerub; i++) { // ///////////////// // // ///////////////// var c = _root.menuconteneur.createEmptyMovieClip("Clip"+i, i); c._x = 0; // 130+73*i; c._y = 16*i; c.createTextField("theme", 1, 0, 0, xtext, ytext); // //////////////////////////////// // // //////////////////////////////// c.onRollOver = function() { this.theme.backgroundColor = fondmenuroll; }; // ////////////////////////////////////////// // // ////////////////////////////////////////// c.onRollOut = function() { this.theme.backgroundColor = fondmenu; }; with (_root.c) { theme.background = true; theme.backgroundColor = fondmenu; theme.border = true; theme.selectable = false; theme.setTextFormat(monformat); } } _root.createEmptyMovieClip("menu", 1); _root.menu.createTextField("menutxt", 1, 0, 0, xtext, ytext), _root.menu.menutxt.text="MENU"; with (_root.menu.menutxt) { background = true; backgroundColor = fondmenu; border = true; selectable = false; setTextFormat(monformat); } // _root.menu.onEnterFrame = function() { if (_root.menuconteneur._x == -250) { this.suivre(_xmouse, _ymouse); } }; _root.menu.onRelease = function() { if (_root.menuconteneur._x == _root.menu._x) { _root.menuconteneur._x = -250; } else { _root.menuconteneur._y = _root.menu._y+espacement; _root.menuconteneur._x = _root.menu._x; } }; .............hier fehlen die links für die einzelnen dynamisch erzeugten buttons... Dieses Script ist von flashkit.com, ich versuche krampfhaft AS zu erlernen, leider bisher nur mit kleinen Fortschritten... .............kann mir bitte jemand dieses script ergänzen...DANKE! // // _root.c.theme.setTextFormat(monformat); with (_root.menuconteneur) { CLIP0.theme.text = monmenu[0]; Clip0.theme.setTextFormat(monformat); CLIP1.theme.text = monmenu[1]; Clip1.theme.setTextFormat(monformat); CLIP2.theme.text = monmenu[2]; Clip2.theme.setTextFormat(monformat); CLIP3.theme.text = monmenu[3]; Clip3.theme.setTextFormat(monformat); CLIP4.theme.text = monmenu[4]; Clip4.theme.setTextFormat(monformat); CLIP5.theme.text = monmenu[5]; Clip5.theme.setTextFormat(monformat); CLIP6.theme.text = monmenu[6]; Clip6.theme.setTextFormat(monformat); CLIP7.theme.text = monmenu[7]; Clip7.theme.setTextFormat(monformat); CLIP8.theme.text = monmenu[8]; Clip8.theme.setTextFormat(monformat); CLIP9.theme.text = monmenu[9]; Clip9.theme.setTextFormat(monformat); CLIP10.theme.text = monmenu[10]; Clip10.theme.setTextFormat(monformat); } CLIP0.onRollOver = function() { CLIP0.theme.backgroundColor = fondmenuroll; }; _root.menuconteneur._x = -250; _root.menu._x = positionmenu; __________________
__________________ Flash, Flash Builder, Flash Lite, Flash AIR ;) |
| | |
| | #2 (permalink) |
| Gast
Beiträge: n/a
|
hi ich hab dir mal eine onRelease-zuweisung für jeden button mit in die schleife geschrieben. ActionScript:
gruß, Tante Amanda |
|
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | |
| |