开发者

Actionscript 2.0 and 3.0: Dragging Dynamic Image and not being replaced by another

I have a function that displays an image on top of a movie clip but when you click another image, it of course replaces the current image. I don't know how to stop it from replacing the image, that way I can make an image appear and drag it over somewhere on the stage and then make a dif开发者_开发百科ferent image appear and drag that somewhere else, too. and what is the drag event for Actionscript 3.0.


Sprite or MovieClip startDrag() and stopDrag() methods.
also i don't understand the following:

function that displays an image on top of a movie clip but when you click another image, it of course replaces the current image

how do images get inside of your swf (library, embed, loader)? why are they replacing each other on MouseEvent.CLICK?

according to my current vision of your problem Event.stopImmediatePropagation() or Event.stopPropagation() in MouseEvent.CLICK handler function may help

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜