Visualizzazione dei risultati da 1 a 6 su 6
  1. #1

    ciclo for e controllo su tempo....

    ciao a tutti...

    allora....ho un cliclo for che mi crea dei mc, ma vorrei che tra un ciclo e un altro aspettasse un tot di tempo o di frame...

    e' possibile???

    ciaooo

  2. #2

    Re: ciclo for e controllo su tempo....

    Originariamente inviato da zoc
    ciao a tutti...

    allora....ho un cliclo for che mi crea dei mc, ma vorrei che tra un ciclo e un altro aspettasse un tot di tempo o di frame...

    e' possibile???

    ciaooo
    posta il code, e vediamo come crei le MC
    poi vediamo come mettere il time
    Interactive Html/CSS/JS Playground | @webbeloz ( cip..cip! )
    Mechanics & Expert Tuning Fix Z3 Roadster Community

  3. #3
    ciao grazie mille!!
    lo creo cosi':

    function Compila() {
    maxTit = tit_news_arr.length-1;
    for (k=0; k<=maxTit; k++) {
    newsMC.attachMovie("tr", "tr"+k, k);
    newsMC["tr"+k]._x = 5;
    newsMC["tr"+k]._y = 12*k;
    newsMC["tr"+k].titolo.text = tit_news_arr[k];
    newsMC["tr"+k].testo.text = text_news_arr[k];
    }
    }

    ciaoooo

  4. #4
    Originariamente inviato da zoc
    ciao grazie mille!!
    lo creo cosi':

    function Compila() {
    maxTit = tit_news_arr.length-1;
    for (k=0; k<=maxTit; k++) {
    newsMC.attachMovie("tr", "tr"+k, k);
    newsMC["tr"+k]._x = 5;
    newsMC["tr"+k]._y = 12*k;
    newsMC["tr"+k].titolo.text = tit_news_arr[k];
    newsMC["tr"+k].testo.text = text_news_arr[k];
    }
    }

    ciaoooo
    così le attacchi dalla libreria, avevi parlato di "creare"
    :master:

    hai solo questo codeAS ?
    Interactive Html/CSS/JS Playground | @webbeloz ( cip..cip! )
    Mechanics & Expert Tuning Fix Z3 Roadster Community

  5. #5
    praticamente il movie clip TR serebbe colui che ha i blocchi di testo dinamici....
    io vorrei distanziare le loro creazioni in modo da pter metter un anumazioncina...

    questo e' il codice...
    newsMC.setMask(maschera);
    //----------recupera dati xml-------------
    fileXML = new XML();
    fileXML.load("fileXML.xml");
    fileXML.onLoad = Estrai;
    db = new Array();
    //-------funzioni-----------------------
    function Estrai(success) {
    if (fileXML.loaded) {
    db = fileXML.childNodes;
    Distribuisci();
    Compila();
    }
    }
    function Distribuisci() {
    tit_news_arr = new Array();
    text_news_arr = new Array();
    maxTR = db.length;
    for (k=0; k<=maxTR; k++) {
    if (db[k].nodeName == "news") {
    tit_news_arr.push(db[k].attributes.tit_news.toString());
    text_news_arr.push(db[k].childNodes.toString());
    }
    }
    }
    function Compila() {
    maxTit = tit_news_arr.length-1;
    for (k=0; k<=maxTit; k++) {
    newsMC.attachMovie("tr", "tr"+k, k);
    newsMC["tr"+k]._x = 5;
    newsMC["tr"+k]._y = 12*k;
    newsMC["tr"+k].titolo.text = tit_news_arr[k];
    newsMC["tr"+k].testo.text = text_news_arr[k];
    }
    }

    uan domanda....ma se creo in una funzione sulla linea temporale una variabile, perche sempre sulla linea temporale non posso recuperarla??

    grazie e cioaaaa

  6. #6
    ormai ci sono quasi...
    ecco il codice da metter per lo scroll:
    firstPos = newsMC._y;
    widthMC = (19*12);
    fineScroll = maschera._y-widthMC;
    newsMC.onEnterFrame = function() {
    this._y -= 1;
    if (this._y<fineScroll) {
    this._y = firstPos;
    }
    };
    solo che al posto di 19 ci dovrebbe essere maxTit della funzione precedente...ma non me lo recupera!!!

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.