| |||||||
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: May 2004
Beiträge: 11
| verschobene Links
hallo scripter, ich hab da n komisches prob. ich bau mir per script ein einfaches-menu zusammen. dieses liegt zentriert auf einem dynamischen 100% gestreckten hintergrund. das komische daran: bei einer auflösung von 800x600 (und auch anderen auflösungen im zwischenbereich bei 800x600) werden die ersten 3 worte nicht als movieclip erkannt ... wieso? ka! is mir völlig unerklärlich! leider :/ ich hoffe, es sitzt ein helles köpfchen herum, das mir helfen kann! danke im voraus! mster aahhh... brvor ichs vergess: hier das script (mein arbeitsbereich ist 770x460pixel gross) MovieClip.prototype.setcolor = function($setColor) { $mc = new Color(this); $mc.setRGB($setColor); }; textFormat = new TextFormat(); textFormat.bold = true; textFormat.size = 10; textFormat.font = "_sans"; var abstand = 10; var btntext = new Array("HOME", "UNTENEHMEN", "ANGEBOT", "REFERENZEN", "LEISTUNGEN", "PARTNER", "IMPRESSUM", "KONTAKT"); var btntextcolor = new Array("0xc1c1c1", "0xc1c1c1", "0xc1c1c1", "0xc1c1c1", "0xc1c1c1", "0xc1c1c1", "0xc1c1c1", "0xc1c1c1"); var btntextcolorfocus = new Array("0xce8b3a", "0xce8b3a", "0xce8b3a", "0xce8b3a", "0xce8b3a", "0xce8b3a", "0xce8b3a", "0xce8b3a"); function createmenu(abstand,createkz) { trace(createkz); for (var i = 0; i<btntext.length; i++) { this.createEmptyMovieClip("btn"+i, i+3); this["btn"+i].createTextField("txt", i+3, 0, 0, 0, 0); this["btn"+i].txt.text = btntext[i]; this["btn"+i].txt.autoSize = true; this["btn"+i].txt.setTextFormat(textFormat); this["btn"+i].setcolor(btntextcolor[i]); if(i != 0){ this["btn"+i]._x = this["btn"+(i-1)]._x+this["btn"+(i-1)]._width+abstand; } else{ this["btn"+i]._x = (Stage.width-535)/2; } this["btn"+i]._y = (Stage.height/2)-100; this["btn"+i].id = i; this["btn"+i].onRollOver = function() { this.setcolor(0xFFC000); }; this["btn"+i].onRollOut = function() { this.setcolor(btntextcolor[this.id]); }; this["btn"+i].ziel = btnloaded[i]; this["btn"+i].butcolor = btntextcolorfocus[i]; this["btn"+i].onRelease = function() { this.setcolor(this["btn"+i].butcolor); _global.menuskz = this.butskz;//menupunktkontrolle }; }; }; createmenu(abstand,0); |
| | |
| | #2 (permalink) | |
| Gast
Beiträge: n/a
| Zitat:
PHP-Code: | |
|
| | #3 (permalink) |
| Neuer User Registriert seit: May 2004
Beiträge: 11
|
ok, ich sehe, das problem taucht nur bei verwendung der ganzen datei auf. hab sie mal gepostet. http://www.mster.info/mster/dsc_1_2.zip wenn du da nur das swf aufmachst, oder aber die html-datei und den brower dann auf 800x600 stellst, wirst du sehen, dass die ersten 3 links (je nach browsergrösse) nicht mehr funktionieren ... :/ |
| | |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | |
| |