Visualizzazione dei risultati da 1 a 2 su 2

Discussione: aiuto (if)

  1. #1

    aiuto (if)

    Salve a tutti, spero ci sia qualcuno che può darmi indicazioni su un problema:

    Sullo stage ho questo script:
    --------------------
    function resizeFrame1(v1, nWidth1, nHeight1) {
    owidth1 = frame1.frame11._width;
    wDiff1 = nWidth1-oWidth1;
    hDiff1 = nHeight1-oHeight1;
    wMove1 = wDiff1/v1;
    hMove1 = hDiff1/v1;
    frame1.frame11._width = oWidth1+wMove1;
    oHeight1 = frame1.frame11._height;
    frame1.frame11._height = oheight1+hMove1;
    }
    function setFramePos1(v1, nxPos1, nyPos1) {
    xPos1 = frame1._x;
    xDiff1 = nxPos1-xPos1;
    xMove1 = xDiff1/v1;
    frame1._x = xPos1+xMove1;
    yPos1 = frame1._y;
    yDiff1 = nyPos1-yPos1;
    yMove1 = yDiff1/v1;
    frame1._y = yPos1+yMove1;
    }
    ---------------------------------
    L'MC "frame1" ha lo script:
    ---------------------------------
    onClipEvent (load) {
    var v1 = 5;
    var nWidth1 = 800;
    var nHeight1 = 480;
    var nxPos1 = 450;
    var nyPos1 = 320;
    }
    onClipEvent (enterFrame) {
    _root.resizeFrame1(v1, nWidth1, nHeight1);
    _root.setFramePos1(v1, nxPos1, nyPos1);
    _root.setPositions();
    _root.resizeHeight(v1, nHeight1);
    }
    ---------------------------------

    Vorrei che quando l'mc "frame1" arriva alla dimensione 800X480 carica un swf esterno, io ho provato con questo script ma non mi funziona:
    ---------------------------------
    if (_root.frame1.nWidth1 == 800 & _root.frame1.nHeight1 == 480) {
    loadMovieNum("stage1.swf", 1);
    } else {
    }
    ---------------------------------
    AIUTOOO

  2. #2
    AIUTATEMI PERFAVORE, PANICO TOTALE!

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.