Visualizzazione dei risultati da 1 a 2 su 2

Discussione: remove function...

  1. #1
    Utente di HTML.it
    Registrato dal
    Oct 2004
    Messaggi
    82

    remove function...

    aiuto esperti...
    volevo utilizzare una animazione di testo carina ma non riesco a rimuoverla nel frame successivo..qualche consiglio ???
    questo è lo script che non riesco a bloccare

    function genWord() {
    // calculate grid resolution based on letter space
    var gridrez=900/_global.letterSpacing;

    // choose beginning screen position of word
    var tx=random(Math.ceil(gridrez))*_global.letterSpacin g + gridrez/2;
    var ty=random(Math.ceil(gridrez*.6183))*_global.letter Spacing + gridrez/2;

    // makeAutoFixingWord(the word, x position, y position, resolution time, dissolution time)
    makeAutoFixingWord(wordlist[random(wordlist.length)],tx,ty, 40,40);
    }

    // lay down an auto-fixing word at the coordinates specified
    function makeAutoFixingWord(daword, x, y, resolve, dissolve) {
    // kern tracks the current letter position
    var kern=0;

    // for each letter in the word
    // create a new ltr movieclip
    for (n=0;n<daword.length;n++) {
    neo="oneletter"+String(depth++);
    this.attachMovie("ltr",neo,depth);
    // position movieclip
    this[neo]._x=x + kern;
    this[neo]._y=y;
    // assign 'real' character for movieclip
    this[neo].realch=daword.substr(n,1);
    this[neo].ch=daword.substr(n,1);
    // set timer
    this[neo].resolve=random(resolve);
    this[neo].dissolve=resolve+dissolve+random(dissolve*2);
    // increment the kern for the next letter
    kern+=_global.letterSpacing;
    }
    // return the screen position of the last letter
    return (x+kern);
    }

    // make float in auto-fixing word
    function makeFloatingWord(daword, x, y) {
    var offset=100;
    var kern=0;
    oldneo=null;
    for (n=0;n<daword.length;n++) {
    neo="ltrclone"+String(depth++);
    this.attachMovie("ltrfloat",neo,depth);
    // position movieclip
    this[neo].x=x+kern;
    this[neo].y=y;
    this[neo]._x=x+kern+random(offset)-offset/2;
    this[neo]._y=y+random(offset)-offset/2;
    this[neo]._alpha=0;
    // assign 'real' character for movieclip
    this[neo].ch=daword.substr(n,1);
    // increment the kern for the next letter
    bounds = new Object();
    bounds=this[neo].getBounds();
    kern+=(bounds.xMax-bounds.xMin)*.8;
    }
    }

  2. #2
    Utente di HTML.it
    Registrato dal
    Oct 2004
    Messaggi
    82
    secondo disperato appello...
    nella mia ignoranza non capisco : è una questione troppo semplice che non merita risposta o troppo complicata(non credo proprio, visto il livello degli argomenti che leggo spesso..)?? oppure manca qualche dato per la comprensione ??
    in fiduciosa attesa di un cenno di bontà da parte dei più "navigati", grazie comunque...

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.