[flexcoders] Tree change event
Hi, I noticed that the trees change event does not work as expected ( the same way as for example in DataGrid ). When a user selects a node on a tree, the tree sends change event properly, as in DataGrid. But when the user deselects (is that a word?) a node by clicking it with CTRL key down, it does not send change event (as datagrid does). This causes real problems, since I get no info that the there are no nodes now selected ( as user has done something I can not follow) and my buttons that should be disabled when no nodes are selected, stay enabled - leads to errors. Is there a fix or a nice workaround on this issue? Is this a feature or a bug in the Tree? -- Mika Kiljunen Ohjelmistosuunnittelija / Intensium Oy [EMAIL PROTECTED]ium.fi GSM: +358 50 352 4842 http://www.intensium.fi Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: About deploying flex app in Weblogic
Hello, got the same problem, and a MM Gold Support...: Yet no news on that point, seems at least it will be corrected in Flex 2.0 (= a more classic deployment and jar folder), but maybe MM will publish a hot fix before that date... Cheers, r0main --- In flexcoders@yahoogroups.com, Jesus Salvador Ramos Cardona [EMAIL PROTECTED] wrote: Hi all, I have my flex app running in weblogic 8.1, and I am using ant to automate everything (including deploy and undeploy). When running the undeploy WL tool it tries to delete the dir my app was copied into, but I get an error thrown by ant in which it is impossible to delete the file 'WEB-INF/flex/jars/ahdump.jar'. Is there a way to have this file unlocked? Perhaps a switch in some flex servlet? No big deal here, just trying to remove nasty red-colored messages in my ant console. Regards. J. Jesús Ramos Cardona Desarrollo de Sistemas de Casa de Bolsa mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] +52 (55) 51 74 22 22 ext. 1250 Ixe Grupo Financiero Este correo electrónico y sus anexos pueden contener información CONFIDENCIAL para uso exclusivo de su destinatario. Si ha recibido este correo por error, por favor, notifíquelo al remitente y bórrelo de su sistema. Muchas gracias. Las opiniones expresadas en este correo son las de su autor y no son necesariamente compartidas o apoyadas por la compañía. Ixe Grupo Financiero no asume aquí obligaciones ni se responsabiliza del contenido de este correo, a menos que dicha información sea confirmada por escrito por un representante autorizado. No se garantiza que la transmisión de este correo sea segura o libre de errores, podría haber sido viciada, perdida, destruida, haber llegado tarde, de forma incompleta o contener VIRUS. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: How to configure MXML schema in Eclipse + OxygenXML 6?
Got it going! I was going astray while setting the User Specified Setting. I somehow had the Key value set to Schema Location rather than Namespace Name. Once I corrected that everything is sweet. So my settings now are: URI:[Path to]mxml.xsd Key Type: Namespace Name Key:http://www.macromedia.com/2003/mxml For others who try this, turn on the Properties view if don't already have it on. This shows all the properties that a given MXML tag can take. Cheers Indy --- In flexcoders@yahoogroups.com, indy_nagpal [EMAIL PROTECTED] wrote: Hi Dimitrios: I followed your advise and can now get MXML files to open up okay (color-coded, etc). However, tag insight/auto completion do not seem to be working fully. I seem to get tag insight only for those tags that have been used before in the file. E.g., if mx:HBox has been used in the file, and I place my cursor after the line where this has been used, I can see tag insight for mx:HBox. Have you faced this before. Any help would be much appreciated. Thanks Indy --- In flexcoders@yahoogroups.com, r0main [EMAIL PROTECTED] wrote: Thanks a lot... It works that way... Now, for 100% free, I can edit MXML files and also can edit flex .as files with MTASC::: ByeBye flexBuilder :-) Ciao, r0main --- In flexcoders@yahoogroups.com, Dimitrios Gianninas [EMAIL PROTECTED] wrote: Hi r0main, Here is what I did in Eclipse 3.1M7: Schema setup: Goto Preferences Web XML XML Catalog. From there I created a User Specified Entry pointing to the MXML schema file with Flex 1.5. Association: Goto Preferences Editors Content Types. Under XML add *.mxml. Apply and Save... next time you open a MXML file... voila! I tried exactly what you did and it didn't work, so after fiddling around, I discovered the above. Dimitrios Jimmy Gianninas RIA Developer Optimal Payments Inc. _ From: r0main [mailto:[EMAIL PROTECTED] Sent: Thursday, May 19, 2005 5:15 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How to configure MXML schema in Eclipse + OxygenXML 6? Dimitrios, Which editor did you associate to *.mxml files ? I've got a file main.mxml, and tried XML Editor, XML Source Page Editor, Standalone Structured Source Editor, on it: Nothing good happens... But if I rename it main.xml that works perfectly... r0main --- In flexcoders@yahoogroups.com, r0main [EMAIL PROTECTED] wrote: Hello Dimitrios, I'm looking forward to find a valid MXML editor into eclipse... I've downloaded erverything... I can see the XML editor is here, I've associated MXML file to it... It opens it as an XML file, but says the document is empty, while the source tab shows the mxml file... Any idea ? Ciao, r0main --- In flexcoders@yahoogroups.com, Dimitrios Gianninas [EMAIL PROTECTED] wrote: Not sure if anyone uses it, but I started using Eclipse Web Tools for MXML editing. You can specify the MXML schema and works it wonderfully so far. http://www.eclipse.org/webtools/index.html Dimitrios Jimmy Gianninas RIA Developer Optimal Payments Inc. _ From: Andrew Muller [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 18, 2005 8:55 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to configure MXML schema in Eclipse + OxygenXML 6? Hans Apologies if this appears twice. I buggerised around for a while and found success if I used the following settings (totally non scientific/documented settings, might be a better way): In Window/Preferences/oXygen/Editor/Tag Insight/Default I added the following: Namespace: Any Root local name: Any File name: Any Schema type: XML Schema Schema URI: file location of XSD file I then moved this entry to the top of the list, have been using it for about a day and it seems to work for me so far without having any noticable side effect on other file types. HTH Andrew Andrew Muller Partner, RocketBoots http://www.rocketboots.com.au On 5/19/05, Hans Omli [EMAIL PROTECTED] wrote: Has anyone successfully set up tag insight with Eclipse and the new version of OxygenXML. I had no trouble with OxygenXML 5.1, but can't seem to get tag insight working with 6.0. Thanks! Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Manual Effect on Hbox, problem
I'm am manually playing an effect on a HBox. The HBox moves but does not respond on an effectEnd or effectStart. Which it normally does when you set moveEffect in MXML. Why does the HBOX not listen!!? ---Code AS public function moveMeRight(object:Object) { var move = new mx.effects.Move(object); move.xBy = -146; move.playEffect(); } - MXML mx:HBox id=tile_hbox x=7 y=7 horizontalGap=12 effectEnd=mx.controls.Alert.show('Boink');left_img.enabled = true;right_img.enabled = true; helper.setControls(); effectStart=right_img.enabled = false;left_img.enabled = false; Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Drag and Drop from tree to List
That worked! Thanks. --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Use the TreeDataProvider methods to get the label, myObj[0].getProperty('label') Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Wednesday, May 25, 2005 7:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Drag and Drop from tree to List This seems to work fine when the dataProvider for the tree is a static mx:XML node list, but when the node list is the result of a remoteObject, the dataForFormat(treeItems) returns an undefined. I think what I am trying to do is very simple. I have a tree which is populated by a remoteObject call, this works fine. The XML returned from the remoteObject Call is in this format: node label=Test node label=Test.txt/ node label=Test2.txt/ /node Tree now works fine. Now, in the doDragDrop(event) function I call another method (after clearing the List and populating it with this dragsource object) called: sendFile(event) Which does this: var myObj:Object = event.dragSource.dataForFormat(treeItems); var fileName:String = String(myObj[0]); mx.core.Application.alert(fileName); All i get is undefined. If I try a .label or .node I also get an undefined. How can I get the label? Regards, Iain --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Yep, dataForFormat(treeItems) I think is what you want. As for only having one item in the destination List, you could simply clear the list before adding in the treeItems in the dragDrop handler. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of digital_eyezed Sent: Wednesday, May 25, 2005 8:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Drag and Drop from tree to List Hi, I'm dragging and dropping from a tree to a list. All the functionality works fine, but I'm trying to call another method when the item is dropped with the name of the file from the tree as the argument to that method. Example: Tree has two objects in a folder node called files: File1.txt and File2.txt When I drag from the tree and drop into the List container (List1) I want to call a method which has the File1.txt or File2.txt as the argument. Can I use the dataForFormat? Also if I want to restrict this list to only having 1 file in it how can I have it to only have the last item that I dropped into it, thus removing the previous item, if there was one there. I tried to put a change event handler on the list, but when you drop an Item into the list this event is not called, which I find extremely wierd being that the list has in fact 'changed'. Explain that one! Regards, Iain Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Manual Effect on Hbox, problem
Hi, Is your HBox inside a Canvas? Kindly make a simple but complete application and post here, so that we can see... -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rockmoyosa Sent: Thursday, May 26, 2005 2:16 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Manual Effect on Hbox, problem I'm am manually playing an effect on a HBox. The HBox moves but does not respond on an effectEnd or effectStart. Which it normally does when you set moveEffect in MXML. Why does the HBOX not listen!!? ---Code AS public function moveMeRight(object:Object) { var move = new mx.effects.Move(object); move.xBy = -146; move.playEffect(); } - MXML mx:HBox id=tile_hbox x=7 y=7 horizontalGap=12 effectEnd=mx.controls.Alert.show('Boink');left_img.enabled = true;right_img.enabled = true; helper.setControls(); effectStart=right_img.enabled = false;left_img.enabled = false; Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Manual Effect on Hbox, problem
--- In flexcoders@yahoogroups.com, rockmoyosa [EMAIL PROTECTED] wrote: I'm am manually playing an effect on a HBox. The HBox moves but does not respond on an effectEnd or effectStart. Which it normally does when you set moveEffect in MXML. Why does the HBOX not listen!!? ---Code AS public function moveMeRight(object:Object) { var move = new mx.effects.Move(object); move.xBy = -146; move.playEffect(); } - MXML mx:HBox id=tile_hbox x=7 y=7 horizontalGap=12 effectEnd=mx.controls.Alert.show('Boink');left_img.enabled = true;right_img.enabled = true; helper.setControls(); effectStart=right_img.enabled = false;left_img.enabled = false; Never mind. Forgot to set listener. move.listener = object. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Cairngorm Confusion
Mike, Isn't there an article covering the topic of WHAT Cairngorm is? How it works? Explain in plain English as to HOW the proposed structure and included helper files enhances the developers ability to create RIA's (which are scalable in nature). First of all; Cairngorm is not intended as something that we expect people to pick up the *same* time they are getting to grip with Flex. As you build big, enterprise-level Flex applications, there is going to come a point where you have multiple developers working on the project, and run the risk of them all solving the same problem in multiple different ways. As your application becomes more complex, you are going to want to address that complexity with a well understood technical architecture. You are going to want that technical architecture to clearly separate the roles in a multi disciplined development team, you are going to want your application architecture to promote, enable and encourage reuse - reuse of business object, reuse of business services, etc. You are going to want that application architecture to allow you to inject complex functionality in a well understood manner -- Todd Boland's excellent post on creating a SecureCommand base-class being a fantastic example of this. As J2EE developers, we learned a lot from using the Core J2EE Design Patterns from Sun in architecting our applications. Furthermore, assembling these design patterns in such a way that there was an elegant collaboration and partitioning of design responsibilities, created what has now been coined a microarchitecture that would provide structure and skeleton in a generic fashion, to specific web application problems. With RIA, we recognsied that many of the same problems that occured in J2EE enterprise web-application development, didn't go away just because we were using ActionScript 2.0 and Flash/Flex, and so we adopted many of (a subset of) the design patterns, and evolved Cairngorm as a microarchitecture for RIA. I don't intend this next sentence to be patronising, so please don't take as such -- but if you don't get why you would need to use something like Cairngorm, then you probably aren't building applications that merit using it anway. So ... immerse yourself in Flex application development, and only when complexity is starting to bite you in the butt, should you dust off Cairngorm, look through the samples, and look for how we have solved the problems you are (then) facing, with Cairngorm. Does everybody understand what I am getting at? There is nothing on the website, that starts at Ground Zero - explaining What Cairngorm is, Here is how it works, Here is a coding example of a typical way of doing an app, and then in comparison, the Cairngorm way. Software architecture, design patterns, and microarchitecture are software engineering techniques, not anything specific to RIA, specific to Flex, and specific to Cairngorm. If you really want to understand the motivation for Cairngorm, that would be a great starting place. I honestly would recommend Core J2EE Patterns by Alur et al as a great starting place for understanding software architecture and software design patterns, particularly the ones we implemented for Cairngorm: http://www.corej2eepatterns.com/index.htm Alistair and I co-wrote a chapter called ActionScript 2.0 Design Patterns for Rich Internet Applications, that appears in the ActionScript 2.0 Dictionary. That's not specific to Flex, but it does go into a great amount of detail as to what the motivations for each of the design patterns are, why we implement them the way we do, in the context of a Flash MX based RIA: http://www.amazon.com/exec/obidos/tg/detail/-/0321228413/qid=1117099256/sr=8 -1/ref=sr_8_xs_ap_i1_xgl14/002-0848388-2547213?v=glances=booksn=507846 I think that's probably the level of material you're looking for. Failing that, there's a Breeze presentation I've posted a few times here; to be honest, the slides aren't really the same without someone delivering the words, and the presentation was made available for folks that saw me talk at IBM in Holland. But the introductory slides try and put forward the case for why you might want to use Cairngorm, which I try and define as If you are building Enterprise RIA. Sorry for the unusual post, but I just need some clarifications on Cairngorm. Pretend I am an idiot - and not somebody who has been following this model for months, and has a good grasp of Flex. Learn Flex first. Build some apps with Flex until they get bigger and bigger, and then when you know enough to be dangerous and tie yourself in knots, consider Cairngorm your scissors. I hope the above helps -- there's a lot of reading there for you, but that's what you asked for. I just don't have to write it all :) Good luck, it's a rewarding journey you're on, Best, Steven -- Steven Webster Technical Director iteration::two This e-mail and any associated attachments
RE: [flexcoders] cairngorm and custom authentication
Todd, I added an abstract SecureCommand class which implements Responder. I like it; neat implementation, and definitely agree with you putting this functionality into the SecureCommand base-class. Any command which accesses secured remote objects must extend SecureCommand. Nice. The showLogonWindow() method of SecurityDelegate takes one argument: the original Event. So while calling that method from ShowLogonWindowCommand, I pass a reference to the original Event object with it. Again, I like this ... this is exactly the same scheme we used to implement on the other side of the wire in the dark ages of JSP development ;) We'd intercept the request, handle authentication, and the dispatch the original request forward depending on authentication success. At this point the LogonWindow has a reference to the username, password and a reference to the original event. from here, when the logon button is pressed, the LogonWindowViewHelper broadcasts an EVENT_LOGON event which triggers the LogonCommand to execute. The LogonCommand's execute method accesses the setUsernamePassword() method of the SecurityDelegate. If you look at the ModelLocator, have you thought about simply keeping a UserPrincipal object in the model (same as keeping a Principal in the HTTP_SESSION in the bad old days) ? The setUsernamePassword() method of the SecurityDelegate sets the username and password properties of my own extended ServiceLocator: SecureServiceLocator. I use SecureServiceLocator in my application's mxml files just like the ServiceLocator. I all my secure RemoteObjects in there. So are you keeping passwords unencrypted on the client ? My SecureServiceLocator overrides cairngorm's ServiceLocator's getService() method. Inside SecureServiceLocator's getService() method, I call super's getService() to obtain a reference to the service. At this point, I call the setUsernamePassword() method of the service with the username and password of the SecureServiceLocator which was set inside of the SecurityDelegate's setUsernamePassword() method. Nice. Seems like a good implementation to meI'm thinking more about how you're handling password authentication, but I like the general architecture. Best, Steven -- Steven Webster Technical Director iteration::two This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately. Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] How i can do it?
Hi, i have a dataGrid into a panel with a controlBar. In my control bar there is a TextInput, i wish then a user press keyDown put focus in the dataGrid row. I have used indexof of research but don't work here a bit code function Find():Void { for(var x;xdg.dataProvider.length;x++) { if(dg.dataProvider[x].name.indexOf(TextInput.text) -1) { //Here i wish to set dataGrid Row dg.selectedIndex=x;? here don't work, and if my dataGrid show scrollBar this function don't scroll // break because i wish to stop the reserch at first Element break; } } Can you help me please? Devis ps. sorry, i don't know very well ActionScript. But there is an other method for searching subString into a String, sometimes indexof don't work well Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] dynamic dataprovider for the datagrid
hi, this is my 2nd mail to the groups. iam trying to build a data grid such that when i expand the tree nodes my datagrid should display rows for the visible nodes and when the tree collapses the corresponding rows in datagrid must become invisible. my xml looks something like this Funnel Month Capacity101/Capacity Allocation102/Allocation ForeCast103/ForeCast /Month Month Capacity201/Capacity Allocation202/Allocation ForeCast203/ForeCast /Month wheelhead1 Month Capacity111/Capacity Allocation112/Allocation ForeCast113/ForeCast /Month well1 Month Capacity1110/Capacity Allocation1120/Allocation ForeCast1130/ForeCast /Month /well1 my datagrid looks like this month1 month2month3 capacity allocatin forecast capacity allocatin forecast (tree) (datagrid value) funnel valval val val val val whl1 val val val val val val w1 val valval val val val w2 .... wh2val w1 .. w2 val since month contains the reqd data at any level. i want to change my dataprovider for every record like this dataProvider={pipedata.Month} dataProvider={pipedata.wheelhead1.Month} dataProvider={pipedata.wheelhead1.well1.Month} could anyone advise me on dynamically changing the dataprovider. thanks in advance Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Saving a Flex chart as a jpeg file
This kind of works too: http://jerryscript.hostrocket.com/flash/draw/SWFDrawing2JPEG.html Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Using a drag proxy
Hi, I have a fully functioning drag and drop operation going on. All I want to do is add an image using the drag proxy functionality to the application. Here is the tree I drag from: mx:Tree id=tree1 dataProvider={MyService.result} width=100% height=100% dragEnabled=true/ And here is the List I drag to: mx:List id=theList width=150 height=25 dragEnter=doDragEnter (event) dragExit=doDragExit(event); dragOver=doDragOver(event); dragDrop=doDragDrop(event)/ Where do I put the code to add the drag Proxy? I have already embedded an image (image1) in my actionscript and want to allow that image to show, with an offset (which is coded to offsetX and offsetY) of 0 and no initialization paramaters. Normally I would have thought that creating a mouseDown even on the tree would enable me to create a dragsource and doDrag method but this seems to screw up the rest of the drag operation as it is mostly handled in the doDragDrop(event)(and it completely froze IE6). Thanks in advance for any help! Iain Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Cairngorm store - still trying
Still trying to get the cairngorm store products to show up. I thought I had done everything right - but there are several errors in the docs and I had to do some guessing, plus working with hints from Steven and Alex from iteration2. On startup, I'm getting a couple of warnings from the server: - log4j: WARN No appenders could be found for logger - log4j: WARN Please initialize the log4j system properly And, when I access the app, the server throws this error: Error: java.sql.SQLException: User not found: CAIRNGORMSTORE To make things easier, here's my current relevant directory structure: C: \servers db file: catalog.lck file: catalog.log file: catalog.properties file: catalog.script jakarta-tomcat-5.0.25 ... db file: catalog.properties file: catalog.script webapps cairngormstore assets data META-INF org tests WEB-INF classes conf file: log4j.properties file: store.cfg org nevis... flex file: cairngorm-manifest.xml file: flex-config.xml user_classes file: cairngorm.swc file: FlexUnit.swc lib files: jar files The db folder at the top level appears to be created automatically. Any other info I can provide to track this down? Thanks. - Tom Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] WebSercices, result, Array, DataGrid - Problems
Hi, I've a problem with my application. I call a WebService that returns as result an array-- webservice.GetHeaders.result Then I try to put the result into a dataGrid like this: mx:DataGrid dataProvider={webservice4.GetAllHeaders.result} width=100% mx:columns mx:Array mx:DataGridColumn columnName=Date headerText=date / mx:DataGridColumn columnName=From headerText=From / mx:DataGridColumn columnName=Size headerText=Size / mx:DataGridColumn columnName=Subject headerText=Subject / mx:DataGridColumn columnName=UID headerText=UID / /mx:Array /mx:columns /mx:DataGrid but the dataGrid still empty. I've tried to put the result into a TextArea and I've receive: [object Object], [object Object], [object Object], [object Object] (I Know that the result should have 4 elements) I've tested the webservice with a Test web page and it is ok. Any suggestion? Thanks! Bye Francesco Here is my code; ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; verticalGap=10 mx:WebService serviceName=popUtil id=webservice4 result=alert('result received') showBusyCursor=true mx:operation name=Stat mx:request APassword/APassword AUsername/AUsername AHost/AHost /mx:request /mx:operation mx:operation name=GetMessages mx:request ANumArray item/item item/item /ANumArray APassword/APassword AUsername/AUsername AHost/AHost /mx:request /mx:operation mx:operation name=TestLogin mx:request APassword/APassword AUsername/AUsername AHost/AHost /mx:request /mx:operation mx:operation name=GetAllHeaders mx:request APassword/APassword AUsername/AUsername AHost/AHost /mx:request /mx:operation mx:operation name=GetHeaders mx:request ANumArray item/item /ANumArray APassword/APassword AUsername/AUsername AHost/AHost /mx:request /mx:operation /mx:WebService mx:HBox mx:Button label=Stat click=webservice4.Stat.send() / mx:Button label=GetAllHeaders click=webservice4.GetAllHeaders.send() / mx:Button label=GetHeaders click=webservice4.GetHeaders.send() / mx:Button label=TestLogin click=webservice4.TestLogin.send() / mx:Button label=GetMessages click=webservice4.GetMessages.send() / /mx:HBox mx:DataGrid id=data1 dataProvider={webservice4.GetAllHeaders.result} width=100% mx:columns mx:Array mx:DataGridColumn columnName=Date headerText=date / mx:DataGridColumn columnName=From headerText=From / mx:DataGridColumn columnName=Size headerText=Size / mx:DataGridColumn columnName=Subject headerText=Subject / mx:DataGridColumn columnName=UID headerText=UID / /mx:Array /mx:columns /mx:DataGrid mx:TextArea id=getHeaders1 width=100% height=100% text={webservice4.GetAllHeaders.result} / mx:TextArea id=stat1 width=100% height=100% text={webservice4.Stat.result.MsgCount} / mx:TextArea id=TestLogin1 width=100% height=100% text={webservice4.TestLogin.result} / mx:TextArea id=getMessages1 width=100% height=100% text={webservice4.GetMessages.result} / /mx:Application Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] WebSercices, result, Array, DataGrid - Problems
Check the columnName name mataches(case etc) with the on returned array? -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Francesco Sent: Thursday, May 26, 2005 6:06 PM To: Flexcoders Subject: [flexcoders] WebSercices, result, Array, DataGrid - Problems Hi, I've a problem with my application. I call a WebService that returns as result an array-- webservice.GetHeaders.result Then I try to put the result into a dataGrid like this: mx:DataGrid dataProvider={webservice4.GetAllHeaders.result} width=100% mx:columns mx:Array mx:DataGridColumn columnName=Date headerText=date / mx:DataGridColumn columnName=From headerText=From / mx:DataGridColumn columnName=Size headerText=Size / mx:DataGridColumn columnName=Subject headerText=Subject / mx:DataGridColumn columnName=UID headerText=UID / /mx:Array /mx:columns /mx:DataGrid but the dataGrid still empty. I've tried to put the result into a TextArea and I've receive: [object Object], [object Object], [object Object], [object Object] (I Know that the result should have 4 elements) I've tested the webservice with a Test web page and it is ok. Any suggestion? Thanks! Bye Francesco Here is my code; ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; verticalGap=10 mx:WebService serviceName=popUtil id=webservice4 result=alert('result received') showBusyCursor=true mx:operation name=Stat mx:request APassword/APassword AUsername/AUsername AHost/AHost /mx:request /mx:operation mx:operation name=GetMessages mx:request ANumArray item/item item/item /ANumArray APassword/APassword AUsername/AUsername AHost/AHost /mx:request /mx:operation mx:operation name=TestLogin mx:request APassword/APassword AUsername/AUsername AHost/AHost /mx:request /mx:operation mx:operation name=GetAllHeaders mx:request APassword/APassword AUsername/AUsername AHost/AHost /mx:request /mx:operation mx:operation name=GetHeaders mx:request ANumArray item/item /ANumArray APassword/APassword AUsername/AUsername AHost/AHost /mx:request /mx:operation /mx:WebService mx:HBox mx:Button label=Stat click=webservice4.Stat.send() / mx:Button label=GetAllHeaders click=webservice4.GetAllHeaders.send() / mx:Button label=GetHeaders click=webservice4.GetHeaders.send() / mx:Button label=TestLogin click=webservice4.TestLogin.send() / mx:Button label=GetMessages click=webservice4.GetMessages.send() / /mx:HBox mx:DataGrid id=data1 dataProvider={webservice4.GetAllHeaders.result} width=100% mx:columns mx:Array mx:DataGridColumn columnName=Date headerText=date / mx:DataGridColumn columnName=From headerText=From / mx:DataGridColumn columnName=Size headerText=Size / mx:DataGridColumn columnName=Subject headerText=Subject / mx:DataGridColumn columnName=UID headerText=UID / /mx:Array /mx:columns /mx:DataGrid mx:TextArea id=getHeaders1 width=100% height=100% text={webservice4.GetAllHeaders.result} / mx:TextArea id=stat1 width=100% height=100% text={webservice4.Stat.result.MsgCount} / mx:TextArea id=TestLogin1 width=100% height=100% text={webservice4.TestLogin.result} / mx:TextArea id=getMessages1 width=100% height=100% text={webservice4.GetMessages.result} / /mx:Application Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Cairngorm store - still trying
Tom (and anyone else having problems with HSQLDB) HSQLDB is used in this project in its 'in-process' mode, this means that it does not run as a seperate server process as a 'normal' database would such as MySQL or Oracle. The database instance is started by the first call to getConnection in HSQLDBCOnnectionManager protected Connection getConnection() throws Exception { return DriverManager.getConnection( jdbc:hsqldb:file: + dbPath + getSchema() , getUsername() , getPassword() ); } So Tomcat starts, Flex Gateway calls the method (probably after first remote call) and the HSQLDB Driver Manager creates the database files at the path specified by 'dbpath' When the java process that is holding the database in memory is running (Tomcat), various files are created, including lock files, etc. At the same point that the first connection is created, hsqldb code looks at the dbpath and tries to read in a .script file, which will include the product details. We currently have the db_path set to ..\db in the store.cfg file which gets copied by Ant (or manualy by you) to the classpath of the tomcat webapp. In Tomcat '..' (atleast on all the machines we have tested on) points to the next directory up from webapps (NOT the webapp, but the webapps directory). This would be TOMCAT_HOME/db (jakarta-tomcat-5.0.25/db) in your case. You should either have your .script file under that directory, or you can change store.cfg to point to another relative or explicit directory, for example c:/db . But to be honest, I would try and get it working with the default settings. If you are getting the can't find user messages, it is almost certainly the case that the code is not finding your .script file, as the second line of the .script file creates the user. Can I suggest the following steps to get it working: stop Tomcat create a directory called 'db' under your TOMCAT_HOME. make sure the .script file is there make sure your store.cfg is pointing to where it was when it shipped ( db_path=..\\db\\ ) (the double slashes are a java thing) DELETE any .lck files ENSURE that there are no other processes pointing at those files which may cause a lock to occur. Start TOmcat that should work We realise that HSQLDB has caused several people some config problems (we had them too). However, we were torn between providing code which could (in theory ;-) ) run out of the box and code which would require the downloading of a database server and running of database scripts. We have found HSQLDB can sometimes cause problems particularly when developing, due to the way it locks files. Be aware that there is a ten second timeout on the .lck file mandated by HSQLDB (not us). So if you are running unit tests or writing dev/debug code, you should be aware that for ten seconds after your code has run, there will still be a lock, maybe also if you have those files open in an editor? If you have MySQL, you could change the store.cfg to point to the MySQLConnectionManager instead ( there is a mysql script under db in the download). Links which may be of help: HsqlDB Manual (see 'in-process') http://hsqldb.sourceforge.net/web/hsqlDocsFrame.html About the ten second timeout http://blog.taragana.com/index.php/archive/how-to-close-all-connections-in-hsqldb-to-prevent-a-locking-defect/ I'm sorry to hear there were errors in the documentation, I spent several hours 'testing' them, please let me know what they are and I will ammend the docs hope this helps dan --- In flexcoders@yahoogroups.com, Tom Fitzpatrick [EMAIL PROTECTED] wrote: Still trying to get the cairngorm store products to show up. I thought I had done everything right - but there are several errors in the docs and I had to do some guessing, plus working with hints from Steven and Alex from iteration2. On startup, I'm getting a couple of warnings from the server: - log4j: WARN No appenders could be found for logger - log4j: WARN Please initialize the log4j system properly And, when I access the app, the server throws this error: Error: java.sql.SQLException: User not found: CAIRNGORMSTORE To make things easier, here's my current relevant directory structure: C: \servers db file: catalog.lck file: catalog.log file: catalog.properties file: catalog.script jakarta-tomcat-5.0.25 ... db file: catalog.properties file: catalog.script webapps cairngormstore assets data META-INF org tests WEB-INF classes conf file: log4j.properties file: store.cfg org nevis... flex file: cairngorm-manifest.xml file: flex-config.xml user_classes file: cairngorm.swc file: FlexUnit.swc lib files: jar files The db folder at the top level appears to be created automatically. Any other info I can provide to track this down? Thanks. - Tom Yahoo! Groups Links * To visit your group on the web, go to:
[flexcoders] Re: Cairngorm store - still trying
In Tomcat '..' (atleast on all the machines we have tested on) points to the next directory up from webapps (NOT the webapp, but the webapps directory). This would be TOMCAT_HOME/db (jakarta-tomcat-5.0.25/db) in your case. to clarify: if you have your app in TOMCAT_HOME/webapps/cairngormstore the filesystem seems to have the current directory set to TOMCAT_HOME/webapps, therefore .. points to TOMCAT_HOME (not TOMCAT_HOME/webapps) so ../db will point to TOMCAT_HOME/db if you are not sure this is happening on your OS, write a simple java class that outputs a file and call it in your webapp, wherever the file is written, is where . is, so put your db directory one up hth dan --- In flexcoders@yahoogroups.com, Daniel Harfleet [EMAIL PROTECTED] wrote: Tom (and anyone else having problems with HSQLDB) HSQLDB is used in this project in its 'in-process' mode, this means that it does not run as a seperate server process as a 'normal' database would such as MySQL or Oracle. The database instance is started by the first call to getConnection in HSQLDBCOnnectionManager protected Connection getConnection() throws Exception { return DriverManager.getConnection( jdbc:hsqldb:file: + dbPath + getSchema() , getUsername() , getPassword() ); } So Tomcat starts, Flex Gateway calls the method (probably after first remote call) and the HSQLDB Driver Manager creates the database files at the path specified by 'dbpath' When the java process that is holding the database in memory is running (Tomcat), various files are created, including lock files, etc. At the same point that the first connection is created, hsqldb code looks at the dbpath and tries to read in a .script file, which will include the product details. We currently have the db_path set to ..\db in the store.cfg file which gets copied by Ant (or manualy by you) to the classpath of the tomcat webapp. In Tomcat '..' (atleast on all the machines we have tested on) points to the next directory up from webapps (NOT the webapp, but the webapps directory). This would be TOMCAT_HOME/db (jakarta-tomcat-5.0.25/db) in your case. You should either have your .script file under that directory, or you can change store.cfg to point to another relative or explicit directory, for example c:/db . But to be honest, I would try and get it working with the default settings. If you are getting the can't find user messages, it is almost certainly the case that the code is not finding your .script file, as the second line of the .script file creates the user. Can I suggest the following steps to get it working: stop Tomcat create a directory called 'db' under your TOMCAT_HOME. make sure the .script file is there make sure your store.cfg is pointing to where it was when it shipped ( db_path=..\\db\\ ) (the double slashes are a java thing) DELETE any .lck files ENSURE that there are no other processes pointing at those files which may cause a lock to occur. Start TOmcat that should work We realise that HSQLDB has caused several people some config problems (we had them too). However, we were torn between providing code which could (in theory ;-) ) run out of the box and code which would require the downloading of a database server and running of database scripts. We have found HSQLDB can sometimes cause problems particularly when developing, due to the way it locks files. Be aware that there is a ten second timeout on the .lck file mandated by HSQLDB (not us). So if you are running unit tests or writing dev/debug code, you should be aware that for ten seconds after your code has run, there will still be a lock, maybe also if you have those files open in an editor? If you have MySQL, you could change the store.cfg to point to the MySQLConnectionManager instead ( there is a mysql script under db in the download). Links which may be of help: HsqlDB Manual (see 'in-process') http://hsqldb.sourceforge.net/web/hsqlDocsFrame.html About the ten second timeout http://blog.taragana.com/index.php/archive/how-to-close-all-connections-in-hsqldb-to-prevent-a-locking-defect/ I'm sorry to hear there were errors in the documentation, I spent several hours 'testing' them, please let me know what they are and I will ammend the docs hope this helps dan --- In flexcoders@yahoogroups.com, Tom Fitzpatrick [EMAIL PROTECTED] wrote: Still trying to get the cairngorm store products to show up. I thought I had done everything right - but there are several errors in the docs and I had to do some guessing, plus working with hints from Steven and Alex from iteration2. On startup, I'm getting a couple of warnings from the server: - log4j: WARN No appenders could be found for logger - log4j: WARN Please initialize the log4j system properly And, when I access the app, the server throws this error:
[flexcoders] Re: cairngorm and custom authentication
--- In flexcoders@yahoogroups.com, Steven Webster [EMAIL PROTECTED] wrote: Todd, I added an abstract SecureCommand class which implements Responder. I like it; neat implementation, and definitely agree with you putting this functionality into the SecureCommand base-class. Any command which accesses secured remote objects must extend SecureCommand. Nice. The showLogonWindow() method of SecurityDelegate takes one argument: the original Event. So while calling that method from ShowLogonWindowCommand, I pass a reference to the original Event object with it. Again, I like this ... this is exactly the same scheme we used to implement on the other side of the wire in the dark ages of JSP development ;) We'd intercept the request, handle authentication, and the dispatch the original request forward depending on authentication success. At this point the LogonWindow has a reference to the username, password and a reference to the original event. from here, when the logon button is pressed, the LogonWindowViewHelper broadcasts an EVENT_LOGON event which triggers the LogonCommand to execute. The LogonCommand's execute method accesses the setUsernamePassword() method of the SecurityDelegate. If you look at the ModelLocator, have you thought about simply keeping a UserPrincipal object in the model (same as keeping a Principal in the HTTP_SESSION in the bad old days) ? After posting my original thread, I did think about this. One of my secure commands (named whoAmISecureCommand) asks the middleware who the user is. the middleware returns a UserPrincipal Value Object object (named MemberVO) based on the user's principal which then gets set in the ModelLocator. On second thought, storing the username and password in an incomplete MemberVO object in the ModelLocator is not a bad idea. My SecureServiceLocator class can request the credentials inside of getService() instead of implementing it's own setUsernamePassword() method. What do you think? The setUsernamePassword() method of the SecurityDelegate sets the username and password properties of my own extended ServiceLocator: SecureServiceLocator. I use SecureServiceLocator in my application's mxml files just like the ServiceLocator. I all my secure RemoteObjects in there. So are you keeping passwords unencrypted on the client ? For now, I am. I don't want the user to have to input their credintials for every request made to a secure remote object. Do you have any suggestions? My SecureServiceLocator overrides cairngorm's ServiceLocator's getService() method. Inside SecureServiceLocator's getService() method, I call super's getService() to obtain a reference to the service. At this point, I call the setUsernamePassword() method of the service with the username and password of the SecureServiceLocator which was set inside of the SecurityDelegate's setUsernamePassword() method. Nice. Seems like a good implementation to meI'm thinking more about how you're handling password authentication, but I like the general architecture. Thanks for your input. -- Todd Boland Charged Software Best, Steven -- Steven Webster Technical Director iteration::two This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately. Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] creating images in a for-loop, problem.
Ive got a HBox in this HBox I'm placing a Canvas with an Image. I'm building it in ActionScript with a for-loop, see code below: for(var i=0;isummary.length;i++){ var tileCanvas:Canvas =Canvas(this._scope.tile_hbox.createChild( Canvas, tilebox, Canvas)); tileCanvas.vScrollPolicy = off; tileCanvas.hScrollPolicy = off; var background:Image = Image(tileCanvas.createChild( Image, background+i, Image)); background.source = ImageLibrary.tile_background; var preview:Image = Image(tileCanvas.createChild( Image, previewimage+i, Image)); preview.source = summary[i].Header.TeaserImageUrl; preview.x = 11; preview.y = 8; preview.visible = true; preview.toolTip = summary[i].Header.Name; var name:Label = Label(tileCanvas.createChild( Label, name+i, Label)); name.text = summary[i].Header.Name; name.styleName = testimonialname; name._x = 10; name._y = 93; } The only thing I see every name but only the first image is displayed. But every URL in de array is the same as the first one. Anybody??? Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: cairngorm and custom authentication
idea. My SecureServiceLocator class can request the credentials inside of getService() instead of implementing it's own setUsernamePassword() method. What do you think? I like it... So are you keeping passwords unencrypted on the client ? For now, I am. I don't want the user to have to input their credintials for every request made to a secure remote object. Do you have any suggestions? The more I think about it, I don't think it's an issue ... they're not statically compiled in, so it's only once the user has offered those credentials, they are essentially cached in memory for the lifetime of their session. The security concern is really the data going over the wire, and that's not a Flex problem, and it's one easily solved (HTTPS, etc). Good job ! Steven -- Steven Webster Technical Director iteration::two This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately. Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Cairngorm store - still trying
At 09:14 AM 5/26/2005, you wrote: I'm sorry to hear there were errors in the documentation, I spent several hours 'testing' them, please let me know what they are and I will ammend the docs OK - (and please let me know if I'm wrong and the docs are right): In the store instructions it says: For the purpose of this document WEBAPP_DIR is the directory where your server explodes its war files to (see 3.1). Firstly, you must copy the Cairngorm core API files to the web application on the server. You must copy: bin/cairngorm.swc to WEBAPP_DIR/cairngormlogin/WEB-INF/flex/user_classes/ bin/cairngorm-manifest.xml to WEBAPP_DIR/cairngormlogin/WEB-INF/flex These should read cairngormstore shouldn't they? In the next instruction, it's not clear whether store.cfg and log4j.properties should be copied to the classes folder, or whether they should still sit in a conf directory within the classes folder. I assumed the latter was the case. Similarly, it wasn't clear at first that catalog.properties and catalog.script should be in a new db folder - but since receiving your instructions I know that's the case. Next, the locations for the jar files is specified as: WEBAPP_DIR/WEB-INF/lib I believe that should be: WEBAPP_DIR/cairngormstore/WEB-INF/lib - Tom Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
R: [flexcoders] WebSercices, result, Array, DataGrid - Problems
I've checked (case, ...) and all seems tobe correct :-( Should I trasfer the result to a model? Thanks Francesco -Messaggio originale-Da: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]Per conto di Abdul QabizInviato: gioved, 26. maggio 2005 14:55A: flexcoders@yahoogroups.comOggetto: RE: [flexcoders] WebSercices, result, Array, DataGrid - ProblemsCheck the columnName name mataches(case etc) with the on returned array?-abdul-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of FrancescoSent: Thursday, May 26, 2005 6:06 PMTo: FlexcodersSubject: [flexcoders] WebSercices, result, Array, DataGrid - ProblemsHi,I've a problem with my application.I call a WebService that returns as result an array --webservice.GetHeaders.resultThen I try to put the result into a dataGrid like this: mx:DataGrid dataProvider="{webservice4.GetAllHeaders.result}"width="100%" mx:columns mx:Array mx:DataGridColumn columnName="Date"headerText="date" / mx:DataGridColumn columnName="From"headerText="From" / mx:DataGridColumn columnName="Size"headerText="Size" / mx:DataGridColumn columnName="Subject"headerText="Subject" / mx:DataGridColumn columnName="UID"headerText="UID" / /mx:Array /mx:columns /mx:DataGridbut the dataGrid still empty.I've tried to put the result into a TextArea and I've receive:[object Object], [object Object], [object Object], [object Object](I Know that the result should have 4 elements)I've tested the webservice with a Test web page and it is ok.Any suggestion?Thanks!Bye FrancescoHere is my code;?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"verticalGap="10"mx:WebService serviceName="popUtil" id="webservice4"result="alert('resultreceived')" showBusyCursor="true" mx:operation name="Stat" mx:request APassword/APassword AUsername/AUsername AHost/AHost /mx:request /mx:operation mx:operation name="GetMessages" mx:request ANumArray item/item item/item /ANumArray APassword/APassword AUsername/AUsername AHost/AHost /mx:request /mx:operation mx:operation name="TestLogin" mx:request APassword/APassword AUsername/AUsername AHost/AHost /mx:request /mx:operation mx:operation name="GetAllHeaders" mx:request APassword/APassword AUsername/AUsername AHost/AHost /mx:request /mx:operation mx:operation name="GetHeaders" mx:request ANumArray item/item /ANumArray APassword/APassword AUsername/AUsername AHost/AHost /mx:request /mx:operation /mx:WebService mx:HBox mx:Button label="Stat" click="webservice4.Stat.send()" / mx:Button label="GetAllHeaders"click="webservice4.GetAllHeaders.send()" / mx:Button label="GetHeaders"click="webservice4.GetHeaders.send()" / mx:Button label="TestLogin"click="webservice4.TestLogin.send()" / mx:Button label="GetMessages"click="webservice4.GetMessages.send()" / /mx:HBox mx:DataGrid id="data1"dataProvider="{webservice4.GetAllHeaders.result}"width="100%" mx:columns mx:Array mx:DataGridColumn columnName="Date"headerText="date" / mx:DataGridColumn columnName="From"headerText="From" / mx:DataGridColumn columnName="Size"headerText="Size" / mx:DataGridColumn columnName="Subject"headerText="Subject" / mx:DataGridColumn columnName="UID"headerText="UID" / /mx:Array /mx:columns /mx:DataGrid mx:TextArea id="getHeaders1" width="100%" height="100%"text="{webservice4.GetAllHeaders.result}" / mx:TextArea id="stat1" width="100%" height="100%"text="{webservice4.Stat.result.MsgCount}" / mx:TextArea id="TestLogin1" width="100%" height="100%"text="{webservice4.TestLogin.result}" / mx:TextArea id="getMessages1" width="100%" height="100%"text="{webservice4.GetMessages.result}" //mx:ApplicationYahoo! Groups Links Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: creating images in a for-loop, problem.
--- In flexcoders@yahoogroups.com, rockmoyosa [EMAIL PROTECTED] wrote: Ive got a HBox in this HBox I'm placing a Canvas with an Image. I'm building it in ActionScript with a for-loop, see code below: for(var i=0;isummary.length;i++){ var tileCanvas:Canvas =Canvas(this._scope.tile_hbox.createChild( Canvas, tilebox, Canvas)); tileCanvas.vScrollPolicy = off; tileCanvas.hScrollPolicy = off; var background:Image = Image(tileCanvas.createChild( Image, background+i, Image)); background.source = ImageLibrary.tile_background; var preview:Image = Image(tileCanvas.createChild( Image, previewimage+i, Image)); preview.source = summary[i].Header.TeaserImageUrl; preview.x = 11; preview.y = 8; preview.visible = true; preview.toolTip = summary[i].Header.Name; var name:Label = Label(tileCanvas.createChild( Label, name+i, Label)); name.text= summary[i].Header.Name; name.styleName = testimonialname; name._x = 10; name._y = 93; } The only thing I see every name but only the first image is displayed. But every URL in de array is the same as the first one. Anybody??? Still nuthing??! Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] CFlogin, SetCredentials and the RemoteObject
I was debating if I should have my login page exist within HTML or as a sep., stand alone MXML page. I mention it because I'm pretty sure the CFC method names and service names would be visible to a decompiler and thus, visible to any user who stumbles across the Flex Admin system or has just simple access to the Login screen, if the login is part of the overall Admin SWF. Ultimately, my MXML will be a CFM page and I was going to only show the Flex SWF if the session is valid, otherwise, kick them back to the sep. login page. Any thoughts? DaveOn 5/25/05, Indy Nagpal [EMAIL PROTECTED] wrote: Hi Dave:Here is my setup, I don't know if this helps.I have a CF application where users need to login. Once theysuccessfully plug in their username and password, their session issetup (I'm using jessionid). I have a cfc (with relevant functions for login/logout) that is used for authenticating users and setting upsession.I call that cfc as remoteobject, firing the login function in the cfc,passing it the username and password. If the login is successful, the session for the user is setup and all is sweet. I can access theuser's session info through the same cfc (i have a function thatreturns their session structure Flex. And my Flex code can then lookat the session object of the user and do what it needs to. I think the key for you would be to get jsessionid going, along withusing functions within a cfc to validate the user and return user'ssession (or any other value that you want to return to flex).Indy On 5/26/05, dave buhler [EMAIL PROTECTED] wrote:Hi Indy,I understand setting up perhaps the username and password as a session variable.Can you show me an example of how you are passing over the username and password in the remote object? I can see adding it as something like the following on each request: service.getKittens(loginVO,kittensVO)...but was wondering if there was another method that is used directly with the remote object configuration.Dave On 5/24/05, Indy Nagpal [EMAIL PROTECTED] wrote: Hi Dave: I've never tried using RemoteObject with cflogin, but RemoteObject works very nicely with CF session variables, so it should be able to pass that information to your application. To get it to work with session variables, I was using CF and Flex on the same server, and had turned on jsessionid (in CF Admin). Indy On 5/23/05, dave buhler [EMAIL PROTECTED] wrote: Does the RemoteObject permit the passing of a username and password to a CFLogin tag? I want to create an instance of NetConnection and include setCredentials(username,password) to pass over to my remote object for a valid user check on each request. If it's not supported in Flex, does anyone have any suggestions so that we can ensure a valid username and password is part of each remote CFC request.Best, mx.controls.Alert.show('Dave') Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.Yahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: creating images in a for-loop, problem.
Still nuthing??! You only posted 30 mins ago ! If I'm not mistaken, is what you are trying to achieve that given an array, called summary, you want to loop over that array and for each element in the array, you want to display an image with a label underneath it ? That being the case, I'm confused by the approach you are taking ... ... why would you not: o Create a custom component called Preview.mxml - This is a VBox with an Image and a Label o Use mx:Repeater to stamp out multiple Preview components, using summary as the dataProvider for your repeater ? Unless you're down to super-optimisation stages of your application, with nowhere left to go, your approach with ActionScript, using createChild(), etc, seems like putting a fork in the sugar bowl (a good Scottish money saving trick I'll let you know, but makes the intended task much harder than it need be) Thoughts ? Steven -- Steven Webster Technical Director iteration::two This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately. Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Cairngorm store - still trying
At 09:14 AM 5/26/2005, you wrote: Can I suggest the following steps to get it working: stop Tomcat create a directory called 'db' under your TOMCAT_HOME. make sure the .script file is there make sure your store.cfg is pointing to where it was when it shipped ( db_path=..\\db\\ ) (the double slashes are a java thing) DELETE any .lck files ENSURE that there are no other processes pointing at those files which may cause a lock to occur. Start TOmcat that should work Dan - Thanks for your fast response. I did everything you said, and I'm still getting the error messages: - log4j: WARN No appenders could be found for logger - log4j: WARN Please initialize the log4j system properly - Error: java.sql.SQLException: User not found: CAIRNGORMSTORE Seems like these would indicate what the problem is. Perhaps it's something besides the directory structure. The db folder is at the top level of my server directory structure (that is, at the same level as webapps, which contains the cairngormstore directory). In addition to the above error messages, when I restart the server and open the store application, a new db folder is created at the same level as my server. This folder contains catalog.lck, catalog.log, and catalog.properties - no catalog.script. The log file reads: CREATE USER SA PASSWORD ADMIN Any ideas? (Doc notes sent separately.) - Tom Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: Cairngorm store - still trying
In addition to the above error messages, when I restart the server and open the store application, a new db folder is created at the same level as my server. This folder contains catalog.lck, catalog.log, and catalog.properties - no catalog.script. The log file reads: CREATE USER SA PASSWORD ADMIN Any ideas? Tom, you just answered your own question ... you need to place catalog.script into the db directory; that is the script that the database reads to populate the products, and create the user. Alex posted this to you yesterday: In db you have to place your catalog.proteries and catalog.script files. This is also in the install guide: Finally, you must ensure that the database of catalogue products is available to the Flex application. Copy db/catalog.properties and db/catalog.script into the location specified in store.cfg (defaults to the parent of WEBAPP_DIR) So please ensure that you hve the catalog.script file copied into the db/ directory that you have created; if you use the Ant build tasks that we created, all this would be done for you. Let us know if this is your problem. Best, Steven -- Steven Webster Technical Director iteration::two This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately. Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: R: [flexcoders] WebSercices, result, Array, DataGrid - Problems
Just an idea. Make all the columnNames uppercase in your mxml. --- In flexcoders@yahoogroups.com, Francesco [EMAIL PROTECTED] wrote: I've checked (case, ...) and all seems to be correct :-( Should I trasfer the result to a model? Thanks Francesco -Messaggio originale- Da: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] conto di Abdul Qabiz Inviato: giovedi, 26. maggio 2005 14:55 A: flexcoders@yahoogroups.com Oggetto: RE: [flexcoders] WebSercices, result, Array, DataGrid - Problems Check the columnName name mataches(case etc) with the on returned array? -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Francesco Sent: Thursday, May 26, 2005 6:06 PM To: Flexcoders Subject: [flexcoders] WebSercices, result, Array, DataGrid - Problems Hi, I've a problem with my application. I call a WebService that returns as result an array-- webservice.GetHeaders.result Then I try to put the result into a dataGrid like this: mx:DataGrid dataProvider={webservice4.GetAllHeaders.result} width=100% mx:columns mx:Array mx:DataGridColumn columnName=Date headerText=date / mx:DataGridColumn columnName=From headerText=From / mx:DataGridColumn columnName=Size headerText=Size / mx:DataGridColumn columnName=Subject headerText=Subject / mx:DataGridColumn columnName=UID headerText=UID / /mx:Array /mx:columns /mx:DataGrid but the dataGrid still empty. I've tried to put the result into a TextArea and I've receive: [object Object], [object Object], [object Object], [object Object] (I Know that the result should have 4 elements) I've tested the webservice with a Test web page and it is ok. Any suggestion? Thanks! Bye Francesco * *** Here is my code; ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; verticalGap=10 mx:WebService serviceName=popUtil id=webservice4 result=alert('result received') showBusyCursor=true mx:operation name=Stat mx:request APassword/APassword AUsername/AUsername AHost/AHost /mx:request /mx:operation mx:operation name=GetMessages mx:request ANumArray item/item item/item /ANumArray APassword/APassword AUsername/AUsername AHost/AHost /mx:request /mx:operation mx:operation name=TestLogin mx:request APassword/APassword AUsername/AUsername AHost/AHost /mx:request /mx:operation mx:operation name=GetAllHeaders mx:request APassword/APassword AUsername/AUsername AHost/AHost /mx:request /mx:operation mx:operation name=GetHeaders mx:request ANumArray item/item /ANumArray APassword/APassword AUsername/AUsername AHost/AHost /mx:request /mx:operation /mx:WebService mx:HBox mx:Button label=Stat click=webservice4.Stat.send() / mx:Button label=GetAllHeaders click=webservice4.GetAllHeaders.send() / mx:Button label=GetHeaders click=webservice4.GetHeaders.send() / mx:Button label=TestLogin click=webservice4.TestLogin.send() / mx:Button label=GetMessages click=webservice4.GetMessages.send() / /mx:HBox mx:DataGrid id=data1 dataProvider={webservice4.GetAllHeaders.result} width=100% mx:columns mx:Array mx:DataGridColumn columnName=Date headerText=date / mx:DataGridColumn columnName=From headerText=From / mx:DataGridColumn columnName=Size headerText=Size / mx:DataGridColumn columnName=Subject headerText=Subject / mx:DataGridColumn columnName=UID headerText=UID / /mx:Array /mx:columns /mx:DataGrid mx:TextArea id=getHeaders1 width=100% height=100% text={webservice4.GetAllHeaders.result} / mx:TextArea id=stat1 width=100% height=100% text={webservice4.Stat.result.MsgCount} / mx:TextArea id=TestLogin1 width=100% height=100% text={webservice4.TestLogin.result} /
[flexcoders] Custom ComboBoxCellRenderer Issue
Hi, This is my second post regarding custom cell renderer issue. I'am trying to create a custom ComboBoxCellRenderer to be used in DataGrid. By default label is selected Item label value. On clicking in the cell ComboBoxCellRenderer is displayed with selected value. But the ComboBox never disappears when i click outside it. This is similar problem that i faced in custom DateCellRenderer. Can anybody please suggest what I'm missing. Attached is source code for the ComboBoxCellRenderer Thanks in advance, Pradeep Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ ComboBoxCellRenderer.as Description: Binary data
RE: [flexcoders] Re: Cairngorm store - still trying
At 10:29 AM 5/26/2005, you wrote: So please ensure that you hve the catalog.script file copied into the db/ directory that you have created; This did work - thanks! But - for the sake of others who might be confused - the odd thing is that I didn't create that db folder, it was created automatically (one level higher) after I had created a db folder, with the script file in it, at the level indicated in the docs and in Alex's email. Then, when I moved the script file to that newly created folder, the product images showed up. I am still getting the log4j error messages - I take it I can safely ignore them. Thanks again for your help in getting this going. Onward and upward! - Tom Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Custom DateCellRenderer issue.
Thanks Alistair. Surprisingly I had tried this same thing before sending the post but i was not able to acheive expected results. May be something else was also missing at that time. Thanks again, Pradeep On 5/25/05, Alistair McLeod [EMAIL PROTECTED] wrote: Hi Pradeep, Change your focusIn() method to the following: function focusIn() : Void { if ( dateObj == undefined ) { createClassObject( DateField, dateObj, 100, {styleName:this, owner:this}); dateObj.width=width; dateObj.dateFormatter=this.formatDate; dateObj.addEventListener(change, this); } dateObj.selectedDate = dateValue; dateObj.visible = true; label.visible = false; dateObj.setFocus(); } You were recreating the DateField object each time. I also removed the hardcoded with of 80 and set it to the cell width - this fixed the layout of the DateField when it first appeared. The creation of the DateField object probably better sits within createChildren, but that should make it work. Your date formatter isn't working because of scope of the dateFormat instance variable inside your formatDate() method, probably because you're adding event listeners without using the Delegate class - I'll let you work out the correct solution for that yourself, but a workaround for just now is to define the date formatter inside your formatDate() method: private function formatDate( date : Date ):String{ var dateFormat = new DateFormatter(); dateFormat.formatString=MM-DD-; return dateFormat.format(date); } Cheers, Ali -- Alistair McLeod Development Director iteration::two [EMAIL PROTECTED] Office: +44 (0)131 338 6108 This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately. Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Pradeep Chaudhary Sent: 25 May 2005 16:02 To: flexcoders@yahoogroups.com Subject: [flexcoders] Custom DateCellRenderer issue. Hi, I'am trying to create a custom DateCellRenderer to be used in DataGrid. By default label is displayed with formatted date value. On clicking in the cell DateField is displayed with cell value. After changing the date the DateField shows empty text field and its size changes. I want it to just display the changed value. The DateField should disappear when user clicks or tabs out of the DateField with the label displaying the new value. Also i could not apply a dateFormatter function to the DateField. Can anybody please suggest what I'm missing. Attached is source code for the DateCellRenderer and sample DataGrid in which it is used. Thanks in advance, Pradeep Yahoo! Groups Links Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
R: [flexcoders] WebSercices, result, Array, DataGrid - Problems
When I call a WebService the "result" is empty but if i look with the Network Monitor the "response" is full. Is that a problem with the web Service? here is what i see with the debugger; (all object should be full with items...) [array] : length[Number] : 9 [0][object] : [1][object] : [2][object] : [3][object] : [4][object] : [5][object] : [6][object] : [7][object] : [8][object] : here is the response from the server ?xml version="1.0" ? - SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" - SOAP-ENV:Body SOAP-ENC:encodingStyle="http://schemas.xmlsoap.org/soap/envelope/" - NS1:GetAllHeadersResponse xmlns:NS1="urn:ZPOP3Intf-IZPOP3" xmlns:NS2="http://www.zanetti-dev.com/XMLSchema" - return xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="NS2:Tzp3wsXSPOP3Header[9]" item href="#1" / item href="#2" / item href="#3" / item href="#4" / item href="#5" / item href="#6" / item href="#7" / item href="#8" / item href="#9" / /return - NS2:Tzp3wsXSPOP3Header id="1" xsi:type="NS2:Tzp3wsXSPOP3Header" Date xsi:type="xsd:dateTime"2005-05-25T23:00:23.000+02:00/Date From xsi:type="xsd:string"Francesco asdfo@asdf/From Size xsi:type="xsd:int"1084/Size Subject xsi:type="xsd:string"prova/Subject UID xsi:type="xsd:string" / /NS2:Tzp3wsXSPOP3Header - NS2:Tzp3wsXSPOP3Header id="2" xsi:type="NS2:Tzp3wsXSPOP3Header" Date xsi:type="xsd:dateTime"2005-05-25T23:02:08.000+02:00/Date From xsi:type="xsd:string"Francesco sdasdf@asdf.asdf/From Size xsi:type="xsd:int"1248/Size Subject xsi:type="xsd:string"I: prova/Subject UID xsi:type="xsd:string" / /NS2:Tzp3wsXSPOP3Header + NS2:Tzp3wsXSPOP3Header id="3" xsi:type="NS2:Tzp3wsXSPOP3Header" Date xsi:type="xsd:dateTime"2005-05-25T23:02:09.000+02:00/Date From xsi:type="xsd:string"Francesco sw@furf.ch/From Size xsi:type="xsd:int"1248/Size Subject xsi:type="xsd:string"I: prova/Subject UID xsi:type="xsd:string" / /NS2:Tzp3wsXSPOP3Header + NS2:Tzp3wsXSPOP3Header id="4" xsi:type="NS2:Tzp3wsXSPOP3Header" Date xsi:type="xsd:dateTime"2005-05-25T23:09:39.000+02:00/Date From xsi:type="xsd:string"Francesco asdfasdf@asdfasd/From Size xsi:type="xsd:int"1312/Size Subject xsi:type="xsd:string"I: oggetto del messaggio/Subject UID xsi:type="xsd:string" / /NS2:Tzp3wsXSPOP3Header + NS2:Tzp3wsXSPOP3Header id="5" xsi:type="NS2:Tzp3wsXSPOP3Header" Date xsi:type="xsd:dateTime"2005-05-25T23:08:07.000+02:00/Date From xsi:type="xsd:string"Francesco asdf@df.ch/From Size xsi:type="xsd:int"1132/Size Subject xsi:type="xsd:string"oggetto del messaggio/Subject UID xsi:type="xsd:string" / /NS2:Tzp3wsXSPOP3Header + NS2:Tzp3wsXSPOP3Header id="6" xsi:type="NS2:Tzp3wsXSPOP3Header" Date xsi:type="xsd:dateTime"2005-05-26T10:52:19.000+02:00/Date From xsi:type="xsd:string"Francesco ffds@frdfsdff.ch/From Size xsi:type="xsd:int"1491/Size Subject xsi:type="xsd:string"I: oggetto del messaggio/Subject UID xsi:type="xsd:string" / /NS2:Tzp3wsXSPOP3Header + NS2:Tzp3wsXSPOP3Header id="7" xsi:type="NS2:Tzp3wsXSPOP3Header" Date xsi:type="xsd:dateTime"2005-05-26T10:52:34.000+02:00/Date From xsi:type="xsd:string"Francesco sdf@fredfarf.ch/From Size xsi:type="xsd:int"1088/Size Subject xsi:type="xsd:string"asdf/Subject UID xsi:type="xsd:string" / /NS2:Tzp3wsXSPOP3Header + NS2:Tzp3wsXSPOP3Header id="8" xsi:type="NS2:Tzp3wsXSPOP3Header" Date xsi:type="xsd:dateTime"2005-05-26T13:03:49.000+02:00/Date From xsi:type="xsd:string"Francesco asdf@asdf.ch/From Size xsi:type="xsd:int"1249/Size Subject xsi:type="xsd:string"I: asdf/Subject UID xsi:type="xsd:string" / /NS2:Tzp3wsXSPOP3Header + NS2:Tzp3wsXSPOP3Header id="9" xsi:type="NS2:Tzp3wsXSPOP3Header" Date xsi:type="xsd:dateTime"2005-05-26T13:03:50.000+02:00/Date From xsi:type="xsd:string"Francesco asdf@asdff.ch/From Size xsi:type="xsd:int"1249/Size Subject xsi:type="xsd:string"I: asdf/Subject UID xsi:type="xsd:string" / /NS2:Tzp3wsXSPOP3Header /NS1:GetAllHeadersResponse /SOAP-ENV:Body /SOAP-ENV:Envelope Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Cairngorm store - still trying
Tom, thanks for the feedback on the docs, I will ammend the typos. There seems to be some inconsistancy at where Tomcat thinks the current directory is, maybe on some operating systems and/or some versions of Tomcat, it thinks it is in the web context and others, it thinks it is under the webapps directory. I'd be interested to see if this is a common problem. Just out of interest, are you using the Ant script, or are you doing all the configuration manually ? By the way, you can ignore the warning messages for Log4J, the log4J configuration should be picked up from the classes directory, where the store.cfg is, but maybe it is not happening for some reason, when I get time I will look into it. thanks for your feedback and glad you got it working eventually, dan --- In flexcoders@yahoogroups.com, Tom Fitzpatrick [EMAIL PROTECTED] wrote: At 10:29 AM 5/26/2005, you wrote: So please ensure that you hve the catalog.script file copied into the db/ directory that you have created; This did work - thanks! But - for the sake of others who might be confused - the odd thing is that I didn't create that db folder, it was created automatically (one level higher) after I had created a db folder, with the script file in it, at the level indicated in the docs and in Alex's email. Then, when I moved the script file to that newly created folder, the product images showed up. I am still getting the log4j error messages - I take it I can safely ignore them. Thanks again for your help in getting this going. Onward and upward! - Tom Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Cairngorm store - still trying
Dan - At 11:04 AM 5/26/2005, you wrote: Just out of interest, are you using the Ant script, or are you doing all the configuration manually ? No, I wasn't using the Ant script. Thanks again. - Tom Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] WebSercices, result, Array, DataGrid - Problems
Youre bound to myService.GetAllHeaders.result right? And is that value null or OK? If OK, what is the length, 9? If so maybe dont trust the debugger and write a little debugging code to see the value of your objects. for (var p in myService.GetAllHeaders.result[0]) trace(p + = + myService.GetAllHeaders.result[0][p]); Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Francesco Sent: Thursday, May 26, 2005 10:47 AM To: flexcoders@yahoogroups.com Subject: R: [flexcoders] WebSercices, result, Array, DataGrid - Problems When I call a WebService the result is empty but if i look with the Network Monitor the response is full. Is that a problem with the web Service? here is what i see with the debugger; (all object should be full with items...) Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: Binding a webservice result to a dataprovider
The dataProvider can be contained in an object, but the dataProvider assignment should be an array (for list based controls). Attached is an example that takes two xml source files, builds a dataProvider using one column (yesterday) from one file and the rest from the other, and adds a column that shows a calculated value. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Joel Parish Sent: Thursday, May 26, 2005 12:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Binding a webservice result to a dataprovider If I change the dataProvider to a list and map the dataProvider to ws.doStockHistory.result.date or ws.doStockHistory.result.price the list will show the right data, how do i combine these two into a datagrid? Can a datagrid use an object as a dataProvider or must it be an array? --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Hi, Your code looks fine. I guess, something is wrong with Webservice itself, it throws error. I have used a different webservice and it works fine, see the following code: ##GetQuotesWS.mxml## ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:WebService concurrency=single id=ws result=alert('result recieved') wsdl=http://www.xignite.com/xquotes.asmx?WSDL; mx:operation name=GetQuotes mx:request SymbolMACR,ADBE,YHOO,MSFT/Symbol /mx:request /mx:operation /mx:WebService mx:Panel width=100% height=100% mx:VBox width=100% height=100% mx:DataGrid id=grid width=100% height=100% dataProvider={ws.GetQuotes.result} mx:columns mx:Array mx:DataGridColumn columnName=Symbol headerText=Symbol/ mx:DataGridColumn columnName=Name headerText=Name/ mx:DataGridColumn columnName=Date headerText=Date/ mx:DataGridColumn columnName=Open headerText=Open/ mx:DataGridColumn columnName=High headerText=High/ mx:DataGridColumn columnName=Low headerText=Low/ mx:DataGridColumn columnName=Change headerText=Change/ mx:DataGridColumn columnName=Last headerText=Last/ /mx:Array /mx:columns /mx:DataGrid mx:Button label=Get click=ws.GetQuotes.send(); / /mx:VBox /mx:Panel /mx:Application Hope that helps.. -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cmdpromptjunkie Sent: Thursday, May 26, 2005 8:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Binding a webservice result to a dataprovider Hello, I am relatively new to the flex community. I have a question regarding a small application that I'm developing to learn flex. I've tried a lot of things but no mater what I do I cannot seem to bind the result of this webservice call to a dataProvider (ideally a chart) :( Heres the code for my app. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:WebService concurrency=single id=ws result=alert('recieved') wsdl=http://www.flash-db.com/services/ws/stockHistory.wsdl; mx:operation name=doStockHistory mx:request usernameany/username passwordany/password symbolNDAQ/symbol intervaldaily/interval dayFrom1/dayFrom monthFrom1/monthFrom yearFrom2005/yearFrom /mx:request /mx:operation /mx:WebService mx:Panel width=100% height=100% mx:VBox width=100% height=100% mx:DataGrid id=grid width=100% height=100% dataProvider={ws.doStockHistory.result} mx:columns mx:Array mx:DataGridColumn columnName=date / mx:DataGridColumn columnName=close / /mx:Array /mx:columns /mx:DataGrid mx:Button label=Get click=ws.doStockHistory.send(); / /mx:VBox /mx:Panel /mx:Application Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe
RE: [flexcoders] Applications forgetting variables
Create a new sample application that shows the problem you are having. It is important to have an entire sample that we can run immediately, and that has only the minimum code required to show the issue. Tracy From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, May 26, 2005 1:16 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Applications forgetting variables perhaps you are right do you know of any such tutorial. The reason I do not post a lot of my code is its way to long and complicated. I would rather post a simple example of code Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Tree change event
I dont see that behavior. Try the sample app below. Select a node, the node label will display in the Label field below. CTRL-click that node to deselect, and the Label control becomes empty. Tracy ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml width=600 height=400 mx:Script![CDATA[ // Variable that contains the data provider. var myDP : Array; // Function to initialize the data provider. function initTree() { myDP = new Array(); myDP.addItem({label:one}); myDP.addItem({label:two}); myDP.addItem({label:three}); myTree.dataProvider = myDP; } private function onChange(oEvent:Object):Void { lblSelectedNode.text = oEvent.target.selectedNode.getProperty(label); } ]]/mx:Script mx:Tree id=myTree initialize=initTree() change=onChange(event)/ mx:Label id=lblSelectedNode / /mx:Application From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mika Kiljunen Sent: Thursday, May 26, 2005 3:15 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Tree change event Hi, I noticed that the trees change event does not work as expected ( the same way as for example in DataGrid ). When a user selects a node on a tree, the tree sends change event properly, as in DataGrid. But when the user deselects (is that a word?) a node by clicking it with CTRL key down, it does not send change event (as datagrid does). This causes real problems, since I get no info that the there are no nodes now selected ( as user has done something I can not follow) and my buttons that should be disabled when no nodes are selected, stay enabled - leads to errors. Is there a fix or a nice workaround on this issue? Is this a feature or a bug in the Tree? -- Mika Kiljunen Ohjelmistosuunnittelija / Intensium Oy [EMAIL PROTECTED]ium.fi GSM: +358 50 352 4842 http://www.intensium.fi Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] dynamic dataprovider for the datagrid
Check out the Flex TreeGrid on the Advanced tab on the Flex Authority website: http://www.flexauthority.com/samplesIndex.cfm Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pv_rprasad Sent: Thursday, May 26, 2005 6:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] dynamic dataprovider for the datagrid hi, this is my 2nd mail to the groups. iam trying to build a data grid such that when i expand the tree nodes my datagrid should display rows for the visible nodes and when the tree collapses the corresponding rows in datagrid must become invisible. my xml looks something like this Funnel Month Capacity101/Capacity Allocation102/Allocation ForeCast103/ForeCast /Month Month Capacity201/Capacity Allocation202/Allocation ForeCast203/ForeCast /Month wheelhead1 Month Capacity111/Capacity Allocation112/Allocation ForeCast113/ForeCast /Month well1 Month Capacity1110/Capacity Allocation1120/Allocation ForeCast1130/ForeCast /Month /well1 my datagrid looks like this month1 month2month3 capacity allocatin forecast capacity allocatin forecast (tree) (datagrid value) funnel valval val val val val whl1 val val val val val val w1 val valval val val val w2 .... wh2val w1 .. w2 val since month contains the reqd data at any level. i want to change my dataprovider for every record like this dataProvider={pipedata.Month} dataProvider={pipedata.wheelhead1.Month} dataProvider={pipedata.wheelhead1.well1.Month} could anyone advise me on dynamically changing the dataprovider. thanks in advance Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Access mouse selection
Hello list, I searched for a reasonable time but got no working result. I'd like to know how do I access with ActionScript the selected text, the user can select with the mouse in a editable textarea. Just the selection, before copied or cut... Background I want to modify the selection and return the modifications just in time. I'm playing with an online thesaurus based on a webservice and I want to pass the selected text in a webservice call. Thanks in advance Reto Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] How i can do it?
I am doing to this successfully. To scroll the dg you need to set vPosition, but I don't see anything else wrong. Put a trace in the loop so you can look at the comparison: trace(indexOf: + dg.dataProvider[x].name + search for: + TextInput.text) Tracy Here is my code: private function findInitDep(oEvent:Object):Void { var sSearchString:String = oEvent.target.text; var aDepLists:Array = publisher.gaDependencyLists; var oDepList:Object; var sLabelLC:String; sSearchString = sSearchString.toLowerCase(); for ( var i:Number=0; iaDepLists.length; i++ ) { oDepList = aDepLists[i]; sLabelLC = oDepList.label.toLowerCase(); if (sLabelLC.indexOf(sSearchString) -1) { dgInitial.selectedIndex = i; dgInitial.vPosition = i; return; } }//for ( var i:Number=0; dgInitial.selectedIndex = -1; }// -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of devis Sent: Thursday, May 26, 2005 5:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How i can do it? Hi, i have a dataGrid into a panel with a controlBar. In my control bar there is a TextInput, i wish then a user press keyDown put focus in the dataGrid row. I have used indexof of research but don't work here a bit code function Find():Void { for(var x;xdg.dataProvider.length;x++) { if(dg.dataProvider[x].name.indexOf(TextInput.text) -1) { //Here i wish to set dataGrid Row dg.selectedIndex=x;? here don't work, and if my dataGrid show scrollBar this function don't scroll // break because i wish to stop the reserch at first Element break; } } Can you help me please? Devis ps. sorry, i don't know very well ActionScript. But there is an other method for searching subString into a String, sometimes indexof don't work well Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] DateField/DateChooser CellRenderer?
Rich, I speak French also - mostly at times of great stress. Perhaps this might have some of what you're looking for... http://www.richinternet.de/blog/index.cfm?entry=4DA93A40-FEB8-2E53-6D6DA35A0E7B46D2 Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Richard Butler Sent: Thursday, May 26, 2005 11:42 AM To: [flexcoders] Subject: [flexcoders] DateField/DateChooser CellRenderer? Hi guys, I've got a bit of a messy issue here (unless there's a gorgeous undocumented feature I can't find :-) - but I need to create a CellRenderer for a DateField component. Now, I presume I can do this either of two ways: either there's a magical cellRenderer type thing for the DateField that I can use, or I have to write a custom component. I'd usually have no problem extending mx components, but the DateField has a DateChooser that has a CalendarLayout, which looks like a, désolée la Francais, bitch to get inside and rip apart. The reason behind this need is that for a hotel reservation interface I need to block out dates on a calendar for different reasons, and provide a different state accordingly. For example, a date may be completely sold out (signified by a red cross over that date, for example), but another date may not be on sale for the selected special offer (signified by a gray cross), etc. Anyone got any advice on how to approach this? Cheers, Rich -- Richard Butler www.monochrome.co.uk Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] DateField/DateChooser CellRenderer?
On 5/26/05, Richard Butler [EMAIL PROTECTED] wrote: The reason behind this need is that for a hotel reservation interface I need to block out dates on a calendar for different reasons, and provide a different state accordingly. For example, a date may be completely sold out (signified by a red cross over that date, for example), but another date may not be on sale for the selected special offer (signified by a gray cross), etc. Anyone got any advice on how to approach this? You can get the x and y positions of the date labels using the following trick: ?xml version=1.0? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* mx:DateChooser id=dateChooser / mx:Button label=Click Me click=buttonClicked() / mx:TextArea id=textArea width=100% height=100% / mx:Script function buttonClicked():Void { for (var p:String in dateChooser.dateGrid) { if (p.slice(0, 8) == dayBlock) { var label:TextField = TextField(dateChooser.dateGrid[p]); textArea.text += p + is at + label._x + , + label._y + \n; } } } /mx:Script /mx:Application Next, you want to add your red cross symbols to the DateChooser and position them where you want. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] DateField/DateChooser CellRenderer?
Cheers for that guys... Will try both methods and hope for some luck :-) Rich -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani Sent: 26 May 2005 18:31 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] DateField/DateChooser CellRenderer? On 5/26/05, Richard Butler [EMAIL PROTECTED] wrote: The reason behind this need is that for a hotel reservation interface I need to block out dates on a calendar for different reasons, and provide a different state accordingly. For example, a date may be completely sold out (signified by a red cross over that date, for example), but another date may not be on sale for the selected special offer (signified by a gray cross), etc. Anyone got any advice on how to approach this? You can get the x and y positions of the date labels using the following trick: ?xml version=1.0? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* mx:DateChooser id=dateChooser / mx:Button label=Click Me click=buttonClicked() / mx:TextArea id=textArea width=100% height=100% / mx:Script function buttonClicked():Void { for (var p:String in dateChooser.dateGrid) { if (p.slice(0, 8) == dayBlock) { var label:TextField = TextField(dateChooser.dateGrid[p]); textArea.text += p + is at + label._x + , + label._y + \n; } } } /mx:Script /mx:Application Next, you want to add your red cross symbols to the DateChooser and position them where you want. Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Custom ComboBoxCellRenderer Issue
On 5/26/05, Pradeep Chaudhary [EMAIL PROTECTED] wrote: This is my second post regarding custom cell renderer issue. I'am trying to create a custom ComboBoxCellRenderer to be used in DataGrid. By default label is selected Item label value. On clicking in the cell ComboBoxCellRenderer is displayed with selected value. But the ComboBox never disappears when i click outside it. This is similar problem that i faced in custom DateCellRenderer. I think you'll have to make your cell renderer extend Canvas and contain a ComboBox and a TextField, and toggle the visibility of the ComboBox and TextField depending on whether the cell renderer has focus. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Access mouse selection
Hi, You can use the Selection Object for the same. Tracy already posted the link of docs. Just wrote a quick and dirty example, look at it and read the comments in the code to know what is happening. ##SelectionObjectExample.mxml## ?xml version=1.0 encoding=iso-8859-1? mx:Application width=800 height=600 xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ var lastFocussedObject:Object = null; var beginIndex:Number; var endIndex:Number; function getSelectedText():String { //get the reference of currently focussed object. var obj:Object = ta.getFocus(); //store the reference of currently focussed object lastFocussedObject = obj; //check if it is a selectable textfield if(obj instanceof TextField obj.selectable == true) { //get the selection based on beginIndex and endIndex beginIndex = Selection.getBeginIndex(); endIndex = Selection.getEndIndex(); var selectedText:String = obj.text.substring(beginIndex,endIndex); alert(Selected Text: + selectedText); return selectedText } else { //return null when selected object is not a TextField return null; } } //this function restores the focus to the last selected object. function restoreFocus() { //set the focus back to the last focussed object Selection.setFocus(lastFocussedObject); //if it was TextField if(lastFocussedObject instanceof TextField) { //set the selection also Selection.setSelection(beginIndex, endIndex) beginIndex = endIndex = 0; } } ]] /mx:Script mx:TextArea id=ta width=300 height=200/ mx:TextArea id=ta2 width=300 height=200/ !-- We are using mouseDown mouseUp instead of click, because that's how you can get the details of last focussed object before focus is shifted to button. -- mx:Button id=btn label=Get Selection mouseDown=getSelectedText() mouseUp=restoreFocus(); / /mx:Application Hope that helps -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Reto M. Kiefer Sent: Thursday, May 26, 2005 10:31 PM To: Flexcoders Subject: [flexcoders] Access mouse selection Hello list, I searched for a reasonable time but got no working result. I'd like to know how do I access with ActionScript the selected text, the user can select with the mouse in a editable textarea. Just the selection, before copied or cut... Background I want to modify the selection and return the modifications just in time. I'm playing with an online thesaurus based on a webservice and I want to pass the selected text in a webservice call. Thanks in advance Reto Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Using a drag proxy
On 5/26/05, digital_eyezed [EMAIL PROTECTED] wrote: I have a fully functioning drag and drop operation going on. All I want to do is add an image using the drag proxy functionality to the application. Here is the tree I drag from: mx:Tree id=tree1 dataProvider={MyService.result} width=100% height=100% dragEnabled=true/ [...] You can do it by making your own drag proxy. See example below. ?xml version=1.0? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* backgroundColor=white MyTree dragEnabled=true dataProvider mx:Array mx:Object label=foo / mx:Object label=bar / /mx:Array /dataProvider /MyTree /mx:Application // MyTree.as class MyTree extends mx.controls.Tree { function get dragImage() { return MyDragProxy; } } //MyDragProxy.as class MyDragProxy extends mx.controls.listclasses.DragProxy { public function createChildren():Void { super.createChildren(); var label = createClassObject(mx.controls.Label, , getNextHighestDepth(), {text: Watch me move}); label.y += 20; } } You can put your image in createChildren() Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Using a drag proxy
Note that overriding the dragImage getter is undocumented/unsupported/use-at-your-own-risk From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Manish Jethani Sent: Thursday, May 26, 2005 2:07 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Using a drag proxy On 5/26/05, digital_eyezed [EMAIL PROTECTED] wrote: I have a fully functioning drag and drop operation going on. All I want to do is add an image using the drag proxy functionality to the application. Here is the tree I drag from: mx:Tree id=tree1 dataProvider={MyService.result} width=100% height=100% dragEnabled=true/ [...] You can do it by making your own drag proxy. See example below. ?xml version=1.0? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml xmlns=* backgroundColor=white MyTree dragEnabled=true dataProvider mx:Array mx:Object label=foo / mx:Object label=bar / /mx:Array /dataProvider /MyTree /mx:Application // MyTree.as class MyTree extends mx.controls.Tree { function get dragImage() { return MyDragProxy; } } //MyDragProxy.as class MyDragProxy extends mx.controls.listclasses.DragProxy { public function createChildren():Void { super.createChildren(); var label = createClassObject(mx.controls.Label, , getNextHighestDepth(), {text: Watch me move}); label.y += 20; } } You can put your image in createChildren() Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] flexapps.macromedia.com source?
Hi all, I was just wondering if MM provided source on some of these things? I realize they are probably all in weblogs somewhere..but a single point would be nice Site I'm talking about: http://flexapps.macromedia.com/flex15/ Thanks for any info Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: Not diplaying properly in Firefox browser?
Eric ( anyone else interested), I just finished a simple Greasemonkey script which fixes this problem. :) Check out the details: http://www.cayambe.com/ I can now see .mxml pages in Firefox on Linux! :) -James On Wed, 2005-05-04 at 11:19 -0700, Eric Raymond wrote: It happens on two machines here, Fedora Core 2 and Red Hat 8.0, so I doubt it is that dependent on your flavor of Linux. And the fact that it seems to affect Macromedia created apps as well as our own suggest that the problem is much deeper. FYI, we also have Firefox 1.0.3 (latest). Let the finger pointing begin! James Ward wrote: Hey Eric. I have the same problem on Gentoo with Firefox 1.0.3. What flavor of Linux are you using? I tried to replicate this problem on a friend's RedHat box and couldn't, but there is a good chance that they were using an out-of-date version of Mozilla. -James On Sun, 2005-05-01 at 02:53 +, Eric Raymond wrote: Flex apps do not seem to be rendering properly when viewed in the Mozilla Firefox browser under Linux. For some reason only the leftmost 200 pixels are displayed. The rest of the application is gray. Resizing the window has no effect. This affects the Store Demo on the macromedia site. I'm running Shockwave Flash 7.0 r25. Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] flexapps.macromedia.com source?
Not for the most part. Christophes blog has the source for a few of them. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Rick Schmitty Sent: Thursday, May 26, 2005 2:22 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] flexapps.macromedia.com source? Hi all, I was just wondering if MM provided source on some of these things? I realize they are probably all in weblogs somewhere..but a single point would be nice Site I'm talking about: http://flexapps.macromedia.com/flex15/ Thanks for any info Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] file handling
Is there any moderately simple way to do file handling on the client (e.g. to prompt for a user to save a file, such as an mp3)? TIA. Drew Falkman Veraison, LLC Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] mousedown scope
I have a custom component, based on the Panel component, that can be selected with a mousedown. The component contains subcomponents that also have mousedowns with different behaviors. Is it possible to disassociate the two? Right now, clicking the subcomponent also selects the Panel. I'd like to be able to click the subcomponent without selecting the Panel - sort of a problem of eliminating the bubble-down, I guess. Is this possible? Or, can I have the mousedown on the Panel associated only with the Panel Header? - Tom Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] file handling
As in, the user can upload an MP3 file through Flex?On 5/26/05, Drew Falkman [EMAIL PROTECTED] wrote: Is there any moderately simple way to do file handling on the client (e.g.to prompt for a user to save a file, such as an mp3)? TIA.Drew FalkmanVeraison, LLCYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to:[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] file handling
Short answer: No. Long answer: Client file system access is limited by the security sandbox, both at the browser and Flash Player level. You can achieve file upload capability using a custom HTML wrapper containing custom javascript. Here's one link, google will find more. http://www.flexauthority.com/articlesArchive/fileUpload.cfm. You can achieve local file access using a C# program with javascript and Flex. Davis, I think, posted a solution, but I haven't found it yet. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Drew Falkman Sent: Thursday, May 26, 2005 3:05 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] file handling Is there any moderately simple way to do file handling on the client (e.g. to prompt for a user to save a file, such as an mp3)? TIA. Drew Falkman Veraison, LLC Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] file handling
Found it. It is under this subject: Great Abdul (c++/flex) source c++ -- flex Posted around 4/14 Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Thursday, May 26, 2005 4:27 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] file handling Short answer: No. Long answer: Client file system access is limited by the security sandbox, both at the browser and Flash Player level. You can achieve file upload capability using a custom HTML wrapper containing custom javascript. Here's one link, google will find more. http://www.flexauthority.com/articlesArchive/fileUpload.cfm. You can achieve local file access using a C# program with javascript and Flex. Davis, I think, posted a solution, but I haven't found it yet. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Drew Falkman Sent: Thursday, May 26, 2005 3:05 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] file handling Is there any moderately simple way to do file handling on the client (e.g. to prompt for a user to save a file, such as an mp3)? TIA. Drew Falkman Veraison, LLC Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] WebSercices, result, Array, DataGrid - Problems
Use a DataModel to receive the webservice results - Original Message - From: Francesco To: flexcoders@yahoogroups.com Sent: Thursday, May 26, 2005 7:55 AM Subject: R: [flexcoders] WebSercices, result, Array, DataGrid - Problems I've checked (case, ...) and all seems tobe correct :-( Should I trasfer the result to a model? Thanks Francesco -Messaggio originale-Da: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]Per conto di Abdul QabizInviato: giovedì, 26. maggio 2005 14:55A: flexcoders@yahoogroups.comOggetto: RE: [flexcoders] WebSercices, result, Array, DataGrid - ProblemsCheck the columnName name mataches(case etc) with the on returned array?-abdul-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of FrancescoSent: Thursday, May 26, 2005 6:06 PMTo: FlexcodersSubject: [flexcoders] WebSercices, result, Array, DataGrid - ProblemsHi,I've a problem with my application.I call a WebService that returns as result an array --webservice.GetHeaders.resultThen I try to put the result into a dataGrid like this: mx:DataGrid dataProvider="{webservice4.GetAllHeaders.result}"width="100%" mx:columns mx:Array mx:DataGridColumn columnName="Date"headerText="date" / mx:DataGridColumn columnName="From"headerText="From" / mx:DataGridColumn columnName="Size"headerText="Size" / mx:DataGridColumn columnName="Subject"headerText="Subject" / mx:DataGridColumn columnName="UID"headerText="UID" / /mx:Array /mx:columns /mx:DataGridbut the dataGrid still empty.I've tried to put the result into a TextArea and I've receive:[object Object], [object Object], [object Object], [object Object](I Know that the result should have 4 elements)I've tested the webservice with a Test web page and it is ok.Any suggestion?Thanks!Bye FrancescoHere is my code;?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"verticalGap="10"mx:WebService serviceName="popUtil" id="webservice4"result="alert('resultreceived')" showBusyCursor="true" mx:operation name="Stat" mx:request APassword/APassword AUsername/AUsername AHost/AHost /mx:request /mx:operation mx:operation name="GetMessages" mx:request ANumArray item/item item/item /ANumArray APassword/APassword AUsername/AUsername AHost/AHost /mx:request /mx:operation mx:operation name="TestLogin" mx:request APassword/APassword AUsername/AUsername AHost/AHost /mx:request /mx:operation mx:operation name="GetAllHeaders" mx:request APassword/APassword AUsername/AUsername AHost/AHost /mx:request /mx:operation mx:operation name="GetHeaders" mx:request ANumArray item/item /ANumArray APassword/APassword AUsername/AUsername AHost/AHost /mx:request /mx:operation /mx:WebService mx:HBox mx:Button label="Stat" click="webservice4.Stat.send()" / mx:Button label="GetAllHeaders"click="webservice4.GetAllHeaders.send()" / mx:Button label="GetHeaders"click="webservice4.GetHeaders.send()" / mx:Button label="TestLogin"click="webservice4.TestLogin.send()" / mx:Button label="GetMessages"click="webservice4.GetMessages.send()" / /mx:HBox mx:DataGrid id="data1"dataProvider="{webservice4.GetAllHeaders.result}"width="100%" mx:columns mx:Array mx:DataGridColumn columnName="Date"headerText="date" / mx:DataGridColumn columnName="From"headerText="From" / mx:DataGridColumn columnName="Size"headerText="Size" / mx:DataGridColumn columnName="Subject"headerText="Subject" / mx:DataGridColumn columnName="UID"headerText="UID" / /mx:Array /mx:columns /mx:DataGrid mx:TextArea id="getHeaders1" width="100%" height="100%"text="{webservice4.GetAllHeaders.result}" / mx:TextArea id="stat1" width="100%" height="100%"text="{webservice4.Stat.result.MsgCount}" / mx:TextArea id="TestLogin1" width="100%" height="100%"text="{webservice4.TestLogin.result}" / mx:TextArea id="getMessages1" width="100%" height="100%"text="{webservice4.GetMessages.result}" //mx:ApplicationYahoo! Groups Links Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo!
Re: [flexcoders] CFlogin, SetCredentials and the RemoteObject
Have you looked at creating named remoteobjects? That way even though the methods might be visible in the decompiler, but path to the actual cfc won't be. Hmm... regarding your swf file finally being part of cfm page... I've find myself more comfortable with standalone flex apps (that interact with CF through remoteobject) rather and flex apps embedded in cfm pages. I find debugging quite painful when a flex app is embbed in a cfm page. Indy On 5/27/05, dave buhler [EMAIL PROTECTED] wrote: I was debating if I should have my login page exist within HTML or as a sep., stand alone MXML page. I mention it because I'm pretty sure the CFC method names and service names would be visible to a decompiler and thus, visible to any user who stumbles across the Flex Admin system or has just simple access to the Login screen, if the login is part of the overall Admin SWF. Ultimately, my MXML will be a CFM page and I was going to only show the Flex SWF if the session is valid, otherwise, kick them back to the sep. login page. Any thoughts? Dave On 5/25/05, Indy Nagpal [EMAIL PROTECTED] wrote: Hi Dave: Here is my setup, I don't know if this helps. I have a CF application where users need to login. Once they successfully plug in their username and password, their session is setup (I'm using jessionid). I have a cfc (with relevant functions for login/logout) that is used for authenticating users and setting up session. I call that cfc as remoteobject, firing the login function in the cfc, passing it the username and password. If the login is successful, the session for the user is setup and all is sweet. I can access the user's session info through the same cfc (i have a function that returns their session structure Flex. And my Flex code can then look at the session object of the user and do what it needs to. I think the key for you would be to get jsessionid going, along with using functions within a cfc to validate the user and return user's session (or any other value that you want to return to flex). Indy On 5/26/05, dave buhler [EMAIL PROTECTED] wrote: Hi Indy, I understand setting up perhaps the username and password as a session variable. Can you show me an example of how you are passing over the username and password in the remote object? I can see adding it as something like the following on each request: service.getKittens(loginVO,kittensVO) ...but was wondering if there was another method that is used directly with the remote object configuration. Dave On 5/24/05, Indy Nagpal [EMAIL PROTECTED] wrote: Hi Dave: I've never tried using RemoteObject with cflogin, but RemoteObject works very nicely with CF session variables, so it should be able to pass that information to your application. To get it to work with session variables, I was using CF and Flex on the same server, and had turned on jsessionid (in CF Admin). Indy On 5/23/05, dave buhler [EMAIL PROTECTED] wrote: Does the RemoteObject permit the passing of a username and password to a CFLogin tag? I want to create an instance of NetConnection and include setCredentials(username,password) to pass over to my remote object for a valid user check on each request. If it's not supported in Flex, does anyone have any suggestions so that we can ensure a valid username and password is part of each remote CFC request. Best, mx.controls.Alert.show('Dave') Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Disabling individual list items
I'm trying to figure out how to disable an individual list item (just one item from a list of 20, for example), but I can't see where to set the enabled=false. I don't want to remove the items from the list - I just want them to not be selectable. Any thoughts / experience with this? /*** * Jeff Beeman * Digital Media Instructional Technologies * Arizona State University ***/ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Using a drag proxy
Thanks for your help so far: Where is the documentation on this kind of class extension, where do I find the constructor for dragProxy in order for me to know how to add the image in the createChilren function? Do I just add: var image1 = createClassObject(mx.controls.image, something, something, something Thanks Iain --- In flexcoders@yahoogroups.com, Manish Jethani [EMAIL PROTECTED] wrote: On 5/26/05, digital_eyezed [EMAIL PROTECTED] wrote: I have a fully functioning drag and drop operation going on. All I want to do is add an image using the drag proxy functionality to the application. Here is the tree I drag from: mx:Tree id=tree1 dataProvider={MyService.result} width=100% height=100% dragEnabled=true/ [...] You can do it by making your own drag proxy. See example below. ?xml version=1.0? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* backgroundColor=white MyTree dragEnabled=true dataProvider mx:Array mx:Object label=foo / mx:Object label=bar / /mx:Array /dataProvider /MyTree /mx:Application // MyTree.as class MyTree extends mx.controls.Tree { function get dragImage() { return MyDragProxy; } } //MyDragProxy.as class MyDragProxy extends mx.controls.listclasses.DragProxy { public function createChildren():Void { super.createChildren(); var label = createClassObject(mx.controls.Label, , getNextHighestDepth(), {text: Watch me move}); label.y += 20; } } You can put your image in createChildren() Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] I need assistance with datdgrid row height.
I am loading search results in a datagrid and I need to make the row heights automatically change based on the length of the text. variableRowHeight is not getting the job done. The problem may lie in the cell renderer but I need a suggestion to fix this. Thanks ryan Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] CFlogin, SetCredentials and the RemoteObject
Interesting... So if I use the named remote objects in the flex-config file, the paths to the CFCs aren't visible? I should use a decompiler on my own app to see, but I had assumed the paths would be compiled. DaveOn 5/26/05, Indy Nagpal [EMAIL PROTECTED] wrote: Have you looked at creating named remoteobjects? That way even thoughthe methods might be visible in the decompiler, but path to the actualcfc won't be.Hmm... regarding your swf file finally being part of cfm page... I've find myself more comfortable with standalone flex apps (thatinteract with CF through remoteobject) rather and flex apps embeddedin cfm pages. I find debugging quite painful when a flex app is embbed in a cfm page.IndyOn 5/27/05, dave buhler [EMAIL PROTECTED] wrote:I was debating if I should have my login page exist within HTML or as a sep., stand alone MXML page.I mention it because I'm pretty sure the CFC method names and service names would be visible to a decompiler and thus, visible to any user who stumbles across the Flex Admin system or has just simple access to the Login screen, if the login is part of the overall Admin SWF.Ultimately, my MXML will be a CFM page and I was going to only show the Flex SWF if the session is valid, otherwise, kick them back to the sep. login page.Any thoughts?Dave On 5/25/05, Indy Nagpal [EMAIL PROTECTED] wrote: Hi Dave: Here is my setup, I don't know if this helps. I have a CF application where users need to login. Once they successfully plug in their username and password, their session is setup (I'm using jessionid). I have a cfc (with relevant functions for login/logout) that is used for authenticating users and setting up session. I call that cfc as remoteobject, firing the login function in the cfc, passing it the username and password. If the login is successful, the session for the user is setup and all is sweet. I can access the user's session info through the same cfc (i have a function that returns their session structure Flex. And my Flex code can then look at the session object of the user and do what it needs to. I think the key for you would be to get jsessionid going, along with using functions within a cfc to validate the user and return user's session (or any other value that you want to return to flex). Indy On 5/26/05, dave buhler [EMAIL PROTECTED] wrote: Hi Indy,I understand setting up perhaps the username and password as a session variable.Can you show me an example of how you are passing over the username and password in the remote object? I can see adding it as something like the following on each request:service.getKittens(loginVO,kittensVO)...but was wondering if there was another method that is used directly with the remote object configuration.Dave On 5/24/05, Indy Nagpal [EMAIL PROTECTED] wrote:Hi Dave: I've never tried using RemoteObject with cflogin, but RemoteObjectworks very nicely with CF session variables, so it should be able to pass that information to your application. To get it to work withsession variables, I was using CF and Flex on the same server, and hadturned on jsessionid (in CF Admin). Indy On 5/23/05, dave buhler [EMAIL PROTECTED] wrote:Does the RemoteObject permit the passing of a username and password to a CFLogin tag? I want to create an instance of NetConnection and include setCredentials(username,password) to pass over to my remote object for a valid user check on each request. If it's not supported in Flex, does anyone have any suggestions so that we can ensure a valid username and password is part of each remote CFC request.Best, mx.controls.Alert.show('Dave') Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.Yahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ Yahoo! Groups
RE: [flexcoders] I need assistance with datdgrid row height.
Did you also set wordWrap=true on the appropriate DataGridColumn? Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ryan99899 Sent: Thursday, May 26, 2005 5:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] I need assistance with datdgrid row height. I am loading search results in a datagrid and I need to make the row heights automatically change based on the length of the text. variableRowHeight is not getting the job done. The problem may lie in the cell renderer but I need a suggestion to fix this. Thanks ryan Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] I need assistance with datdgrid row height.
Here is a sample app: ?xml version=1.0 encoding=utf-8? !-- DataGrid showing Array of Objects dataProvider, multiline content with {newline} and \n, addItem, and variableLineHeight -- mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script![CDATA[ /*** uses addItem and \n to add an item to the datagrid's dataProvider on the dataGrid initialize event. */ private function initDg(oEvent):Void { var dgLit:mx.controls.DataGrid = oEvent.target; var dpLit:Object = dgLit.dataProvider; dpLit.addItem({name:emily, text:I think that I shall never see\na poem lovely as a tree} ) }//initDg ]]/mx:Script mx:Array id=dpTest mx:Object name=hamlet text=To be or not to be, that is the question.{newline}Whether 'tis nobler in the mind to suffer{newline}the slings and arrows of outrageous fortune,{newline}or to take arms against a sea of troubles,{newline}and by opposing, end them. / mx:Object name=jabberwocky text=Twas brillig and the slithy toves did gyre and gimbal in the wabe. All mimsey were the borogoves and the mome rath outgrabe. / /mx:Array mx:DataGrid id=dgSource dataProvider={dpTest} wordWrap=true variableRowHeight=true initialize=initDg(event) rowCount=3 height=200 headerHeight=30 mx:columns mx:Array mx:DataGridColumn headerText=Data{newline}Name columnName=name width=150/ mx:DataGridColumn headerText=Text columnName=text width=300 wordWrap=true/ /mx:Array /mx:columns /mx:DataGrid /mx:Application -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Thursday, May 26, 2005 7:01 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] I need assistance with datdgrid row height. Did you also set wordWrap=true on the appropriate DataGridColumn? Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ryan99899 Sent: Thursday, May 26, 2005 5:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] I need assistance with datdgrid row height. I am loading search results in a datagrid and I need to make the row heights automatically change based on the length of the text. variableRowHeight is not getting the job done. The problem may lie in the cell renderer but I need a suggestion to fix this. Thanks ryan Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Disabling individual list items
Unfortunately, there's no built-in API for disabling a row. There's no official API to get at individual rows either. You could set an enabled property on a row using setPropertiesAt, then have a custom cellRenderer look for it and disable itself. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/