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
This example is a PowerPoint application example tutorial, using a slideshow to make a product demo is a lot of our units often do one thing, but its ppt format file is not easy to publish online, playback it needs PowerPoint environment support, even if the production of packaged executable files, To insert the video file will sometimes appear path and incompatibility problems, to bring some inconvenience to our use. In this example we will learn how to convert a PPT document into a Flash
;Ini_set ("zlib. output_compression", 4096 );?> Okay, now everything is ready for us to import the final file.Compress the swf file: The code is as follows:Copy code // File name$ Filename = "test.swf ";// Open the file$ Rs = fopen ($ filename, "r ");// Read the file data$ Str = fread ($ rs, filesize ($ filename ));// Set the swf header file$ Head = substr ($ str, 1, 8 );$
Here is a SWF obfuscation tool, which is now open source project on open source China git mixswfA few days ago want to confuse their own projects, but the Internet to find the obfuscation tool to fill out the field needs to be confused, and confused after the run does not know where the problem, so to study the principles of these obfuscation tools. The Chinese information on the Internet is relatively small, and has eaten two days of the official inf
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
Flash animation with Macromedia Flash friends know that after the completion of the production we can save the work into a FLA format file for future modification. When you want to publish on the Internet, export it as a SWF file. After the export of SWF file, in addition to the small size of the characteristics, it is not easy to be a glimpse of the author's production process. As the saying goes, there is
Using System;
Using System.Text;
Using System.IO;
Using ICSharpCode.SharpZipLib.Zip.Compression;
/**************
* * Dumb Cat works
/**************
Namespace Getflashrect
{
Class Myflash
{
Public Myflash
{}
Public stream Decompress (stream SRCStream)
{
Determine if the Flash MX swf file is compressed
Take file Header 3
BinaryReader br=new BinaryReader (SRCStream);
Char[] CHRARRAY=BR. ReadChars (3);
String Strflag=new string (Chrarray);
int intversion=
I. BACKGROUND1, recently in doing a Android side play Flash application, Android device does not have a screen, the display needs to be connected via HDMI. The interaction between JavaScript and Java needs to be used, and the Android side receives flash-transmitted Fscommand.2, want to load HTML through WebView implementationSecond, encounter problems1, through the HTML after loading the animation, regardless of which button, the SWF file can not rece
the program
Screenadjust (NULL);}
4.1Adjust Sample ExamplePrivate Function Screenadjust (evt:event): void{
//uidata.screen_width and Uidata.screen_height refer to the compiled Flash height value.
can be set (FLEX) in the form of [SWF (width= "1024", height= "768"], or set directly in the Flash IDEvar Offx:int=math.floor ((uidata.screen_width-stage.stagewidth)/2);var Offy:int=math.floor ((uidata.screen_height-stage.stageheight)/2);
//this refers
This article illustrates the function usage of JS accessing SWF. Share to everyone for your reference. The specific analysis is as follows:
About Flash and JS call each other example has been said a lot, this is not a problem, of course, call error This is not flash and JS error, we today to completely solve the IE,FF and chrome between the incompatibility problem!
We know that in Flash, if you access the external JS function, just
Copy Code c
Some time ago, Insus.net has implemented "MVC uses Flash to show pictures" Http://www.cnblogs.com/insus/p/3598941.html in the demo, it can also display Flash's SWF media file. But you have to download that swfobject.js component.
This time, insus.net wants to show you another way, MVC combined with jquery. You do not need to download any third-party falsh components.
You need to be under the MVC application,
Based on the #87 code in the previous
This openness of this way has certain limitations, through the efforts can be overcome. It also has a certain superiority. Unlike previously used memory searches and local modifications, this approach can be modified not only locally, but also completely recompiled without the limitation of file size. By and large, this approach can replace a lot of things, not just SWF, which can be applied from the server. Of course, caching is a problem, as mention
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
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.