Editing TextFieldX
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 2: | Line 2: | ||
<pre> | <pre> | ||
package | package | ||
{ | { | ||
import flash.html.HTMLLoader; | |||
import flash.net.URLRequest; | |||
import flash.display.Sprite; | import flash.display.Sprite; | ||
public class | public class HTMLLoaderX extends Sprite | ||
{ | { | ||
public var | public var html:HTMLLoader; | ||
private var url:String = "http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/index.html"; | |||
public function | public function HTMLLoaderX() | ||
{ | { | ||
html = new HTMLLoader(); | |||
html.width = stage.stageWidth; | |||
html.height = stage.stageHeight; | |||
html.load(new URLRequest(url)); | |||
addChild(html); | |||
addChild( | |||
} | } | ||