Two tasks in one action

Hi there,

I’m stumbled across a small problem. It is very simple but I can’t seem to find the answer.

The problem is that I would like that a button performs two actions.

1st I letting the button open an external movie:

h2button.onRelease = function() {

if (_root.section != "h2movie.swf") {

	_root.section = "h2movie.swf";

	_root.transition.gotoAndPlay("closing");

}

};

This code is in a action layer.

2nd The button should at the same time continue the main movie at a different location:

on (release) {_root.gotoAndPlay(170);}

Which I normally put on the button itself.

I tried to combine them in the action layer or on the button but it only does one thing or nothing at all.

Hope that makes sense. :slight_smile:

Please help thanks

lol