I try new flex SDK 4.5 and I find one problem with widget minimizing.
If I click on minimize icon I get this :
http://imageshack.us/photo/my-images/4/widgeti.png/
<s:Transition fromState="open" toState="minimized"> <s:Sequence> <s:Fade duration="100" target="{widgetLabel}"/> <s:Fade duration="100" target="{headerToolGroup}"/> <s:Fade duration="100" target="{contentGroup}"/> <s:Fade duration="100" target="{widgetFrame}"/> <mx:Resize heightTo="30" target="{hostComponent}" widthTo="100"/> <s:Move easer="{bounce}" target="{icon}"/> </s:Sequence> </s:Transition> <s:Transition fromState="*" toState="open"> <s:Sequence> <s:Move target="{icon}"/> <mx:Resize heightTo="{hostComponent.widgetHeight}" target="{hostComponent}" widthTo="{hostComponent.widgetWidth}"/> <s:Fade duration="100" target="{widgetFrame}"/> <s:Fade duration="200" target="{widgetLabel}"/> <s:Fade duration="100" target="{contentGroup}"/> <s:Fade duration="100" target="{headerToolGroup}"/> </s:Sequence> </s:Transition> <s:Transition fromState="open" toState="closed"> <s:Sequence> <s:Fade duration="100" target="{widgetFrame}"/> <s:Fade duration="100" target="{widgetLabel}"/> <s:Fade duration="100" target="{headerToolGroup}"/> <s:Fade duration="100" target="{contentGroup}"/> </s:Sequence> </s:Transition> </s:transitions>
Royce,
>> I've come across a few issues using the 4.5 sdk against the 2.3.1 api and imported projects.
Could you list those.
>>little things like .layerinfos.length is no longer recognized.
Unable to reproduce this using 4.5. Could you provide testcase for this?
>>Looks like if you don't use sdk 4.5, design mode is broken in Flash Builder 4.5.
Its more of Adobe disabling Design View in Flash Builder 4.5 for SDKs other than 3.6 and 4.5
Sylvain,
>> I find one problem with widget minimizing.
Thanks for reporting this.
... <mx:VSlider id="slider" dataTipFormatFunction="formatSliderDataTip" dataTipPlacement="right" enabled.disabled="false" enabled.disabledWithSlider="false" enabled.normalWithSlider="true" height="160" includeIn="normalWithSlider,disabledWithSlider" liveDragging="false" maximum="{hostComponent.map.lods.length - 1}" ...
<esri:QueryTask id="queryTask" url="{mapLayer.layerInfos.length - 1}" useAMF="false"/>
<fx:Script> <![CDATA[ private function getSliderMaximumAllowedValue(lods:Array):Number { return lods.length - 1; // using this function as the source of data binding expression as the length property of lods(Array) is not bindable } ]]> </fx:Script> <mx:VSlider id="slider" height="130" alpha="{getStyle('contentBackgroundAlpha')}" dataTipFormatFunction="formatSliderDataTip" dataTipPlacement="right" enabled.disabled="false" enabled.disabledWithSlider="false" enabled.normalWithSlider="true" includeIn="normalWithSlider,disabledWithSlider" liveDragging="false" maximum="{getSliderMaximumAllowedValue(hostComponent.map.lods)}" showDataTip="true" snapInterval="1" tickColor="{getStyle('color')}" tickInterval="1" tickLength="3" tickOffset="-3" tickThickness="1" value="{hostComponent.map.level}"/>
I have an issue when trying to reproduce the WMS layers on/off sample for a Desktop application.