heya all. sorry for my poor english at some points but i think your able to understand my problem anyways.
the project:
i made a project at wich i have a stage with 3 layers.
- actions layer ( guess whats in here hehe)
- a layer with a movieclip with the instance name “test”
- a layer with 3 buttons. with the following instance names: knop1, knop2, knop3
when i load the flash app. my actionscript will create a movieclip inside the test MC. this movie clip is called movie + i ( a counter variable).
the first movie will be called movie0.
in movie0 ill load an image with loadMovie (‘imagename’, ‘movie0’);
on a press of 1 of the buttons, a new MC gets made ( movie1), new image gets loaded in to that.
the layer above that ( still movie0) is fading out with the following loop:
test["movie"+i].onEnterFrame = function(){
if(test["movie"+(i-1)]._alpha<=0) {
trace('succes');
delete this.onEnterFrame;
removeMovieClip('test.movie'+(i-1));
doneLoading = true;
}
else {
test["movie"+(i-1)]._alpha -= 10;
}
}
the strange thing:
the whole animation works PERFECT when testing it in flash with ctrl+enter.
it takes half a seccond till the image is faded. ( my FPS is set to 20)
but when i publish the movie, the first time i press a button it takes 0.5 seccond. the next it takes 0.25 , the one after takes 0.125 etc etc.
how is this possible? i had it with another app aswell? is it a bug in my flash maybe? the teacher giving me simple workshops in flash didnt know why it was, and he checked my publishing settings wich were all correct.
for an example of the app:
http://crimsonred.nl/flash/test.swf ( PS. its all .png files, so it takes a while before the new image is loaded in, didnt make a loader function yet since i first want to fix this problem, allso the test[“movie”+(i-1)]._alpha -= 10; is set to -= 1; instead of 10 to make a more clear example)
thanks for helping in advance