I am using swfLoader to load external flash movies in my flex/actionscript code. If the loaded swf was made for the newer flash player versions ( I believe 9.0 or more) it loads as a flash.display.MovieClip object which has methods for play/pause and go to frame. However if the loaded swf was made for older flash player (I believe 6.0) then it loads as flash.display.av1movie which doesn’t have methods for play/pause. Is there a way I can play / pause the av1movie from my flex code.
I am using swfLoader to load external flash movies in my flex/actionscript code. If
Share
There is a method: ForcibleLoader. It works like this – loads swf as ByteArray, then modifies it and loads result with loadBytes. It sets
as3flag totrueand swf version to 9. Be warned, though, that as2 scripts aren’t working properly in AVM2, because it has many differences from AVM1. But if you have simple animation, this may work. You’ll get MovieClip instead of AVM1Movie, just test it.