Category Archives: Flex

Component cannot be realized within state because an ancestor is excluded

Component cannot be realized within state,”state1″ because an ancestor is excluded from, “state2″. Cause You have a component that is included in a specific state but the parent is not: <s:Label text="Site Name" fontSize="18" styleName="textInputStyles" includeIn="registrationWithSite"/> And that component is … Continue reading

Posted in Compiler, Flex | Leave a comment

uncaught exception: Error in Actionscript. Use a try/catch block to find error.

In this case the error was mentioned in the Firebug console. The solution, in this case, was to put the same files on the server or localhost. Before: file://directory/mypage.html After: http://localhost/mypage.html Obviously, add a try catch block around the code … Continue reading

Posted in Flex, Runtime, Security Error | Leave a comment

Error: Type was not found: FlexUnitTestRunnerUI

Error: Type was not found or was not a compile-time constant: FlexUnitTestRunnerUI Cause Not sure Solution Not sure Links http://code.google.com/p/vectoreditor/issues/detail?id=11#c5 http://workflowflash.com/105879/flash-builder-4-5-tip-use-a-custom-flexunit-sdk.php

Posted in Compiler, Flex, FlexUnit | Leave a comment

1007 Instantiation attempted on a non-constructor.

According to the description this means you are doing this: You are calling a function and you accidentally use the new keyword total = new getTotal(value1, value2); // should be total = getTotal(value1, value2); You may be trying to create … Continue reading

Posted in Compiler, Flex, Runtime | 3 Comments