PDA

View Full Version : Popup-buttons don't work, yet simple in design.


marcelcolt
08-08-2008, 11:44 AM
Hi,

I'm kinda new with flash and i need some serious sorting help with my popup-menu.

I designed a basic menu with five buttons (joint by the sides) and when you move the cursor over the buttons 2-5 popup-'balloon'-buttons should appear (for each main button, a new frame).
Still working like a charm.

But then...
When i move my cursor over from, lets just say, main-button 2 to 3, the 'balloons' from button 2 don't dissappear and the number 3 'balloons' don't appear.

BUT WAIT...Ther's more!
When i move my cursor, via the (perfectly working) invisible button, over a 'balloon' (except for the first upper balloon on button 2; why that is...) the popup-'balloons' keep disappearing!
Also on the one popup-'balloon' i can actually reach, the link doesn't work. (onRelease...getURL...you know the drill)

You can find the .fla file here:
http://www.serelsnauw.nl/users/marcel/balloon-menu.rar

There's probably something wrong in the actionscript, but i just can't figure out what.
I've at it for over two months now and i'm a little fed up (so to say)
with it not working.
I'm pretty irritated and my computer is pretty lucky, still standing on my desk!
(it's on the edge...and it doesn't even know it yet.)

Greetings from Holland,
Marcel.

andrew444
08-12-2008, 07:53 PM
Hi Marcel:

I have developed a fix for you. Here is what I did.

For each menu item on the "menu" movie, I positioned a movie clip containing the bubbles over it.

When the Flash menu loads, all of the bubble menus are set to _visible = 0 in the actions layer of the "menu" MC.

When a user rolls over a menu item, the MC containing the bubbles is set to _visible = 1 . When one bubble MC movie is made visible, all other bubble MCs are set to visible = 0. For example the "foto's en plaatjes" button is coded:

on (rollOver) {
menu2._visible = 1;
menu3._visible = 0;
menu4._visible = 0;
menu5._visible = 0;
}

And on the "schriven en lezen button":

on (rollOver) {
menu3._visible = 1;
menu2._visible = 0;
menu4._visible = 0;
menu5._visible = 0;
}

The bubble buttons are all coded with:

on (release) {
getURL("http://www.serelsnauw.nl/users/marcel/kim");
}

So, you are going to need to go through and program the right URL addresses for each button.

I also added a color change on every button's second frame.

I hope that this helps you. :)

Best of Luck,

Andrew444

marcelcolt
08-12-2008, 09:46 PM
Thanks, that works great.
Like the color-change on roll-over too.

But i still got one question: why is it that my url's don't work?
If i use an absolute URL, nothing happens, but without the "http://" it tries to open a complete URL inside the local folder (for instance something like: "http://www.actionscript.org/test/www.actionscript.org").

Is there a way to work around this?

andrew444
08-12-2008, 11:49 PM
Hmm. Not sure what's up with that. If you want, post a list of URLs that you need the buttons to link to, and I can give it a whirl. Won't be able to work on it till later as I'm peeling myself away from the PC for a couple beers. :)

marcelcolt
08-13-2008, 08:18 PM
Hi.

I've solved the problem.
I've been searching the net and i found a guy with the same problem (on google, page 35 or so).

Apearently links in .swf's don't work from the harddisk, only from the server.
So i published and uploaded the generated swf and html and...it just worked.
(Very extatic!)

Thanks for the trouble and the solution.

See ya,
Marcel.