rounded corners
Hello, Is there anyway to make rounded corners on griditems, just like the rounded corners of the Panel ie. corner-radius:2; Or do i really have to embed a*.swf with the rounded corners in it... Cause this will lead to somewhat blurry code...and this is not what i want to have, of course... tnx, Marien Do you Yahoo!?Win a $20,000 Career Makeover at Yahoo! HotJobs
RE: [flexcoders] how to pass data when creating a popup window
Andrew, The instance of the new window is returned by the createPopUp call. var newwindow:MovieClip=mx.managers.PopUpManager.createPopUp(this, windowClass, true, (deferred: true}); newwindow.var1="new value"; windowClass.mxml: ?xml version="1.0" ? mx:TitleWindow xmlns:mx="..." mx:Script var var1="orig value"; /mx:Script ... /mx:TitleWindow - Dan Here is the asdoc on createPopUp: createPopUp staticcreatePopUp(parent:MovieClip, className:Object, modal:Boolean, initobj:Object, broadcastOutsideEvents:Boolean):MovieClip Creates a top level window. Modal windows must be destroyed by calling deletePopUp(), which is added to the top level window. Parameters parent - Object to use to center the new top level window. The top level window is probably actually parented by _root. className - Class of object to convert into the top level window. modal - If true, the window is modal. initobj - broadcastOutsideEvents - If true, dispatches mouseDownOutside events if the mouse is clicked outside the window Returns Reference to new top level window. -Original Message- From: Andrew Spaulding [mailto:[EMAIL PROTECTED] Sent: Sunday, May 02, 2004 10:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] how to pass data when creating a popup window hi all, im using the command mx.managers.PopUpManager.createPopUp(_root, windowName, true, (deferred: true}); ive got a var declared inside the window that is being opened, but how can i set it when the popup window is created? regards, Andrew
When to use executeBindings() ?
Has anyone discovered a pattern as to when a repeater needs to be manually told to executeBindings() and when it will happen auto- magically? I haven't found the pattern yet, I'm stumbling around blindly by calling it manually if it doesn't seem to work. I'd love to know more definitively exactly when it should be needed, as I can't tell whats a bug which should be reported, and what is my own addle mindedness. any advice? thanks, as always jeff
RE: [flexcoders] wait loop ...... event.call is AWESOME
I shouldnt have been so whiney, this turned out to be easier than I thought, doing just what I said below, using an array to track completion of a queue of external calls. The event.call token/dynamic property technique is hugely powerful. Strangely, I cant seem to get an uncorrupted copy of the Chapter 20 pdf. Ill keep trying. Thanks for the help! Tracy From: Tracy Spratt [mailto:[EMAIL PROTECTED] Sent: Friday, April 30, 20048:34 PM To: [EMAIL PROTECTED] Subject: RE: [flexcoders] wait loop to synchronize asyncronous call? My service event handler is working fine, using event.call properties to send the result to the correct component instance. But I have a procedural path that tries to use the returned data before it arrives. Essentially I am building an arrayof data from several sources, that may or may not be external If I cant do a wait or sleep or pause, I will have to do detect if there are any external servicecalls, request them first, storing an array of requests somewhere, decrementing the array when each data call returns, and finally doing my local processing when all the calls are returned. Plus I want them in the order I request them. Yikes! Well if it was easy, I wouldnt be making the big bucks! Thanks, Tracy From: Matt Chotin [mailto:[EMAIL PROTECTED] Sent: Friday, April 30, 20047:49 PM To: 'flexcoders@yahoogroups.com' Subject: RE: [flexcoders] wait loop to synchronize asyncronous call? Hi, The Flash Player doesn't support a threading model like you're looking for. There is only one thread for ActionScript code. So if the processing you're talking about is on the server what you'll do is call your service, then place any code that depends on that service having completed in some function that will be called by your service's result handler. You can also put up a shim to block all user-interaction in the meantime if the busy cursor isn't enough. I think we have an example of that in our extras folder. Matt -Original Message- From: nts333rd [mailto:[EMAIL PROTECTED] Sent: Friday, April 30, 20044:29 PM To: [EMAIL PROTECTED] Subject: [flexcoders] wait loop to synchronize asyncronous call? I'd like to set up a loop that will block current processing until some condition is met. setInterval, and the various timers I see onthe forums allow one to run some function after some interval for animation effects and such. But I need an implementation that will allow me to do something like: . do{ //just wait }(while mycomponent.isDataReady == false) //DOES NOT WORK processData(myComponent.getData); ... Any suggestions? Thanks, Tracy
RE: [flexcoders] When to use executeBindings() ?
You shouldn't need to call executeBindings() except in extreme circumstances. During compilation, Flex creates watchers for each object (including parameters to function calls) in each binding expression. If you are making changes internal to Arrays of objects in the Repeater's dataProvider and the watchers aren't catching changes, you can probably reorganize objects in your binding expressions rather than call executeBindings() manually. Please file a bug and we'll check out the problem. It sounds like we just need to improve the Repeater/Binding documentation a little. We prefer when things work automagically to having folks stumble around blindly. :) Thanks, -e -Original Message- From: jeff tapper [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 8:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] When to use executeBindings() ? Has anyone discovered a pattern as to when a repeater needs to be manually told to executeBindings() and when it will happen auto- magically? I haven't found the pattern yet, I'm stumbling around blindly by calling it manually if it doesn't seem to work. I'd love to know more definitively exactly when it should be needed, as I can't tell whats a bug which should be reported, and what is my own addle mindedness. any advice? thanks, as always jeff Yahoo! Groups Links
RE: [flexcoders] populating tree with external xml
Hi Josh, You're using a Model which doesn't distinguish between attributes and child properties. So I think you can do this: mx:Tree height=200 change=selectedNode=event.target.selectedItem Then hopefully the rest will work. Matt -Original Message- From: joshbronson630 [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 10:03 AM To: [EMAIL PROTECTED] Subject: [flexcoders] populating tree with external xml I'm trying to populate an mx:Tree with an external XML document consisting only of nested node tags with label and data attributes. I'm using the Flex Samples Tree example (http://www.macromedia.com/flex/samples/explorer/complib/TreeDemo.mxm l) as a guide. The Tree displays the XML document contents correctly, but when I click on a node, the mx:Label I have to display the node's data isn't working. Here's the code: mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml mx:Script var selectedNode:Object; /mx:Script mx:Model id=myTree source=tree.xml/ mx:HBox horizontalGap=30 mx:Tree height=200 change=selectedNode=event.target.selectedItem.attributes mx:dataProvider {myTree} /mx:dataProvider /mx:Tree mx:Panel id=displayPanel title=I'm a Panel width=200 mx:Label text={selectedNode.label} id=myLabel/ /mx:Panel /mx:HBox /mx:Application Here is what the XML file looks like: node label=Root Node node label=Level 1 Node 1 node label=Level 2 Node 1 data=""> node label=Level 2 Node 2 data=""> /node node label=Level 1 Node 2 data=""> /node Any help would be greatly appreciated. Thanks!
RE: [flexcoders] DEVnet subscription and Flex
Hi To date, the DRKs has not had any informationfor Flex. It may in the future. But the vast majority of the DevNet customers are not using Flex, so you should not expect it to be a major component of the DRKs in the near term. DevNet is a great deal if you are a serious user of some subset of Dreamweaver, Flash, ColdFusion--both in terms of the DRK content and in terms of 12 months of updates/upgrades to the tools.If you are using one or more of these, and also using Flex, I'd reccomend it. If you are primarily using Flex, I wouldn't try to do a hard sell on it for you. HTH, Regards, David Macromedia From: Tim Beynart [mailto:[EMAIL PROTECTED] Sent: Friday, April 30, 2004 3:10 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] DEVnet subscription and Flex Hello everyone, I am about to buy MX Studio 2004, and for a couple hundred bucks more I get a DEVnet subscription. This would be worth it to me if the DRKs contains information on FLEX. Does anyone know if it does? Thanks, Tim - - - - - - - - - - - - Tim Beynart www.saforian.com - - - - - - - - - - - - .
[flexcoders] Dnamic DataGridColumn
Hi, Could you help me to add, at runtime, a column to a dataGrid In the same time how to add, at run time, tag to a mx:Model Sorry for my English Eric
RE: [flexcoders] When to use executeBindings() ?
If you find bugs in Flex and you want to us to check them out, you can always file bugs using the Feature Request/Bug Report Form at http://www.macromedia.com/support/email/wishform/ Thanks! -e -Original Message- From: Elliot Winard Sent: Monday, May 03, 2004 12:09 PM To: 'flexcoders@yahoogroups.com' Subject: RE: [flexcoders] When to use executeBindings() ? You shouldn't need to call executeBindings() except in extreme circumstances. During compilation, Flex creates watchers for each object (including parameters to function calls) in each binding expression. If you are making changes internal to Arrays of objects in the Repeater's dataProvider and the watchers aren't catching changes, you can probably reorganize objects in your binding expressions rather than call executeBindings() manually. Please file a bug and we'll check out the problem. It sounds like we just need to improve the Repeater/Binding documentation a little. We prefer when things work automagically to having folks stumble around blindly. :) Thanks, -e -Original Message- From: jeff tapper [mailto:[EMAIL PROTECTED] Sent: Monday, May 03, 2004 8:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] When to use executeBindings() ? Has anyone discovered a pattern as to when a repeater needs to be manually told to executeBindings() and when it will happen auto- magically? I haven't found the pattern yet, I'm stumbling around blindly by calling it manually if it doesn't seem to work. I'd love to know more definitively exactly when it should be needed, as I can't tell whats a bug which should be reported, and what is my own addle mindedness. any advice? thanks, as always jeff Yahoo! Groups Links
RE: [flexcoders] Dnamic DataGridColumn
Hi, I answer to my question. myDataGrid.columnNames = [firstname,lastnameemail] thanks to all Eric De: Eric Guesdon [mailto:[EMAIL PROTECTED] Envoyé: lundi 3 mai 2004 23:15 À: flexcoders@yahoogroups.com Objet: [flexcoders] Dnamic DataGridColumn Hi, Could you help me to add, at runtime, a column to a dataGrid In the same time how to add, at run time, tag to a mx:Model Sorry for my English Eric