Flex 4 does not recognize flash.events.UncaughtErrorEvent

test.mxml:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init()" x="0" y="0" width="703" height="609"  xmlns:ns1="*" >
<mx:Script>
<![CDATA[
import flash.events.*;
// stuff
private function onUncaughtError(e:UncaughtErrorEvent):void {
//Do Stuff
}

This gives: apiteter.mxml 1046: The type was not found or was not a compile-time constant: UncaughtErrorEvent./apitester/src 35 Problem with Flex

According to Adobe, it is available in flex and Air.

The Flex 4 / Eclipse build path shows:

Flex 4.0

  • playerglobal.swc
  • textLayout.swc
  • osmf.swc
  • framework.swc
  • spark.swc
  • sparkskins.swc
  • rpc.swc
  • datavisualisation.swc
  • flash integration.swc
  • flex.swc
  • utilities.swc

Any ideas?

+3
source share
2 answers

You need a Flex 4.1 SDK.

See: http://flassari.is/2010/06/global-error-handling-with-flash-player-10-1/

flex, flash- 10.1 ( , SDK, 10,0), - .

+5

playerglobal.swc Flex SDK 4.1/frameworks/libs/player/10.1 . , playerglobal.swc

+1

Source: https://habr.com/ru/post/1772151/


All Articles