[flexcoders] Binding question
I am trying to bind the checkbox selected property as written below. The value of selected should be triggered whenever currentPresentation changes or whenever albumIncluded(data) returns a different value. The checkbox is in a List itemRenderer component. ItemRenderer mx:CheckBox id=albumEnabled selected={presentations.currentPresentation.albumIncluded(data as Album)} / mx:Script ![CDATA[ [Bindable] private var presentations:PresentationCollection = PresentationCollection.getInstance(); ]] /mx:Script The albumIncluded function is in a class called Media and is coded as follows: Media class (the class is marked [Bindable]) - private var _includedAlbums:ArrayCollection /* of Albums */ =new ArrayCollection(); public function includeAlbum(album:Album):void { _includedAlbums.addItem(album); if (!currentAlbum) currentAlbum = album; dispatchEvent(new Event(albumToggledEvent)); } [Bindable(event=albumToggledEvent)] public function albumIncluded(album:Album):Boolean { return _includedAlbums.getItemIndex(album) = 0; } Apparently the albumIncluded function doesn't fire when includeAlbum() function is called. So I put a read-only property called includedAlbums in Media which is supposed to be triggered when _includedAlbums changes. Media class (class is Bindable) private var _includedAlbums:ArrayCollection /* of Albums */ =new ArrayCollection(); public function includeAlbum(album:Album):void { _includedAlbums.addItem(album); if (!currentAlbum) currentAlbum = album; dispatchEvent(new Event(albumToggledEvent)); } [Bindable(event=albumToggledEvent)] public function albumIncluded(album:Album):Boolean { return _includedAlbums.getItemIndex(album) = 0; } [Bindable(event=none)] // handles runtime binding warnings public function get includedAlbums():ArrayCollection /* of Albums */ { return _includedAlbums; } And added a helper function to the ItemRenderer component, with the idea that if either currentPresentation or includedAlbums changed it would fire the helper function which would return the correct value for the checkbox selected property. ItemRenderer --- mx:CheckBox id=albumEnabled selected={albumToggleHelper(presentations.currentPresentation.includedA\ lbums)} / mx:Script ![CDATA[ [Bindable] private var presentations:PresentationCollection = PresentationCollection.getInstance(); private function albumToggleHelper(includedAlbums:ArrayCollection /* of Albums */):Boolean { return presentations.currentPresentation.albumIncluded(data as Album); } ]] /mx:Script But it looks like the includedAlbums property is never firing an event. How do I get my checkbox selected to set to the right value? (Note: I also tried setting the bindable event tag to event=albumToggledEvent for the includedAlbums getter property, and it still didn't work.) ascii
[flexcoders] Binding question
I am trying to bind the checkbox selected property as written below. The value of selected should be triggered whenever currentPresentation changes or whenever albumIncluded(data) returns a different value. The checkbox is in a List itemRenderer component. ItemRenderer mx:CheckBox id=albumEnabled selected={presentations.currentPresentation.albumIncluded(data as Album)} / mx:Script ![CDATA[ [Bindable] private var presentations:PresentationCollection = PresentationCollection.getInstance(); ]] /mx:Script The albumIncluded function is in a class called Media and is coded as follows: Media class (the class is marked [Bindable]) - private var _includedAlbums:ArrayCollection /* of Albums */ =new ArrayCollection(); public function includeAlbum(album:Album):void { _includedAlbums.addItem(album); if (!currentAlbum) currentAlbum = album; dispatchEvent(new Event(albumToggledEvent)); } [Bindable(event=albumToggledEvent)] public function albumIncluded(album:Album):Boolean { return _includedAlbums.getItemIndex(album) = 0; } Apparently the albumIncluded function doesn't fire when includeAlbum() function is called. So I put a read-only property called includedAlbums in Media which is supposed to be triggered when _includedAlbums changes. Media class (class is Bindable) private var _includedAlbums:ArrayCollection /* of Albums */ =new ArrayCollection(); public function includeAlbum(album:Album):void { _includedAlbums.addItem(album); if (!currentAlbum) currentAlbum = album; dispatchEvent(new Event(albumToggledEvent)); } [Bindable(event=albumToggledEvent)] public function albumIncluded(album:Album):Boolean { return _includedAlbums.getItemIndex(album) = 0; } [Bindable(event=none)] // handles runtime binding warnings public function get includedAlbums():ArrayCollection /* of Albums */ { return _includedAlbums; } And added a helper function to the ItemRenderer component, with the idea that if either currentPresentation or includedAlbums changed it would fire the helper function which would return the correct value for the checkbox selected property. ItemRenderer --- mx:CheckBox id=albumEnabled selected={albumToggleHelper(presentations.currentPresentation.includedA\ lbums)} / mx:Script ![CDATA[ [Bindable] private var presentations:PresentationCollection = PresentationCollection.getInstance(); private function albumToggleHelper(includedAlbums:ArrayCollection /* of Albums */):Boolean { return presentations.currentPresentation.albumIncluded(data as Album); } ]] /mx:Script But it looks like the includedAlbums property is never firing an event. How do I get my checkbox selected to set to the right value? (Note: I also tried setting the bindable event tag to event=albumToggledEvent for the includedAlbums getter property, and it still didn't work.) ascii
[flexcoders] Binding Question - ArrayCollection/ResourceBundle
Is it possible to have an ArrayCollection value updated by a resource bundle value. [Bindable] public var cbDP:ArrayCollection = new ArrayCollection(); cbDP.addItem( {label:ResourceManager.getInstance().getString('myResources','NAME') }); When changing locales at runtime, all label fields of flex components update but the ArrayCollection does not. Is the ResourceManager binding ignored on AC's? Is there another solution? Thanks, Jeff
RE: [flexcoders] Binding Question - ArrayCollection/ResourceBundle
You are defining dynamic objects and they are not bindable. If you had a class that dispatched an event when the locale changed then it should work. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of securenetfreedom Sent: Friday, December 12, 2008 9:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Binding Question - ArrayCollection/ResourceBundle Is it possible to have an ArrayCollection value updated by a resource bundle value. [Bindable] public var cbDP:ArrayCollection = new ArrayCollection(); cbDP.addItem( {label:ResourceManager.getInstance().getString('myResources','NAME') }); When changing locales at runtime, all label fields of flex components update but the ArrayCollection does not. Is the ResourceManager binding ignored on AC's? Is there another solution? Thanks, Jeff
[flexcoders] binding question?
I have two screens for testing. a) I set object values in screen 1 (for instance obj.value =abc) and go to screen 2 b) I show the value in screen 2 with binding (for instance mx:Label x=37 y=46 text={obj.value}/ and go to screen 1 it works fine when it excute first time.(from screen 1 to screen 2) Afater I change from screen 2 to screen 1,the binding value {obj.value} in screen 2 keep the previous value even if I change the object values in screen 1 (for instance obj.value =xyz). but the binding value {obj.value} should change to xyz,do you know why this happen. Thanks for your help. Mark
RE: [flexcoders] binding question?
Is obj type Object? Dynamic Object properties are not bindable. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markflex2007 Sent: Wednesday, April 30, 2008 2:41 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] binding question? I have two screens for testing. a) I set object values in screen 1 (for instance obj.value =abc) and go to screen 2 b) I show the value in screen 2 with binding (for instance mx:Label x=37 y=46 text={obj.value}/ and go to screen 1 it works fine when it excute first time.(from screen 1 to screen 2) Afater I change from screen 2 to screen 1,the binding value {obj.value} in screen 2 keep the previous value even if I change the object values in screen 1 (for instance obj.value =xyz). but the binding value {obj.value} should change to xyz,do you know why this happen. Thanks for your help. Mark
Re: [flexcoders] binding question?
obj is a instance of VO(value object), do you think if the binding is ok? Thank Mark - Original Message From: Tracy Spratt [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, April 30, 2008 3:19:33 PM Subject: RE: [flexcoders] binding question? Is “obj” type “Object”? Dynamic Object properties are not bindable. Tracy From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of markflex2007 Sent: Wednesday, April 30, 2008 2:41 PM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] binding question? I have two screens for testing. a) I set object values in screen 1 (for instance obj.value =abc) and go to screen 2 b) I show the value in screen 2 with binding (for instance mx:Label x=37 y=46 text={obj.value} / and go to screen 1 it works fine when it excute first time.(from screen 1 to screen 2) Afater I change from screen 2 to screen 1,the binding value {obj.value} in screen 2 keep the previous value even if I change the object values in screen 1 (for instance obj.value =xyz). but the binding value {obj.value} should change to xyz,do you know why this happen. Thanks for your help. Mark Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
RE: [flexcoders] binding question?
Not if the VO is a dynamic object. What is it? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Shen Sent: Wednesday, April 30, 2008 3:21 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] binding question? obj is a instance of VO(value object), do you think if the binding is ok? Thank Mark - Original Message From: Tracy Spratt [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, April 30, 2008 3:19:33 PM Subject: RE: [flexcoders] binding question? Is obj type Object? Dynamic Object properties are not bindable. Tracy From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of markflex2007 Sent: Wednesday, April 30, 2008 2:41 PM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] binding question? I have two screens for testing. a) I set object values in screen 1 (for instance obj.value =abc) and go to screen 2 b) I show the value in screen 2 with binding (for instance mx:Label x=37 y=46 text={obj.value} / and go to screen 1 it works fine when it excute first time.(from screen 1 to screen 2) Afater I change from screen 2 to screen 1,the binding value {obj.value} in screen 2 keep the previous value even if I change the object values in screen 1 (for instance obj.value =xyz). but the binding value {obj.value} should change to xyz,do you know why this happen. Thanks for your help. Mark Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://us.rd.yahoo.com/evt=51733/*http:/mobile.yahoo.com/;_ylt=Ahu06i62 sR8HDtDypao8Wcj9tAcJ%20
Re: [flexcoders] binding question?
I change the obj to static. problem fixed.Thanks Mark - Original Message From: Tracy Spratt [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, April 30, 2008 4:17:34 PM Subject: RE: [flexcoders] binding question? Not if the VO is a dynamic object. What is it? Tracy From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Mark Shen Sent: Wednesday, April 30, 2008 3:21 PM To: [EMAIL PROTECTED] ups.com Subject: Re: [flexcoders] binding question? obj is a instance of VO(value object), do you think if the binding is ok? Thank Mark - Original Message From: Tracy Spratt [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com Sent: Wednesday, April 30, 2008 3:19:33 PM Subject: RE: [flexcoders] binding question? Is “obj” type “Object”? Dynamic Object properties are not bindable. Tracy From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of markflex2007 Sent: Wednesday, April 30, 2008 2:41 PM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] binding question? I have two screens for testing. a) I set object values in screen 1 (for instance obj.value =abc) and go to screen 2 b) I show the value in screen 2 with binding (for instance mx:Label x=37 y=46 text={obj.value} / and go to screen 1 it works fine when it excute first time.(from screen 1 to screen 2) Afater I change from screen 2 to screen 1,the binding value {obj.value} in screen 2 keep the previous value even if I change the object values in screen 1 (for instance obj.value =xyz). but the binding value {obj.value} should change to xyz,do you know why this happen. Thanks for your help. Mark Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
[flexcoders] Binding question
I'm having problems with a binding issue. I'll dumb down my component a bit in hopes to make this easier. I have a component, MyComponent, based on Canvas. This Canvas has objects placed around in it and some effects base on what the user clicks. The dynamic part is that there is one spot in MyComponent where I can pass in an object for display. code snippet of MyComponent: mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=init() mx:Script ![CDATA[ import mx.core.UIComponent; [Bindable] public var itemComponent : UIComponent; private function init() : void { if ( itemComponent != null ) { addChildAt(itemComponent, numChildren); } } So you can see I'm simply adding what ever I give to itemComponent as the last object. That works just fine and when this is rendered I see MyComponent as well as my dynamically added component. Here is the problem. I'm adding a VBox with a Repeater that has it's dataProvider bound to an ArrayCollection. When I modify the bound ArrayCollection the view in MyComponent does not change. I moved the VBox outside of MyComponent to make sure that it was behaving correctly and it is. Changing the bound ArrayCollection changes the VBox. As soon as I place it back into MyComponent, it does not change any more. Here is a code snippet of how I am creating MyComponent in mxml: comps:MyComponent width=100% comps:itemComponent mx:VBox width=100% height=100% mx:Repeater id=myRepeater dataProvider={myList} mx:Text text={String(myRepeater.currentItem)}/ /mx:Repeater /mx:VBox /comps:itemComponent /comps:MyComponent Any advice on how to have the changes to the VBox (based on {myList}) update in MyComponent would be appreciated. Thanks, Dale
[flexcoders] Binding question
Hi all, I dont know why, but the Flex compiler alerts some error when I try to use binding with 2 arguments: mx:VBox visible={someCombo.selectedIndex != 0 someOtherCombo.selectedIndex != 0} ... /mx:VBox And the error is : The entity name must immediately follow the '' in the entity reference Using a function, it works fine mx:VBox visible={isThisVisible()} ... /mx:VBox where: private function isThisVisible():Boolean { if (someCombo.selectedIndex != 0 someOtherCombo.selectedIndex != 0) return true; else return false; } Why and how to solve this so I dont have to fill my code with these functions? -- Alberto Albericio Salvador Aura S.A. Seguros Departamento Informática -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 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] Binding question
Hi all, When I bind a text label to the first position of an array like this : mx:Label text={ ModelLocator.SOMEARRAY[0] } / The text shows the first item of the array correctly. When I add a new item to the array, the text of the label does not change so it seems the binding is not really working. I know Im adding items to the array correctly because I have a list bound to ModelLocator.SOMEARRAY and it's working fine. What am I doing wrong? Thanks in advance -- Alberto Albericio Salvador Aura S.A. Seguros Departamento Informática Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 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] Binding question
I forgot to mention Im adding items at the beginning of the array, at position 0. So the ModelLocator.SOMEARRAY[0] is always the last item added. Alberto Albericio Salvador escribió: Hi all, When I bind a text label to the first position of an array like this : mx:Label text={ ModelLocator.SOMEARRAY[0] } / The text shows the first item of the array correctly. When I add a new item to the array, the text of the label does not change so it seems the binding is not really working. I know Im adding items to the array correctly because I have a list bound to ModelLocator.SOMEARRAY and it's working fine. What am I doing wrong? Thanks in advance -- Alberto Albericio Salvador Aura S.A. Seguros Departamento Informática Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 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] Binding question
Hi, If you look at this link of Flex Documentation: http://livedocs.macromedia.com/flex/15/flex_docs_en/0695.htm You will find the following in the end: Note: Array elements do not trigger ChangeEvents and, therefore, cannot function as binding sources at runtime. Binding copies initial values during instantiation after variables are declared in an mx:Script tag, but before handlers are executed. Arrays that are bound do not stay updated if individual fields of a source Array change. I don't remember the exact workaround of this problem, please check the flexcoders archive I am sure this has been dicussed many times. Also check the FAQ, I think it might be there also. FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alberto Albericio Salvador Sent: Tuesday, September 06, 2005 8:08 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Binding question Hi all, When I bind a text label to the first position of an array like this : mx:Label text={ ModelLocator.SOMEARRAY[0] } / The text shows the first item of the array correctly. When I add a new item to the array, the text of the label does not change so it seems the binding is not really working. I know Im adding items to the array correctly because I have a list bound to ModelLocator.SOMEARRAY and it's working fine. What am I doing wrong? Thanks in advance -- Alberto Albericio Salvador Aura S.A. Seguros Departamento Informática -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 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] Binding question
Indeed... I thought this was basic binding so I didnt look at any documentation... I more thought it was a bug :) Thanks anyway for the answer Abdul Abdul Qabiz escribió: Hi, If you look at this link of Flex Documentation: http://livedocs.macromedia.com/flex/15/flex_docs_en/0695.htm You will find the following in the end: Note: Array elements do not trigger ChangeEvents and, therefore, cannot function as binding sources at runtime. Binding copies initial values during instantiation after variables are declared in an mx:Script tag, but before handlers are executed. Arrays that are bound do not stay updated if individual fields of a source Array change. I don't remember the exact workaround of this problem, please check the flexcoders archive I am sure this has been dicussed many times. Also check the FAQ, I think it might be there also. FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alberto Albericio Salvador Sent: Tuesday, September 06, 2005 8:08 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Binding question Hi all, When I bind a text label to the first position of an array like this : mx:Label text={ ModelLocator.SOMEARRAY[0] } / The text shows the first item of the array correctly. When I add a new item to the array, the text of the label does not change so it seems the binding is not really working. I know Im adding items to the array correctly because I have a list bound to ModelLocator.SOMEARRAY and it's working fine. What am I doing wrong? Thanks in advance -- Alberto Albericio Salvador Aura S.A. Seguros Departamento Informática Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 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] Binding question
On 9/6/05, Abdul Qabiz [EMAIL PROTECTED] wrote: If you look at this link of Flex Documentation: http://livedocs.macromedia.com/flex/15/flex_docs_en/0695.htm You will find the following in the end: Note: Array elements do not trigger ChangeEvents and, therefore, cannot function as binding sources at runtime. Binding copies initial values during instantiation after variables are declared in an mx:Script tag, but before handlers are executed. Arrays that are bound do not stay updated if individual fields of a source Array change. Actually I think this is about binding to the entire array: prop={array} Alberto is binding to a single element, so this rule shouldn't apply in that case. prop={array[0]} :-/ I'm in the middle of a build and my machine is extremely slow now, but, Alberto, can you look at the generated AS source for binding to a normal variable versus binding to an array element, to see if there's any difference in the way they are treated? Might give clues. Yahoo! Groups Sponsor ~-- Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 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] Binding question
You just hit on a problem I had a week ago. It looks like the wsdl attribute cannot be set at runtime. I even tried doing it in actionscript with no luck. This is problematic for me because I want to be able to declare all of my web service urls globally so they can be changed easily. I finally had to resort to making them Named web service declared in the flex config file. This works for me but its less than ideal. If there is some way to dynamically set the wsdl attribute, I'd also be very interested in knowing how. Thanks! -- Matthew On Wed, 23 Mar 2005 20:22:41 -, pilby1 [EMAIL PROTECTED] wrote: I have web services in my application, and I wanted to bind the value of the wsdl attribute of a mx:WebService tag, but I'm having difficulty. I have my model like this: mx:Model id=webServicesURLs ws1http://someURL?wsdl/ws1 /mx:Model Then in my web service, I have: mx:WebService id=myWebService wsdl={webServicesURLs.ws1} ... etc. But upon application startup, I'm getting an alert box error message from the application saying Could not load WSDL, 404, /myApp/ {myWebServiceURLs.ws1}. It seems like it's trying to get the WSDL prior to substituting the value from my data model, which explains why it couldn't get the WSDL. How can I then make my wsdl attribute in my mx:WebService a variable? 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/