Re: [Royale|FlexJS] Questions about states

2017-10-24 Thread Olaf Krueger
Hi Yishay, it seems that I've overlooked your repo. Good idea and very helpful!!! I'll also check out the states source code... hope I'll understand the whole picture better. Thanks, Olaf -- Sent from: http://apache-royale-development.20373.n8.nabble.com/

Re: [Royale|FlexJS] Questions about states

2017-10-23 Thread Piotr Zarzycki
Olaf, Just one clarification question - If you would like to write states behavior in pure CSS/JS the same working as in current FlexJS ? Is this what you mean ? Piotr 2017-10-24 0:29 GMT+02:00 Olaf Krueger : > Hmmm.. it always seems to me that you are miles ahead cause

Re: [Royale|FlexJS] Questions about states

2017-10-23 Thread Olaf Krueger
Hmmm.. it always seems to me that you are miles ahead cause you all already thought about so much stuff and how to implement it. So sometimes it's still a bit hard for me to follow and I am pretty sure that I always miss some things ;-) So I would like to ask a maybe basically question: When I'd

Re: [Royale|FlexJS] Questions about states

2017-10-23 Thread Carlos Rovira
Hi Peter, I think you are right. Main need is to get AS3/MXML producing great HTML/JS/CSS, and SWF right now is in second place. I think it could be great to demonstrate that we can generate more outputs, but maybe WebASM, swift (iOS) and Java (Android) could be great outputs as well. But for

Re: [Royale|FlexJS] Questions about states

2017-10-23 Thread Peter Ent
I've been debating whether or not to send this, but given this discussion, I think it is appropriate. It is still unclear to me whether or not we code Royale with the priority on HTML/JS/CSS platform or SWF. Alex and I have talked about this and primarily the rule is: make it work for HTML/JS/CSS

Re: [Royale|FlexJS] Questions about states

2017-10-19 Thread Alex Harui
display:none is hooked up to the visible property. You can use states to change the visible property. IncludeIn/ExcludeFrom should operate on the DOM since there is no "property" that affects that. We could introduce an "includeInLayout" property that affects visibility:hidden, but I found that

Re: [Royale|FlexJS] Questions about states

2017-10-19 Thread Piotr Zarzycki
Hi Olaf, Yes they are working and in my first simple tests they seems to be working nicely with MDL module. I would not change their behavior in case of removing. I would rather improve it using your suggestion. 1) If some element in state "X" wasn't display yet it should not exists in the DOM -

Re: [Royale|FlexJS] Questions about states

2017-10-19 Thread Olaf Krueger
>States removes element from DOM I wonder why Royale states removes element from DOM instead of using the CSS properties visibility:hidden; (The element is hidden but still take up the same place) or display:none (The element is hidden and take up no space); Does somebody know what is the

Re: [Royale|FlexJS] Questions about states

2017-10-19 Thread Piotr Zarzycki
States seems to be working nicely :) One question I accidentally assign to currentState wrong state and my content just disappear. What actually should happen in that case. In my opinion - Should be thrown an exception. Thanks, Piotr 2017-10-19 22:23 GMT+02:00 Piotr Zarzycki

Re: [Royale|FlexJS] Questions about states

2017-10-19 Thread Piotr Zarzycki
Ahh! It was problem on my sight. In Application need to be declared "SimpleStatesImpl" [1] [1] https://paste.apache.org/HEDa Piotr 2017-10-19 22:14 GMT+02:00 Piotr Zarzycki : > Harbs, > > States removes element from DOM, so this is very different than just > setting

Re: [Royale|FlexJS] Questions about states

2017-10-19 Thread Piotr Zarzycki
Harbs, States removes element from DOM, so this is very different than just setting visible to false, but agree with you that the results for the user is the same. Thanks for sharing your thoughts! 2017-10-19 22:06 GMT+02:00 Harbs : > States cause elements to be added

Re: [Royale|FlexJS] Questions about states

2017-10-19 Thread Harbs
States cause elements to be added and removed. FWIW, I have found little reason to use States in Royale because setting visible to false causes elements to take up no space. Hence I’ve never really spent time looking into them. Harbs > On Oct 19, 2017, at 11:02 PM, Piotr Zarzycki

[Royale|FlexJS] Questions about states

2017-10-19 Thread Piotr Zarzycki
Hi Guys, I'm trying to understand how states are working. I have simple code which should actually work. I'm using latest FlexJS from develop - not Royale yet. [1] Am I doing something wrong ? Can someone shed some light how internally States are working ? I would like to debug things, but not