We hope we can easily process flash connections. However
<A href = ''> Flash Object </a>
In this case, it can only work normally in Firefox. However, low IE is not normal.
Instead, we thought of a solution. Create a flash and upload the link to process the click event.
Flash calls geturl (_ root. B, "_ Self ");
Create a new flash file and add a mediacontroller component named mymc.
WriteCode
Loadmovie (a, "mymc ");
This. Stop ();
A is the flash Address that we want to load when passing in parameters from the URL.
Add a mymc event
On (Press)
{Geturl (_ root. B, "_ Self"); // B is also the URL passed in address
}
Specify the width and height of the document. Same as mymc and actual call
The call code is as follows:
<Embed src = "template.swf? Aw.other.swf& B ;1.htm & W = 150.0 & H = 185 "Quality =" high "pluginspage =" http://www.macromedia.com/go/getflashplayer "type =" application/X-Shockwave-flash "width =" 150 "Height =" 185 "> </embed>
Is w h used?
This is because when we load external flash, different sizes of flash will be available. In this case, I hope we can dynamically control the size of mymc and the document through W and H.
I found a place where
_ Root. _ x =-(w-10.0)/2; 10 is the size of my canvas mymc size does not matter if loaded in this way, you can control the flash width deviation of 0.x pixels
Y can also be controlled. But I don't know how to calculate the most appropriate one. /2 is what I visually tested.
However, if the width and high value of the side of the object are not the real value, it is messy to zoom in or out.
I have never studied how flash works best.
Finally, the customer had to provide our Link Interface for each flash.
Download:/files/lovebanyi/flashclicktemplate.rar
For some protected Flash files, such as YouTube video flash, loading may fail (put it at http ://)