Solve the impact of IE update on flash

Source: Internet
Author: User
Tags html page microsoft website
Solve

The day before yesterday, Microsoft updated IE browser, for IE update, so that ActiveX content can not be loaded from the problem caused by many people's attention. These changes can be seen in some Adobe software, including Flashplayer. Authorware player, Shockwave Player, SVG viewer,help Center and Adobe Reader, and of course, Sun Java, Apple QuickTime, Realnetworks,re Alplayer and other ActiveX. The interactive content embedded in the HTML page through some methods can be able to respond to user input (for example, keyboard, mouse) until the user clicks either activate or continue to loading. Let me see what it's all about. And how to solve it to enable users to maximize the convenience of browsing.

problem

When you view a Web page, the IE browser in Windows will not display the ActiveX content as a rectangular box and a prompt for "Click to activate and use". It means that you need to activate the contents of the ActiveX to be able to view or interact with it, and the ActiveX content might or may not load and play as you expect. You can view the demo provided by Adobe: here

Adobe Solutions

There are two kinds of solutions:

Method 1
If you browse the page that contains ActiveX, click on the content to activate it.

Method 2
If you are developing a Web site, remove the user activation process that is required for ActiveX content. For this adobe provides a javascriptr solution based document. here
These issues can be addressed by using Adobe's solution documentation.

Is there any simpler way to do this than the above, and the answer is yes. It's easier to use the deconcept flashobject than the Adobe method. And the operating condition is good. Download Download flashobject 1.3 (hits)

The basic methods are as follows:

Just include the flashobject.js in your HTML page and add a bit of JavaScript code to embed the Flash SWF OK.
It works in the following ways:

Code:

<script type= "Text/javascript" src= "Flashobject.js" ></script>

<div id= "Flashcontent" >
This text was replaced by the Flash movie.
</div>

<script type= "Text/javascript" >
var fo = new Flashobject ("movie.swf", "Mymovie", "M", "M", "7", "#336699");
Fo.write ("Flashcontent");
</script>

A simple analysis, or you can read the Flashobject document

Code:

<div id= "Flashcontent" >
This text was replaced by the Flash movie.
</div>

This is the equivalent of a holder we're prepared to put in a flash file. Some are like the empty MovieClip holder we often use. prepared to put content. If you don't have a flashplayer. Then the line inside is displayed as "This text is replaced by the Flash movie."
If you install Flashplayer, then this line of words is not displayed, the user is basically invisible, and it also has the advantage that you can turn this line of content into your search keyword, Google will easily search it. Oh, kill the birds.
The following paragraph will tell you what it is.

Code:

<script type= "Text/javascript" >
var fo = new Flashobject ("movie.swf", "Mymovie", "M", "M", "7", "#336699");
Fo.write ("Flashcontent");
</script>

Used to embed SWF, such as the current movie file is "movie.swf", ID is "mymoive, width is 200, high is 100,flashplayer version is 7, background color is #336699."

Let's take a look at our example of embedding a flash.
According to the basic working method above, we have to embed some other parameters. To meet some of our other needs. For example, we have a file named ws.swf, we want to embed it in the page without being affected by IE update.

1. Package the Flashobject.js file in the page

<script type= "Text/javascript" src= "Flashobject.js" ></script>

Generally this line of code can be written before the body tag.

2. Add the following code below it.

Code:

<div id= "flashcontent" style= "width:300px; height:200px "></div>
<script type= "Text/javascript" >
var fo = new Flashobject ("ws.swf", "Mymovie", "," "200px", "7", "#336699");
Fo.addparam ("Quality", "low");
Fo.addparam ("wmode", "Transparent");
Fo.addparam ("salign", "T");
Fo.addparam ("scale", "noscale");
Fo.addparam ("Loop", "false");
Fo.write ("Flashcontent");
</script>

From the above code we see that we are going to put Flash in the ID flashcontent layer, its width is 300 high to 200 pixels, it should be the same size as our SWF file. If you want to zoom it can be different. below var fo = new Flashobject ("ws.swf", "Mymovie", "the", "200px", "7", "#336699"); is embedded in the Flash file, before the content has been introduced in its parameters, where the ws.swf can be a relative path can also be an absolute path, such as you can directly enter the site plus your SWF file name.
In the following section we can add the parameters, from top to bottom respectively for quality quality, wmode transparent transparent, salign alignment, scale scaling, loop loop, etc.
So our embedding process is complete.

It's also easy to use Flashobject if you want to use Flashvars to communicate with the HTML before flash, but a little bit when using Flashobjcet, only when the SWF just loads. And is passed in the form of a value pair, as follows: Variable1=value1&variable2=value2&variable3=value3

use the following methods:

Code:

<script type= "Text/javascript" >
var fo = new Flashobject ("movie.swf", "Mymovie", "M", "M", "7", "#336699");
Fo.addvariable ("Variable1", "value1");
Fo.addvariable ("Variable2", "value2");
Fo.addvariable ("Variable3", "value3");
Fo.write ("Flashcontent");
</script>

Once this step is completed, all variables are passed into flash, and you can use them flexibly in the _root of your flash.

deconcept Flashobject also provides instructions that you can add additional parameters. You can see in detail

In addition to this simple method, there is a similar to this, I did not look closely, if you are interested to take a closer look. UFO here

Haha, for Microsoft IE Update changes, we have been able to easily remove the need to click to see the process. If you are free don't forget to go to the Microsoft website to see what it uses, and finally, don't forget to update your website, Cheers:)



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.