[
https://issues.apache.org/jira/browse/FLEX-27596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14496491#comment-14496491
]
Alex Harui commented on FLEX-27596:
-----------------------------------
Unfortunately, Apache Flex only supports Flash Player 10.2 and higher, so you
will probably have to devise your own workaround for 10.0.
I'm surprised that this works in Adobe Flex 4.6. The source code history shows
the same override of 'z'. Can you attach a working SWF from Adobe Flex 4.6? I
want to see if there is a clue to a workaround in that SWF.
One possible workaround is to monkey-patch BitmapAsset.as and remove the
override of 'z'.
> No backwards compatibility when using the Embed Directive
> ---------------------------------------------------------
>
> Key: FLEX-27596
> URL: https://issues.apache.org/jira/browse/FLEX-27596
> Project: Apache Flex
> Issue Type: Bug
> Components: Embedded Asset Transcoding
> Affects Versions: Adobe Flex SDK 4.5 (Release)
> Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Language Found: English
> Reporter: Adobe JIRA
>
> Steps to reproduce:
> 1. Start a new AS3 project in Flash Builder 4.5. Simply embed a JPG using
> the embed directive
> package
> {
> import flash.display.Sprite;
>
> public class TestEmbed extends Sprite
> {
> [Embed(source="myimage.jpg")]
> public var myGraphic:Class;
> public function TestEmbed(){}
> }
> }
> 2. Compile and test project (works fine)
> 3. Load SWF with Flash Player 10.0
>
> Actual Results:
> Runtime error:
> VerifyError: Error #1053: Illegal override of z in mx.core.BitmapAsset.
> Assets won't be available for use, and in my project, Flash did not continue
> onto the constructor of the main application class.
> If embedding assets/symbols from SWF, there will be the same error, but the
> problem will be with mx.core.SpriteAsset.
> I put the 10.2 playerglobal into the Flex 3.5 SDK and got the same results -
> so it might be a problem with the playerglobal.swc API
>
> Expected Results:
> No runtime error and assets are available for use
>
> Workaround (if any):
> I couldn't figure anything out - and it meant that I couldn't upgrade my SDK
> to 4.5 for the project and still remain backwards compatible for my customers
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)