all groups > flash (macromedia) > january 2004 >
You're in the

flash (macromedia)

group:

Redirect to a url when clicked on flash object in html


Redirect to a url when clicked on flash object in html kalyanbitra
1/7/2004 10:14:01 PM
flash (macromedia): Hello Everybody,

I have a question to all html/flash experts out there. I have flash (.swf) file which has no actions defined means that no onlreases or onclick or any such sort of actions defined. Its just .swf file.

I display that in my html with "object embed" option and the swf file displays and plays properly.

Here comes the tricky part, when I click on anywhere on the object I want to open a new ie with a "url" means redirecting to a site.

How do I do that. Remember I do not want to write any actions inside th flash. Can this be done with any html/javascript.

Thanx in advance

Re: Redirect to a url when clicked on flash object in html Laiverd.COM
1/8/2004 2:02:10 AM
If you cannot, or don't want to edit the fla file, then I'm 99.9999%
convinced it's not possible.

John

--
----------------------------------------------------------------------------
-----------
RESOURCES
http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash
----------------------------------------------------------------------------
-----------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------

Re: Redirect to a url when clicked on flash object in html urami_
1/8/2004 9:39:06 AM

[quoted text, click to view]

I can second what John said , there is however one trick , not too recommended but
it make such links possible.
You can use dhtml layers to place transparent gif on top on the flash movie and give that gif a link.
Why it's not recommended ?
Because in order to stuck layer on top of active content (flash) we have to set the flash movie to
transparent with WMODE tag, this tag is barely supported by any browsers beside windows IE 4/5/6 and above.
Just very recently NS 7 and few more join the group but the support is still poor and Wmode is known to cause
lots of problems and performance issues . Many actions will stop functioning and your CPU usage could be higher
for no particular reason.

Anyway ,for you to know that there are some options ,I did fast sample to demonstrate that.
I make basic animation in flash , stuck layer on top of it , slightly off the flash area
so you can see where the flash is and where the layer is .
I place grid with transparency on top of the layer so you can see where the gif is and give the gif link
to yahoo.com. It could as well cover the whole layer and link to whatever you like :

http://www.flashfugitive.com/ang-zhang/gif_link_layer/




Regards


urami_*

<xmas>
http://flashfugitive.com/
Re:Redirect to a url when clicked on flash object in html c.cantrell
1/8/2004 2:17:17 PM
You can probably figure something out using JavaScript and capturing click events, etc., however I would be very surprised if it were reliable across all prevalent browsers.

Christian


AddThis Social Bookmark Button