Ok I have created a sort of splash animation where all my menu's and icons fade or slide in. The issue is after that animation I use a stop(); tag and on the last frame I want to make my menu navigation links with a rollover action. So after the splash I then click on a menu button and go into it's specific animation ( I don't know the name of going inside a already made movie clips animation ) then for example I change it's alpha to 100% on frame 10. So this would be when the mouse is over the image it will brighten up. I set the layer on motion then go back to scene 1.
I create an invisible button over that mc on a new layer with this code:
on (rollOver) {
_root.mouse_over_button7 = true;
}
on (rollOut) {
_root.mouse_over_button7 = fstartlse;
}
on (release){
getURL("http://www.google.com/");
}
also I name the movieclip button7.
After that I add a new layer for actionscript and add:
_root.button7.onEnterFrame = function() {
if (mouse_over_button7) {
_root.button7.nextFrame();
} else {
_root.button7.prevFrame();
}
};
after that I test the animation and after the splash the mc just keeps repeating it's own animation of getting brighter and darker.
I believe it might be something with the _root but intruth I have no clue what it does since when I was going through a tutorial it just said to copy this and didn't explain what everything does. Also this might not be even near what's wrong.
If this isn't clear enough and if you have time to spare I would like to send my .fla file to resolve this issue since I haven't been able to figure this out since I started flash.
Help Appreciated.
Stop Movie Clip Loop
Started by Toshiyan, Feb 01 2007 02:48 PM
2 replies to this topic
#1
Posted 01 February 2007 - 02:48 PM
#2
Posted 01 February 2007 - 03:51 PM
Before the onEnterFrame loop, add:
I'm guessing you took a tutorial from FlashVault, or Awesty Productions? You cannot use "fstartlse"... it's infact "false". I don't understand why they always write that in their tutorials.
Anyway, make those changes, and it should work.
button7.stop();
I'm guessing you took a tutorial from FlashVault, or Awesty Productions? You cannot use "fstartlse"... it's infact "false". I don't understand why they always write that in their tutorials.
Anyway, make those changes, and it should work.
Edited by Ben, 01 February 2007 - 03:52 PM.
#3
Posted 01 February 2007 - 04:01 PM
//Place this code on the timeline that holds button7, and erase any code on button7.
this.button7.onRollOver = function() {
_root.mouse_over_button7 = true;
}
this.button7.onRollOut = function() {
_root.mouse_over_button7 = false;
}
this.button7.onRelease = function() {
getURL("http://www.google.com/");
}
//also I name the movieclip button7.
//After that I add a new layer for actionscript and add:
_root.button7.onEnterFrame = function() {
if (_root.mouse_over_button7) {
this.nextFrame();
} else {
this.prevFrame();
}
};
Try that, see if it works. Didnt look all too closely at the code, but that should get it. You need to make sure button7 is on the root timeline, and be sure to check your scope. Inside an onEnterFrame, your scope changes to whatever symbol the enterframe is executing on.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
