{"id":8593,"date":"2014-01-27T13:52:24","date_gmt":"2014-01-27T12:52:24","guid":{"rendered":"http:\/\/fdt.powerflasher.com\/?p=8593"},"modified":"2014-01-27T13:53:08","modified_gmt":"2014-01-27T12:53:08","slug":"improved-event-listener-autocompletion","status":"publish","type":"post","link":"https:\/\/fdt.powerflasher.com\/blog\/2014\/01\/improved-event-listener-autocompletion\/","title":{"rendered":"Improved Event (Listener) Autocompletion"},"content":{"rendered":"<p>Now FDT Event Autocompletion is also available for the <strong>Starling framework<\/strong>:<\/p>\n<p><a href=\"http:\/\/fdt.powerflasher.com\/wp-content\/uploads\/2014\/01\/StarlingEventsAutoCompletion.png\"><img loading=\"lazy\" src=\"http:\/\/fdt.powerflasher.com\/wp-content\/uploads\/2014\/01\/StarlingEventsAutoCompletion-440x207.png\" alt=\"StarlingEventsAutoCompletion\" width=\"440\" height=\"207\" class=\"alignnone size-medium wp-image-8594\" srcset=\"https:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2014\/01\/StarlingEventsAutoCompletion-440x207.png 440w, https:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2014\/01\/StarlingEventsAutoCompletion-230x108.png 230w, https:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2014\/01\/StarlingEventsAutoCompletion.png 879w\" sizes=\"(max-width: 440px) 100vw, 440px\" \/><\/a><br \/>\nHere you can see that all available starling events for the <em>Starling Sprite<\/em>.<br \/>\n<br \/>\nThe event listener quick fix can handle the starling events, too:<\/p>\n<p><a href=\"http:\/\/fdt.powerflasher.com\/wp-content\/uploads\/2014\/01\/StarlingEventHandlerQuickFix.png\"><img loading=\"lazy\" src=\"http:\/\/fdt.powerflasher.com\/wp-content\/uploads\/2014\/01\/StarlingEventHandlerQuickFix-440x191.png\" alt=\"StarlingEventHandlerQuickFix\" width=\"440\" height=\"191\" class=\"alignnone size-medium wp-image-8595\" srcset=\"https:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2014\/01\/StarlingEventHandlerQuickFix-440x191.png 440w, https:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2014\/01\/StarlingEventHandlerQuickFix-230x100.png 230w, https:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2014\/01\/StarlingEventHandlerQuickFix.png 1020w\" sizes=\"(max-width: 440px) 100vw, 440px\" \/><\/a><br \/>\n<br \/>\nThe event listener name is now customizable:<\/p>\n<p><a href=\"http:\/\/fdt.powerflasher.com\/wp-content\/uploads\/2014\/01\/EventListernerNameSetting.png\"><img loading=\"lazy\" src=\"http:\/\/fdt.powerflasher.com\/wp-content\/uploads\/2014\/01\/EventListernerNameSetting-440x484.png\" alt=\"EventListernerNameSetting\" width=\"440\" height=\"484\" class=\"alignnone size-medium wp-image-8596\" srcset=\"https:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2014\/01\/EventListernerNameSetting-440x484.png 440w, https:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2014\/01\/EventListernerNameSetting-230x253.png 230w, https:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2014\/01\/EventListernerNameSetting.png 560w\" sizes=\"(max-width: 440px) 100vw, 440px\" \/><\/a><br \/>\nThe short listener name will be the concatenation of \u201chandle\u201d and the name of the event with first letter upper case.<br \/>\n<br \/>\nFor example if the event is <em>ADDED<\/em> the event listener name will be \u201chandleAdded\u201d as you can see here:<br \/>\n<a href=\"http:\/\/fdt.powerflasher.com\/wp-content\/uploads\/2014\/01\/EventListenerNameModified.png\"><img loading=\"lazy\" src=\"http:\/\/fdt.powerflasher.com\/wp-content\/uploads\/2014\/01\/EventListenerNameModified-440x271.png\" alt=\"EventListenerNameModified\" width=\"440\" height=\"271\" class=\"alignnone size-medium wp-image-8597\" srcset=\"https:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2014\/01\/EventListenerNameModified-440x271.png 440w, https:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2014\/01\/EventListenerNameModified-230x142.png 230w, https:\/\/fdt.powerflasher.com\/blog\/wp-content\/uploads\/2014\/01\/EventListenerNameModified.png 722w\" sizes=\"(max-width: 440px) 100vw, 440px\" \/><\/a><br \/>\nThe long listener name is the concatenation of \u201con\u201d the event name, underscore and source (i.e. name of the accessed variable with first letter lower case).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now FDT Event Autocompletion is also available for the Starling framework: Here you can see that all available starling events for the Starling Sprite. The event listener quick fix can handle the starling events, too: The event listener name is now customizable: The short listener name will be the concatenation of \u201chandle\u201d and the name [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,4],"tags":[],"_links":{"self":[{"href":"https:\/\/fdt.powerflasher.com\/blog\/wp-json\/wp\/v2\/posts\/8593"}],"collection":[{"href":"https:\/\/fdt.powerflasher.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fdt.powerflasher.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fdt.powerflasher.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/fdt.powerflasher.com\/blog\/wp-json\/wp\/v2\/comments?post=8593"}],"version-history":[{"count":9,"href":"https:\/\/fdt.powerflasher.com\/blog\/wp-json\/wp\/v2\/posts\/8593\/revisions"}],"predecessor-version":[{"id":8606,"href":"https:\/\/fdt.powerflasher.com\/blog\/wp-json\/wp\/v2\/posts\/8593\/revisions\/8606"}],"wp:attachment":[{"href":"https:\/\/fdt.powerflasher.com\/blog\/wp-json\/wp\/v2\/media?parent=8593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fdt.powerflasher.com\/blog\/wp-json\/wp\/v2\/categories?post=8593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fdt.powerflasher.com\/blog\/wp-json\/wp\/v2\/tags?post=8593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}