How to add hyperconnections to Flash files on webpages
Developer on Alibaba Coud: Build your first app with APIs, SDKs, and tutorials on the Alibaba Cloud. Read more ＞
When it comes to this problem, some people may say that it is not simple. Simply use the url method in flash's ActionScript to solve it. If our UI staff designs flash, however, the link corresponding to flash has not yet been determined or will be changed in the future. What should I do? What I need is to be able to modify the link corresponding to flash externally.
You just need to add the <a> </a> label to the external part of the object where flash is located to control it. Some people may think this way. The idea is correct, but it does not work. What should I do? Baidu first, haha. I really admire some people's brains. Here is a solution:
First, we must insert FLASH first. Because Flash is the highest level by default. Therefore,
I often see Flash blocking the drop-down menu.
Put the Flash file in a layer, set it to the bottom layer, and set FLASH to transparent.
<Div style = "z-index:-1"> <! -- 1. Set FLASH to the underlying layer -->
<Object classid = "clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width = "200" height = "115">
<Param name = "movie" value = "media.swf">
<Param name = "quality" value = "high">
<Embed src = "media.swf" quality = "high" pluginspage = "http://www.macromedia.com/go/getflashplayer" type = "application/x-shockwave-flash" width = "200" height = "115"> </embed>
<Param name = "wmode" value = "transparent"> <! -- 2. You must set the FLASH to transparent -->
Next, add another layer on the FLASH layer,
Flash itself cannot directly add events such as onclick. So you can only use other things.
Add a transparent layer to FLASH,
<Div id = "huiLayer" style = "cursor: hand; position: absolute; left: 10px; top: 10px; width: 200px; height: 115px; z-index: 1; visibility: visible; "> <a href =" http://www.cnlk.com ">
On the forum, some solutions are provided to add a transparent layer. However, if there is a transparent layer,
This article is an English version of an article which is originally in the Chinese language on aliyun.com and is provided for information purposes only. This website makes no representation or warranty of any kind, either expressed or implied, as to the accuracy, completeness ownership or
reliability of the article or any translations thereof. If you have any concerns or complaints relating to the article, please send an email, providing a detailed description of the concern or
complaint, to email@example.com. A staff member will contact you within 5 working days. Once verified, infringing content will be removed immediately.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
and provide relevant evidence. A staff member will contact you within 5 working days.