swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Swftools-common] SWFC : onLoad... never loaded


From: Cyril THURIER
Subject: [Swftools-common] SWFC : onLoad... never loaded
Date: Fri, 4 May 2012 09:23:23 +0200

Hello !

I try to load jpeg pictures that are indexed in a XLM file ( dynamically).
Unfortunately, it seems that the XML is never loaded...

here edittext log and log0 are never updated has it should be according to the .onLoad function.

# File header
# -----------

.flash bbox=1200x800 version=7 fps=48 name="cahier.swf" background="" compress
   
    .frame 1
        .box fond width=1200 height=800 fill=white
        .edittext log text="log" width=200 height=20 border color=black
        .edittext log0 text="log0" width=200 height=20 border color=black

        .put fond
        .put log0 x=10 y=50
        .put log x=10 y=10
       
        .action:
            //variables
            listePhotos = new Array();

            cahier_XML = new XML();
            cahier_XML.ignoreWhite = true;

            cahier_XML. {
                this.log0.text += " 2;";

                       if (success) {
                    this.log0.text += " 3;";

                    cahier = cahier_XML.firstChild;
                    photos = cahier.childNodes;
                    for (i = 0; photos[i] != undefined; i++) {
                        listePhotos[i] = photos[i].firstChild;
                    }

                    this.log.text += listePhotos[0].toString();
                    this.log0.text += " 4;";
                    this.createEmptyMovieClip("mc",0);
                    mc.loadMovie(listePhotos[0].toString());
                    mc.>                }else {
                    this.log0.text += " ??? ";
                }
   
            };
        .end

    .frame 2
        .action:
            cahier_XML.load("cahier.xml");
            this.log0.text += " 1;";

            this.stop();
        .end
.end



Thanks for any advice

Cyril

reply via email to

[Prev in Thread] Current Thread [Next in Thread]