开发者

how to give on press and on release simultaneously in actionscript

开发者 https://www.devze.com 2023-01-16 11:07 出处:网络
I have the following code on(press){ gotoAndPlay(193); } on(release) { getURL(\"http://www.sumangali开发者_运维知识库jewellers.com\");

I have the following code

on(press){
    gotoAndPlay(193);
}
on(release) {
    getURL("http://www.sumangali开发者_运维知识库jewellers.com");
}

when I press button it have to play and go to the page


a few ways.

  1. Just call both functions in a row.

    on(press){ gotoAndPlay(193); getURL("http://www.sumangalijewellers.com"); }

  2. Wire up onRelease to onPress

    // this should wire up you onRelease to onPress.

    myButton.onRelease = myButton.onPress;

0

精彩评论

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