[COLOR=#003366]I’m hoping someone can help me…[/COLOR]
[COLOR=#003366]I am trying to follow the following tutorial that is perfect for what I need:-[/COLOR]
[COLOR=#003366]Transitions [/COLOR][FONT=Verdana][COLOR=#003366]Between External SWFs
[/COLOR][/FONT][FONT=Verdana][COLOR=#666666]by Voetsjoeba :: 21 February 2004[/COLOR][/FONT]
[COLOR=#666666]I have created the buttons and have cut and pasted the ActionScript with what I believe to be the correct adjustments. However, I’m getting the following error messages for each of the four buttons…[/COLOR]
[COLOR=#666666]“mouse events are permitted only for button instances on (release) {”[/COLOR]
[COLOR=#666666]Please could someone explain where I’m going wrong? I have yet to create the intro and four SWF’s and am wondering if this is a possible explanation.[/COLOR]
[COLOR=#666666]Hoping someone can assist???[/COLOR]
it seems to me, though I’m pretty much a flash newbie, that you’re applying the script to the frame rather than on the button itself.
Correct, he needs to apply them to the button he wants it to be applied to. There is another option though, if you give your button an instance name you can convert
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "main";
container.loadMovie("main.swf");
} else if (_root.currMovie != "main") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "main";
container.play();
}
}
}
to
yourbuttoninstancename.onRelease = function() {
if (_root.currMovie == undefined) {
_root.currMovie = "main";
container.loadMovie("main.swf");
} else if (_root.currMovie != "main") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "main";
container.play();
}
}
}
this will give you the same result but you don’t have to attach it to a button and can just input it into your first frame of your fla.