first opening a new window,

try,

code:

on (release) {
getURL("javascript:window.open('page_to_open.html' ,'myWindowName','width=400,height=300');void(0);") ;
}



for security reasons most browsers should prevent you making the window too small though.

the second post because you've wrapped the onPress event handler in an on (release) button event the onPress isn't defined until after the press event has passed (the button has been released)

just add a frame action in the same frame,

code:

instanceName.onPress = function() {
getURL("mymp3file.mp3");

};



maybe look into using the Sound object for playing your mp3 file,

music = new Sound(this);
music.loadSound("mymp3file.mp3", true); // stream the sound

also check _soundbuftime to set how long the sound should be buffered before playing