Zurück   Flashforum > Flash > ActionScript > ActionScript 1

Antwort
 
LinkBack Themen-Optionen Ansicht
Alt 17-05-2005, 16:07   #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);
Mster ist offline   Mit Zitat antworten
Alt 17-05-2005, 22:44   #2 (permalink)
agedoubleju
Gast
 
Beiträge: n/a
Zitat:
werden die ersten 3 worte nicht als movieclip erkannt
Was meinst du damit? Der trace im onRelease-Event gibt eindeutig MC-Instanznamen aus, alle Buttons werden gezeigt und die Events funzen auch...
PHP-Code:
this["btn"+i].onRelease = function() {
            
this.setcolor(this["btn"+i].butcolor);
            
_global.menuskz this.butskz;
            
trace("this="+this);
            
//menupunktkontrolle
        
}; 
  Mit Zitat antworten
Alt 18-05-2005, 09:18   #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 ... :/
Mster ist offline   Mit Zitat antworten
Alt 18-05-2005, 11:15   #4 (permalink)
agedoubleju
Gast
 
Beiträge: n/a
Ich bekomme beim Download der zip ein "File not found", check mal den Link...
  Mit Zitat antworten
Alt 18-05-2005, 11:37   #5 (permalink)
Neuer User
 
Registriert seit: May 2004
Beiträge: 11
habs schon gelöst, danke!
Mster ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind an
Pingbacks sind an
Refbacks sind an



Alle Zeitangaben in WEZ +1. Es ist jetzt 14:29 Uhr.

Domains, Webhosting & Vserver von Host Europe
Unterstützt das Flashforum!
Adobe User Group


Copyright ©1999 – 2012 Marc Thiele