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

    problema scroll foto verticale

    salve ho un problema con questo as.. che mi fa scrollare perfettamente in orizzontale un MC costituito da una semplice serie di fotine piccole... ma
    quando vado a cercare di modificare e fare lo scroll verticalmente (mi occorre così ora per un'altra pagina).. mi si blocca o non si muove per niente... help:°
    il nome dell'mc è: photo
    e l'as è il seguente:

    // Setting the xmouse to 0 in the centre of the movie:
    xmouse = _xmouse - (widthmovie / 2);
    // Setting the speed:
    speed = (xmouse) / scrollspeed;
    // If the speed is negative, the speed will be made positive here:
    if (speed < 0) {
    speed = -(speed);
    }

    //basically says that if the mouse isn't betwen these two y points it won't work
    //make sure that you figure out the top and bottom y points of your "photo" and insert them accordingly!
    mouseposition = getProperty("/myself", _y);
    if (_ymouse < 29) {
    speed=0;
    }

    if (_ymouse > 118) {
    speed=0;

    }

    // If the mouse moves to left, the photo will scroll to the right:
    if (xmouse < 0) {
    xphoto = xphoto + speed;
    }
    // If the mouse moves to the right, the photo will scroll to the left:
    if (xmouse > 0) {
    xphoto = xphoto - speed;
    }


    // Checking for the left end of the image:
    if (xphoto > 0) {
    xphoto = 0;
    }
    // Checking for the right end of the image:
    if (xphoto < -(widthphoto - widthmovie)) {
    xphoto = -(widthphoto - widthmovie);
    }
    // Placing the moviclip (photo) on it's new postition:
    setProperty("photo", _x, xphoto);


    cosa dovrei fare per rendere lo scroll verticale e non più orizzontale?? ho fatto un sacco di prove e non so più che fare!:°
    everything ends but not my L0Ve 4 U

  2. #2
    Così a occhio è un po' difficile a dirsi

    la prima cosa che mi è venuta in mente è fare la stessa cosa che hai fatto ora però sull'asse verticale

    cioè tutto quello che era x... diventa y... e quello che era width... diventa height...

    sembra abbastanza semplice

    non ti assicuro niente ma prova pure

    buona fortuna

  3. #3
    sembrava così semplice anche a me..
    ma ho provato e non funziona :\

    everything ends but not my L0Ve 4 U

  4. #4
    forse questo pezzo di codice ti da noia ???

    if (_ymouse < 29) {
    speed=0;
    }

    if (_ymouse > 118) {
    speed=0;
    }


    forse i numeri non corrispondono

    mi sembra l'unica cosa

    forse

  5. #5
    bohh non so ho provato un bel pò di volte senza risultati

    everything ends but not my L0Ve 4 U

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.