View Full Version : need a little help
Flugufrelsarinn
April 24th, 2003, 02:48 AM
hey guys, i've made a drop down menu, but now the buttons doesn't seem to work. al the menu contents are in a movie clip, so they can't operate over the primary stage. I want to tell the buttons that
on (release) {
loadMovie("star.swf", "movies");
}
// but the "movies" object is in the primary stage,
// and it doesn't seem to work!
which command did i missed? or which one would help me in this code?
lostinbeta
April 24th, 2003, 02:56 AM
_root.movies.loadMovie("star.swf")
Try that.
Flugufrelsarinn
April 24th, 2003, 03:11 AM
no, it doesn't work... i tryed...
I'll send the files, try exporting both as swf to a folder.
and go and click in the ENFOQUE button...
upuaut
April 24th, 2003, 04:18 AM
That code that lost gave is correct.
on (release) {
_root.movies.loadMovie("star.swf");
}
double check the instance name of "movies"
Flugufrelsarinn
April 24th, 2003, 04:22 AM
on (release) {
_root.--movies--.loadMovie("star.swf");
}
instead of --movies-- i have to put the movieclip target instance name? it still don't work...
Flugufrelsarinn
April 24th, 2003, 04:28 AM
i tried to make a drop menu. Maybe i'm having something wrong... which is the best way to make one? or to make the code you are gaving me, work...
i never thougth that to make a drop menu, it would be so hard... - sob - ;-)
mlk
April 24th, 2003, 04:30 AM
post your fla im sure someone will be able to fix the code
Flugufrelsarinn
April 24th, 2003, 12:29 PM
Hello again!...
I'm still gettin problems with this thing to work..
check the attachment,, it speaks for itself ;)
if you can help me i'll be gratefull
Flugufrelsarinn
April 24th, 2003, 12:34 PM
and the files.:evil:
help meeee:beam:
lostinbeta
April 24th, 2003, 12:45 PM
Don't crosspost Flug. You didn't need to create a new thread to attach the files with, you could have done it in here. I merged the threads since the other one contained your files.
And your error is in the targeting.
The container clip you are loading to has the instance name of "target" (no quotes).
So why are you targetting it as _root.movies?
And...
on (release) {
_root.movies.loadMovie("button2.swf", "target");
}
That syntax doesn't really make sense. You don't need the "target" at the end if you are putting the target before the load movie code. There are two ways to write loadMovie code...
Method 1) movieClip.loadMovie("file")
Method 2) loadMovie("file", "movieClip")
I prefer method one, its easier.
So your code would become something like...
on (release) {
_root.target.loadMovie("button2.swf");
}
Now... onto problem 2. Your buttons aren't actually clickable. Given the setup of the menu you have here, You have a main invisible button over the content, this button takes all the attention off of the buttons underneith it, so actually your menu items are unclickable.
Syko wrote a tutorial on drop down menus, perhaps you should check that out.
http://www.kirupa.com/developer/mx/dropdownmenu.htm
Flugufrelsarinn
April 24th, 2003, 12:49 PM
I really thank you, and i'm sorry about the THREAD thing... i don't really know much about forums, i'm a newbie... but i discovered how to post files, and that sort of things, more than easy.. ill check what you are saying, and if it works... I'LL BE REALLY HAPPY!!! :d
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.