PDA

View Full Version : Loading images



oliie
March 9th, 2009, 07:24 AM
Hey!

I have a problem. Well, it all works but I just need to get rid of a white flash.


stop();

imgCont.loadMovie("bild1.jpg");

knapp1.onRollOver = function() {
imgCont.loadMovie("bild1.jpg");
}

knapp2.onRollOver = function() {
imgCont.loadMovie("bild2.jpg");
}

knapp3.onRollOver = function() {
imgCont.loadMovie("bild3.jpg");
}

knapp4.onRollOver = function() {
imgCont.loadMovie("bild4.jpg");
}

When that happens, it swaps images perfectly but between the swaps a white flash appears. Can I remove that somehow?

I just want the swaps to be silkysmooth :)

kreviii
March 9th, 2009, 08:19 AM
Hey!

I have a problem. Well, it all works but I just need to get rid of a white flash.


stop();

imgCont.loadMovie("bild1.jpg");

knapp1.onRollOver = function() {
imgCont.loadMovie("bild1.jpg");
}

knapp2.onRollOver = function() {
imgCont.loadMovie("bild2.jpg");
}

knapp3.onRollOver = function() {
imgCont.loadMovie("bild3.jpg");
}

knapp4.onRollOver = function() {
imgCont.loadMovie("bild4.jpg");
}When that happens, it swaps images perfectly but between the swaps a white flash appears. Can I remove that somehow?

I just want the swaps to be silkysmooth :)


first you need to load all the images first, or better yet, just embed them into your flash so there no loading issues ( if your trying to skip using eventListeners )

then try having all the clips loaded at once in the container movie ( imgCont ) and turn all the alphas down.

imgCont.bild4.alpha = 0; // for example

then when you mouseOver use swapDepths(getNextHighestDepth()) and alpha to 100

or something.

look up tweener or dragslide fade to get more silky smooth fx