apache-royale

What's the difference between id and localId in Apache Royale?

扶醉桌前 提交于 2021-01-27 17:49:39
问题 In Apache Royale we can identify objects with " id " and " localId " properties. The problem is to know why we have two ways of doing the same apparently. 回答1: I found the Answer and sharing solution: HTML requires ID's that are unique, so by creating Royale components that internally use ID's to identify the inner sub-components this means the same ID will be used in all instances created and therefore generating a problem of lack of uniqueness . Solution : Use " localId " in the inner

Issue on resize Event with Apache Royale SDK 0.9.6

喜欢而已 提交于 2019-12-13 04:36:30
问题 How to handle parent container resize Event or at least browser resize Event ? I try this code, but handleResize is never call : package { //import org.apache.royale.html.Group; import org.apache.royale.jewel.Group; import org.apache.royale.core.BrowserResizeListener; public class Slideshow extends Group { public function Slideshow(){ super(); this.addBead(new BrowserResizeListener()); this.addEventListener("sizeChanged",handleResize); } protected function handleResize():void{ // this is