04 September 2007

Flash Image Gallery Improved



This version of Flash image gallery widget is little better. Everything is the same except for new stop / play button. I have added 20 new lines of code for that ugly green button. Text field is dynamic and button has alpha. Actually, functionality was pretty easy to do. Only thing I did is set new global variable onLoad root function animation_ctrl to true. On button release, this variable changes to false while text field inside button changes to "Play".

Code is clean onEnterFrame it has just 3 functions. Now, everything I did is wrote this line

if (animation_ctrl) {
function1();
function2();
function3();
}

That's all! When animation_ctrl is false, functions are not execute, images are in full stop. Simple logical solution. My favorite.

0 comments:

 

template by blogger templates