Monday, December 28, 2009

How do I change images in Flash using a variable or other method?

I'm still toying around with flash, so I don't know a lot, but I understand the code. I was wondering if there was a way I could have a button that, when triggered, will change an image in the frame.





If worse comes to worse, I could just create frames of each image (it's only two) and have each button link to the rest of the video with the image. But I'd prefer not to have to recreate each animation with the alternate image.How do I change images in Flash using a variable or other method?
There is a much easier way to do this in Flash using XML. You put the images in a folder, and the flash next to it, and you call the images using the code after you setup an XML file.


What was said above is everything needed in brief, but it's way easier than what you think. Check out this tutorial to know how to do it step by step:


http://www.kirupa.com/developer/mx2004/x鈥?/a>





(Exercice files are also included at the bottom, so you can download it and change the images directly from it).





Animate Logo Team


http://www.animatelogo.comHow do I change images in Flash using a variable or other method?
have a look @ my flash blog for an example and a source file





Flash CS3 - Random Image Loader With Progress Bar


http://flash-workshop.blogspot.com/2008/鈥?/a>





Anil


anilkumarnd@gmail.com

No comments:

Post a Comment