PHP is not the same, PHP contains the zlib link library, you can directly use its related functions, the following is my written compression and knot compressed SWF file Example:
Not joined to determine whether the SWF file has been compressed, in need can be based on the first byte of the file is ' F ' or ' C ' to determine
To compress a SWF file:
//------------
Directory
Baidu Library solution (I)-Overall Thinking
Baidu Library solution (2) -- use Jacob to call MS Office to convert the document to PDF
Baidu Library solution (3) -- use JCom to call MS Office or Acrobat API to convert the document to PDF
Similar to Baidu Library solution (4) -- use JODConverter to call OpenOffice.org to convert the document to PDF
Baidu Library solution (5)-use SWFTools to Convert PDF files to SWF
Baidu Library solution (6)-us
When Swfloader loads the SWF externally, everything is simple, and you can get the loaded SWF-related main class Sprite/movieclip instance directly from the content property of the Swfloader instance.But when Swfloader is embedded in the SWF with the @embed tag as shown above, the content of the Swfloader is no longer the sprite or MovieClip represented by the
PHP is not the same, PHP contains the zlib link library, you can directly use its related functions, the following is the example I wrote compression and compressed SWF file:
Not added to determine whether the SWF file has been compressed, into the need can be based on the first byte of a file is ' F ' or ' C ' to determine
To compress a SWF file:
//-------------
I have previously written how to apply c # to compress and decompress swf files, decompress, compress, and read flash header file information. an open source link Library is required, and the application is not very convenient, but the application of php is different. php contains the link library of zlib, which can be directly applied to its coherence function, the following is an example of how to use c # to compress and decompress a
The Memory tool captures SWF from the memory by looking for the first seven bytes of SwF (the three SWF files must mark the byte "FWS" or "CWS" or "zws" + four records the length of the SWF file ), therefore, to avoid being extracted, we only need to modify the first seven bytes after loading the
The use of Slideshow production demo is a lot of our units often do one thing, but its ppt format file is not easy to publish online, play it needs PowerPoint environment support, even if the production of packaged executables, the video files inserted into which sometimes there will be path and incompatibility problems, Bring some inconvenience to our use. But right now, we can use PowerPoint to Flash software to convert the PPT document into a Flash SWF
For many users, SWF files are generally used to play on the Web page, generally we are in the Win7 32-bit pure version is rarely used in the SWF file to play, but we downloaded on the Internet is generally the SWF format, then in the system can not play how to do it? Let's take a look at Win7 pure version play SWF file
Use the Swftools software tool to convert PDF documents to SWF documents for use in Flexpaperviewer
Import java.io.IOException;
Import Java.io.InputStreamReader;
public class Stringutil {public static Boolean executecmdflash (String cmd) {stringbuffer stdout=new stringbuffer ();
Try {final Process process = Runtime.getruntime (). exec (CMD);
Runtime.getruntime (). Addshutdownhook (New Thread () {public void run () {Process.destroy ());
monitoring is not only a very large workload, but also very blind, efficiency is not high, but also easy to make students have a psychological resistance. Therefore, the school management and the parents of the students attach great importance to the industry in the application of security products for each of the comparison, Mr. Zhou finally locked in a new United States intelligence Web page filtering System products swf (SurfControl Web Filter) on
I. Objectives
1. Use bb.swf in aa.swf.
2. After bb.swf has a dynamic text txt1,aa.swf called, change the display content of this text
Step 2
Generate the bb.swf File
1. Create bb. fla and add a dynamic text on it. The name is "txt1 ". The initial display of txt1 is "hello"
2. Press Ctrl + Enter to run bb. fla and the bb.swf file will be generated.
Call bb.swf
1. Create aa. fla and add the code as shown in the timeline.
Ch ();
Function ch (){// Call the sw
Monkey original, reprinted. Reprinted Please note: Reprinted from cocos2d Development Network --cocos2dev.com, thank you!
Original address: http://www.cocos2dev.com /? P = 279
I previously introduced the creation of various animation methods for cocos2d-x, But 2.0 modified some methods, and many friends asked me how to create an animation, today I will introduce the animation creation method of 2.0, I hope you can see that you can learn how to create animations in other ways.
1. Use
Solution 5: Convert swftools to PDF. Reference: SwF. Applications cannot create their own runtime instances. You can use the getruntime method of the runtime class to obtain the current runtime.
AD: the 2013 cloud computing architect summit is selling tickets at Ultra-low prices
The unzip 2swf tool in the swftools Toolkit can be used to convert PDF files into SWF files.
Use the following command to convert
I have previously written how to use c # to compress and decompress swf files, decompress, compress, and read flash header files using php. php contains the zlib link Library, you can directly use its related functions. The following is an example of my compressed and compressed swf files:
// If the swf file is not compressed, the first byte of the file is 'F' or
Development of the customer site encountered a demand, customer requests backstage upload PDF file, front desk can be in the form of book direct access.The first thought is the use of JS solution, the user access to the front-end page, PHP will file path to JS, so that JS presents the effect of the book. Baidu on the Internet a circle also did not find ready-made plug-ins.As a result of the flash done by someone, it is necessary to convert the PDF file uploaded by the client into a
Public Function Setpicdata (parmproductnameid:int): void{ Trace ("The method Setflipbookdata in SWF is called, the array of parameter images Received::" + Parmproductnameid);Productnameid = Parmproductnameid; Return}//End Function1, the SWF document class inside, write good flex call interface method;2.Flex loads the SWF file.Gets the documen
With the publication of the SWF file format and the ActionScript Virtual Machine 2 specification, many open-source SWF operating tools (Decompiler/Parser/Creater) are available on the network, it can analyze AS, Flex, Flash and other program structures, extract algorithms, resources, confuse code, and dynamically generate SWF and other functions.
A brief comparis
The project is used for temporary writing. To be perfected:
Copy Code code as follows:
/*
* According to the user submitted (swf/html) address, access to Youku, potato SWF playback address
* */
Private Function _getswf ($url = ' ") {
if (Isset ($url) !empty ($url)) {
Preg_match_all ('/http:\/\/. *?) \. (.*?)? \.com\/(. *)/', $url, $types);
}else{
return false;
}
$type = $types [2][0];
$
I've written about how to use C # to compress and decompress a SWF file. Decompression, compression and read Flash header file information need to use an open Source link library, and not very convenient to use, but use PHP is not the same, PHP contains the zlib link library, you can directly use its related functions, Here are my examples of compressed and knot-compressed SWF files:
Not joined to determin
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.