Visualizzazione dei risultati da 1 a 7 su 7

Discussione: full screen

  1. #1

    full screen

    ciao ho questo problema praticamente per caricare il mio sfondo che è una img di 1024*1280 su un fullscreen uso questo codice:

    Codice PHP:
    larghezza Stage.width
    Stage
    .align "TL";
    Stage.scaleMode "noScale";
    Stage.showMenu false;

    this.onEnterFrame = function()
    {
        
    this.preload._x Math.floor(Stage.width this.preload._width 2);
        
    this.preload._y Math.floor(Stage.height this.preload._height 2);
        
    byl this.getBytesLoaded();
        
    byt this.getBytesTotal();
        if( 
    byt 10 )
        {
            
    perc Math.round(byl 100 byt);
            
    this.preload.percentuale.text "load background" "  " perc "%";
            if(
    byl >= byt)
            {
                
    this.onEnterFrame undefined;
                
    this.nextFrame();
            }
        }
    }
    stop(); 
    e fin qui tutto ok il problema sta nel fatto che se uno ridimensiona il browser anche di 1 mm mi rimpicciolisce tutto lo sfondo... allego le img per capire....
    Immagini allegate Immagini allegate
    • Tipo di file: gif 1.gif‎ (21.2 KB, 103 visualizzazioni)

  2. #2
    questo è il browser dopo aver ridimensionato un pochino...
    qualche consiglio.... :master:
    Immagini allegate Immagini allegate
    • Tipo di file: gif 2.gif‎ (5.0 KB, 101 visualizzazioni)

  3. #3
    Hai provato a cambiare il valore dello scaleMode in allowScale?
    Dovrebbe essere quello a fare casini.

  4. #4
    mettendo allowScale è vero che non mi fa più questa co del ridimensionamento ... ma mi sfalsa tutto il filmato ingrandendomelo.... altre soluzioni?

  5. #5

  6. #6

  7. #7
    nel secondo frame ho messo questo codice:

    Codice PHP:
    _root.bkg_mc._x Stage.width 2;
    _root.bkg_mc._y Stage.height 2;
    _root.bkg_mc._root.bkg_mc._width;
    _root.bkg_mc._root.bkg_mc._height;
    trace(_root.bkg_mc.h)
    myResize = new Object();
    function 
    Window()
    {
        var 
    CDim _root.bkg_mc._root.bkg_mc.h;
        var 
    SDim Stage.width Stage.height;
        if (
    SDim CDim)
        {
            
    _root.bkg_mc._height Stage.height;
            
    _root.bkg_mc._width _root.bkg_mc.Stage.height _root.bkg_mc.h;
        } else {
            
    _root.bkg_mc._width Stage.width;
            
    _root.bkg_mc._height _root.bkg_mc.Stage.width _root.bkg_mc.w;
        }
        
    _root.bkg_mc._quality "BEST";
    };

    myResize.onResize = function()
    {
        
    Window();
    }
    Stage.addListener(myResize);
    Window(); 
    bkg_mc contiene una mashera e 1 altro mc con questo codice:

    Codice PHP:
    this.mask_mc._width 30;
    this.mask_mc._height 30;
    this.mask_mc._x _root.Stage.width /2;
    this.mask_mc._y _root.Stage.height /2;

    // funzione che mi ingrandisce il cerchio mask
    mask_mc.onEnterFrame =function() {
        
    mask_mc._width mask_mc._width 65;
        
    mask_mc._height mask_mc._height 65;
        
    trace(mask_mc._width)
            if ((
    mask_mc._width >= 6000) || (mask_mc._height >= 6000))  {
            
    trace("ok");
            
    delete this.onEnterFrame;
            }
    }
    // sfondo maschera
    this.masksfo_mc._width 20;
    this.masksfo_mc._height 20;
    this.masksfo_mc._x _root.Stage.width /2;
    this.masksfo_mc._y _root.Stage.height /2;


    // funzione che mi ingrandisce  sfondo semitrasparente cerchio mask
    masksfo_mc.onEnterFrame =function() {
        
    masksfo_mc._width masksfo_mc._width 95;
        
    masksfo_mc._height masksfo_mc._height 95;
            if ((
    masksfo_mc._width >= 6000) || (masksfo_mc._height >= 6000))   {
            
    _parent.nextFrame();
    delete this.onEnterFrame;
            }
    }
    stop(); 

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.