This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Flash Site Design > November 2006 > Drop Down Menu?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Lennon[18] 2006-11-05, 10:33 pm |
| Hi All,
I am in the process of setting up a drop down menu - everything is pretty much
in place. I have a movie clip with 2 labels on the timeline, "collapsed" and
"expanded". There is 1 button located at "collapsed" on press moves you to the
frame "expanded" where I have 3 buttons that now show up. The problem is with
the buttons, I want them on press to go to another Scene, yet all they do is go
back to the start of this movie clip. Any ideas as to why that is happening?
The buttons just have a simple action applied like so:[Q]on (press) {
gotoAndPlay("Scene2", 1);
}
[/Q]
Thanks for any advice
| |
| thedavross 2006-11-14, 2:09 pm |
| hi here,
is this wot u need
but i did read some wher it is bad design practise usin scenes...but wot evr....i use load movies into an empty movie clip and on press or release open a new movie into the empty movie clip rather than goto next scene
its simple u just add this script to ur time line
this.createEmptyMovieClip("container", 10);
//choose ur empty movie clip name if u dont want to use container and same with,10 the depth..up to u
//then add this to ur button script
on (release) {
_root.container.loadMovie("home.swf");
}
note: call ur movies wot ur buttons are so not to be confused in this case home.swf will load on home button click
if u want to postion ur load move on the stage use this
on (release) {
movie = 1;
setProperty(_root.container, _x, "0");
setProperty(_root.container, _y, "125");
_root.container.loadMovie("home.swf");
}
i have added a simple file i did just so u get wot i mean + the script for nextscene and prevscene on that file .........
hope this helps im now goin to mither some 1 to help me get my load XML data into flash for my menu buttons which will make it much easier to update in the future.....somat u might also wanna try n understand m8...l8z |
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|