Il browser va creato dal programma, non può essere un elemento già presente. Vediamo un esempio, facciamo due pulsanti, in uno mettiamo il seguente codice per avviare il browser:
on mouseUp #Ci serve l'identificativo unico della finestra put the windowid of this stack into tID #Avviamo il browser put revBrowserOpen(tID,"http://www.google.com") into browserid #Salviamo l'identificativo del browser set the curbrow of this stack to browserid #Impostiamo alcune proprieta' del browser revBrowserSet browserid,"rect","0,0,600,400" revBrowserSet browserid,"showBorder","true"end mouseUpNell'altro il seguente per chiuderlo:
on mouseUp put the curbrow of this stack into temp revbrowserclose tempend mouseUpSe tutto è andato bene il risultato sarà:

Nessun commento:
Posta un commento