Patches, wishes, proposes

9 views
Skip to first unread message

elffikk

unread,
Aug 11, 2011, 8:29:03 PM8/11/11
to Reflex Platform
hi,
I was busy a long time, and seems you guys were too,
mean while flex 4.5 was released and from what I saw reflex is on the
right path
it's size is perfect for many platforms supported now by flash
platform

I played multiple times and adjusted my reflex experiments to Ben's
changes (https://github.com/benstucki)
so I would like to post some of them

elffikk

unread,
Aug 11, 2011, 9:20:59 PM8/11/11
to Reflex Platform
I put latest version of reflex including my rxg library (rxg stands
for reflex graphics) to google code
https://code.google.com/p/reflex-platform/

but I also changed a few files:

1. List component dispatches a itemClick event:
2. Selected item <--> render click made bidirectional (make sense?):
when selectedItem is set outside of the list the r

https://code.google.com/p/reflex-platform/source/browse/trunk/src/reflex/components/List.as
https://github.com/benstucki/reflex/blob/master/src/reflex/components/List.as

https://code.google.com/p/reflex-platform/source/browse/trunk/src/reflex/behaviors/ListSelectionBehavior.as
https://github.com/benstucki/reflex/blob/master/src/reflex/behaviors/ListSelectionBehavior.as

perhaps, there may be other changes too

elffikk

unread,
Aug 11, 2011, 9:25:23 PM8/11/11
to Reflex Platform
an example of skin



<?xml version="1.0" encoding="utf-8"?>
<Skin
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns="rxg.*"
xmlns:rx="http://rx.reflex.io/2010"
width="{labelDisplay+40}" height="{labelDisplay+14}"
>
<fx:Declarations>
<fx:Array>
<s:LinearGradient id="overFill" rotation="90">
<s:GradientEntry color="#222222" alpha="0.8"/>
<s:GradientEntry color="#FFFFFF" alpha="0.8"/>
</s:LinearGradient>
<s:LinearGradient id="downFill" rotation="90">
<s:GradientEntry color="#222222" alpha="0.8"/>
<s:GradientEntry color="#CCCCCC" alpha="0.8"/>
</s:LinearGradient>
<s:LinearGradient id="disabledFill" rotation="90">
<s:GradientEntry color="#333333" alpha="0.4"/>
<s:GradientEntry color="#666666" alpha="0.4"/>
</s:LinearGradient>
</fx:Array>
</fx:Declarations>

<states>
<s:State name="up" />
<s:State name="over" />
<s:State name="down" />
<s:State name="disabled" />
<s:State name="upAndSelected" stateGroups="selectedGroup"/>
<s:State name="overAndSelected" stateGroups="selectedGroup" />
<s:State name="downAndSelected" stateGroups="selectedGroup" />
<s:State name="disabledAndSelected" stateGroups="selectedGroup" />
</states>

<Rect id="rect" top="0" bottom="0" left="0" right="0" radiusX="10"
fill.over="{overFill}"
fill.down="{downFill}"
fill.disabled="{disabledFill}"
fill.selectedGroup="{overFill}"
>
<fill>
<s:LinearGradient id="upFill" rotation="90">
<s:GradientEntry color="#222222" alpha="0.6"/>
<s:GradientEntry color="#CCCCCC" alpha="0.6"/>
</s:LinearGradient>
</fill>
</Rect>

<Rect top="2" left="2" right="2" height="50%" topLeftRadius="19"
topRightRadius="19" bottomLeftRadius="4" bottomRightRadius="4">
<fill>
<s:LinearGradient id="shine" rotation="90">
<s:GradientEntry color="#FFFFFF" alpha=".5"/>
<s:GradientEntry color="#FFFFFF" alpha=".1"/>
</s:LinearGradient>
</fill>
</Rect>

<rx:Label
id="labelDisplay"
top="7" bottom="7" left="20" right="20"
text="{(target as Object).label}"
fontFamily="Verdana"
fontSize="12"
bold="true"
color="#ffffff"
/>


</Skin>

elffikk

unread,
Aug 11, 2011, 9:48:36 PM8/11/11
to Reflex Platform
Reflex already have great features like binding, states, behaviors,
invalidation. And I would like to see this project moving further:
1) rxg
- I think a graphics library similar to fxg is a key feature,
especially for easy adopting spark themes (fxg based) - just think on
designing themes for reflex using Adobe tools :)
- we have states, and need transitions, here is an interesting
approach http://code.google.com/p/eazefx/
2) once we agree on a graphics library we can rewrite minimalcomps
library in reflex style (component+behaviors+skin), and rethink
minimalcomps list based components
3) I had a chance to take a look at Mate framework and I found very
similar conceptss, and in my view reflex has the potential to adopt
mate style at even greater level


I still think that reflex has a great potential.
Reflex can become similar or an alternative to Degrafa (rxg), Flex,
Mate (behaviors are injectors?, eventlisteners, etc)

What you think Ben?

Greg Jastrab

unread,
Aug 11, 2011, 11:16:33 PM8/11/11
to reflex-...@googlegroups.com
Curious why you would fork this on google code instead of Github?  Sort of defeats the purpose of making it easier to contribute between the projects...
--
Greg Jastrab

elffikk

unread,
Aug 12, 2011, 5:43:24 AM8/12/11
to Reflex Platform
changed to https://github.com/elffikk/reflex

more changes:
- FlowLayout and VerticalLayout to support paddingLeft, paddingRight,
paddingTop, paddingBottom
- VerticalLayout horizontalAlign
- some other minor changes
Reply all
Reply to author
Forward
0 new messages