This content has been marked as final. Show 5 replies
you can use something like the following:
so i added the code but im still having problems. i see the animation go to the second frame and then it just returns to the first frame again and sits there. do i need a certain amount of key frames in the animation? also is there any way i could see what the "(Math.ceil(myprogress))" is returning? im guessing its just a number representing percent loaded. i have attached the code below in case there is a problem there.
you can always use the trace() function to view (in the output panel) objects, variables and values in flash.
and yes, i assume you have 100 frames in sammy or that code would need to be changed.
so the values from myprogress go from 0 to 1 and not 1 to 100. so i just multiply by 100 and it works.
YESSSSS!!!! thanks kglad. you the man.
you're welcome. (but that was my bad failing to remember that scaleX was going to vary from 0 to 1 instead of 0 to 100.)