I am doing a charity website and I have a basic menu.
It plays in Flash 6.
The buttons need to be set up as links.
Can anyone tell me where to place the get url link?
I can't open the file at the moment, but most calls are done in one of two ways. One: the code is added to the clip event of the button or movieclip. Two: The code is added to the main timeline and an instance name is provided to the button. If you provide an instance name for the button or menu object, then you can have a function that waits until the button is pressed. Here is an example
If my button's instance name is 'googleBtn', then I would have the following lines of code sitting on the main timeline, usually in its own layer.
I tried giving the button an instance name and stuck in the code above replacing the name and url but I still can't get it to work?
Can you place the code in the menu.fla for one button as an example?
Okay, first you aren't playing in Flash 6 you are playing Flash 4, which the first version that can use getURL. I also didn't realize you were using AS 1.0, which is something I haven't worked in for many years. You seem to be using a mixture of movieclips and not buttons. If you are willing to move up to Flash 5 or 6, this will make it tons easier.
Some people are like Slinkies, not really good for anything, but they bring a smile to your face when pushed down the stairs.
I had to change the layer order of the buttons and the graphics within your menu panel. Then I added the appropriate code to each of the buttons. Currently, all of the button navigate to www.google.com.
NOTE: Always remember to add the HTTP:// to the start of the site, if the link is reaching OUTSIDE of the current directory.
You'll find the CS3 version attached.
Last edited by samac1068; 08-26-2010 at 03:57 PM.
Some people are like Slinkies, not really good for anything, but they bring a smile to your face when pushed down the stairs.
Yeah, that was expected. Because it is saved in CS3, it need someone with CS3 to open and save it down to Flash 8. I don't have a copy of CS3 any further, but I know it will work when you get it opened.
Some people are like Slinkies, not really good for anything, but they bring a smile to your face when pushed down the stairs.
Hi, I'm sorry but I have had this fla saved down to F8 but I can only see one button and can't locate where the url code will go. Sorry for being so dumb. I need each button graphic to go to a separate address.
I think there is no need of 9 separate buttons to put separate url
go inside the menu cube movieClip and go to each big menu buttom frame and select the big button of each perticular frame and change the url in action panel