Support Topics Documentation Slack YouTube Blog

ReferenceError: Error #1065: Variable mx.utils::Platform is not defined.


(Mark Bulleit) #1

Using Flash Builder 4.7 and do nothing more than add the library I get the following:

ReferenceError: Error #1065: Variable mx.utils::Platform is not defined.
at mx.core::RuntimeDPIProvider/get runtimeDPI()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/framework/src/mx/core/RuntimeDPIProvider.as:122]
at mx.utils::DensityUtil$/getRuntimeDPI()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/framework/src/mx/utils/DensityUtil.as:66]
at mx.managers::SystemManager/get http://www.adobe.com/2006/flex/mx/internal::densityScale()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/framework/src/mx/managers/SystemManager.as:803]
at mx.managers::SystemManager/Stage_resizeHandler()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/framework/src/mx/managers/SystemManager.as:3218]
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::initialize()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/framework/src/mx/managers/SystemManager.as:1987]
at mx.managers::SystemManager/initHandler()[/Users/justinmclean/Documents/ApacheFlex4.12.0/frameworks/projects/framework/src/mx/managers/SystemManager.as:2590]


(Mark Piller) #2

Hi Mark,

Did you add the following libraries to your project: ?

[FLEX SDK]/frameworks/libs/rpc.swc
[FLEX SDK]/frameworks/libs/framework.swc
[FLEX SDK]/frameworks/locale/en_US/rpc_rb.swc
[FLEX SDK]/frameworks/locale/en_US/framework_rb.swc

The instructions are here:
http://backendless.com/documentation/users/flex/as_requirements.htm

Regards,
Mark