Re: Displaying text in MXML

2022-05-18 Thread Edward Stangler
Yes, CDATA should work. The following works in Flex: http://ns.adobe.com/mxml/2009; xmlns:mx="library://ns.adobe.com/flex/mx"> The only thing you have to escape in CDATA is "]]>". (You would replace it with

Re: compiler issue or not ?

2022-05-18 Thread contact
Done : https://github.com/apache/royale-compiler/issues/212 Le 2022-05-18 23:26, Greg Dove a écrit : Please report that as an issue. For the first one, I assume it is generating something like d1.setHours(d1.setMinutes(d1.setMillseconds(0))) ? That is going to cause problems, because each of

Re: compiler issue or not ?

2022-05-18 Thread contact
You are totally right : var /** @type {Date} */ d1 = new Date(); d1.setHours(d1.setMinutes(d1.setMilliseconds(0))); org.apache.royale.utils.Language.trace("d1->" + d1.getTime()); Le 2022-05-18 23:26, Greg Dove a écrit : Please report that as an issue. For the first one, I assume it is

Re: compiler issue or not ?

2022-05-18 Thread Greg Dove
Please report that as an issue. For the first one, I assume it is generating something like d1.setHours(d1.setMinutes(d1.setMillseconds(0))) ? That is going to cause problems, because each of those methods returns the 'getTime()' value, and not the value that was set. On Thu, May 19, 2022 at

compiler issue or not ?

2022-05-18 Thread contact
Hi All, I notice something strange (using sdk 0.9.9), take this code : var d1:Date = new Date(); d1.hours = d1.minutes = d1.milliseconds = 0; trace ("d1->" + d1.getTime()); var d2:Date = new Date(); d2.hours = 0; d2.minutes = 0; d2.milliseconds = 0; trace ("d2->" + d2.getTime()); It will

Re: Quick check on Linting tools for Apache Royale

2022-05-18 Thread Greg Dove
Hi Josh, That does sound like a great idea to me. I'm not sure to what degree I could help, but if you do get to the point where you want to work on such a thing, and assuming I can find the time, I'd be happy to help. -Greg On Thu, May 19, 2022 at 6:29 AM Josh Tynjala wrote: > I wonder if

Re: [Non-DoD Source] Quick check on Linting tools for Apache Royale

2022-05-18 Thread Greg Dove
Hi Mark, I appreciate you sharing your more recent experience - it sounds like SonarQube remains the most viable option for now... Thanks, Greg On Thu, May 19, 2022 at 5:20 AM Kessler CTR Mark J wrote: > Greg, > We actually still use SonarQube for AS file scanning as AS3 does not > have

Re: Quick check on Linting tools for Apache Royale

2022-05-18 Thread Josh Tynjala
I wonder if it makes sense to create a new linter for Royale. Similar to the new formatter that I recently created, where there could be a command line interface and a Java API for integration into tooling. -- Josh Tynjala Bowler Hat LLC On Tue, May 17, 2022 at 9:51 PM

RE: [Non-DoD Source] Quick check on Linting tools for Apache Royale

2022-05-18 Thread Kessler CTR Mark J
Greg, We actually still use SonarQube for AS file scanning as AS3 does not have a lot of actively developed utilities in this area. You do have to customize their rules list to be more appropriate, but it does give you a 70% solution. You are correct about it not working on any code

RE: TileHorizontalLayout compute wrong margin-right in case of scroller (ignoring scrollbar width) (Issue #1193)

2022-05-18 Thread Maria Jose Esteve
Hi, cristallium, I have uploaded the proposed changes [bae2b99] It works for me, try it yourself and if you have any problem let me know. [bae2b99] https://github.com/apache/royale-asjs/commit/bae2b992fc13cd365b5a0148f5828fe68256a1e0 Hiedra De: cont...@cristallium.com Enviado el: lunes, 9 de

RE: New Interface Jewel

2022-05-18 Thread Maria Jose Esteve
Hi, I have made the changes. [#1197] I don't think it will cause errors in current user implementations, I have tried to make it compatible (both for usage and extension). I have compiled TDJ and the operation of the ComboBox and DateField controls is as expected. If anyone sees any problems