Loading media control to process flash connection flash processing connection a template

Source: Internet
Author: User

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 ://)

Related Article

Contact Us

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: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.