vendredi 31 mars 2017

AS3 UILoader External Image Loop

I am looping a code where n images are loaded in n UILoader components on the stage using a dynamic XML.

    var aLoader: UILoader = new UILoader();
MovieClip(parent).box1_mc.match1_mc.flag1_mc.source = "C:\\Saverio\\Scoreboard\\Flags\\Squared\\" + country01 + ".png";
aLoader.scaleContent = false;
addChild(aLoader);

However this loop keeps reloading the image, generating a blinking effect on the image that I don't want to show.

This basic function was running smooth when in AS2 I was using the loader.contentPath command.

I need to produce an AS3 project, and NOT an Air app.

Thank you

Aucun commentaire:

Enregistrer un commentaire