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
Q: How to use javascript to pass parameters to SWF files?
I found a complete tutorial on the Internet, which is very enlightening and practical. The following describes the complete implementation steps:
Configure SwfObject:
Swfobject2 is the best method for detecting whether users install Flash. It is considered an 'industry standard', and all new versions of Adobe products (Flex4, Flash CS5) Use SwfObject to detect Flash Player.
Download, decompre
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
In the course of project development, it is sometimes necessary to invoke a Third-party program to implement some of the functions of the system, such as the swftools plug-ins that need to be used in this article, how to use the plug-in in the program, and how does the plug-in translate PDF files into SWF files? Then we'll do a simple introduction.
In the. NET platform, C # provides an operation for local and remote access to the process that enables
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
resource in the form of files, in order to avoid abnormal program running due to the loss of external modules, files in swf format pre-prepared by Flash 5.0 can be packaged into applications in the form of resources, and they can be recovered from resources to files when the program is running, after use, delete it from the disk through a program.
When importing resources, because the swf format file is no
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
question: How do I pass parameters to the SWF file using JavaScript?
Find a complete tutorial on the Internet, very enlightening and practical, the following is the complete implementation of the steps:
Configure SWFObject:
Swfobject2 is the best way to detect if a user is installing flash at the moment. It is considered an ' industry standard ' and a new version of all Adobe Products (Flex4,flash CS5) will use SWFObject to detect Flash Player.
Fir
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.