RE: [flexcoders] ItemRenderer that switches to edit mode depending on where it's clicked
Honestly? I'd take a leaf out of Flex 4, and ignore the ItemEditor. You can get the same effect by having the item renderer switch to an editable state, and therefore get the functionality you want without having to wade through the ItemEditor nonsense. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of hr1ny Sent: 30 July 2009 18:05 To: flexcoders@yahoogroups.com Subject: [flexcoders] ItemRenderer that switches to edit mode depending on where it's clicked I'm trying to create a List with an ItemRenderer that switches to an ItemEditor depending on where in the ItemRenderer (what subcomponent) is clicked, but I'm not sure how to do this. Essentially, I'd like to go into edit mode if user clicks on a data field, but to do nothing (other than select the item) if user clicks elsewhere in the item. (Imagine that the ItemRenderer contains some icons, buttons, and empty space as well as data fields). I would think that the trick is to use the itemEditBeginning event handler (and in certain cases call event.preventDefault()), but this event does not know about subcomponents of the ItemRenderer, and subcomponents of the itemRenderer don't know about this event. --Henry
[flexcoders] Highlight issue in tree node
Hello All, Can any one assist me regarding following problem: actually i've created one tree using tree component available in flex which takes an xml file as a data provider and genetare tree in e4x format. and on clicking any node it is displaying corresponding image. i've implemented an esc key and when i click it it is displaying image of the parent node which i want..but node corresponding to parent image is not highlighting, pls help me in this regard. Yahoo! recommends that you upgrade to the new and safer Internet Explorer 8. http://downloads.yahoo.com/in/internetexplorer/
[flexcoders] Re: Lcds via Tomcat on Mac - possible?
The lcds test drive as distributed by adobe, with an older version of tomcat, works on the mac -- although I think I installed the linux version on linux and then copied the installed/unpacked dir over to the mac. I think the problem you are running into is trying to get lcds installed correctly on a newer version of tomcat. There are some notes/hints in the livecycle release notes on how to go about setting up livecycle correctly. I remember doing a diff between a standard tomcat install and the tomcat provided by adobe to finally figure it out. You are likely to run into this problem running on all platforms, not just Macs. Good luck!
[flexcoders] Access hidden server files in Flex
Hi everyone, I have a site that contains a large audio library. I would like the swf to access the library, but hide the mp3s from the user so they can't access them directly. Does anyone have a suggestion on how to do this? Thanks!
[flexcoders] Re: has no visualization in visualizer
OK, this is what I did to get the samples working... * Went to http://labs.kapit.fr/display/visualizer/Visualizer and signed in (Sign up if you haven't already done so). * Clicked on the Download latest version link and saved the file to my desktop. * Clicked on the Visualizer Samples with source link. * Clicked on the Visualize radial data from XML link. * Scrolled down to the sample output; Right clicked and selected View Source. * Clicked the Download source (ZIP, 801K) link and saved the file to my desktop * Started Flex Builder (BTW. I am using SDK 3.3). * Imported the VisualizerSamples.zip into flex. * Extracted Visualizer.swc from the Visualizer.1.2.6.zip file * Placed Visualizer.swc into the libs folder of my VisualizerSamples project replacing the older version that was there. * Opened VisualizerSample1.mxml and clicked the debug button * This gave me a Security Sandbox Violation - Connection to xmlData/PoepleHierarchy.xml halted - not permitted... * Went to http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html ; Clicked Edit Locations-Add Location-Browse for Folder... and selected the bin-debug folder inside my VisualizerSamples project. * Went back to Flex Builder and clicked the debug button. * Everything worked so I tried the three other samples. All worked as expected. HTH Steve --- In flexcoders@yahoogroups.com, cholid cholid cholid_rid...@... wrote: valdhor im have do what you mean but it still same as before the application is just show the component zoom in/out. fix to the content, slider, button etc but has no visualization from the data of xml --- On Thu, 7/30/09, valdhor valdhorli...@... wrote: From: valdhor valdhorli...@... Subject: [flexcoders] Re: has no visualization in visualizer To: flexcoders@yahoogroups.com Date: Thursday, July 30, 2009, 1:00 PM Kap Lab needs to update their sample downloads. Some only have one file whereas others have all four samples.. The best idea is to download the third sample (Visualize radial data from XML). This includes all four samples. Also note that the samples include an older version of the Visualizer.swc. You should download that separately and place it in the libs folder. Other than that, what errors are you seeing? --- In flexcod...@yahoogro ups.com, cholid cholid cholid_ridwan@ ... wrote: hi all, im new in using kap lab now im try to compile VisualizerSample1~ 4.mxml and another file mxml in kap lab and im fond it has no visualization from the xml that must be show visualization anyone can help me why has no visualization in VisualizerSample1~ 4.swf? thanks advance cholid
Re: [flexcoders] Re: Lcds via Tomcat on Mac - possible?
just grab the latest version of tomcat, drop them lcds jars under tomcat/lib and remember to set the context in your application project xml under tomcat/conf/Catalina/localhost/{project}.xml to include Context Transaction factory=org.objectweb.jotm.UserTransactionFactory jotm.timeout=60/ /Context then you should really be good to go. On Fri, Jul 31, 2009 at 6:38 AM, Steven Marcus s...@yahoo.com wrote: The lcds test drive as distributed by adobe, with an older version of tomcat, works on the mac -- although I think I installed the linux version on linux and then copied the installed/unpacked dir over to the mac. I think the problem you are running into is trying to get lcds installed correctly on a newer version of tomcat. There are some notes/hints in the livecycle release notes on how to go about setting up livecycle correctly. I remember doing a diff between a standard tomcat install and the tomcat provided by adobe to finally figure it out. You are likely to run into this problem running on all platforms, not just Macs. Good luck! -- j:pn \\no comment
RE: [flexcoders] Re: AIR app, need MouseMove events NOT bounded by screen
Once the mouse pointer position hits a screen border, further attempts to move in that direction do not generate mouseMove events. For example, put the pointer in the top left corner, and once you get (0,0), no more events are generated. If you put the pointer on a border and wiggle it along that border, the changes in the other axis do generate events, but that doesn't really help me. I do not know what is happening at the AIR runtime/OS/driver level, but the mouse and joystick have the same behavior at the application level. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Thursday, July 30, 2009 2:58 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: AIR app, need MouseMove events NOT bounded by screen If the app is fullscreen, how can you miss any mousemoves? Does the joystick continue to send events the AIR and the mouseMove doesn't get sent or is it that the mouseMove doesn't have different coordinates? Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs. http://blogs.adobe.com/aharui adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Wednesday, July 29, 2009 9:31 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: AIR app, need MouseMove events NOT bounded by screen Thanks, but my issue is that the AIR app is full screen. And AIR does not provide any way to set the system cursor(mouse pointer) position. I think I have an interim solution that notes when the mouse position reaches a boundary and sends a message to the socket server which calls an OS level program to reset the cursor position. As hoped, AIR recognizes this action and the next mouse move begins at the reset position. I still have some wrinkles to work out but I think this will keep us going until we figure out something better. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Adrian Resa Jones Sent: Wednesday, July 29, 2009 1:04 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: AIR app, need MouseMove events NOT bounded by screen Do I understand correctly that you want to track when the mouse cursor/joystick leaves the Air App window? I don't see why you shouldn't be able to reset the x y coordinates when they go off of the main application window. Not that logic always has anything to do with it. This is another one of those things that should be a given. Maybe this will help: http://nexus. http://nexus.zteo.com/2008/11/02/flex-how-i-worked-around-mouse_outs-ineffi ciencies/ zteo.com/2008/11/02/flex-how-i-worked-around-mouse_outs-inefficiencies/ --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Tracy Spratt tr...@... wrote: This AIR app is to be embedded in a consumer electronics product. It is a transparent UI that indirectly controls an underlying map application by sending messages via sockets. The product actually has a joystick and not a mouse and one requirement is that moving the joystick will cause the map to pan. In development, using a real mouse, when the mouse pointer hits a screen boundary, MouseMove events are no longer dispatched in that direction. In a corner, all events cease. This is causing me problems with continuing to send messages to the application to continue panning. I am hoping the joystick will behave differently, but am also looking for any other suggestions. I have considered using a timer to send repeated increments (the back-end app only needs position deltas), but I haven't figured out how to stop that. As far as I can tell, there is no way to set the position of the system cursor. If I could reset the mouse x,y to some positive values when it approached an edge, that would work as well. Is there anyway I can get deeper into the mouse event? If I could get a generic moving event, that would also suffice. Any thoughts? Tracy Spratt
Re: [flexcoders] Re: AIR app, need MouseMove events NOT bounded by screen
Tracy, Can't you take a different approach? This is for panning the map, yes? How about, every frame: - if the mouseX is less than a certain amount (e.g. is in the left third of the screen), pan your map left. - if the mouseX is greater than a certain amount (e.g. the right third of the screen), pan your map right. You could add more complication than that - the further it is to the edge of the screen, the higher the move acceleration or whatever. That should get around your problem - not sure if it'll give you the user experience you desire, but it could be worth trying. HTH, Ian On Fri, Jul 31, 2009 at 2:26 PM, Tracy Spratttr...@nts3rd.com wrote: Once the mouse pointer position hits a screen border, further attempts to move in that direction do not generate mouseMove events. For example, put the pointer in the top left corner, and once you get (0,0), no more events are generated. If you put the pointer on a border and wiggle it along that border, the changes in the other axis do generate events, but that doesn’t really help me. I do not know what is happening at the AIR runtime/OS/driver level, but the mouse and joystick have the same behavior at the application level. Tracy Spratt, Lariat Services, development services available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Thursday, July 30, 2009 2:58 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: AIR app, need MouseMove events NOT bounded by screen If the app is fullscreen, how can you miss any mousemoves? Does the joystick continue to send events the AIR and the mouseMove doesn’t get sent or is it that the mouseMove doesn’t have different coordinates? Alex Harui Flex SDK Developer Adobe Systems Inc. Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Wednesday, July 29, 2009 9:31 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: AIR app, need MouseMove events NOT bounded by screen Thanks, but my issue is that the AIR app is full screen. And AIR does not provide any way to set the system cursor(mouse pointer) position. I think I have an interim solution that notes when the mouse position reaches a boundary and sends a message to the socket server which calls an OS level program to reset the cursor position. As hoped, AIR recognizes this action and the next mouse move begins at the reset position. I still have some wrinkles to work out but I think this will keep us going until we figure out something better. Tracy Spratt, Lariat Services, development services available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Adrian Resa Jones Sent: Wednesday, July 29, 2009 1:04 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: AIR app, need MouseMove events NOT bounded by screen Do I understand correctly that you want to track when the mouse cursor/joystick leaves the Air App window? I don't see why you shouldn't be able to reset the x y coordinates when they go off of the main application window. Not that logic always has anything to do with it. This is another one of those things that should be a given. Maybe this will help: http://nexus.zteo.com/2008/11/02/flex-how-i-worked-around-mouse_outs-inefficiencies/ --- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote: This AIR app is to be embedded in a consumer electronics product. It is a transparent UI that indirectly controls an underlying map application by sending messages via sockets. The product actually has a joystick and not a mouse and one requirement is that moving the joystick will cause the map to pan. In development, using a real mouse, when the mouse pointer hits a screen boundary, MouseMove events are no longer dispatched in that direction. In a corner, all events cease. This is causing me problems with continuing to send messages to the application to continue panning. I am hoping the joystick will behave differently, but am also looking for any other suggestions. I have considered using a timer to send repeated increments (the back-end app only needs position deltas), but I haven't figured out how to stop that. As far as I can tell, there is no way to set the position of the system cursor. If I could reset the mouse x,y to some positive values when it approached an edge, that would work as well. Is there anyway I can get deeper into the mouse event? If I could get a generic moving event, that would also suffice. Any thoughts? Tracy Spratt -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location:
[flexcoders] Re: event propagation in FLex
The developer controls that by applying the listener to the correct objects. --- In flexcoders@yahoogroups.com, veena pandit v.kri...@... wrote: How do you prevent the app from confusing two events? On Thu, Jul 30, 2009 at 12:12 PM, Pedro Sena sena.pe...@... wrote: http://livedocs.adobe.com/flex/3/html/16_Event_handling_6.html On Thu, Jul 30, 2009 at 1:05 PM, veena_kris2003 v.kri...@...wrote: I have one class that generates the event. I want another class to consume the event. How do I do this? -- /** * Pedro Sena * Systems Architect * Sun Certified Java Programmer * Sun Certified Web Component Developer */
[flexcoders] AdvancedDataGrid Sorting
Is there anyway to get rid of the sort number in the AdvancedDataGrid second row... when you sort the datagrid header, it shows a number 1 then an arrow... is there anyway to get rid of it?
[flexcoders] AdvancedDataGrid Sorting
When you sort in the advanceddatagrid, you get a sort order that shows up as a 1 in the datagrid header... is there anyway to get rid of that number? I dont want to see it?
[flexcoders] Cut DisplayObject into bitmapdata squares
So I am trying to cut a DisplayObject (DO) into bitmapdata chunks that are roughly 1000 by 1000 pixels. When I get the initial bounds of the DO I they are x=-396, y0, w=1110, h=1633. I think the x of -396 is throwing me off. Plus, I feel like I am fighting myself on the Matrix vs. Rectangle in the hugeBmp.draw(DO, mtrx, null, null, rec, false ); If I do this mtrx.translate( initRecX, initRecY ); all is fine it works. (the above is moving the DO to x=0 and y=0 when it grabs the bitmapdata). But I also need to scale via mtrx.scale( .5, .5), which is where things stop working. I need to slide over via translate then scale down the section of DO I am trying to grab a snapshot of. Any ideas or examples out there? J
[flexcoders] Any suggestion for server (java) side run-time styling solution?
Hi, We read the documentation about loading styles from out side but unfortunately they all discuss loading swf compiled files. While it is possible to let an editor edit the style on the server and then run the compiler on the server to generate a swf file, it looks like redundant complexity. The server is a cluster and it'll require additional set-up for every server. Does anyone have a different solution? Just to clarify - the requirement is to have the client load the style in run-time. This style should be manageable on a management interface running on a java server. Thanks, Guy
[flexcoders] Flash Player 10 | FileReference.Save
Hi I have scenario in which the user clicks the 1.Click the button. 2.Make a call to server using Remote Object 3.Show the popup to save the data in file. But i came through Flash Player 10 Security Model which says that Error #2176: Certain actions, such as those that display a pop-up window, may only be invoked upon user interaction, for example by a mouse click or button press. Does it mean that the user has to view the data in the datagrid and then click save button (User Interaction according to Flash Player 10 Security Model) to save the data in the file. Is there way user can save the data directly after server response. Any pointer is highly appreciated Thanks ilikeflex