开发者

AS3 Flash Flip image

I could really need some help here. I'm trying to create a simple image-fliping-app that looks something like this: http://www.skistar.com/sv/Are/Skidskola/Skistar-Experience/om/

My app, just like this one, loads it's images dynamically (using XML). My app will only contain 4 fliping objects (i.e. 8 images).

Has anybody some guidance or code for that m开发者_高级运维atter that I can study to get this working? That would be really sweet! :-)

// Nicke


img.scaleX = -1;
img.scaleY = -1;


you can fake the flipping with a simple scaleX scaling. Basically you've got the two images on top of each other and when the mouse is over them you scale down the visible one and when it's scaleX value equals 0, you start scaling up the other image. The reference point of the images should be centered.

I will try to give you an example but a bit busy at the moment.

Hope it helps, Rob

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜