TypeError: Error # 1034: the Type Coercion failed: always convert.
mx managers: : DragManagerImpl@12631a61 converts to the error mx.managers.idragmanager
. After a long search on Google, I finally found the solution on a foreign forum. It is as simple as adding
import mx.managers.DragManager into the main application.
private var dragManager: dragManager;
these two sentences will solve the problem. As for why can appear such circumstance, find an explanation for the others on the Internet, the following is from Google a flex discussion group of other people’s answer (HTTP:// groups.google.com/group/riadev/tree/browse_frm/month/2007-05/5eeebf64e4926c45?rnum=11& _done = % 2 fgroup % 2 friadev % 2 fbrowse_frm % 2 fmonth % 2 f2007-05% 3 f)
QUOTE:
This is Shared code for Module,
this problem tends to occur when managers are used in a Module (such as PopUpManager, DragManager, HistoryManager),
manager’s methods are static methods, and a singleton of this manager interface is created throughout the application,
but a module USES this singleton only in its own Application domain, when multiple modules use the same singleton and main
This empty object reference problem occurs when the
application is not in use: a module that first introduces a manager cannot follow the singleton of the manager interfaceis Shared by other modules. When other modules call the method of the Manager, the application will not create the instance of the Manager interface any more, so this module cannot refer to the instance of the Manager interface, which causes the problem of empty object reference. You can refer to Flex source code.
Accordion and TabNavigator’s historyManagementEnabled = by default
true; And ViewStack’s historyManagementEnabled = false;
so be aware of HistoryManager’s Shared code issues when using TabNavigator and Accordion. This problem also occurs when only one module USES HistoryManager and that module is loaded after uninstalling, indicating that the second load is equivalent to a new module.a solution:
introduces the relevant manager in the main application by declaring the reference of the manager in the main application, as follows:
import mx.managers.HistoryManager;
var historyManager:HistoryManager;
other managers are similar.
can also load the Shared code into the main application domain as a module, which can be explained in detail by referring to Alex
Harui PPT:
Speak http://blogs.adobe.com/aharui/presentations/ below the presentation about the module, very detailed.
Read More:
- Failed to convert value of type ‘java.lang.String‘ to required type ‘java.util.Date‘;
- Module build failed: TypeError [ERR_INVALID_ARG_TYPE]: The “path“ argument must be of type string.
- TypeError: int() can’t convert non-string with explicit base
- Python error TypeError:can ‘t convert complex to float
- After introducing sass into Vue project, start to report error typeerror [err]_ INVALID_ ARG_ Type]: the “path” argument must be of type string
- Uncaught TypeError: Failed to execute ‘removeChild’ on ‘Node’: parameter 1 is not of type ‘Node’.
- On the coercion of C language
- TypeError: object of type ‘builtin_function_or_method’ has no len()
- Typeerror: object of type ‘response’ has no len() why?
- Uncaught TypeError: Failed to execute ‘appendChild’ on ‘Node’: parameter 1 is not of type ‘Node How to Fix
- Docker command error during connect: get http://2F2F.2Fpipe2Fdocker_ engine/v1.36/containers/json: open//.
- Sendmail config error: mail loops back to me (MX problem?) solution
- TypeError: object of type ‘Cursor‘ has no len()
- Mac — Open keyboard F1 – F12 function key
- TypeError: unsupported operand type(s) for *: ‘range‘ and ‘int‘
- Event resolution of component {b3118b2-1f49-48e5-b6f5-bc21caec56fb}
- Front end project runtime prompts syntax error: typeerror: token.type.endswith is not a function solution
- Vue failed to log in. F12 reported an error: request failed with status code 404
- Stm32f107 kernel file — stm32f10x. H
- Tensorflow ValueError: Failed to convert a NumPy array to a Tensor