Topic: Flashdevelop, Haxe and Tween
Hello!
Out of curiosity, I tried to develop a tiny widget using FlashDevelop and Haxe as Programming Language. For my first attempt I tried to load an image from the library and slowly present it using the tween-utility. But I failed. My code looks like the following:
var photo:MovieClip = Lib._root.attachMovie("Library.img000.jpg", "photo", 5);
photo._alpha = 0;
tween = new Tween( 0, 100, 3000, photo, "_alpha",Linear.easeIn);
tween.start();
I had expected that the image has alpha=0 at the beginning and slowly increasing to alpha=100, but as soon as tween.start() is called, alpha is set strait to 100 without delay.
I have very little Flash-experience, so it is very possible that I mistook something obvious. Can anyone give me a small hint?
Thanks,
Christian