STILL can't get a simple button to work


okay, error message when try publish settings:
**error** scene=scene 1, layer=button, frame=1:line 1: mouse events permitted button instances
on (release) {

total actionscript errors: 1 reported errors: 1

i thought had created button instance! not this. did steps tutorial talks - , took suggestions putting in scripting, i.e.:

on (release) {
geturl(" http://www.mypage.com/?from=tracking","_blank");
}

this put when opened actions window button on frame 1 of scene 1. wrong? i'm have heart attack - need super explicit instructions understand, because if leave out step thinking it's obvious of course it, that's not case. :(

you have make sure button selected code connected button. if want different method button isn't selected when put in code use this:

buttoninstancename.onrelease = function() {
geturl....
}

that way code references button's intance name , doesn't need attached directly button, rather frame containing it.

please note can attach code objects or frames containing them. code needs attached button. code needs attached frame. difference?


More discussions in Adobe Animate CC - General


adobe

Comments

Popular posts from this blog

Joomla site hacked, cant see front and - Joomla! Forum - community, help and support

Christian Home School Programs - Joomla! Forum - community, help and support

Trouble with PF_OutFlag_I_USE_AUDIO and PF_CHECKOUT_LAYER_AUDIO