1#!/usr/bin/python 2from ming import * 3import sys 4 5srcdir=sys.argv[1] 6 7Ming_useSWFVersion(7); 8m = SWFMovie(); 9m.setDimension(200, 150); 10m.setRate(1); 11 12stream1 = SWFVideoStream(); 13stream1.setDimension(200, 150); 14it = m.add(stream1); 15it.setName("video"); 16 17action = SWFAction('' 18' nc = new NetConnection ();' 19' nc.connect (null);' 20' ns = new NetStream (nc);' 21' video.attachVideo (ns);' 22' ns.play ("video.flv");' 23); 24 25m.add(action); 26 27m.save("test03.swf"); 28