PDA

View Full Version : Playback control will not work...update or recompile the resource for Flash 9.


kmeixner
05-26-2010, 12:52 PM
Hi,

What causes the following error in SWF9/SWF10?

WARNING: Playback control will not work for the resource. Please update or recompile the resource for Flash 9. http://www.mydomain.com/filepath/amediafile.swf

I have tested my SWF file and it will play inside a view in a small test application in SWF9 and SWF10 but when I try to call stop(), play() or setAttribute('frame', 1) on it in my full application it throws the quoted error.

Thanks,

Kevin

senshi
05-26-2010, 02:09 PM
Flash movies which are compiled for Flash 8 or lower use the AVM1 (ActionScript Virtual Machine 1), but Flash 9 and higher uses the AVM2 which doesn't have full access to content running in AVM1. From the ActionScript3 reference page for AVM1Movie:
AVM1Movie is a simple class that represents AVM1 movie clips, which use ActionScript 1.0 or 2.0. (AVM1 is the ActionScript virtual machine used to run ActionScript 1.0 and 2.0. AVM2 is the ActionScript virtual machine used to run ActionScript 3.0.) When a Flash Player 8, or older, SWF file is loaded by a Loader object, an AVM1Movie object is created. The AVM1Movie object can use methods and properties inherited from the DisplayObject class (such as x , y , width , and so on). However, no interoperability (such as calling methods or using parameters) between the AVM1Movie object and AVM2 objects is allowed.

That means if you need any playback control in swf9/10, the Flash movie needs to be recompiled for Flash 9 (or higher).
(The Flash community was a bit confused (and partially also quite angry) about this restriction of Adobe, too.)

kmeixner
05-27-2010, 09:30 AM
Flash movies which are compiled for Flash 8 or lower use the AVM1 (ActionScript Virtual Machine 1), but Flash 9 and higher uses the AVM2 which doesn't have full access to content running in AVM1. From the ActionScript3 reference page for AVM1Movie:


That means if you need any playback control in swf9/10, the Flash movie needs to be recompiled for Flash 9 (or higher).
(The Flash community was a bit confused (and partially also quite angry) about this restriction of Adobe, too.)

Hi Senshi,

Thanks for your response. I was confused because some of our SWFs appear to be SWF-compatible (the older ones we used a different method to generate) while our newer ones aren't. The one I used for my test program just happened to work because it was an older one.

We'll have to change our SWF creation method and update our newer files once our application is stable in SWF9/10.

Kevin