XWidgetSoft Forum
https://www.bbs.xwidget.com/

Help with animation
https://www.bbs.xwidget.com/viewtopic.php?f=8&t=56
Page 1 of 1

Author:  RaDMaN [ July 4th, 2012, 8:40 am ]
Post subject:  Help with animation

Hi all! I have a problem:
I created this skin. When you hover over the skin panel appears. This panel consists of two pages, which are switched between a scrolling mouse or by pressing on the buttons below.
Attachment:
1.png
1.png [ 802.46 KiB | Viewed 3835 times ]

The problem lies in the fact that they are switched without animation, even though I added through the editor.
Here's how the skin looks in the editor:
Attachment:
3.PNG
3.PNG [ 271.42 KiB | Viewed 3835 times ]

Tell me how to add animation.Tell me how to add animation. I would like as a slide panel. ;)

Author:  qiancang [ July 29th, 2012, 12:33 am ]
Post subject:  Re: Help with animation

Attachment:
QQ截图未命名.png
QQ截图未命名.png [ 2.18 KiB | Viewed 3697 times ]

function layer1OnMouseWheelUp(Sender)
{
// .InitAnimateChange and .StartAnimateChange is together
layer1.InitAnimateChange;
layer2.visible=!layer2.visible;// layer2 and layer3 must be layer1's children
layer3.visible=!layer3.visible;
//layer1.AnimateChange.Duration= (float,0.00~3.00,second)
//layer1.AnimateChange.SwitchEffect= (int,0~27)
//layer1.AnimateChange.DynamicEffect= (int,0~10)
//layer1.AnimateChange.Occasion= (int,0~2)

layer1.StartAnimateChange;
}

Attachment:
ainimation.rar [3.71 KiB]
Downloaded 392 times

Author:  RaDMaN [ July 29th, 2012, 7:25 am ]
Post subject:  Re: Help with animation

qiancang wrote:
Attachment:
QQ截图未命名.png

function layer1OnMouseWheelUp(Sender)
{
// .InitAnimateChange and .StartAnimateChange is together
layer1.InitAnimateChange;
layer2.visible=!layer2.visible;// layer2 and layer3 must be layer1's children
layer3.visible=!layer3.visible;
//layer1.AnimateChange.Duration= (float,0.00~3.00,second)
//layer1.AnimateChange.SwitchEffect= (int,0~27)
//layer1.AnimateChange.DynamicEffect= (int,0~10)
//layer1.AnimateChange.Occasion= (int,0~2)

layer1.StartAnimateChange;
}

Attachment:
ainimation.rar

Thanks so much, but I had already done with the slide panel. :)

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/