简体   繁体   English

HaloBorder.as中的flashbuilder异常

[英]flashbuilder exception in HaloBorder.as

I am editing a very old project that has been created in flex 3. I am using flashbuilder 4.5 with flex 4.5.1 to do so. 我正在编辑一个在Flex 3中创建的非常老的项目。我正在将Flashbuilder 4.5和Flex 4.5.1一起使用。

When I try to run the projects I get an error in HaloBorder.as, wich is part of the sdk. 当我尝试运行项目时,在HaloBorder.as中收到错误消息,这是sdk的一部分。 Because it is part of the sdk I cannot edit the file. 因为它是sdk的一部分,所以我无法编辑该文件。 This is the error: 这是错误:

TypeError: Error #1009: Kan geen eigenschap of methode benaderen via een verwijzing naar een object dat null is.
    at mx.skins.halo::HaloBorder/http://www.adobe.com/2006/flex/mx/internal::drawBorder()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\skins\halo\HaloBorder.as:596]
    at mx.skins.halo::HaloBorder/updateDisplayList()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\skins\halo\HaloBorder.as:239]
    at mx.skins::ProgrammaticSkin/validateDisplayList()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\skins\ProgrammaticSkin.as:503]
    at mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:736]
    at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:801]
    at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180]

As you can see, there is no way of knowing where the error occured in the project. 如您所见,无法知道项目中错误发生的位置。 The project uses mx to make up the layout. 该项目使用mx组成布局。 Could it have anything to do with this? 可能与此有关吗?

I have tried using any other theme, they work. 我尝试使用任何其他主题,它们都可以工作。 but the layout of the entire project is broken. 但整个项目的布局已损坏。

If you need to see some part of the code to fix this, please tell me. 如果您需要查看部分代码来解决此问题,请告诉我。

Thank you for your help. 谢谢您的帮助。

The problem has been solved, there was an error in my css file. 问题已解决,我的css文件中有错误。

The value of border-sides needs to be wrapped in quotes in the newer versions of flex. 在较新版本的flex中, border-sides值需要用引号引起来。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM