Wednesday, February 27, 2008

Flash AC_FL_RunContent javascript to flash

http://www.kirupa.com/forum/archive/index.php/t-237993.html

Flash swfobject

http://blog.deconcept.com/2006/08/03/swfobject-144-released/

Friday, February 22, 2008

CSS reference

http://www.smashingmagazine.com/2008/02/21/powerful-css-techniques-for-effective-coding/

Thursday, February 7, 2008

sendandload php with xml

http://vinodvv.wordpress.com/2006/04/26/flash-sendandload-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

Flash textfield properties, methods, event handlers

Method summary for the TextField object

Method Description

TextField.addListener

Registers an object to receive notification when the onChanged and oNScroller events are invoked.

TextField.getDepth

Returns the depth of a text field.

TextField.getNewTextFormat

Gets the default text format assigned to newly inserted text.

TextField.removeListener

Removes a listener object.

TextField.removeTextField

Removes a text field that was created with MovieClip.createTextField.

TextField.setNewTextFormat

Sets a text format object for text that is inserted by a user or by a method.

TextField.replaceSel

Replaces the current selection.

TextField.setTextFormat

Sets the default text format assigned to newly inserted text.




Property summary for the TextField object

Property Description

TextField._alpha

The transparency value of a text field instance.

TextField.autoSize

Controls automatic alignment and sizing of a text field.

TextField.background

Indicates if the text field has a background fill.

TextField.backgroundColor

Indicates the color of the background fill.

TextField.border

Indicates if the text field has a border.

TextField.borderColor

Indicates the color of the border.

TextField.bottomScroll

The bottommost visible line in a text field. Read-only.

TextField.embedFonts

Indicates whether the text field uses embedded font outlines or device fonts.

TextField._highquality

Indicates the rendering quality of the movie.

TextField._height

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.

TextField.hscroll

Indicates the horizontal scroll value of a text field.

TextField.html

Indicates the current maximun scrolling position of a text field.

TextField.htmlText

Contains the HTML representation of a text field's contents.

TextField.length

The number of characters in a text field. Read-only.

TextField.maxChars

The maximum number of characters that a text field can contain.

TextField.maxhscroll

The maximum value of TextField.hscroll. Read-only.

TextField.maxscroll

The maximum value of TextField.scroll. Read-only.

TextField.multiline

Indicates if the text field contains multiple lines.

TextField._name

The instance name of a text field instance.

TextField._parent

A reference to the instance that is the parent of this instance; either of type Button or MovieClip.

TextField.password

Indicates if a text field hides the input characters.

TextField._quality

Indicates the rendering quality of a movie.

TextField.restrict

The set of characters that a user can enter into a text field.

TextField._rotation

The degree of rotation of a text field instance.

TextField.scroll

Indicates the current scrolling position of a text field.

TextField.selectable

Indicates whether a text field is selectable.

TextField._soundbuftime

The amount of time a sound must prebuffer before it streams.

TextField.tabEnabled

Indicates whether a movie clip is included in automatic tab ordering.

TextField.tabIndex

Indicates the tab order of an object.

TextField._target

Returns the target path of the specified text field instance. Read-only.

TextField.text

The current text in the text field.

TextField.textColor

The color of the current text in the text field.

TextField.textHeight

The height of the text field's bounding box.

TextField.textWidth

The width of the text field's bounding box.

TextField.type

Indicates whether a text field is an input text field or dynamic text field.

TextField._url

The URL of the SWF file that created the text field instance. Read-only.

TextField.variable

The variable name associated with the text field.

TextField._visible

A Boolean value that determines whether a text field instance is hidden or visible.

TextField._width

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.

TextField.wordWrap

Indicates whether the text field word-wraps.

TextField._x

The x coordinate of a text field instance

TextField._xmouse

The x coordinate of the cursor relative to a text field instance. Read-only.

TextField._xscale

The value specifying the percentage for horizontally scaling a text field instance.

TextField._y

The y coordinate of a text field instance.

TextField._ymouse

The y coordinate of the cursor relative to a text field instance. Read-only.

TextField._yscale

The value specifying the percentage for vertically scaling a text field instance.




Event handler summary for the TextField object

Method Description

TextField.onChanged

Invoked when the text field is changed.

TextField.onKillFocus

Invoked when the text field loses focus.

TextField.onScroller

Invoked when the scroll, maxscroll, hscroll, maxhscroll, or bottomscroll property of a text field changes.

TextField.onSetFocus

Invoked when the text field receives focus.




Listener summary for the TextField object

Method Description

TextField.onChanged

Notified when the text field is changed.

TextField.onScroller

Notified when the scroll or maxscroll property of a text field changes.