{"id":82,"date":"2010-02-15T12:00:54","date_gmt":"2010-02-15T12:00:54","guid":{"rendered":"http:\/\/www.masterlevel.de\/blog\/?p=82"},"modified":"2010-02-15T12:00:54","modified_gmt":"2010-02-15T12:00:54","slug":"asfunction-in-as3","status":"publish","type":"post","link":"https:\/\/www.masterlevel.de\/blog\/asfunction-in-as3\/","title":{"rendered":"&#8222;asfunction&#8220; in AS3"},"content":{"rendered":"<p>Die Methodik mittels &#8222;asfunction&#8220; aus einem Textfeld eine interne Funktion aufzurufen, exisitiert in AS3 nicht mehr. Das funktioniert nun so:<\/p>\n<pre lang=\"Actionscript\">\r\n\r\nvar txtF:TextField = new TextField();\r\ntxtF.autoSize = TextFieldAutoSize.LEFT;\r\ntxtF.htmlText = 'Ein Testlink, klick mich <a href=\"event:1 2 3 4 ...\"><u>jetzt<\/u><\/a>!';\r\naddChild(txtF);\r\n\r\ntxtF.addEventListener(TextEvent.LINK,myLinkFunction);\r\n\r\nfunction myLinkFunction(e:TextEvent):void {\r\n    trace(e.text); \r\n}\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Die Methodik mittels &#8222;asfunction&#8220; aus einem Textfeld eine interne Funktion aufzurufen, exisitiert in AS3 nicht mehr. Das funktioniert nun so: var txtF:TextField = new TextField(); txtF.autoSize = TextFieldAutoSize.LEFT; txtF.htmlText = &#8218;Ein Testlink, klick mich jetzt!&#8216;; addChild(txtF); txtF.addEventListener(TextEvent.LINK,myLinkFunction); function myLinkFunction(e:TextEvent):void { trace(e.text); }<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,28,4],"tags":[34,35,36],"class_list":["post-82","post","type-post","status-publish","format-standard","hentry","category-as3","category-beginner","category-flash","tag-asfunction","tag-event","tag-htmltext"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>&quot;asfunction&quot; in AS3 - masterlevel<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.masterlevel.de\/blog\/asfunction-in-as3\/\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"J. Adler\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/asfunction-in-as3\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/asfunction-in-as3\\\/\"},\"author\":{\"name\":\"J. Adler\",\"@id\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/#\\\/schema\\\/person\\\/e6868eda89eb09db99b63d9d8dd4b63f\"},\"headline\":\"&#8222;asfunction&#8220; in AS3\",\"datePublished\":\"2010-02-15T12:00:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/asfunction-in-as3\\\/\"},\"wordCount\":23,\"commentCount\":0,\"keywords\":[\"asfunction\",\"event\",\"htmltext\"],\"articleSection\":[\"AS3\",\"Beginner\",\"Flash\"],\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/asfunction-in-as3\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/asfunction-in-as3\\\/\",\"url\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/asfunction-in-as3\\\/\",\"name\":\"\\\"asfunction\\\" in AS3 - masterlevel\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/#website\"},\"datePublished\":\"2010-02-15T12:00:54+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/#\\\/schema\\\/person\\\/e6868eda89eb09db99b63d9d8dd4b63f\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/asfunction-in-as3\\\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/\",\"name\":\"masterlevel\",\"description\":\"Manche Sachen vergi\u00dft man, weil man sie nicht oft braucht - deshalb stehen sie hier...\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/#\\\/schema\\\/person\\\/e6868eda89eb09db99b63d9d8dd4b63f\",\"name\":\"J. Adler\",\"url\":\"https:\\\/\\\/www.masterlevel.de\\\/blog\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\"asfunction\" in AS3 - masterlevel","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.masterlevel.de\/blog\/asfunction-in-as3\/","twitter_misc":{"Verfasst von":"J. Adler"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.masterlevel.de\/blog\/asfunction-in-as3\/#article","isPartOf":{"@id":"https:\/\/www.masterlevel.de\/blog\/asfunction-in-as3\/"},"author":{"name":"J. Adler","@id":"https:\/\/www.masterlevel.de\/blog\/#\/schema\/person\/e6868eda89eb09db99b63d9d8dd4b63f"},"headline":"&#8222;asfunction&#8220; in AS3","datePublished":"2010-02-15T12:00:54+00:00","mainEntityOfPage":{"@id":"https:\/\/www.masterlevel.de\/blog\/asfunction-in-as3\/"},"wordCount":23,"commentCount":0,"keywords":["asfunction","event","htmltext"],"articleSection":["AS3","Beginner","Flash"],"inLanguage":"de","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.masterlevel.de\/blog\/asfunction-in-as3\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.masterlevel.de\/blog\/asfunction-in-as3\/","url":"https:\/\/www.masterlevel.de\/blog\/asfunction-in-as3\/","name":"\"asfunction\" in AS3 - masterlevel","isPartOf":{"@id":"https:\/\/www.masterlevel.de\/blog\/#website"},"datePublished":"2010-02-15T12:00:54+00:00","author":{"@id":"https:\/\/www.masterlevel.de\/blog\/#\/schema\/person\/e6868eda89eb09db99b63d9d8dd4b63f"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.masterlevel.de\/blog\/asfunction-in-as3\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.masterlevel.de\/blog\/#website","url":"https:\/\/www.masterlevel.de\/blog\/","name":"masterlevel","description":"Manche Sachen vergi\u00dft man, weil man sie nicht oft braucht - deshalb stehen sie hier...","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.masterlevel.de\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":"Person","@id":"https:\/\/www.masterlevel.de\/blog\/#\/schema\/person\/e6868eda89eb09db99b63d9d8dd4b63f","name":"J. Adler","url":"https:\/\/www.masterlevel.de\/blog\/author\/admin\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.masterlevel.de\/blog\/wp-json\/wp\/v2\/posts\/82","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.masterlevel.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.masterlevel.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.masterlevel.de\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.masterlevel.de\/blog\/wp-json\/wp\/v2\/comments?post=82"}],"version-history":[{"count":2,"href":"https:\/\/www.masterlevel.de\/blog\/wp-json\/wp\/v2\/posts\/82\/revisions"}],"predecessor-version":[{"id":84,"href":"https:\/\/www.masterlevel.de\/blog\/wp-json\/wp\/v2\/posts\/82\/revisions\/84"}],"wp:attachment":[{"href":"https:\/\/www.masterlevel.de\/blog\/wp-json\/wp\/v2\/media?parent=82"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.masterlevel.de\/blog\/wp-json\/wp\/v2\/categories?post=82"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.masterlevel.de\/blog\/wp-json\/wp\/v2\/tags?post=82"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}