Wednesday, February 27, 2008
Flash AC_FL_RunContent javascript to flash
Friday, February 22, 2008
Thursday, February 7, 2008
sendandload php with xml
var submitListener:Object = new Object();
submitListener.click = function(evt:Object) {
var result_lv:LoadVars = new LoadVars();
result_lv.onLoad = function(success:Boolean) {
if (success) {
result_ta.text = result_lv.welcomeMessage;} else {
result_ta.text = "Error connecting to server.";
}
};
var result_xml:XML = new XML();
result_xml.ignoreWhite = true;
result_xml.onLoad = function(s){
if(s){
result_ta.text = this.firstChild;
}else{
result_ta.text = "Error connecting to server.";
}
}
var send_lv:LoadVars = new LoadVars();
var xm:XML = new XML(""); vinod
xm.ignoreWhite = true;
xm.contentType = "text/xml";
send_lv.xm = xm;
send_lv.sendAndLoad("http://vinodvv/test/sendandloadxml.php", result_lv, "GET");
send_lv.sendAndLoad("http://vinodvv/test/sendandloadxml.php", result_xml, "GET");
};
submit_button.addEventListener("click", submitListener);
PHP Script:
$xml = $_GET['xm'];
echo $xml;
?>
Monday, February 4, 2008
Flash textfield properties, methods, events
Method summary for the TextField object
Method | Description |
Registers an object to receive notification when the onChanged and oNScroller events are invoked. | |
Returns the depth of a text field. | |
Gets the default text format assigned to newly inserted text. | |
Removes a listener object. | |
Removes a text field that was created with MovieClip.createTextField. | |
Sets a text format object for text that is inserted by a user or by a method. | |
Replaces the current selection. | |
Sets the default text format assigned to newly inserted text. |
Property summary for the TextField object
Property | Description |
The transparency value of a text field instance. | |
Controls automatic alignment and sizing of a text field. | |
Indicates if the text field has a background fill. | |
Indicates the color of the background fill. | |
Indicates if the text field has a border. | |
Indicates the color of the border. | |
The bottommost visible line in a text field. Read-only. | |
Indicates whether the text field uses embedded font outlines or device fonts. | |
Indicates the rendering quality of the movie. | |
The height of a text field instance in pixels. This only affects the bounding box of the text field, it does not affect the border thickness or text font size. | |
Indicates the horizontal scroll value of a text field. | |
Indicates the current maximun scrolling position of a text field. | |
Contains the HTML representation of a text field's contents. | |
The number of characters in a text field. Read-only. | |
The maximum number of characters that a text field can contain. | |
The maximum value of TextField.hscroll. Read-only. | |
The maximum value of TextField.scroll. Read-only. | |
Indicates if the text field contains multiple lines. | |
The instance name of a text field instance. | |
A reference to the instance that is the parent of this instance; either of type Button or MovieClip. | |
Indicates if a text field hides the input characters. | |
Indicates the rendering quality of a movie. | |
The set of characters that a user can enter into a text field. | |
The degree of rotation of a text field instance. | |
Indicates the current scrolling position of a text field. | |
Indicates whether a text field is selectable. | |
The amount of time a sound must prebuffer before it streams. | |
Indicates whether a movie clip is included in automatic tab ordering. | |
Indicates the tab order of an object. | |
TextField._target | Returns the target path of the specified text field instance. Read-only. |
The current text in the text field. | |
The color of the current text in the text field. | |
The height of the text field's bounding box. | |
The width of the text field's bounding box. | |
Indicates whether a text field is an input text field or dynamic text field. | |
The URL of the SWF file that created the text field instance. Read-only. | |
The variable name associated with the text field. | |
A Boolean value that determines whether a text field instance is hidden or visible. | |
The width of a text field instance in pixels. This only affects the bounding box of the text field, it does not affect the border thickness or text font size. | |
Indicates whether the text field word-wraps. | |
The x coordinate of a text field instance | |
The x coordinate of the cursor relative to a text field instance. Read-only. | |
The value specifying the percentage for horizontally scaling a text field instance. | |
The y coordinate of a text field instance. | |
The y coordinate of the cursor relative to a text field instance. Read-only. | |
The value specifying the percentage for vertically scaling a text field instance. |
Event handler summary for the TextField object
Method | Description |
Invoked when the text field is changed. | |
TextField.onKillFocus | Invoked when the text field loses focus. |
Invoked when the scroll, maxscroll, hscroll, maxhscroll, or bottomscroll property of a text field changes. | |
Invoked when the text field receives focus. |
Listener summary for the TextField object
Method | Description |
Notified when the text field is changed. | |
Notified when the scroll or maxscroll property of a text field changes. |