Groups | Blog | Home
all groups > flash (macromedia) > september 2004 >

flash (macromedia) : Linking to a web site


samflex
9/11/2004 7:34:31 PM
Hello all,
I am a first-timer here and more importantly, I am a newbie to flash.

I have created a simple flash movie and have been trying to link it to my
website but to no avail.

There are 2 things I will like to accomplish.
One, to create a link to my website.

First I use a text tool to create an entery like:
Enter site

Then I go to text properties and created a url to link to my site like:

http://mysite/home.asp

But when tested the flash movie, I don't see the Enter Site text I created.
What am I doing wrong?

Second, how can I set up flash so that a user doesn't have to click Enter Site
to get to site.
In other words, when flash movie is done w ith running, it automatically entes
site.
Any help would be greatly appreciated.

I am using flash mx 2004
launchpad67a
9/11/2004 7:51:01 PM
The way you can make the movie automatically go to your site is this:
On the last frame of your into movie add this script...

getURL("http://www.yoursite.com");

So when the movie finishes it will jump right into the main site.

As far as why you can't see your 'enter' text, it could be any number of
things. You should have it showing on every frame of the movie. Put it in frame
1 on it's own layer and then scroll to the last frame of the movie and add a
keyframe. This will make it visible throughout the length of the movie.

Mike
jimbo bagins
9/11/2004 8:07:26 PM
okay basic and simple
1st if you whant it to just be a button enter this in the action script for a
button

on (release) {
getURL("http://www.newgrounds.com", "", "GET");
}



But now if you whant it to go on a certin fram you will have to do this
seeming i tried it every other way for u but this only worked

make a movie clip like a cirlce or sumin and put it where no1 can see it now
add this to the movie clips action script

onClipEvent (enterFrame) {
getURL("http://www.newgrounds.com", "", "GET");
}


but this 1 may not work propaly like it may open like 20 pages
samflex
9/11/2004 10:21:05 PM
Thanks a lot Mike for your response.
That was very quick.

One more question, if i could please.
I have created several layers and you said to add the link to layer1.
How can I do that when the layers have already been created and numbered 1
through 7?
NSurveyor
9/11/2004 10:24:26 PM
samflex
9/11/2004 10:39:36 PM
Thanks NSurveyor,
Ok, I create a new layer; where do I go to insert this text:

NSurveyor
9/11/2004 10:45:07 PM
Does your movie loop, meaning, does your movie go to the first frame, play thru
some more frame, then go back to frame 1 and start all over?

If it does, select the first frame of the new layer, open the Actions Panel,
and add:

i++;
if (i == 1){
getURL("www.yoursite.com");
}

if you only have one frame, select the first frame of the new layer, open the
Actions Panel, and add:

getURL("www.yoursite.com");

samflex
9/11/2004 10:57:38 PM
Bear with me a little longer, please as I am very new to this.

Where is the action panel?
How do I access it?

Thanks for all your help.
launchpad67a
9/11/2004 11:29:28 PM
Hit 'F9'
or use the 'window tab' at the top of the page. You can access all the panels this way.

samflex
9/12/2004 12:25:32 AM
I thank all of you immensely for your generous response.

I have been able to get there and use the code.
However, it isn't doing what I expect to do.
What I want it to do is play all the movies first before jumping to the site.
Currently, as soon as you run it, it jumps to the site without even playing
the movie.
What am I doing wrong?

I am using NSurveyor's code below:
i++;
if (i == 1){
getURL("www.yoursite.com");
}

samflex
9/12/2004 8:11:04 PM
Can someone please answer this question for me.
I want to give my flash movie the ability to enter the site automatically
AFTER playing the movies, not BEFORE.
So far, when I run the flash movie, it goes straight to my website without
playing the movie.

Thanks in advance
launchpad67a
9/12/2004 10:55:37 PM
Your should post you .FLA file and anything else involved, so we can take a look. Zipped in MX format.

AddThis Social Bookmark Button