POST
|
I hope I explain this properly. I have a left sided navigation bar that has several forms on it. I need the bottom (the largest) to shrink if the user either makes the page smaller or the resolution is smaller such as 1024 x 768. At this level the bottom is cut off. I don't need a vertical scrollbar, I already have that. What I need is the entire container to shrink just like the Map Layers legend does. Is this possible?? thanks,
... View more
01-19-2012
11:06 AM
|
0
|
5
|
708
|
POST
|
I want to store geometries in an array but am getting errors retrieving the data. I have done a test on length and it contains objects. private var geometryArray:Array; geometryArray = new Array(); for each(var graphic:Graphic in fs.features) { geometryArray.push([graphic.geometry]); } later ..... map.extent = geometryArray.extent.expand(3); ===> ERROR HERE Error #1034: Type Coercion failed: cannot convert []@19e9c971 to com.esri.ags.geometry.Geometry. I have tested with just one instance and it works fine, such as this.. var geom:geometry; geom = graphic.geometry; ..... map.extent = geom.extent.expand(3); ______________________________________ so I know the geometry is fine... any ideas on the array issue?? thanks
... View more
01-13-2012
10:05 AM
|
0
|
2
|
510
|
POST
|
Dasa, You are a Genius!!! That picked up my French translations. I am worried tho that it didn't pick up the standard French for the rest of the GUI, such as "I want to" and "More" options, I thot everything that I don't do would have changed. But, I will work on that later. Thanks so much, you can take the weekend off now, I am Golden!
... View more
01-13-2012
06:38 AM
|
0
|
0
|
195
|
POST
|
yes, I am creating my own, and it does exist on my project folder. It only has 1 value so far for testing.. it is named fr_FR # french test=French Test my english file has this # english test=Test If I set the compile line to just -locale en_US then when I switch back and forth, the english label will show up, but when I switch to French, the label disappears, which makes sense but when I change my compile line to -locale en_US,fr_FR then I get the "unable to open 'local/en_US,fr_FR' I think this is sooooo close to working
... View more
01-12-2012
09:10 AM
|
0
|
0
|
195
|
POST
|
Geez, more replies from me than anyone else. I am the moron here. there should be a capital "M" in resourceManager.. resourceManager.localeChain = ['en_US']; so sorry for wasting all your time.. thanks Dasi
... View more
01-12-2012
06:14 AM
|
0
|
0
|
316
|
POST
|
silly me, I spoke too soon, I now get this error "Access of undefined property resourcemanager" <fx:Script> <![CDATA[ import spark.events.IndexChangeEvent; import mx.controls.Alert; import mx.resources.ResourceManager; import mx.resources.IResourceManager; protected function combobox_changeHandler(event:IndexChangeEvent):void { var temp:*=ComboBox(event.target).selectedItem; Alert.show("You selected " + temp); if (ComboBox(event.target).selectedItem = "English") { resourcemanager.localeChain = ['en_US']; ==> ERROR }else{ resourcemanager.localeChain = ['fr_FR']; ==> ERROR } } ]]> </fx:Script>
... View more
01-12-2012
05:58 AM
|
0
|
0
|
316
|
POST
|
Me again on languages issues. I now want to see the default French show on the page but I get errors when trying to use French ie. -locale en_US,fr_FR error -> "unable to open 'locale/fr_FR'" this folder exists on the sdk/frameworks folder. After this, I should be golden! thanks
... View more
01-12-2012
05:43 AM
|
0
|
4
|
628
|
POST
|
wow, you a sooooo smart! I added import mx.resources.IResourceManager; and all is good.
... View more
01-12-2012
05:40 AM
|
0
|
0
|
316
|
POST
|
Thanks so much Dasa, I was making things way more difficult than I had to. I didn't realize that the new locale had to have an exact match in the SDK/frameworks/locale folder. I didn't care if it was called CA or US. I feel silly, it is quite simple. THanks for you patience.
... View more
01-12-2012
04:02 AM
|
0
|
0
|
502
|
POST
|
Hi again, I have successfully added a combobox to the top of my gui in a skin, but getting errors trying to set the resourcemanager.. "Access of undefined property resourcemanager" I am guessing that it is not accessible in a sparkskin file?? what do I know, I am new.. <?xml version="1.0" encoding="utf-8"?> <!-- //////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2009 - 2011 Latitude Geographics Group Ltd., Canada // All Rights Reserved // // This material is owned by Latitude Geographics Group Ltd. and protected by // copyright law. It may not be reproduced or redistributed in whole or in part // without the prior written permission of Latitude Geographics Group Ltd. // (www.latitudegeo.com). // //////////////////////////////////////////////////////////////////////////////// --> <s:SparkSkin xmlns:fx ="http://ns.adobe.com/mxml/2009" xmlns:mx ="library://ns.adobe.com/flex/mx" xmlns:s ="library://ns.adobe.com/flex/spark" xmlns:flexlib ="flexlib.controls.*" > <fx:Metadata> [HostComponent("com.geocortex.essentials.viewer.components.TextSearchControl")] </fx:Metadata> <fx:Script> <![CDATA[ import spark.events.IndexChangeEvent; import mx.controls.Alert; import mx.resources.resourcemanager; protected function combobox_changeHandler(event:IndexChangeEvent):void { var temp:*=ComboBox(event.target).selectedItem; Alert.show("You selected " + temp); if (ComboBox(event.target).selectedItem = "English") { resourcemanager.localeChain = ['en_US']; // ERROR }else{ resourcemanager.localeChain = ['fr_FR']; // ERROR } } ]]> </fx:Script> <!-- Define the skin states. --> <s:states> <s:State name="normal" /> <s:State name="disabled" /> </s:states> <s:HGroup height="100%" gap="-1" horizontalAlign="left" verticalCenter="0"> <mx:FormItem label="Select Language:"> <s:ComboBox change="combobox_changeHandler(event)" selectedIndex="0" > <s:dataProvider> <s:ArrayList> <fx:String>English</fx:String> <fx:String>French</fx:String> </s:ArrayList> </s:dataProvider> </s:ComboBox> </mx:FormItem> </s:HGroup> </s:SparkSkin>
... View more
01-10-2012
10:35 AM
|
0
|
4
|
840
|
POST
|
Thanks for reply Dasa, I am confused even more then. I thot by adding my own file (en_CA) under the locale folder, then that info would be used for my translations. Does this mean that I should've named my file en_US, I really don't care what it is named. I still want the framework translations to be used for every other item that I don't include. thanks,
... View more
01-10-2012
10:30 AM
|
0
|
0
|
502
|
POST
|
Thanks for your speedy replies, I tried the remove equal sign and got these errors.. unable to open 'locale/en_CA,fr_FR' I tried the -keep-all-type-selectors=true and got 1,000's of these errors... Unable to resolve resource bundle "charts". I don't see why this is so confusing, this must be done all the time???
... View more
01-10-2012
03:04 AM
|
0
|
0
|
502
|
POST
|
I am having difficulty adding my own set of strings in english and french. I have followed the instructions, added the 2 folders and resource files, then I changed the Properties -> Compiler -> arguments to -locale=en_CA,fr_FR -source-path=locale/{locale} But, it then gives me 1,000's of errors like unable to resolve resource bundle "blah blah". I can guess that this is because it wants the en_US swc file strings in the "Program Files\Adobe\Adobe Flash Builder 4\sdks\4.1.0\frameworks\locale" folder. But, how do I set this up. it seems that my new files override everything. ideas?? I know this has been done tons of times by others. thanks,
... View more
01-09-2012
10:07 AM
|
0
|
7
|
1349
|
POST
|
OK, I actually figured out the datagrid in repeater, but now have a problem getting access to the index of each individual item in the datagrid. I can get the index and info of the parent repeater information, but not the datagrid info, such as the checkbox index. thanks. BTW, is there a better way for me to show code in these forums??? //==== THIS IS HOW I ACCESS REPEATER INFORMATION ON A CLICK EVENT private function btnShowCharacterize(evt:Event):void { Alert.show ("current name - " + evt.currentTarget.getRepeaterItem().wsName); Alert.show ("current index - " + evt.currentTarget.repeaterIndices + " open/close - " + openCloseArray[index].toString()); } //==== THIS IS THE REPEATER AND DATAGRID AREA <mx:VBox height="325" horizontalScrollPolicy="off" verticalScrollPosition="{this.width - 10}" verticalScrollPolicy="auto" > <mx:Repeater dataProvider="{wsArray}" id="wRepeater" > <mx:HRule width="100%" /> <mx:HBox > <s:Label text=" " /> <s:Label text=" " /> <mx:Image click="remove(event )" source="assets/images/delete_x.PNG" width="20" height="20" /> <s:Label text=" " /> <mx:Image click="Export(event )" source="assets/images/export.png" width="20" height="20" /> <s:Label text=" " /> <s:Label text="{wRepeater.currentItem.wsName}" styleName="WidgetText" /> </mx:HBox> <s:Label text=" " /> <mx:HBox> <mx:Image id="showCharacterize" click="btnShowCharacterize(event)" source="assets/images/plus.png" width="15" height="15" /> <s:Label fontWeight="bold" text=" Characterize" styleName="WidgetText" visible="true" /> </mx:HBox> <!-- Datagrid of created watersheds --> <!-- <s:Label text="" styleName="WidgetText" /> --> <mx:VBox id="displayDatagrid" height="0" visible="false" > <mx:DataGrid id="datagrid" dataProvider="{wRepeater.currentItem.gridData}" rowCount="5" styleName="WidgetText" itemClick="dgClick(event)" > <mx:columns> <mx:DataGridColumn headerText="Characterization" dataField="charType" width="125"/> <mx:DataGridColumn headerText="Value" dataField="charValue" width="75"/> <mx:DataGridColumn headerText="Select" dataField="charChkBox" width="50" itemRenderer="mx.controls.CheckBox" /> </mx:columns> </mx:DataGrid> <s:Button id="btnCharacterize" click="characterize(event)" label="Calculate Selected Characteristics" width="250" /> </mx:VBox>
... View more
12-21-2011
04:15 AM
|
0
|
0
|
171
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|