[flexcoders] interactive-images
Hi all, I would like to use a very simple image-map (a simple interactive image, not gis!) in a flex gui to let user select things (e.g. select a way, select a building). Is it possible to do using flex? are there some samples available? Thanks!!! Saluti Lorenzo
[flexcoders] problem with repeater and reference with repeted-itself component
Hello, I have a nested repeater... I have a combobox for each region (see the XML in my code)...under the combobox I wolud like to list the crops available in the selected region ...when the user change the value of the combo, the checkox of the combo are to be updated..this is my code, and the question is how setting the value of the cb index: ...THANKS A LOT ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:ns1=* mx:VBox width=50% mx:Repeater id=rep1 dataProvider={src.region} mx:ComboBox id=cb dataProvider={src.region} labelField=@descr/ mx:Repeater id=rep2 dataProvider={cb[???].selectedItem.crop} !--??? how identify the actual index of the repeted component cb-- mx:CheckBox label=[EMAIL PROTECTED]/ /mx:Repeater /mx:Repeater /mx:VBox mx:XML xmlns= id=src table_region region descr=Flevoland crop descr=Potato/ crop descr=Grass/ /region region descr=Midi-Pyrenees crop descr=Potato/ crop descr=Carrot/ crop descr=Sugarbeet/ /region region descr=Brandenburg crop descr=Potato/ crop descr=Carrot/ /region /table_region /mx:XML /mx:Application
[flexcoders] how manipulate servlet image stream
Hello, I have a servlet which return a stream of a jpg image: ...the url is the following: http://localhost:8080/seamservices/GetImage Using this url in a browser the image is correctly loaded! How can I load the image form a flex client? ...thanks! Saluti Lorenzo
[flexcoders] SpiderChart
Hello, does it exist in flex any SpiderChart implementation example? This is a very used type of chart...I need it for my application, but I think is quite stupid develop a custom component by zero...if something already exists! thanks Saluti Lorenzo
[flexcoders] Re: SpiderChart
...thanks a lot...but isn't what I need. Spider chart is a type of chart (like e.g. columnchart, piechart,...)...looking in the net, you can find a spider chart image sample at the url: http://www.pspglobal.com/images/kalrez-performance.jpg Saluti Lorenzo --- In flexcoders@yahoogroups.com, g_odds [EMAIL PROTECTED] wrote: I've not heard the term Spider Chart before but I think http://mark-shepherd.com/blog/springgraph-flex-component/ is the type of chart you mean. Graham --- In flexcoders@yahoogroups.com, lruinelli lruinelli@ wrote: Hello, does it exist in flex any SpiderChart implementation example? This is a very used type of chart...I need it for my application, but I think is quite stupid develop a custom component by zero...if something already exists! thanks Saluti Lorenzo
[flexcoders] Re: user configuration file
the userconfig.xml file using HTTPService seems to be the best solution (fast and simple)...unfortunately the HTTPService asyncronous nature make this solution not working!:-( the request need some time to give the result...in this time flex has already setted the loaded parameters as null and I give an error! --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Or have the app load a userconfig.xml file using HTTPService. This takes only a few lines of client-side code and no server-side code. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: Thursday, April 12, 2007 5:29 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: user configuration file Look into FlashVars http://livedocs.adobe.com/flex/2/docs/1001.html http://livedocs.adobe.com/flex/2/docs/1001.html http://livedocs.adobe.com/flex/2/docs/1005.html http://livedocs.adobe.com/flex/2/docs/1005.html http://ray.camdenfamily.com/index.cfm/2006/12/11/FlashVars-in-Flex http://ray.camdenfamily.com/index.cfm/2006/12/11/FlashVars-in-Flex http://yakovfain.javadevelopersjournal.com/passing_parameters_to_flex_th at_works.htm http://yakovfain.javadevelopersjournal.com/passing_parameters_to_flex_t hat_works.htm regards, Muzak - Original Message - From: Tony Obermeit [EMAIL PROTECTED] mailto:hey.you%40mac.com To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Thursday, April 12, 2007 9:30 PM Subject: [flexcoders] Re: user configuration file For the flex application, the configuration of which URLs to access etc can come from a single, server side configuration. That can be done however you need to with your server side language. To pass these configuration values in to your swf file, you need to dynamically generate the html which calls your swf. Make sure the generation creates javascript variables which have the configuration values. The flex application can read these values. I don't recall the syntax to do this but there have been relatively recent posts that show how. Tony Posted by: simonjpalmer [EMAIL PROTECTED] mailto:simonjpalmer%40yahoo.com simonjpalmer Thu Apr 12, 2007 6:33 am (PST) check out flex sharedobject --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , lruinelli lruinelli@ wrote: Hello! I'm developing an application which need some configuration parameter to run correctly. E.g. the url of servlet used change frequently (the application is in develop!)...and I have to update every time all the MXML file and recompile the application:-( ...in desktop win application for this kind of configuration I usually use somthing like file .ini where I put my configuration, wich are loaded by the application: e.g. config.ini: SERVLET_PATH=http://localhost:8080/servlethome/ http://localhost:8080/servlethome/ what is the flex-as best pratices for this kind of stuff? thanks Lorenzo
[flexcoders] user configuration file
Hello! I'm developing an application which need some configuration parameter to run correctly. E.g. the url of servlet used change frequently (the application is in develop!)...and I have to update every time all the MXML file and recompile the application:-( ...in desktop win application for this kind of configuration I usually use somthing like file .ini where I put my configuration, wich are loaded by the application: e.g. config.ini: SERVLET_PATH=http://localhost:8080/servlethome/ what is the flex-as best pratices for this kind of stuff? thanks Lorenzo
[flexcoders] question about drag drop support in list-based component
Hello! ...I developed a custom component named SwapList...to enable the user to select a set of data from List dragging and dropping it to another List. Knowing the flex drag drop support in list-based component...It seems very simple...and easy to implement...but I have a problem...if I put more SwapList component in a form...the user can drag a drop items from every List of the from to every List of the form!! and I don't find any work around to avoid nonsense drag and drop!:-( are there any control which can be performed? or have I to implement all the drag and drop support manually? ...thanks for the help! ...pratical description: the code of my component: SwapList.mxml ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; width=100% mx:Script ![CDATA[ import mx.events.DragEvent; import mx.managers.DragManager; import mx.core.UIComponent; import mx.core.DragSource; [Bindable] public var _dataProvider: Object; [Bindable] public var _labelField: String; [Inspectable(defaultValue=null)] public function set dataProvider(dataProvider:Object):void { _dataProvider = dataProvider; } [Inspectable(defaultValue=)] public function set labelField(labelField: String):void { _labelField = labelField; _labelField = labelField; } ]] /mx:Script mx:List width=300 id=listFrom dragEnter=onDragEnter(event) dataProvider={_dataProvider} labelField={_labelField} dropEnabled=true dragMoveEnabled=true dragEnabled=true height=74/mx:List mx:List width=300 id=listTo dragEnter=onDragEnter(event) labelField={_labelField} dropEnabled=true dragEnabled=true dragMoveEnabled=true height=74/mx:List /mx:HBox this component can be used in a form...as done in the following extract of code (more SwapList in a form): ... mx:Form width=100% height=100% mx:FormItem label=Set of fruit: width=100% components:SwapList id=FruitSelecton dataProvider={fruits} labelField=descr/ /mx:FormItem mx:FormItem label=Set of car: width=100% components:SwapList id=CarSelection dataProvider={cars} labelField=dsecr/ /mx:FormItem /mx:Form ... ...in this example user can drag a car from a List of available car (in the SwapList CarSelection) and drop it in the List of selected fruits! (in the SwapList FruitSelection) :-((( and my objective is avoid this kind of selection (using some event to know if the dragged item comes from the same instance of swaplist component e.g.) THANKS SALUTI Lorenzo
[flexcoders] Unable to access UserTransaction in DataService on Java Sun Appl Server
Hello! I'm using flex dataservice deployed in a Sun Java System Application Server Platform Edition 9.0_01 (build b14)...but when I try to modify some record of my dataservice application I give the Unable to access UserTransaction in DataService error!!! I think this error occours because my appl server hasn't a transaction manager, isn't it? As transaction manager It has to be used something like jotm...but unfortunately I didn't found any documentation about how integrate it on my application server. Can someone please help me? ...thanks Saluti Lorenzo
[flexcoders] JEE5 web application glassfish EJB Hibernate....how use it by fds and flex?
Hello, I have a JEE5 web application based on EJB and Hibernate. for each entity I have: - an Hibernate mapping - a java class - a controller of the java class (with method to create, modify, ecc the entity) - a controllerLocalInterface - a controllerRemoteInteface example for entity Year...i have: - Year.hbm.xml - Year.java - YearControllerBean.java (Year createYear()...updateYear(Year y)...ecc) - YearControllerLocal.java - YearRemoteLocal.java ...a java client has the following structures (it works fine!): public class TestClient { public static void main(String[] args) { try { InitialContext ic = new InitialContext(); YearControllerRemote yc =(YearControllerRemote) ic.lookup(YearControllerRemote.class.getName()); Year anno = yc.createYear(); anno.setValue(2013); yc.updateYear(anno); ... } How to perform something like this with fds2 and flex...I see an article on: http://weblogs.macromedia.com/pmartin/archives/2006/08/ejb_and_flex_in.cfm and I based my fds and my client on this (using the given flex-ejb-factory.jar and configuring remoting-config.xml and service-config.xml as described) remoting-config.xml: destination id=MyEJB properties factoryejb3/factory sourceorg.seamless_ip.ontologies.farm.YearControllerBean/source /properties /destination and service-config.xml: factories factory id=ejb3 class=com.adobe.ac.ejb.EJB3Factory / /factories In the client side I have a YearControllerBean.as and a Year.as ...my flex client (as entry point I use a remoteObject which point the org.seamless_ip.ontologies.farm.YearControllerBean): mx:RemoteObject id=ro destination=MyEJB /mx:RemoteObject private function initApp():void { year = Year(ro.retrieveYear(1)); } ...but the following error occours: type Coercion failed: cannot convert mx.rpc::[EMAIL PROTECTED] to Year. Could someone please help me...giving me tricks or interesting link, samples? thanks Lorenzo
[flexcoders] working with XML
ciao! i have some problem querying xml docs with flex as3, can anyone tell me where there are good tutorials or examples about this subject?...my only reference is working with XML of prog_actiopnscript30.pdf, but unfortunately is not much detailed:-( actually my problem is retrive the variable of equation y=ax+b that means I need tho retrive: void method=add stringb/string /void void method=add stringa/string /void void method=add stringx/string /void b a x the xml is the following: ?xml version=1.0 encoding=UTF-8? java version=1.6.0 class=java.beans.XMLDecoder object class=java.util.ArrayList void method=add object class=IndicatorFunction void property=equation stringy=ax+b/string /void void property=label_en stringfirst indicator/string /void void property=variable void method=add stringb/string /void void method=add stringa/string /void void method=add stringx/string /void /void /object /void void method=add object class=IndicatorFunction void property=equation stringy=ax/string /void void property=label_en stringsecond indicator/string /void void property=variable void method=add stringa/string /void void method=add stringx/string /void /void /object /void /object /java thanks, Lorenzo
[flexcoders] void as node name in a XML...reserved keyword!!!???
ciao! using the following XML mx:XML id=test java version=1.5.0_06 class=java.beans.XMLDecoder object class=yy.xx.cc.cc.xx.IndicatorFunction void property=equation stringy=ax+b/string /void void property=label_en stringfirst indicator/string /void void property=variable void method=add stringa/string /void void method=add stringb/string /void void method=add stringx/string /void /void /object /java /mx:XML the expression: test.object.void.(@property=='equation').string should has the following result: y=ax+b unfortunately void, the name of the nodes, is a reserved Keyword in flex and the application is not compiled! how can I found a workaround without change the XML? thanks Lorenzo
[flexcoders] HTTPService with variable number of parameter
Hello, I have to call a servlet and give it a variable number of parameters, example: a22a/b33b/c444c/ or a222a/z233z/ I suppose it will be possible in AS3 doing somthing like : srv.send(an XMLList with my parameters); but it seems don't works! the mxml of the HTTPService is the following: mx:HTTPService id=executeurl=http://localhost:8080/prototype2/GetExecute; method=GET useProxy=false resultFormat=e4x /mx:HTTPService Can someone help me? thanks Lorenzo