ciao a tutti, premesso che le mie conoscienze di AS e XML sono minime, avrei un quesito.
Ho scaricato e elaborato un tutorial riguiardante un menu dove gli elementi sono delle immagini, ad ogni immagine mi piacerebbe associare un link che puntasse ha un singolo frame (per esempio il frame numero 50)...nel file xml e' settato l'apertura di un URL HTML, vorrei modificare il link a un singolo frame.
ho trovato la soulzione sul sito dove vennero acquistati i tutorials, ho provato a eseguire le istruzioni pero nn mi funziona. qualcuno mi puo aiutare
aggiungo la descrizione del sito per la modifica:
If you want to link to frames within your movie, you specify the frame number or frame name instead urls and you need to edit the .fla file, edit the main application movie clip / go to the ReadMe layer and look for a getURL ( if you're using ActionScript 2 ) action and change it with a gotoAndStop() or gotoAndPlay() action.
You'll lso need to place the correct timeline path to where your frame(s) are located before gotoAndStop() similar to:
MovieClip(this.parent.parent).gotoAndPlay(releaseO utsideTarget["info"].attributes.url)
....
// this code line was extracted from an ActionScript 3.0 application ( for ActionScript 2.0 you'll do it in a similar way )
e questo dovrebbe essere il codice in questione (ActionScript 2.0):
//navigate to an url if url!=undefined
var setLink = ((obj["info"].attributes.url!=undefined) && (obj["info"].attributes.url!=""));
if (setLink) {
getURL(obj["info"].attributes.url,obj["info"].attributes.window);
}
}
grazie mille


Rispondi quotando
ti mettono un codice as3 quando invece utilizzi un filmato as2.
