Visualizzazione dei risultati da 1 a 3 su 3

Discussione: Centrare l'SWF

  1. #1
    Utente di HTML.it
    Registrato dal
    May 2005
    Messaggi
    238

    Centrare l'SWF

    Ciao ragazzi,non riesco a capire come sia posssibile...
    Ho un contenitore esattamente un exe che mi legge esteranamente degli SWF..il problema è che gli swf non si aprono al centro dello schermo.In pratica in alcuni computer si apre troppo spostata a sinistra o troppo in basso e per poterla visualizzare tutta bisogna spostare dal sorgente(FLA) l'animazione.

    Come posso risolvere questo problema?

    Grazie Ciao

  2. #2
    Utente di HTML.it L'avatar di koln
    Registrato dal
    Sep 2004
    Messaggi
    388
    Se ho capito bene: hai creato un proiettore (.exe) sul quale carichi swf esterni. Ma con quale metodo? Posta il codice che hai utilizzato.

  3. #3
    Utente di HTML.it
    Registrato dal
    May 2005
    Messaggi
    238
    function carica_pal()
    {
    cp = 0;
    mioxml = new XML();
    mioxml.ignoreWhite = true();
    mioxml.load("pal.xml");
    mioxml.onLoad = ElaboraXML;
    } // End of the function
    function ruota_pal()
    {
    try
    {
    mcLoader.loadClip(pal[cp], container);
    } // End of try
    catch(err)
    {
    trace("errore caricamento file : " + pal[cp]);
    } // End of catch
    trace("ruota_pal() loadclip -- n :" + cp);
    trace(" frames : " + _level0._framesloaded);
    } // End of the function
    function onLoadInit(mc)
    {
    trace("onLoadInit: " + mc);
    trace(" totale bite : " + _level0.container.getBytesTotal());
    trace(" bites caricati" + _level0.container.getBytesLoaded());
    _level0.container.play();
    } // End of the function
    function onLoadError(mce)
    {
    trace("errore caricamento : " + mce);
    } // End of the function
    function ElaboraXML(success)
    {
    myarray = new Array();
    var _l1;
    if (mioxml.loaded)
    {
    trace("Tot elementi = " + mioxml.firstChild.childNodes.length);
    var _l2 = mioxml.firstChild.childNodes;
    _l1 = 0;
    for (i = 0; i <= _l2.length; i++)
    {
    if (_l2[i].nodeName == "spot")
    {
    trace(" --->" + _l2[i].attributes.filename + "++++" + _l1);
    pal.push(_l2[i].attributes.filename);
    trace(" valore inserito" + pal[_l1]);
    _l1 = _l1 + 1;
    } // end if
    } // end of for
    } // end if
    } // End of the function
    var pal = new Array();
    var cp;
    Stage.showMenu = false;
    getURL("FSCommand:fullscreen", true);
    Mouse.hide();
    carica_pal();
    var container = createEmptyMovieClip("container", 0);
    var mcLoader = new MovieClipLoader();
    mcLoader.addListener(this);

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