I’m creating a presentation in flash. I’m using the onmouse event command to move from frame to frame. But now I encountered a problem. This is how I have the menu button setup
Main Scene
-Main Menu 1 ( Movie Clip )
-Menu 1 ( Movie Clip )
-Button ( link to new frame in Main Scene )
There are no tweens used, because I’ve heard that you can’t use tweens when you want the buttons to link to other parts of the scene. It works good, but only works in the editing area. The actionScript I’m using is as follows for that button.
on (release) {
gotoAndStop(“Main Scene”, 12);
}
Could somebody please help. I would appreciate all the help you can provide. I’m attaching the file so that you can see What I mean.
I’m looking at it right now, i was reading the actionscript for the menu items, can I use the same script for the other menu items, and place something like this:
on (release) {
_root.gotoAndStop(“cbombeable”);
}
I would just apply a label and add that action to the next menu item… right ?
I’m doing it right now, I’ve added already a couple of them, but It ends up going to the same concreto normal description, im gonna try something different this time and see what happens. Ill try what you just told me now
Make sure on the new frame label, eg. say you want to put a frame label called “thiscompany” on frame 17, you click on the correct frame in the correct layer (frame labels) and press F7 to insert a blank keyframe, then type the label. Otherwise the frame you’re on inherits from the last keyframe.
There are no tweens used, because I’ve heard that you can’t use tweens when you want the buttons to link to other parts of the scene.
The problem with this obviously is that if you’re in the middle of a tween, it will look strange if you seek a new section of a scene and the tween is not fluidly constructed between where the play head is, and where it’s jumping too.
The three ways that I use to avoid that problem are:
use actionscript on movieclips to move them around. Most a/s movements can be done with an onClipEvent(){} and therefore never need more than one frame to exist in at a particular time. This is my preference, but if you’re still wet behind the ears, you’ll want to avoid this until you know a little about moving objects with a/s.
make sure, if you have an action which sends the play head to another frame, that the frame has every element, in the exact same locations, as the frame you’re coming from. Usually this is accomplished with ‘Copy/Paste Frames’ options. This is the easiest way to solve the problem, but it adds file size to the movie.
use movie clips with tweens inside them, and have the buttons, in addition to sending the playhead of the main timeline somewhere, also start, or stop or gotoAndPlay the movie clips that need to animate.
how did you do the tweening for the concreto normal link ? , Also Can I add a tween in between the 1st page of the menu and the 2nd page of the menu, like a fade in and fade out something like that… ?? I think I could do it without affecting the rest of the scene…
As your movie is now, it’s harder to modify. You should try to seperate objects as much as you can by placing them in movie clips. This way you can change individual objects without changing the structure of the overall movie.
Actually I’m surprised how some of this fit’s together! You should try and reorganise some stuff, before it’s gets so that it’s too difficult to reorganise.