PDA

View Full Version : 13 of 14 buttons dissapear when rollOver, tough same AS used


marcelcolt
08-09-2008, 11:05 PM
I've got a problem with my menu-bar.

It's a bar with 5 buttons, 4 of them contain several (3-5) popup-buttons.
With the first main-button, the popup-button on the uuper-left side works fine.
But the other 13 popup-buttons just make the whole movie reset to frame 1.
All the popup-buttons contain the same code and are in a invisible-button with 2-4 others.
So there is no appearent reason why one should work and the others won't.

Here's the code is used:

on (rollOver) {
gotoAndStop(2);
}

on (rollOut) {
gotoAndStop(1);
}


on (release) {

//Goto Webpage Behavior
getURL("http://www.serelsnauw.nl/users/marcel/kim/","_self");
//End Behavior

}


Could someone please help me with this?

Regards, Marcel.

Heloed
08-09-2008, 11:39 PM
Just go through and use the swap function to change all the balloons to balloon1. This will solve your problem, plus you don't need all those extra graphics anyways.

marcelcolt
08-10-2008, 03:59 PM
OK, that worked.
But now my getUrl's don't work.
What could be the reason for that?

Heloed
08-11-2008, 12:56 AM
Are you sure you've actually coded them?

When I use the zip you've provided a lot of the buttons don't have the getURL code on them... when I put that in and swap the buttons it works perfectly fine

marcelcolt
08-11-2008, 11:09 AM
I'll try it over again.
Let you know if it worked.

You added the getUrl-code first, before swapping buttons?

Heloed
08-11-2008, 07:27 PM
You added the getUrl-code first, before swapping buttons?

I don't think it matters, as the code is on the instance and not the library object, but I did put it on after swapping.. I literally just copy-pasted the code from the first instance that was working all along and replaced the address with a different site for each button.

marcelcolt
08-11-2008, 09:24 PM
the strange thing is that, after doing all of th above (swapping, wich worked great btw and copy/pasting the code) my url's don't seem to work.

For example: the first button (no popup's what-so-ever) directs to my homepage.
I used a absolute address, because when i used the url without the 'http://' it directed me to the url, inside the map i was coming from.
But it doesn't work like that!

Why is it that an absolute address doesn't seem to work?

marcelcolt
08-13-2008, 08:25 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.