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
Statement:Several methods are derived from the network, I only responsible for the summary of a sudden, because from the multi-reprint, also can not find the original source, need to be free to collect, make the most use, good ^_^For a similar error message:Securityerror:error #2148: SWF file file:///F:/work2010/tiger/rmpublisher.air/bin-debug/index.swf cannot access local resources file:///F:/ Work2010/tiger/rmpublisher.air/bin-debug/plugins/plugins.
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
Release date: 2012-6 6Updated on:
Affected Systems:VideoLAN VLC Media Player 2.0.4Description:--------------------------------------------------------------------------------Bugtraq id: 56861
VLC Media Player is a multimedia Player named VideoLAN client.
VLC media player 2.0.4 and other versions do not properly perform a boundary check when processing malicious files. By enticing victims to open specially crafted SWF files, remote attackers can exploi
This article mainly introduces jQuery's Non-Use of plug-ins and swf to implement brushless newest File Upload. If you need it, you can refer to the file upload function, which is a common function of the website, such as the attachment or image upload function, there are also many solutions. Today we will introduce a new file upload method through jQuery.
First, we put a form in the page to upload files:
The Code is as follows:
Then, put a
1. download and install the attachment. For more information, see the attachment help.2. Copy the code to a proper location and generate an image. How can this problem be solved?Copy codeThe Code is as follows:$ Oldswf = "/uploads/swf/test.swf ";$ Oldjpg = "/uploads/litpic/test.jpg ";$ Flash2jpeg = new COM ("SunCN. Flash2Jpeg ");If ($ flash2jpeg ){$ A = $ flash2jpeg-> Flash2Jpeg ($ oldswf, 150,200, $ oldjpg );If ($ ){$ Litpic = '/images/defaultpic.gif
--Put PHP in the system directory so that PHP can be used directly
# vim/etc/sudoers
--Edit this file
--Add the following line under Root all= (All)
www all= (All) Nopasswd:all
--Modify Defaults Requiretty front plus a # number
SwftoolsDownload pathHttp://www.swftools.org/download.html1. Install the required libraries and components. The machine has been installed before, the main installation is the following components. If you do not install it will prompt machine ' x86_64-unknown-linux ' no
Step 1: click "Start" in the lower-left corner of the system to open the "run" window. Enter gpedit. msc in the "open run" box and press enter to edit the group policy. The effect is as follows.Step 2: in the group editor, click "User Configuration rarr; management template rarr; Windows components rarr; Internet Explorer rarr; security functions rarr; "Security of local computer area locking" is displayed. The "security of local computer ar
Windows system
The installation path is: E:\host\FlashPaper2.2\FlashPrinter.exe
$last _line = System ("Copy E:\host\demo.doc E:\host\dome2.doc", $return _var); This can be done normally.
$last _line = System ("E:\host\FlashPaper2.2\FlashPrinter.exe E:\host\demo.doc-o E:\host\demo.swf", $return _var);
echo "Result last line: $last _line
";
echo "Execute Return Status: $return _var
";?>Execute result execute Return status:1In the start-"run, the direct execution of" E:\host\FlashPaper2.2\Fla
Public Function role (){
Loader = new loader ();
Bodyrequest = new URLRequest (bodyfile_path );
Loader. contentloaderinfo. addeventlistener (event. Complete, oncomplete );
Loader. Load (bodyrequest );
}
Private function oncomplete (Event: Event): void {
VaR loaderswf=event.tar get;
VaR domain: applicationdomain = loaderswf. applicationdomain as applicationdomain;
// Extract class definitions from the loaded SWF domain
VaR bodyclass: class
Next, we will list two methods to modify the server side for control:1. IIS serverGenerally, we disable caching for dynamic pages (such as ASP and PHP) by using the language itself.Set HTTP HeaderBut SWFNoDirectSet HTTP Header. You can add an HTTP header in IIS from the server side:Cache-control: "No-Cache"Pragma: "No-Cache"Expires: "-1"
The operation method is shown in the figure below:However, when setting IIS, note that if an HTTP header is set for the entire website, the content of the enti
CentOS installation to PDF and SWF Environments
Centos7 install libreoffice + unoconv + swftools
1. Set yum Source
Note:
A. You have set up 192.168.4.217
B. CentOS7 image CentOS-7-x86_64-Minimal-1503-01.iso
C. You must set the IP address during system installation. Otherwise, it will be troublesome to set the IP address later.
D. Select Chinese for installation. No additional Chinese package is required later.
1) log on to the local device. The defau
Install Swftool in linux and convert the PDF file to swf to browse files online. The linux system I installed is CentOs 5.5. Download swftools-0.9.1.tar.gz from the Internet first, and then install it using the following steps. 1. First, upload the software to the opt/software Directory through SSH. 2. cd opt/software www.2cto.com 3. decompress the software: [root @ centos5 ~] # Tar xzf swftools-0.9.1.tar.gz4, into the decompressed Directory: [root @
How to solve the problem of blackening and opacity of swf files in Chrome (Google Chrome) and flash in Firefox,
I have always seen that FLASH on all major websites is black box and curious. Do they not know that flash can be set to transparent? So I browsed it with the IE Tab plug-in and found that the webpage was normal again. As a result, I began to suspect that there was a problem with Chrome, so I switched to multiple computers, after a variety of
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.