Currently, if javascript is used to write the code copied to the clipboard, it is generally not compatible with browsers. So we can use flash to simulate a layer and then copy it to make it suitable for all browsers ~Download a swf file and a js file. Put the two files together with htm.Figure:
It must be used on the server.
Figure:
JS Code:
Copy codeThe Code is as follows:
ZeroClipboard. js
// Simple
. fla extension
var dir = name.substring (0, name.length-4)
var items = doc.library.items;
Path = path + dir;
Create a directory
Flfile.createfolder (path) with the same name as the FLA in the output path;
for (i = 0; i
The above is a JSFL file code that puts this code in a notepad with the suffix name changed to. JSFL here named EXPORTFILE.JSFL use Adobe Flash CS to open a FLA click commands--> Run Command ... Select EXPORTFILE.JSFL. The FLA
Javascript is used to write the code copied to the clipboard, which is generally incompatible with browsers. So we can use flash to simulate a layer and then copy it to make it suitable for all browsers. The specific implementation is as follows. If you are interested, refer to the following, if javascript is used to write the code copied to the clipboard, it is generally not compatible with the browser. So
In Flash Player 10.1 and later versions, adobe added the global error handling program UncaughtErrorEvents. Errors generated anywhere in the world can be captured in the capture and bubble phases if they are not captured.
The UncaughtErrorEvents object of the scheduled event is associated with the LoaderInfo object or Loader object. Use the following attributes to access the uncaughtErrorEvents instance:
After printing it back in the text printing room, all the folders in the USB flash drive are hidden, and the "hidden" items in the folder attributes cannot be changed. You can use the command line to solve this problem: first, press win + R to open the "run" window. Enter cmd and press enter to open the Command Prompt window. If the drive letter of the USB flash
Currently, if you use JavaScript to write code that is copied to the Clipboard, it is generally not compatible with browsers. So the way to use flash, simulation of a layer, and then to copy, you can do all the browser application Oh ~
Need to download a SWF file, and a JS file. Put the two files, and the HTM together.
Icon:
Must be placed on the server side to use OH.
Icon:
JS Code:
Copy Co
The first statement is:
Function limitToNum (){
If (this. text! = "-" IsNaN (this. text )){
This. text = '';
}
}
A_txt.onChanged = limitToNum;
B _txt.onChanged = limitToNum;
C_txt.onChanged = limitToNum;
...
It was a little complicated and suddenly remembered 'prototype ':
TextField. prototype. onChanged = function (){
If (this. text! = "-" IsNaN (this. text )){
This. text = '';
}
};
This restricts all dynamic text input boxes in
Random
In Flash authoring, most people are not too concerned about library management, the English version of the library is symbol 1, symbol 2, Symbol 3 ..., Chinese version is component 1, component 2, component 3 ...
This way, if you encounter a duplicate copy between Flash and you do not want to replace it, you must rename it in the library. Here's a simple workaround: Randomly name
5, about the text import
View the About sub column of this example and set the action on the About button in the file Index.fla:
On (release) {
Loadmovienum ("aboutus.swf", 1);
Unloadmovienum (2);
}
In the Aboutus.fla file, make a text box that displays text, set the text box property to Multiline (Multiline), and var:aboutus (note the variable name).
Add ActionScript code to the frame where the text box is located: Loadvariables ("Aboutus.txt", "");
Write a plain text file in the directory
Obtain all flash addresses on the page
In the address bar, enterJavascript :( function () {var B = document. body, O = B. getelementsbytagname ("object"), a = [], I = 0, H; For (; I
Solve the problem that all applications in Windows 8.1 (Modern App) cannot be opened (flash back), 8.1app
I have encountered this problem on three computers. The problem is that all apps installed in the App Store cannot be opened, including the App Store itself. After clicking the application on the Start interface, the Logo of the application flashed, and then
The dynamic is just beginning with the following:
function Limittonum () {
if (This.text!= "-" isNaN (This.text)) {
This.text = ';
}
}
a_txt.onchanged = Limittonum;
b_txt.onchanged = Limittonum;
c_txt.onchanged = Limittonum;
... Found a little cumbersome, suddenly remembered ' prototype ':
TextField.prototype.onChanged = function () {
if (This.text!= "-" isNaN (This.text)) {
This.text = ';
}
This limits all dynamic text entry boxes in
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.