Visualizzazione dei risultati da 1 a 2 su 2

Discussione: gotoAndPlay

  1. #1
    Utente di HTML.it
    Registrato dal
    Nov 2001
    Messaggi
    525

    gotoAndPlay

    sono nuova del flash e dell'actionscript....
    sono riuscita a far leggere da/a php e flash i valori delle variabili di un form P
    Ora xò sono bloccata sul fatto di indicare a flash quale animazione far partire dopo che un pulsante è stato premuto, ed ha letto i dati dalla pagina php ....
    Ho questo codice ma la pagina mi resta ferma.....
    E' un'unica animazione che a un certo numero del frame viene modifica in base alle esigenze.... uso _root.cellulare.gotoAndPlay(93); ma nn fa nulla e nn dà msg di errore...come si fa????
    Thxxxx

    on(release)
    {

    if (_root.nome.text ==""){
    _root.info.text ="Inserire il nome";

    }
    else if (_root.cognome.text ==""){
    _root.info.text="Inserire il cognome";

    }

    var sender = new LoadVars();

    sender.onLoad = function(success) {
    if (success) {
    trace("v=" + this['vincente']);

    if (this['error'] != '')
    {

    }
    else if (this['vincente'] == 'si')
    {
    _root.cellulare.gotoAndPlay(93); trace("v=" + this['vincente']);
    }
    else if (this['vincente'] == 'no')
    {
    _root.cellulare.gotoAndPlay(104);
    }
    }
    };
    var host = 'http://127.0.0.1/xxxxx/';
    var page = 'memo_reg.php';
    qs = 'cognome=' + _root.cognome.text;
    qs += '&cellulare=' + _root.cellulare.text;

    var address = host + page + '?' + qs;

    sender.load(address);

    trace(qs);

    }

  2. #2
    Utente di HTML.it L'avatar di sanny82
    Registrato dal
    Mar 2003
    Messaggi
    689
    ti restituisce il trace nel tuo else if?

    trace("v=" + this['vincente']);

    else if (this['vincente'] == 'si')
    {
    _root.cellulare.gotoAndPlay(93); trace("v=" + this['vincente']);
    }
    una parola è poca e due sono troppe

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.