The best way is to convert your avi into flv/swf. You can try Moyea flash video MX.
"It can convert video to Flash by creating a Flash Video player (SWF file) for the generated FLV file. It also provides various playback skins with different styles for the SWF file, and automatically creates an HTML page to display the SWF file. With Flash Video MX, you can add special effects, movie beginning and movie end, edit frame rate and audio effect, add multi-functional control bars to the generated Flash files, and even replace the original audio with your favorite music in the output Flash. "
You can search "flash video mx pro" on google.com for more info.