-
OK. flex can write custom validations and write validations according to your needs. Here's an example:
package mycompenent private var results:array;Define an array to store errors Override protected function dovalidation(value:object):
array return results;5) The extends keyword indicates inheritance. (6) The super keyword indicates the method in the inherited subclass, so the "statement" indicates the dovalidator method in the inherited subclass. (7) The override keyword represents a rewrite function.
8) The validationresult class is the validation result class, which is contained in ". The constructor of the validationresult class has four parameters. The first parameter indicates whether it is an error type, the second parameter indicates a specific property, the third parameter indicates the error type, and the fourth parameter indicates an error message.
9) The "stringtoolong" error type is customized in this program, and it prompts "The character length is more than 6". This error occurs when the length of the data component is more than 6 bits. (4) Call the custom validation class.
The namespace must be indicated when calling a custom component. The components provided by Flex are all in the "MX" namespace, so they are automatically generated when you create a new MXML.
Statement. The syntax for referencing a custom component is shown below. Outermost Component .... xmlns:
Space name ="The package to which the class belongs"> …Space Name: The space name of the custom component > can be arbitrarily named. The package to which the class belongs must be the same as the package keyword when the class was defined.
The following ** refers to the custom component.
xmlns:mycomp="mycompenent.*"> …The following ** calls the myvalidator component to validate the data in the input box.
xmlns:mycomp="mycompenent.*" fontsize="13">
-
All components that can get focus can listen for focus in events. Add this event to all the components you want to judge, and you will know which component gets the focus after receiving the event.
-
Hello yes, you use this class in two files, it will generate two instances, the operation of i is carried out in two classes separately, you can define i as static, that is, static;
private static var i:int = 10;
-
You open the debug view, in the upper right corner, you want to see, you set a breakpoint here, debug the program, when you hit this breakpoint, the program will stop here, the "variables" view can display the value of name, and there is a yellow bottom box.
-
Selecting a row is OK, but selecting a cell doesn't seem to work.
You can assign the contents of this line to a variable or a control!
The implementation is:
Load the SQL statement into the MSHflex control by clicking on the row.
dim str as string
for i =0 to 9 'You **** have 10 columns str= , i).'textmatrix method: text1=str
next i
If you need to get unknown rows or columns, you can write nested for loops.
Pure handwriting, I hope it can help you, I don't know how to ask!
-
Write a VO first
2.Then write on it: This is the method added: public function addbuttonmember():void
else if("icons/")
Layout of the page:
In this way, the backend can receive the parameters from the page at one time!
-
OK. flex can write custom validations and write validations according to your needs. Here's an example:
package mycompenent { import ;reference validator class import ; Reference validationresult class public class myvalidators....
-
Set up a singleton class that holds all the applied objects, arrays, addresses, etc.
In winter, you can use lotus leaves and hawthorn to make tea, but it must be in moderation. Hawthorn has a high medicinal value. According to pharmacological analysis, hawthorn contains 3 patches, lipases, flavonoids and cortidine and other pharmaceutical ingredients, which can enhance the regulation of myocardium and help promote cholesterol. >>>More
oleobject object.
See the Properties Method Event Property. >>>More
Here I'll explain to you the ghost recovery system, unless you have any software that is not compatible with it, it is generally impossible to recover, I mean you install the ghost you made yourself >>>More
After the closure of the domestic waste landfill, the content of the garbage with organic matter accounting for the majority is degraded year by year, and the basic degradation of organic matter is generally completed for more than ten years, and the garbage dump is smaller than the initial volume of the landfill, that is, there is a great settlement. The contents are humus, sand, plastic, metal. In this kind of place, the foundation is not easy to stabilize, and the amount of pollutants is large, it can be used as a green site, and many landfills in foreign countries build green space projects on it after many years of closure. >>>More
Yes, the function of the separator is to separate the egg whites and leave the yolks behind. >>>More