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?
Printable View
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.
PHP Code:googleBtn.onPress = function(){
getURL("www.google.com","_blank");
}
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.
Sorry to be such a pain. But yes, I can move up no problem.
Okay, it seems that the button sit under the graphics. You need to have the button on top for it to work.
Please amend as you want as long as the expand effect can stay.
Thanks very much.
Okay, I've fixed it, but there may be another problem. I am using CS4 which only saves down to CS3. What version of Flash are you using?
I'm using Flash 8.
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.
Unexpected file format when trying to open the file. My F8 is AS2?
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.
Okay, many thanks for your help. Much appreciated.
Can anyone else save the attached file ivor_menu.zip fla down so I can use it in Flash8?
Ivor, if you don't get any hits for help, I suggest that you download a trial version of CS3 and save it down yourself. This will eliminate any delay.
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
marlopax
Got it, thanks. Feel a bit silly now but very thankful too. Cheers!