开发者

how to give on press and on release simultaneously in actionscript

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜