Solved

Linking a Flash file in HTML

Posted on 2002-04-10
9
207 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

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…
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

734 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