Visualizzazione dei risultati da 1 a 2 su 2
  1. #1
    Utente di HTML.it
    Registrato dal
    Oct 2001
    Messaggi
    275

    rotellina scrollpane solo su file swf e non in html

    salve a tutti
    ho una pagina html che contiene un swf
    questo swf, la "home" diciamo, a sua volta carica alcuni swf esterni attraverso dei bottoni con questo codice:

    this.penna.addEventListener(MouseEvent.CLICK, function()
    {


    var _swfLoader:Loader;
    var _swfContent:MovieClip;
    loadSWF("grafica.swf");

    function loadSWF(path:String):void {
    var _req:URLRequest = new URLRequest();
    _req.url = path;
    _swfLoader = new Loader();
    setupListeners(_swfLoader.contentLoaderInfo);
    _swfLoader.load(_req);
    }
    function setupListeners(dispatcher:IEventDispatcher):void {
    dispatcher.addEventListener(Event.COMPLETE, addSWF);
    dispatcher.addEventListener(ProgressEvent.PROGRESS , preloadSWF);
    }
    function preloadSWF(event:ProgressEvent):void {
    var _perc:int = (event.bytesLoaded / event.bytesTotal) * 100;
    // swfPreloader.percentTF.text = _perc + "%";
    }
    function addSWF(event:Event):void {
    event.target.removeEventListener(Event.COMPLETE, addSWF);
    event.target.removeEventListener(ProgressEvent.PRO GRESS, preloadSWF);
    _swfContent = event.target.content;
    _swfContent.addEventListener("close", unloadSWF);
    addChild(_swfContent);
    }
    function unloadSWF(event:Event):void {
    _swfLoader.unloadAndStop();
    removeChild(_swfContent);
    _swfContent = null;
    }
    });

    il problema è che la rotellina dello scrollpane non funziona, riesco a scrollare solo attraverso le frecce
    invece, se vado nell'swf direttamente (anche online) allora la rotellina funziona
    deve essere qlc problema di path?
    grazie

  2. #2
    Utente di HTML.it
    Registrato dal
    Oct 2001
    Messaggi
    275
    nessuno?

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.