Solved

Linking a Flash file in HTML

Posted on 2002-04-10
9
204 Views
Last Modified: 2010-04-03
Please see www.promisekeepers.org.  The "Register Now" .swf file should be linking to www.promisekeepers.org/conf/conf10.htm.  Please check the code and let me know what's wrong.  My points could be your points!  :)
0
Comment
Question by:luvdnvr
9 Comments
 
LVL 23

Expert Comment

by:Zeffer
ID: 6932772
You need to set the link from inside the flash movie
by using the GetURL action and targeting the full address
http://www.promisekeepers.org/conf/conf10.htm

Set up an invisible button by just setting a hit area
the size of your submit button.Give it an OnMouseOver
action followed by the GetURL.

Z
0
 

Author Comment

by:luvdnvr
ID: 6932870
I am brand new to Flash.  I need more explicit directions, please.  I'm not sure what you mean by set up an invisible button the size of my submit button.  My goal is that wherever someone CLICKS within the movie, it goes to the aforementioned link.  Can you refer me to an online tutorial, perhaps?
0
 
LVL 23

Expert Comment

by:Zeffer
ID: 6932952
In Flash do this..
Insert/new symbol/button (call it 'invisible B')
four frames appear..up,over,down,hit
put a keyframe in hit (F6)
draw a small rectangle..
Go back to the main stage..
open the library..
drag an instance of the invisible B button to the stage..
resize it to cover the movie stage..

open the actionScript panel (arrow bottom right)
Click +
in BASIC ACTIONS choose OnMouseEvent
on release should be checked by default
Click+
in BASIC ACTIONS choose GetURL
enter the complete url as stated earlier
in Window choose Blank
Save

Test movie

Z
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 6

Expert Comment

by:rootdir
ID: 6934581
See this url

http://www.macromedia.com/support/flash/action_scripts/actions/geturl.html

and use this code in your 'Register Now' button

on(release) {
     getURL("http://www.promisekeepers.org/conf/conf10.htm", "_blank");
}

You will get the results

Cheers
Rootdir
0
 

Expert Comment

by:deepeshp
ID: 6934589
You may even choose to treat the entire flash movie as a single button so that you insert a hyperlink to it and clicking on any part of it will take you to the defined site/page. As one you have done for the text "CLICK HERE FOR COMPLETE INFO!"

...and that is surely gonna work!
0
 

Author Comment

by:luvdnvr
ID: 6934712
Deepeshp: How do I treat the entire flash movie as a single button?  I have a layer for the "Register now!" and one for each of the cities that fades in and out.  Please let me know how to do this in details.
0
 
LVL 19

Expert Comment

by:webwoman
ID: 6934894
Better and much easier idea...

Save it as an animated GIF rather than a SWF. Then you can place it and create a link just like any graphic. It also will eliminate the need for your users to have a plugin to see the graphic.

It doesn't need to be Flash, it just needs to be animated. ;-)
0
 
LVL 23

Accepted Solution

by:
Zeffer earned 50 total points
ID: 6935229
luvdnvr..the 'invisible' button I described is how to
place a button over either the entire movie or just
the 'register now' button..did you not try it?

Rootdir..you seem to be saying the same thing as I did..

webwoman..I agree that a GiIF would be more practical
but luvdnvr seems to want to learn to do it with Flash.

Z
0
 

Author Comment

by:luvdnvr
ID: 6935257
I thought I had accepted your answer earlier, sorry.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Microsoft WSUS 4 110
Where to download Acrobat flash offline installer? 2 258
System Center Configuration Manager 2012R2 7 95
IE11 stops playing video on a certain website 10 86
Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question