| |||||||
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: Aug 2006
Beiträge: 27
| as von mx auf 8 umstellen
hallo, ich habe ein problem mit meiner actionscript datei nach der umstellung von flash player 6 auf player 8 bei den einstellungen für veröffentlichungen. wahrscheinlich haben sich irgendwelche actionscript sachen verändert, die ich berücksichtigen und ändern muss. falls mir jemand einen tipp geben kann, würde ich mich darüber sehr freuen. vielleicht ist es ja nur eine kleinigkeit .... Code: int_startTime = getTimer();
boo_loadLoop = 1;
boo_stopLoop = 0;
boo_loadLoadBar = 1;
boo_load = 0; // if you click on a submenu, set boo_load to 1, wenn boo_load = 1 ist, wird gerade geladen
posMain = 0; // position des main menus beim start ist unten
mc_bgFade = 0; // mc_bg Hintergrundbild
mc_msFade = 0; // mc_master hauptcontainer
msY = _root.mc_master._y;
mc_white._alpha = 0 ;
/* Menüsteuerung */
movieclip.prototype.slideClip = function(pHoch, pRunter, pHFaktor, pRFaktor) {
with (this) {
if (signal == 1) {
_y += (pHoch-_y)/pHFaktor;
}
if (signal == 0) {
_y += (pRunter-_y)/pRFaktor;
}
}
};
movieclip.prototype.initClip = function(pClip, swf,level) {
pClip.signal = 0;
pClip.onRollOver = function() {
if (level == 0) {
//_root.boo_stopLoop = 1;
}
else {
this._alpha = 30;
}
}
pClip.onRollOut = function() {
if (level == 0) {
//_root.boo_stopLoop = 0;
//this.signal = 0;
}
else {
this._alpha = 0;
}
}
pClip.onPress = function() {
if (level == 0) { // hauptmenü
if (this.signal == 1) { // wenn oben
this.signal = 0; // position des hauptmenüs ändern auf unten
_root.posMain = 0; // neue position speichern
_root.boo_stopLoop = 0; // loop pause beenden
}
else { // wenn signal = 0 dann auf 1 also hoch mit dem ding
if (str_currentInstance != pClip) {
str_currentInstance.signal = 0;
}
this.signal = 1; // position des hauptmenüs ändern auf oben
_root.posMain = 1; // neue position speichern
str_currentInstance = pClip; // name des aktuellen mc speichern, um den später wieder nach unten zu schicken
_root.boo_stopLoop = 1; // loop in pause schicken
}
}
else { // auf untermenü clicken
this._alpha = 0; // untermenü wird durchsichtig
// beim klick aufs untermenü, geht hauptmenü runter
// soll vom geladenen film gesteuert werden
// wenn geladen, dann erst geht das hauptmenü runter
// str_currentInstance.signal = 0; -> muss vom neu geladenen film gesetzt werden
_root.boo_stopLoop = 1; // loop in pause schicken
_root.posMain = 0; // position speichern
_root.mc_loadBar._alpha = 100; // loading anzeigen
if (swf == "login.swf") {
getURL('http://www.qbarbeijing.com/en/cms/login.php',"_self");
}
else if (swf == "account.swf"){
getURL('http://www.qbarbeijing.com/en/cms/create_account.php',"_self");
}
else {
_root.str_statusMessage = "loading "+swf;
loadMovie(swf, _root.mc_master);
_root.boo_load = 1;
}
}
}
}
// *********************** home -> mc_1 *********************** //
onLoad = initClip(mc_1, "1.swf",0);
mc_1.onEnterFrame = function() { this.slideClip(480, 480, 6, 10); };
// *********************** impressions -> mc_2 *********************** //
onLoad = initClip(mc_2, "2.swf",0);
onLoad = initClip(mc_bar, "bar.swf",1);
onLoad = initClip(mc_patio, "patio.swf",1);
mc_2.onEnterFrame = function() { this.slideClip(370, 480, 6, 10); };
mc_bar.onEnterFrame = function() { this._y = mc_2._y+38; };
mc_patio.onEnterFrame = function() { this._y = mc_2._y+73; };
// *********************** q zone -> mc_3 *********************** //
onLoad = initClip(mc_3, "3.swf",0);
onLoad = initClip(mc_play, "play.swf",1);
onLoad = initClip(mc_menu, "menu.swf",1);
onLoad = initClip(mc_dictionary, "dictionary.swf",1);
onLoad = initClip(mc_finder, "finder.swf",1);
onLoad = initClip(mc_events, "events.swf",1);
mc_3.onEnterFrame = function() { this.slideClip(260.45, 480, 6, 10); };
mc_play.onEnterFrame = function() { this._y = mc_3._y+38; };
mc_menu.onEnterFrame = function() { this._y = mc_3._y+73; };
mc_dictionary.onEnterFrame = function() { this._y = mc_3._y+108; };
mc_finder.onEnterFrame = function() { this._y = mc_3._y+143; };
mc_events.onEnterFrame = function() { this._y = mc_3._y+178; };
// *********************** find qbar -> mc_4 *********************** //
onLoad = initClip(mc_4, "4.swf",0);
onLoad = initClip(mc_address, "address.swf",1);
onLoad = initClip(mc_contact, "contact.swf",1);
mc_4.onEnterFrame = function() { this.slideClip(370.45, 480, 6, 10); };
mc_address.onEnterFrame = function() { this._y = mc_4._y+38; };
mc_contact.onEnterFrame = function() { this._y = mc_4._y+73; };
// *********************** people -> mc_5 *********************** //
onLoad = initClip(mc_5, "5.swf",0);
onLoad = initClip(mc_dj, "dj.swf",1);
onLoad = initClip(mc_echo, "echo.swf",1);
onLoad = initClip(mc_george, "george.swf",1);
mc_5.onEnterFrame = function() { this.slideClip(330.45, 480, 6, 10); };
mc_george.onEnterFrame = function() { this._y = mc_5._y+38; };
mc_echo.onEnterFrame = function() { this._y = mc_5._y+73; };
mc_dj.onEnterFrame = function() { this._y = mc_5._y+108; };
// *********************** press -> mc_6 *********************** //
onLoad = initClip(mc_6, "6.swf",0);
onLoad = initClip(mc_login, "login.swf",1);
onLoad = initClip(mc_account, "account.swf",1);
mc_6.onEnterFrame = function() { this.slideClip(370.45, 480, 6, 10); };
mc_login.onEnterFrame = function() { this._y = mc_6._y+38; };
mc_account.onEnterFrame = function() { this._y = mc_6._y+73; };
// *********************** contact -> mc_7 *********************** //
onLoad = initClip(mc_7, "sound.swf",0);
mc_7.onEnterFrame = function() { this.slideClip(480, 480, 6, 10); };
onLoad = initClip(mc_8, "sound.swf",0);
mc_8.onEnterFrame = function() { this.slideClip(480, 480, 6, 10); };
// *********************** TIMER CONTROLLER *********************** //
_root.initmap = 1;
/*
// 1 = GRÜN = alles aus bis auf loop -> grün -> loop
// 2 = GELB = hauptmenüpunkt ist oben -> gelb -> laden vorbereiten
// 3 = ROT = film wird geladen -> rot -> laden
// 4 = BLAU = film ist geladen und läuft -> blau -> action
*/
mc_timer.onEnterFrame = function() {
if (posMain == 1) {
if (boo_load == 0) {
_root.mc_status.gotoAndStop("gelb");
} else if (boo_load == 2 || boo_load == 1) {
_root.mc_msFade = 1;
}
} else {
if (boo_stopLoop == 0) {
_root.mc_status.gotoAndStop("gruen");
}
if (boo_load == 2) {
_root.mc_status.gotoAndStop("blau");
}
if (boo_load == 1) {
//mc_bgFade = 1;
//loadMovie("fader.swf",mc_fader);
_root.mc_status.gotoAndStop("rot");
}
}
//if (_root.initmap == 1 && _root.mc_master.regler.schieber._y != undefiened) {
//_root.initmap = 0;
//_root.mc_master.regler.schieber._y = -200;
//}
_root.zoomy = ((-getProperty(_root.mc_master.regler.schieber, _y)) / 310) * 100;
if (mapx == undefiened) {
mapx = _root.mc_master.mc_show.karte2._xscale;
} else {
plusx = (mapx / 100) * _root.zoomy;
}
if (mapy == undefiened) {
mapy = _root.mc_master.mc_show.karte2._yscale;
} else {
plusy = (mapy / 100) * _root.zoomy;
}
_root.mc_master.mc_show.karte2._xscale = mapx + 10*plusx;
_root.mc_master.mc_show.karte2._yscale = mapy + 10*plusy;
// macht die bilder unter impressions -> bar sichtbar
int_alphacontrol = _root.mc_master.mc_show.bar10.mc_image._alpha;
if (int_alphacontrol < 100) {
_root.mc_master.mc_show.bar10.mc_image._alpha +=10;
}
// time control
int_currentTime = getTimer();
int_showTime = Math.round((int_currentTime-intStartTime)/1000);
if (int_showTime>10 && boo_loadLoop == 1) {
loadMovie("soundslider.swf", mc_sound);
loadMovie("loop.swf", mc_loop);
_root.str_statusMessage = "Loading loop";
_root.mc_loadBar._alpha = 100;
boo_loadLoop = 0;
}
if (_root.mc_msFade == 1) {
if (_root.mc_master._y < 800) {
_root.mc_master._y += 20;
} else {
loadMovie("empty.swf", mc_master);
_root.mc_master._y = msY;
_root.mc_msFade = 0;
_root.mc_bgFade = 0;
boo_stopLoop = 0;
boo_load = 0;
}
}
// loop wird dunkler
if (_root.mc_bgFade == 1) {
if (_root.mc_white._alpha < 60) {
_root.mc_white._alpha += 20;
}
}
// loop wird heler
if (_root.mc_bgFade == 0) {
if (_root.mc_white._alpha > 0) {
_root.mc_white._alpha -= 20;
}
}
}
// *********************** STOP *********************** //
stop(); |
| | |
| | #2 (permalink) |
| will code HTML for food Registriert seit: Mar 2003
Beiträge: 1.232
|
Dein Code ist mir zu lang um da jetzt Wort für Wort durchzugehen. Das häufigste Problem beim Umstellen ist jedoch die Groß- und Kleinschreibung. Flash Mx war es egal ob Du die function meineFunktion genannt hast und dann über meinefunktion aufgerufen hast. Es hat funktioniert. Für Flash 2004 und neuer hingegen sind die beiden Funktionen nicht identisch! Sie unterscheiden zwischen Groß- und Kleinschreibung. Bis dann, -querkopf-
__________________ Alles ist wie immer. Nur schlimmer. |
| | |
![]() |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | |
| |