Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/c/57.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Actionscript 3 TilleList自定义图像单元格,每个图像上的按钮/精灵_Actionscript 3_Tilelist - Fatal编程技术网

Actionscript 3 TilleList自定义图像单元格,每个图像上的按钮/精灵

Actionscript 3 TilleList自定义图像单元格,每个图像上的按钮/精灵,actionscript-3,tilelist,Actionscript 3,Tilelist,嗨,我试图在每个TileList项目上添加一些按钮或精灵,我甚至创建了自己的ImageCell类,并注入一些代码在每个图像上添加精灵,但它不可单击-所有单击都指向“object MyImageCell”,而不是特定的精灵,对于在TileList项上添加某些内容,是否有解决方案或任何其他方法?我认为您遇到了我遇到的一些问题。在MyImageCell类中添加此属性:this.mouseChildren=true 希望这能有所帮助

嗨,我试图在每个TileList项目上添加一些按钮或精灵,我甚至创建了自己的ImageCell类,并注入一些代码在每个图像上添加精灵,但它不可单击-所有单击都指向“object MyImageCell”,而不是特定的精灵,对于在TileList项上添加某些内容,是否有解决方案或任何其他方法?

我认为您遇到了我遇到的一些问题。在MyImageCell类中添加此属性:
this.mouseChildren=true
希望这能有所帮助