Sina/Flash Guest Empire Image effect analysis

Source: Internet
Author: User
Tags reference
Photo Effect | sina

Sina Sports channel picture conversion effect and the effect of the conversion of the Empire of the Flash guest analysis! Not the same ...

Now, whether it's in the forum or in the QQ group, a lot of people on Sina, Sohu and other sites on which the image transformation effect, very interested in, you point right, give you the feeling of flash, but I think "smart" you, you have to find once cracked after a look at it! How did it turn out? Look at the number of people who ask this question now, I don't have to say, today is the effect! I would like to make a summary, I hope to help you a little bit ....
You first open the Sina Sports Channel page (http://sports.sina.com.cn/)
, see the original file, give you a few pieces of code, I think you can understand the truth of it!

<param name= "flashvars" value= pics= ' +pics+ ' &links= ' +links+ ' &texts= '
' &borderwidth= ' +focus_width+ ' &borderheight= ' +focus_height+
' &textheight= ' +text_height+ ' ">

Then look at this inside the pics, in the JS code inside there are

Pics= ' http://image2.sina.com.cn/ty/f1/U574P6T223D1F5108DT200510170118
10.jpg|http://image2.sina.com.cn/ty/f1/u346p6t223d1f5105dt20051016182
307.jpg|http://image2.sina.com.cn/ty/f1/u574p6t223d1f5114dt2005101620
2453.jpg '

Inside the transformed Picture:

http://www.alixixi.com/UploadPic/2007-7/20077804335282.jpg
http://www.alixixi.com/UploadPic/2007-7/20077804336996.jpg
http://www.alixixi.com/UploadPic/2007-7/20077804336609.jpg

The following transformed text:

Texts= ' 05 season F1 the curtain Renault became the double Crown King |2005 season F1, the sky finally turned blue!| Minardi farewell F1 ' ...

See here, you understand? The key is Flashvars .

We're here to see what the effect of the Semitic empire
(I don't need to write the address!) hehe ^ ^, I still write on it, because his address is too long:http://www.flashempire.com/, afraid you can't remember ... )
This time you still open the original file, you can find the effect of SWF, address http://www.alixixi.com/UploadPic/2007-7/20077804336881.swf
I think this smart you, must not say how to do it! You must have a way of knowing what is written inside ... HOHO
But there is a bad effect, you want to really want to steal the effect of others, the external reading of the XML file how to know? HoHo .....

All right... Just write it down here!

Finally, I would like to say is that Sina is now more popular flashvars technology to do, the Flash guest Empire is: Flash read to the external XML file to achieve!

I'm going to bed ...

Add some from Luar to Flashvars explaining:

He suggested that in HTML, you should use Flashvars to give Flash (08-05-2005)

Reason:

Although Flash Player 6 is starting to support Flashvars, in HTML, you can use the <param name= "Flashvars" value= "par=123"/> to replace foo.swf?par=123 pass parameters to Flash , but some people still use this method, and I sometimes do it because of convenience. In fact, the method has a disadvantage, if the parameters are follow-up guest visits, each time, such as SessionID, will make browser think SWF is different, each time reload, user inconvenient, but Flashvars will not have this problem, use the cache, speed up the next load time.

Opinion:

1.Flashvars is different in IE and Firefox
Please see the details:http://www.show-studio.net/weblog/comment.cfm?id=66

2. If you want to pass multiple ways to write
<param name= "Flashvars" value= "par=123,par1=321"/> or
<param name= "Flashvars" value= "par=123" >
<param name= "Flashvars" value= "par1=321"/>
It should be written par=123&par1=321.

3.IE and Firefox are "can" use the same source code, as follows:

<object data= "flash.swf" type= "Application/x-shockwave-flash" >
<param name= "movie" value= "flash.swf"/>
<param name= "Pluginurl" value= "Http://www.macromedia". Com/go/getflashplayer "/>
<param name= "Flashvars" value= "par=123"/>
</object>

From Frank to MM website on the translation of Flashvar introduction:

Recently have time to see Remotingconnector tutorial, in the mm of sample found

Reference:

<param name= "Flashvars" value= "gatewayurl=http://localhost:8300/flashservices/"/>

Method.

A little meaning, originally can use this method to set remoting gateway.
First look at the use of Flashvars, Flashvars is actually one of the methods of HTML and flash communication. Detailed can see http://www.macromedia.com/support/flash/ts/documents/flashvars.htm
To put it simply, if I had written

Reference:

<param name= "Flashvars" value= "myname=frank/"/>

Then there is the myname variable in Flash.

This method is mentioned in the between management interpretation of MM:
Remoting can use the Flashvars parameter in HTML to set the gateway so that it doesn't have to be released again during the test to the formal release. If the gateway is blank in Flash, Flash will automatically find the Flashvars parameter in HTML as the gateway.
Do not say not to practice, the following to do an example.
I've written a CFF basic reading tutorial, and here's a change:

Reference:

Methods to invoke a component base class
Import mx.remoting.NetServices;
Import Mx.remoting.debug.NetDebug;
Netdebug.initialize ();
//////
if (initialized = = null) {
initialized = true;
My_conn = Netservices.creategatewayconnection ();
My_conn named for himself.
My_service = My_conn.getservice ("login", this);
My_service named for himself, login is the LOGIN.CFC under the current directory, no suffix name is required.
}
My_service.getfrank ();
function Getfrank_result (Result) {
Trace (result);
}

And then add a sentence to the Web page

Reference:

<param name= "Flashvars" value= "Gatewayurl=http://www.interactivechinese.com.cn/flashserv
Ices/gateway "/>

OK, the data can still be read, hehe. So began to Lenovo the previous days Hejone mentioned security issues. The discovery of the enlightened, in fact, use this method is also useless, others as long as the local forge a Web page on it, alas. Continue.



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.