1

(2 replies, posted in TiltViewer-Pro)

Hi,

Was wondering how you did use the unload feature?

I'm busy with a website with 2 buttons a next and a previous button, by each click a different swf wil be loaded on stage.
But when the flash_embed.swf is turned on it works just fine until i want to go to or the next swf or the previous.

Thirst i got the same errors #1009 or even eventually #1010, but when i used the unload method in my if statement i did not get the errors, but the tiltviewer isn't unloading.

stituation 1

    if (htxt.x == -1199.95){
        var hmin3:Tween = new Tween(htekst,"x",Strong.easeOut, -1200,-1983.25,1,false);
//        Object(ldr.content).removeChild();
        ldr.unload();
        ldr.load(meSWF);
        ldr.x = Xpos;
        ldr.y = Ypos;
        addChild(ldr);
        }
* here i get all the errors but meSWF is loaded

situation 2

    if (htekst.x == -1199.95 && Object(ldr.content)._app != null){
        var hmin3:Tween = new Tween(htekst,"x",Strong.easeOut, -1200,-1983.25,1,false);
        Object(ldr.content).removeChild();
        ldr.unload();
        ldr.load(meSWF);
        ldr.x = Xpos;
        ldr.y = Ypos;
        addChild(ldr);
            }
8 here the errors are gone but the tiltviewer doens't disappear and the next swf doesn't appear.

hope you or Felix can help me,
Best regards Edward