Hi,

I've tried to code it a bit different, so firstly i put a loadPanel to
show the content:

        lp = new LoadPanel();

        lp.setSize(208,385);

        //lp.moveTo(200,100);
        lp.setBgColor('#FFE6CC');


        counter = 0;

        var el = new EventListener();
        el.onload = function(e) {
                status = 'got load event '+ counter++;
        }
        lp.addEventListener(el);
        
        //DynAPI.document.addChild(lp);

Then a viewPort to clip the content into a window like:

        viewport = new ViewPort(lp)
        viewport.moveTo(200,90)
        viewport.setSize(225,100)
        viewport.setBgColor('#c0c0c0')
        DynAPI.document.addChild(viewport)
        
        var el2 = new EventListener()
        el2.onscroll = function(e) {
                var vp = e.getSource()
                document.info.ratiox.value = vp.getRatioX()
                document.info.ratioy.value = vp.getRatioY()
        }
        viewport.addEventListener(el2)


So i've got the frame to start loading:

        lp.setURL("lista1.html");       // <- this works
        setTimeout('lp.setURL("lista2.html")', 3000);   // no way
        setTimeout('lp.setURL("lista3.html")', 6000);   // :-(

Well it only works for the first time... I cant solve this... Please
some help!

Thank you!




_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to