Dynamic 2d fish use external png file for skin, and a new UVMap algorithm based on flash cs4 drawing API with really high efficiency and natural behavior.
Features:
1.XML Driven with fish skins,fish num and background.
2.Totally use external skin, what you need to prepare is just a fish image png file like below:

3.Use flash cs4 new drawing API feature(like drawTriangles) for UVMap,really good peformance.
4.Mouse Interactive with fish, fish will run away while mouse hit them.
5.Shadow, Sketch on/off control.
XML Node Explanation:
<?xml version="1.0" encoding="utf-8"?>
<global>
<!--the background image-->
<bg>imgs/bg.jpg</bg>
<fishskin>
<!--the fish skin-->
<skin id="0">imgs/skin-0.png</skin>
<skin id="1">imgs/skin-1.png</skin>
<skin id="2">imgs/skin-2.png</skin>
<skin id="3">imgs/skin-3.png</skin>
</fishskin>
<!--fish list is an array, just use the id which defined in FishSkin for the fish you want to generate-->
<fishlist>
0,0,1,1,1,1,1,1,2,2,2,3,3
</fishlist>
</global>