Thursday, July 2, 2009

I hate error messages like this

TypeError: Error #2007: Parameter blendMode must be non-null.

I was working away on an AIR application and all of a sudden I started seeing this error message. It would show up when I had focus on something and clicked a button that removed the component's parent from the stage. As a result of the error, my app would stop working in all kinds of weird ways. For example, TabNavigators stopped working, but List controls worked fine. Some changes to my display list would work ok while others would result in part of the screen going blank.

I will spare the details of how I figured out what the problem was, but the root cause seemed to be that I was compiling my application with the 3.2 Flex SDK but I was compiling one of the Library projects that I was depending on with the 3.3 SDK.

Setting them all to the same version fixed the problem.

I didn't see any other posts through a Google search of that error, so I figured I would post it here.


17 comments:

Unknown said...

I hate those errors that do not make sense at first and that nobody has blogged about. A big qestion mark with the text 'Am I actually the first one to get this error??' is always cleary readable above my head :-)

You probably saved a lot of people a lot of time by posting this. So thanks in advance!

Unknown said...

You're not alone, 2 others had this problem as well. ...sorry we didn't blog it, hehe, but glad you did!

n8o said...

I've been having this exact same issue lately and i couldn't find a solution. thanks for solving the problem.

-nate

Fabien said...

Also had the same issue with applications built with the Flex SDK 3.2 framework and modules built with SDK 3.0.
Kinda tricky to find out :P
Hope this helps

Fabien

Adrian Parr said...

I hate error messages like this ...

http://www.adrianparr.com/?p=87

Hehe. :¬0

Anonymous said...

I love following ones:
TypeError: Error #1034: Type Coercion failed: cannot convert "" to Date.

I have dozens of them. I know they are there but "dear Flex SDK, could you tell me where?" :)

Roger said...

You're my hero! Thanks for solving this :-) It took me a couple of hours figuring out what was wrong, but fortunately Google brought me here.

Billigflug New York said...

Good thinking to post it to help others. I never came across an error I couldn't find an online solution yet, but only thanks to people like you, who help us others. :) Thanks.

ichibod said...

Thanks for the suggestion, it worked, saved me a few hours of frustration.

Anonymous said...

艾葳酒店經紀公司提供專業的酒店經紀, 酒店上班小姐,八大行業,酒店兼職,傳播妹,或者想要打工兼差打工,兼差,八大行業,酒店兼職,想去酒店上班, 日式酒店,便服店,制服酒店,ktv酒店,禮服店,整天穿得水水漂漂的,還是想去制服店日領上班小姐,水水們如果想要擁有打工工作、晚上兼差工作兼差打工假日兼職兼職工作酒店兼差兼差打工兼差日領工作晚上兼差工作酒店工作酒店上班酒店打工兼職兼差兼差工作酒店上班等,想了解酒店相關工作特種行業內容,想兼職工作日領假日兼職兼差打工、或晚班兼職想擁有鋼琴酒吧又有保障的工作嗎???又可以現領請找專業又有保障的艾葳酒店經紀公司!

艾葳酒店經紀是合法的公司工作環境高雅時尚,無業績壓力,無脫秀無喝酒壓力,高層次會員制客源,工作輕鬆,可日領現領
一般的酒店經紀只會在水水們第一次上班和領薪水時出現而已,對水水們的上班安全一點保障都沒有!艾葳酒店經紀公司的水水們上班時全程媽咪作陪,不需擔心!只提供最優質的酒店上班,酒店上班,酒店打工環境、上班條件給水水們。心動嗎!? 趕快來填寫你的酒店上班履歷表

水水們妳有缺現領、想要兼職、有缺錢的煩腦嗎?想到日本留學缺錢嗎?妳是傳播妹??想要擁有高時薪又輕鬆的賺錢,酒店和,假日打工,假日兼職賺錢的機會嗎??想實現夢想卻又缺錢沒錢嗎!??
艾葳酒店台北酒店經紀招兵買馬!!徵專業的酒店打工,想要去酒店的水水,想要短期日領,酒店日領,禮服酒店,制服店,酒店經紀,ktv酒店,便服店,酒店工作,禮服店,酒店小姐,酒店經紀人,
等相關服務 幫您快速的實現您的夢想~!!

酒店經紀人俐菁 said...

台北酒店經紀
高雄便服酒店
高雄制服酒店
9.Agency
台中酒店經紀
酒店經紀利菁媽咪
台北禮服式酒店
高雄酒店上班兼職
高雄專業酒店經紀人
台北酒店應徵上班
巴哈姆特酒店經紀公司

AntuanF1 said...

Yes!!! it works, I had a imported project from version 3.3 and i was compiling with 3.2. I had changed to 3.3 and it works.

Thank you everybody.

Unknown said...

I just ran into this error--frustrating!

And in my case, it wasn't even trying to use a .swc built in 3.3 in an app built with 3.2--the difference was actually between builds of the 3.3 SDK.

When my .swc was built with 3.3.0.4852 and app built with 3.3.0.4589, I got the error.

When my app was built with 3.3.0.4852 (thus matching the SDK used for the .swc), the error went away.

--Scott

Unknown said...

Latest film Clash of the Titans
In order to start the final struggle for power and fighting constantly with the King caused the human king and the gods of competition and confrontation, but only confrontation between the gods, it really could destroy the entire world, and let all have ceased to exist ... ... Zeus (with Muni Sen ornaments) the son of Perseus (Samuwoxin Cotton ornaments) While the identity of God is born into the human world, but was brought up as a human dependent - Even so, he was still no way to save his beloved family fled the Hardee's (Ralph Fiennes decoration) of revenge, he is from the God of Hell Hades. Perseus realized that he no longer has any care, he voluntarily assumed a
HP Pavilion DV5000 Battery|Dell Inspiron 1525 AC Adapter|DV5000 Battery|Dell PA-12 AC Adapter|Dell Inspiron 5100 Adapter|8600 Adapter|Dell Inspiron 1501 Adapter|HP 417220-001 Adapter|Dell inspiron 1300 AC Adapter

Unknown said...

thanks, this problem just made me waste my morning, ugh

Unknown said...

Thank you a thousand times!!
This does fix my problem. I was wondering what was causing my textinput being frozen and here's solution.
Thank you thank you thank you!

Damien said...

Thanks, it must have been hard to find the cause of this error !