Re: Casting workarounds

2021-04-21 Thread Harbs
Huh. I didn’t remember that you did that. There’s a JSONReviver class in Reflection and a JSON2ASVO example project which seems to demo how to use it. Harbs > On Apr 21, 2021, at 7:45 PM, Alex Harui wrote: > > FWIW, IMO, it is a bit easier for data to be untyped in Royale than it was in > Fl

Re: Casting workarounds

2021-04-21 Thread Alex Harui
FWIW, IMO, it is a bit easier for data to be untyped in Royale than it was in Flex. Flex was designed to support strongly-typed data coming from Flex Data Services, SOAP, and RemoteObject/AMF before REST-ful JSON services became popular. Also the Flash runtime verifier was way more likely to c

Re: Casting workarounds

2021-04-21 Thread Josh Tynjala
I guess Features and Concepts -> ActionScript 3 (AS3) would be the correct category in the docs. Ideally, this category will eventually be filled with many pages that teach a user how to use each of the language features of AS3. So there should probably be a page that teaches how to cast an object

Re: Casting workarounds

2021-04-21 Thread Andrew Wetmore
Where in the docs should I capture this wisdom? On Wed., Apr. 21, 2021, 12:57 p.m. Josh Tynjala, wrote: > Just like how things worked in Flash, you can't just cast a random `var > obj:Object = {}` to a class. It needs to be a real instance of that class. > The basic rule to keep in mind is this:

Re: Casting workarounds

2021-04-21 Thread Josh Tynjala
Just like how things worked in Flash, you can't just cast a random `var obj:Object = {}` to a class. It needs to be a real instance of that class. The basic rule to keep in mind is this: You can use `as CustomVO` with something that was created with `new CustomVO()`. For any other type, an as cast

Jewel DateChooser

2021-04-21 Thread Alina Kazi
Hi, We are facing some problems with dateChooser Rendering in Jewel. Example is attached below [1] Screenshot [2] shows the renderer called twice, once with the correct index value and next time it is 0. Repeats for every DateChooser. We actually want to create a year calendar composed of 12 Jewel