robin.meeuwsen@wanadoo.fr
%Europe/Berlin %906 %2005, 22:44
Ik heb een menu gemaakt met daarin een aantal knoppen. De waarde van de getURL en de bijbehorende acties zijn afhankelijk van een waarde uit een shared object. Bij de 1e klik gaat alles goed maar bij de 2e klik leest 'ie nog steeds de oude waarden ook al is de inhoud van het .sol bestand gewijzigd. Hier is de bijbehorende code:
on(release){
so=SharedObject.getLocal('myWelcome','/');
so1=SharedObject.getLocal('myMenu','/');
import mx.controls.Alert;
if(so.data.animation=='done'){
Alert.show("Done");
so1.data.suboption='leselus';
so1.flush();
getURL('./contenuleselus.htm','FREEMRECHTS');
gotoAndPlay('FlyInAll');
}else if(so.data.animation=='inprogress'){
Alert.show("In progress");
so1.data.suboption='leselus';
so1.flush();
getURL("javascript:MM_showHideLayers('HomeWeg','','show',' Home','','hide')",'FREEMRECHTS');
gotoAndPlay('FlyInAll');
}else if(so.data.animation==null){
Alert.show("Null");
so1.data.suboption='leselus';
so1.flush();
getURL('./contenuleselus.htm','FREEMRECHTS');
gotoAndPlay('FlyInAll');
}
}
Wie kan me hiermee op weg helpen?
Alvast bedankt!
Robin Meeuwsen
on(release){
so=SharedObject.getLocal('myWelcome','/');
so1=SharedObject.getLocal('myMenu','/');
import mx.controls.Alert;
if(so.data.animation=='done'){
Alert.show("Done");
so1.data.suboption='leselus';
so1.flush();
getURL('./contenuleselus.htm','FREEMRECHTS');
gotoAndPlay('FlyInAll');
}else if(so.data.animation=='inprogress'){
Alert.show("In progress");
so1.data.suboption='leselus';
so1.flush();
getURL("javascript:MM_showHideLayers('HomeWeg','','show',' Home','','hide')",'FREEMRECHTS');
gotoAndPlay('FlyInAll');
}else if(so.data.animation==null){
Alert.show("Null");
so1.data.suboption='leselus';
so1.flush();
getURL('./contenuleselus.htm','FREEMRECHTS');
gotoAndPlay('FlyInAll');
}
}
Wie kan me hiermee op weg helpen?
Alvast bedankt!
Robin Meeuwsen