Visualizzazione dei risultati da 1 a 3 su 3

Discussione: Player 8

  1. #1

    Player 8

    Ciao, ho uno script che solitamente utilizzo con il player 6,
    aprendo il file con flash 8 e pubblicandolo con il player 8, lo script non funziona come mai?
    questo è lo script associato al movieclip:

    onClipEvent (load) {
    _root.mystart = false;
    this.stato = "CHIUSO";
    }
    onClipEvent (enterFrame) {
    if (this.hitTest(_root._xmouse, _root._ymouse, false)) {
    clicksopra = true;
    } else {
    clicksopra = false;
    }
    }
    onClipEvent (mouseDown) {
    if (clicksopra) {
    _root.mystart = !_root.mystart;
    if (_root.mystart) {
    this.stato = "APERTO";
    } else {
    this.stato = "CHIUSO";
    }
    }
    }

    onClipEvent (load) {
    inity = _y;
    targety = inity;
    initx = _x;
    targetx = initx;
    elfactor = 0.6;
    speedfactor = 17;
    starty= _y=_root.freccia._y
    startx= _x=_root.freccia._y

    }
    onClipEvent (enterFrame) {

    if (_root.mystart) {
    diffx = targetx - _x;
    diffy = targety - _y;
    oldx = _x;
    oldy = _y;
    _x += diffx / speedfactor + speedx * elfactor;
    _y += diffy / speedfactor + speedy * elfactor;
    speedx = _x - oldx;
    speedy = _y - oldy;
    }
    if (!_root.mystart) {
    diffx = _x - startx;
    diffy = _y - starty;
    oldx = _x;
    oldy = _y;
    _x -= diffx / speedfactor - speedx * elfactor;
    _y -= diffy / speedfactor - speedy * elfactor;
    speedx = _x - oldx;
    speedy = _y - oldy;
    }



    grazie
    http://www.lool.it
    http://www.minimummaximum.com

  2. #2
    Utente di HTML.it L'avatar di and80
    Registrato dal
    Mar 2003
    Messaggi
    15,182
    è un problema di AS, non di flash player, se pubblichi per as1 funziona.... probabilmente il problema è dovuto al fatto che qualche variabile è stata utilizzata senza essere prima inizializzata, tra l'altro questo script mi sembra di averlo già visto, hai provato a fare una ricerca?

    ps. ma non bastava un semplice "UP" ? --> http://forum.html.it/forum/showthrea...hreadid=995241

  3. #3
    GRAZIE MILLE.....
    hai ragione, bastava un smplice up, ora ho risolto...
    bye
    http://www.lool.it
    http://www.minimummaximum.com

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 © 2026 vBulletin Solutions, Inc. All rights reserved.