1. Edit the document library list display page, for example:
2. Add a Content Editor, such:
3. Add the following JavaScript code in [Content Editor]-[edit source] and add the following JavaScript code, for example:
?
The Code is as follows:
???????????????????
4. Confirm to save the page.
5. Test: Upload the SWF file in the document library and open it as follows:
Tip:
? How to realize the effect of SP document library similar to
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
We know that the HTML page is executed on the client. To obtain parameters, you must use a client script (such as JavaScript), which is different from the method used by the server script to obtain parameters.The following js Code retrieves an HTML webpage, such as "test.html? Foo = mytest program = flash ""? All parameters.Copy codeThe Code is as follows: 1. The following JavaScript code can be used to obtain a parameter of an HTML webpage in more detail. Copy codeThe Code is as follows: 2. Pa
color to blue:Movie. BackgroundColor = 2554.BGColor (read/write)Syntax: BGColor as StringDescription: The background color of the film (linked with BackgroundColor). Unlike BackgroundColor, BGColor is a six-digit hexadecimal number, each of which represents a red-green-blue color value. For example: FFEEAA indicates that the red value is FF, the green value is EE, and the blue value is AA.Example: Set the movie background color to red:Movie. BGColor = "FF0000"5.Base (read/write)Syntax: Base as
In HTML, how does JS invoke the code that is already encapsulated in the SWF? There are some things flex can not achieve, need to call JS to achieve. Eg: when the browser form closes, a dialog box pops up prompting the user to exit? Or do you want to save the current operation? Let JS be able to call the SWF inside the method, need to flex add a callback function// Registering external functions Externalint
Stage.displaystate = Stagedisplaystate.full_screen; can set SWF to the screen mode;If this sentence is written directly on the first frame, the exported SWF will automatically become full-screen when it is opened, but after being loaded with HTML, it still cannot be full-screen, even if the value of allowFullScreen is true.If the event is used to trigger the full screen, there is a button on the stage, and
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
The Security Sandbox of as3 is really helpless. This article is only used to solve a specific problem, that is, the SWF file on server a accesses files on server B through HTTP, in this case, even if allowdomain is set on server B. XML does not help. The files loaded on server B are excluded from the required allowdomain. security. allowdomain ("*") can eliminate the Security Sandbox (Note: Only SWF files c
The webpage can pass variables to flash through the SWF address and pass them as value pairs, as shown below:
Id = "loaderinfosample" width = "100%" Height = "100%"Codebase = "http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">Width = "100%" Height = "100%" name = "loaderinfosample" align = "Middle"Play = "true"Loop = "false"Quality = "high"AllowScriptAccess = "samedomain"Type = "application/X-Shockwave-flash"Pluginspage = "http://w
For more information about how to modify the ac file and generate the swf actionscript illiterate file, you can use FaustCplus in the project. today, I am not working. that is, after uploading a photo, the preview is unsuccessful. if you have checked it online, this version supports flash 9 to 13, but the personal computer version is 14 (Click here to view the local flash version). Therefore, you need to change one of the as files, how can I generate
Often we are doing a demo is used to slide, but sometimes with the flash format color effect may be better, release ppt, if there is a demonstration, more intuitive, not only can increase the access rate, but also improve the download volume, that how the PPT format directly into Flash animation demo?
Tools/raw Materials
· PowerPoint slides
· ispring free 6.2.0 tool 32-bit download 64-bit download
Method/Step
1. Ispring Free is a freeware PowerPoint turn flash/
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.