zoukankan      html  css  js  c++  java
  • TypeError: Error #1034: 强制转换类型失败:无法将 flash.events::MouseEvent@73b7cc1 转换为 mx.events.ItemClickEvent。

    1、错误描述

    TypeError: Error #1034: 强制转换类型失败:无法将 flash.events::MouseEvent@73b7cc1 转换为 mx.events.ItemClickEvent。



    2、错误原因

    /**
    			 * 查询按钮点击函数
    			 */
    			protected function search_clickHandler(event:MouseEvent):void
    			{
    				search.addEventListener(MouseEvent.CLICK,radiogroup_itemClickHandler);
    			}
    
    			/**
    			 * 单选按钮点击函数
    			 */
    			protected function radiogroup_itemClickHandler(event:ItemClickEvent):void
    			{
    				if(event.currentTarget.selectedValue=="苹果")
    				{
    					apple.visible = true;
    					banana.visible = false;
    					appleRate.visible = true;
    				}
    				else if(event.currentTarget.selectedValue=="香蕉")
    				{
    					apple.visible = false;
    					banana.visible = true;
    					appleRate.visible = false;
    				}
    			}

          事件转换错误


    3、解决办法

  • 相关阅读:
    [算法]最长子数组问题
    [算法]K-SUM problem
    selenium-远程调用
    pytest-fixture
    Ubuntu18.04中安装virtualenv和virtualenvwrapper
    shell
    mac保存远程链接
    css
    js基础
    css基础
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13314809.html
Copyright © 2011-2022 走看看