Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

linking to website

Status
Not open for further replies.

loveday

Programmer
Sep 19, 2004
106
US
Hello dear flash gurus,
I am new to this forum and have seen great deeds by just "browisng"

I am a complete newbie to flash, so please be patient with me.

I am currently working on an existing flash mx program and I am having trouble accomplishing 2 things:

1, I will like to know how to link the flash to my client's website?
The current process I am using is not working.

This is my current process:

I use text tool to create a name like Enter Site

I then double-click on Enter Site to go to properties.
Then I type in a website to link to like:


For some reason, this is *not* going to the site.
I get page not found message.

Can someone please tell me how to do this?

Second problem is I am trying to make my movie loop infinitely.
It just plays once and stops.

Any help would be greatly appreciated.
 
hello, and welcome...I am also kind of new to this forum and to actionscript programming.But I think I can help get you going on your first task (to launch the website).

you created, using the text tool something that says "Enter Site" right? ok, now you have to turn that into a button by pressing F8, a window will pop up, give it a name and the behavior as 'button'. Then on the actions for that button type in the following code

on (release) {
getURL('}


As far as your second problem, I'm not so sure what could be causing your movie to play only once...unless you put a Stop() action on the last frame of your movie.

hope this helps
rod
 
If your text is really converted as a button symbol, you might want to add a second parameter, to the code Hoja suggested...

"_blank" to open the site in a new browser window, or "_self", to open up the site in the existing browser window...

Code:
on (release) {
getURL("[URL unfurl="true"]http://www.yoursite.com",[/URL] "_self");
}

You could also simply hilight the word or words of your static text, you wish to be the active area, that would open up a new window with the site, by typing your url in the URL box of the text properties. That the lowest box in the text's properties, with a chainlike icon.
 
Thanks to both of you, the linking is working.
I added _blank.

If anyone of you has an answer to my second question, please advise.

Thanks again, to both of you.
 
Do you have stop(); actions on your timeline?

Does it stop on the last frame, or move to the first frame and stop?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top