ciao, ho un swf che avrà molti banner nel suo stage e per ogn'uno ho questo codice:
ok...codice://pulsante dell this.dell.onRelease = function() { getURL("http://www.miosito.it?id="+caricadati.store+"", "target=_BLANK"); }; dell.onRollOver = function() { _root.mc.loadMovie("dell.swf"); }; dell.onRollOut = function() { _root.mc._visible = false; }; //pulsante americanexpress this.americanexpress.onRelease = function() { getURL("http://www.miosito.it?id="+caricadati.store+"", "target=_BLANK"); }; americanexpress.onRollOver = function() { _root.mc.loadMovie("americanexpress.swf"); }; americanexpress.onRollOut = function() { _root.mc._visible = false; };
cè un modo per diminuire il codice, ad esempio facendo in modo che qualsiasi rollout faccia rendere invisiblie il mc senza doverlo specificare per ogni istanza?
grazie!

Rispondi quotando