Flex 4.5.1 runtime ReferenceError: Error #1065: Variable … is not defined

て烟熏妆下的殇ゞ 提交于 2019-12-05 23:40:29

The answer is buried in the middle of Maxim's post that he referenced in a comment above:

--> Try turning off incremental compilation.

I had the same issue here with a simple mimeType='application/octet-stream' embed, and when reading Maxim's text this jumped out because I'd recently changed my custom build tools to use inremental compilation: "Embed sometimes fails during incremental compilation"

The result of this failure is that the .swf contains something like this:

<DefineBinaryData id='1' length='1024' />

which looks like it's empty, instead of this (from the working file):

<DefineBitsLossless2 id='1' encoding='base64'>
(.. in my case, 1024 bytes of base64-encoded data)
</DefineBitsLossless2>

(This solved it for me, so a big thank-you to Maxim. I hope it solves it for you too.)

I have Flash Builder 4.7 and am using sdk 4.5.1A.

I was using Flash Player debugger version 15 before Christmas of 2014 and everything was working. I had Firefox set up as the default browser. However, in 2015, Adobe has a new player so I upgraded to version 16 and that's when I got the same problem. After much struggle, I found that the problem had to do with the new version of Firefox Flash player debugger. I had to switch the default browser to Internet Explorer and installed the Internet Explorer Flash player debugger. Prior to debugging, I had to clean and update first. Then everything worked again!

I had the same problem, so I "Clean"ed the project and then re ran. It worked.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!