Package com. Iori. webapp. util;
Import java. Io. bufferedreader;Import java. Io. ioexception;Import java. Io. inputstream;Import java. Io. inputstreamreader;
Public class extends 2swfutil {/*** Use the swftools tool to convert a PDF file to a SWF file. The converted SWF file has the same name as the PDF file.* @ Author Iori* @ Param filedir file storage path (including file name)* @ Param exepath converter
frame:Code:Import flash. External .*;// Change the color of the squareFunction onchange (CLR: Number ){VaR temp_color: color = new color (rec_mc );Temp_color.setrgb (CLR );}// Allow JavaScript to call the onchang FunctionExternalinterface. addcallback ("onchange", this, onchange );// Open the daily windowChange_butn.clickhandler = function (){Externalinterface. Call ("callprompt", "What colors do you want to use? (Ex: 0xff0000 )");}Before the code, we need to first import the externalinterface
PHP/SWF charts is a free chart creation tool. It uses PHP scripts to obtain and generate dynamic data and uses flash to draw images.
The tool supports multiple style charts, including graphs, pie charts, column charts, horizontal charts, three-dimensional column charts, and area charts.
System Requirements: Support for PHP 3, 4 5 Web Service Environments
Related links:Download PHP/SWF chartsPHP/
Use swftools to convert a PDF document to a SwF document 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 = runtime.getruntime(cmd.exe C (CMD); runtime. getruntime (). addshutdownhook (New thread () {public void run () {process. destroy () ;}}); inputstreamreader =
Generally, Frame Animation has two major values:1. waste of resources, large package2. It is difficult to achieve smooth transitionEspecially for GIF, there will also be noise problems, but SWF uses its own advantages, not only there are ready-made editors, but also vector animation, complementary animation, etc.Reduce the resource size, so when we have Frame Animation needs to prioritize SWF, there are sev
Problem
How can I prevent Flash SWF from being cached on the client? That is, how to make the SWF file appear in the Temporary Folder of IE browser?
Method:
Generally, we disable caching for dynamic pages (such as ASP and PHP) by setting the HTTP header in the language, but SWF cannot directly set the HTTP header. You can add an HTTP header in IIS from the s
Recently, performance tuning is being implemented in the project. Our game front-end is developed using Flex. dynamic loading is used for image loading, and the flex image component is used directly, reference the relative path of an image. No problems were found during the Intranet test, and then deployed to the internet environment. It was found that the Front-End Interface loading was unfriendly and the images were displayed one by one. The user experience is not good.
To solve this problem,
Note that the local test
I. Encoding format, if the UTF-8 encoding is directly open the page contains an object object will be prompted to load the control, if you change to gb2312 encoding is not prompted
Second, if a gb2312-encoded Web page contains Chinese characters in the SWF object pass parameter in the page, the SWF receives the following transcoding:
var ba:bytearray = new ByteArray;
Ba.writemultiby
This article mainly describes how HTML pages get the Foo parameters such as Test.html?foo=mytest, and how to pass parameters to the SWF in an HTML Web page.First, use JS to get parameters in HTML Web pages.We know that HTML pages are executed on the client side, so that the parameters must be obtained using client script (such as JavaScript), which differs from the server-side script fetching parameters.The following JS code to get HTML page shape suc
The trace in FLASH can only be tracked and seen in flash ide. If you publish SWF to the Internet, you will not be able to see the trace debugging information, which makes debugging difficult for the Development Network FLASH, is there a good way to solve this problem? No matter where SWF is published, it is not good to open a local SWF tracker to receive debuggin
Some time ago, someone mentioned in flashseer that the SWF file can be transmitted through socket, so that users cannot get the SWF file... at that time, there was no as3 decompilation, so I didn't care about program protection. with the popularization of decompilation programs, friends who don't want others to see the source code will be worried...
The idea of transmitting
Externally loaded SWF animations (whether as2.0 or as3.0) can control pause and play, sound can pause and play, but note that the imported sound must be "data flow". Take a look at the following code:Main.as:Package{import flash.display.sprite;import flash.events.mouseevent;import flash.text.textfield;/** * @author Hypo.chen *@e-mail [emailprotected] * @data 2015-9-6 */[swf (framerate= "", width= "1024x768"
When Curl hits swf... This post was last edited by PhpNewnew at 17:27:31
When I first came back, I asked a friend yesterday to help me with a simulated login to read data.
Of course, packet capture... code Curl... verification code (recognition rate 70%, to be improved)... submit data
Finally, the data on the analysis page is found that the page will read a movie. that is, swf. then the
In some e-book or video sites, their data connection points to a. swf file, I downloaded the SWF file after the content of this file is blank, I want to know where their data from, how to do it???
Reply content:
In some e-book or video sites, their data connection points to a. swf file, I downloaded the SWF file a
Tags: io ar, sp for file data, onCopying external swf is a relatively advanced operation, with many steps and complicated processes. It takes a lot of time to elaborate on the principle details. Therefore, here I am lazy and I will explain it in detail. I just use code to explain the problem, and I hope to play a role in attracting others who can understand it.Method 1 -- ByteArray deep replicationVar byteLoader: URLLoader = new URLLoader ();ByteLoade
Think of the following methods:
1.split the game into three packages: load.swf,main.swf,res.swf.
2.load.swf, used to load the masterProgramAnd resources, used to encrypt websites such as Ma Qiu. Change main.swfand res.swfto the suffix main.jpg or another flash saver-protected format.
3. the Config File in main stores the variable value encrypted by the key; Res. the key can be stored in the class or textfield. The key is a combination of the Chinese class and res and main volume (the volum
When curl bumps into SWF ...
This post was last edited by phpnewnew on 2012-11-24 17:27:31
Just came back, yesterday, called a friend to help deal with a simulated login to read the data things.
Of course grab the bag ... Code Curl ... Verification Code (recognition rate 70%, need to be improved) ... Submit data
Finally analyzing the page data discovery, the page reads a movie. That is SWF. 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
How to convert a PowerPoint slide into a swf animation
One, ready to convert ppt (PPS) slide file
Click "Start program PowerPoint to Flash" and go to the PowerPoint to Flash run main interface. Click the "Add" button under the File Column tab in the main interface of PowerPoint to Flash, and select the slide file (ppt or PPS file) that is ready to be made in the Browse box that appears. When you click the Open command button, the appropriate documen
The easiest way to do it
The code is as follows
Copy Code
var my_urlloader:loader=new Loader ();My_urlloader.load (New URLRequest ("swf.swf"));My_urlloader.contentLoaderInfo.addEventListener (event.complete,_show);function _show (e:event): void {AddChild (My_urlloader);}
Example 2
The code is as follows
Copy Code
Import Flash.net.URLRequest; Import Flash.display.Loader; Import flash.events.Event; Import flash.events.Progress
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.