[flexcoders] Re: HistoryManger state is undefined on loading
This thing is really weird: first save state: DEBUG: - saveState DUMP START this:Object |view = false (boolean) |detailId = 7bd21a76-b716-4501-a196-1acf4265d847 (string) And if I click on Back: DEBUG: - loadState DUMP START this:Object |detailId = 7bd21a76-b716-4501-a196-1acf4265d847 (string) |view = true (string) What the @[EMAIL PROTECTED] view = true??? ... More documentation on the HistoryManager would be appreciated. Are perhaps more samples. I found one but it to damn simple it doesn't say anything on how it's working only how to use it for simple things. http://www.richinternet.de/blog/index.cfm?mode=entryentry=3CF01C8E-CFBB-A5CA-36BCC797581D2CFB --- In flexcoders@yahoogroups.com, jacksodj [EMAIL PROTECTED] wrote: I personnaly have seen really flakey behavior from that history controller. I have posted before, but have not been able to see a good resolution --- In flexcoders@yahoogroups.com, rockmoyosa [EMAIL PROTECTED] wrote: My case: - saveState is executed - On Back loadState is executed. But. Than my state is undefined private var changed:Boolean; public function initHistory():Void { mx.managers.HistoryManager.register(this); storeInternalState(); } public function saveState():Object { // called by HistoryManager, tells the component // to create a state object and to return it\ var state = new Object(); state.model = Model.getInstance(); state.view = this._scope.m_detailview; mx.controls.Alert.show (+this._scope.m_detailview.visible); Log.debug(hello+state); return state; } public function loadState(state:Object):Void { // called by HistoryManager, passes in a state // object so the component can rebuild it's state mx.controls.Alert.show(state: +state.view); restoreInternalState(state); } public function savePresent():Void { storeInternalState( ); } public function storeInternalState():Void { mx.managers.HistoryManager.save(); } public function restoreInternalState(state:Object):Void { Log.dump(state); Log.debug (state.view.visible: +state.view.visible); if(state.view.visible == true this._scope.m_detailview.visible == false || state.view.visible == false this._scope.m_detailview.visible == true){ toggleView(); } Model.getInstance().restoreInstance(state.model); } -- 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] Gartner's Take on Rich Internet Applications
Title: Gartners Take on Rich Internet Technology Whats all the hype about NEXAWEB.? Has anybody seen solutions implemented using the tech? How does it stack against FLEX? Why did Gartner select over Flex? Can somebody shed more light ? From: Nexaweb Technologies, Inc. [mailto:[EMAIL PROTECTED] Sent: Thursday, July 07, 2005 7:24 PM To: Tolulope Olonade Subject: Gartner's Take on Rich Internet Applications You are receiving this invitation because you have shown interest in Nexaweb products or technology. If you do not wish to receive future invitations to Nexaweb Webinars, click here: [EMAIL PROTECTED]. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. 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: remote objects + CF (another question)
ok folks i figured it out. . . =) On 7/7/05, chris.alvarado [EMAIL PROTECTED] wrote: Hello again everyone, I was able to get some data from cold fusion with the following code: mx:RemoteObject id=myService endpoint=http://localhost:8500/flashservices/gateway; source=myPath.someCFC showBusyCursor=true result=myResult(event) fault=myFault(event) / and then to handle the result i have a script block: mx:Script ![CDATA[ private function runMe():Void { myService.someMethod(); } private function myResult(event:Object):Void { //do something with the result; } ]] /mx:Script i understand that i am essentially instantiating the service and then when a button is clicked (or some other event) i am invoking a method in the service i instantiated and then im handling the result with a function that is defined as part of the RemoteObject tag. .. but what if i need to invoke another method in the smae service? the result is already set to be handled by a specific function. for instance let's say i have 2 comboboxes: locations and employees upon completion of the application loading i need to instantiate a service that contains 2 methods getLocations() and getEmployees() and do something different with each resultset. however, unless im missing something with the example i posted above i would need to instantiate the object twice each time with a different handler for the the results? thanks for any help. -- -chris.alvarado [application developer] -- -chris.alvarado [application developer] -- 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] Gartner's Take on Rich Internet Applications
Its no hype, as far as i read its hard to implement and it uses there own runtimes. I don't think this product is really suitable for internet apps, but more a replacement for traditional desktop applications. Its funny that these kind of products are considered as RIA's since the only Internet thing about it that you run a plugin in a browser window :-\ I think this product might be a replacement for tradional Windows applications on the office, but no competitor in the real RIA market (flex,laszlo,backbase,etc) I think its just a marketing strategy to call this product a RIA Software Platform, imho there is no place in the market for a product that uses there own runtimes in the browser, little bit same story as General Interface Objects and Facado. Greets, Sjors Pals Tolulope Olonade wrote: Whats all the hype about NEXAWEB.? Has anybody seen solutions implemented using the tech? How does it stack against FLEX? Why did Gartner select over Flex? Can somebody shed more light ? *From:* Nexaweb Technologies, Inc. [mailto:[EMAIL PROTECTED] *Sent:* Thursday, July 07, 2005 7:24 PM *To:* Tolulope Olonade *Subject:* Gartner's Take on Rich Internet Applications You are receiving this invitation because you have shown interest in Nexaweb products or technology. If you do not wish to receive future invitations to Nexaweb Webinars, click here: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]. You’re invited to attend a Nexaweb Webinar featuring Gartner analyst Mark Driver. The Webinar Title is: Gartner's Take on Rich Internet Applications: Enterprise Case Studies Rich Internet Application (RIA) technology has been identified as one of the major software trends for 2005. Register for this webcast to hear Gartner’s perspective on current RIA dynamics and what you can expect from its evolution. Get insight into which business and technical challenges RIA can solve and the technical features that are critical to the success of RIA solutions. This webcast will also feature real-world case studies that highlight innovative enterprises that employ RIA technology. Register today! You will: * Understand the key business benefits RIA currently offers * Discover the critical features of a complete RIA solution * Hear how Fortune 1000 companies are taking advantage of the strong return on investment that RIA provides Speakers: Mark Driver is Vice President and Research Director at Gartner, Scott Cranton is Director of Product Strategy at Nexaweb Technologies, Inc. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing http://groups.yahoo.com/gads?t=msk=Computer+software+testingw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=kh2CguJwmatU5oBXjFo9Rg http://groups.yahoo.com/gads?t=msk=Computer+software+testingw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=kh2CguJwmatU5oBXjFo9Rg Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=dAUcEV7do91-wrRtVS641g http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=dAUcEV7do91-wrRtVS641g Development http://groups.yahoo.com/gads?t=msk=Developmentw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=AlxNUQBOI7Io7S7nhmxV0Q http://groups.yahoo.com/gads?t=msk=Developmentw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=AlxNUQBOI7Io7S7nhmxV0Q Software developer http://groups.yahoo.com/gads?t=msk=Software+developerw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=QWIit8JayomoIHLVkV3FDg http://groups.yahoo.com/gads?t=msk=Software+developerw1=Computer+software+testingw2=Macromedia+flexw3=Developmentw4=Software+developerc=4s=93.sig=QWIit8JayomoIHLVkV3FDg YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/. -- 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 *
[flexcoders] Multiple components sharing a data provider question
I'm trying to come up with a way to have multiple tree components share the same global data provider. I want to have all instances of the components updated to reflect changes to any of them, as though it was a file folder. I've created a global HTTP service object in my main application which passes the results down to the trees for the initial seeding from my xml source, but I can't figure out how to properly go about having all the trees dynamically update on a change event. Updating the instance of the tree that has the action performed on it doesn't alter the global data, and if I modify the global data, it only shows changes to trees if they haven't already been instantiated when the change happens. Is there some trick to this that I'm not seeing, or is this really complicated? Thanks for any assistance, -Tom Jeffery -- 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] Load a large swf (13MB)
That article is incorrect and what JD says, holds; as each frame is downloaded, you can view it, thus it's progressive download. - Original Message - From: Clint Modien To: flexcoders@yahoogroups.com Sent: Thursday, July 07, 2005 7:43 PM Subject: Re: [flexcoders] Load a large swf (13MB) found the answer... has to be an flv... the 13MB swf would have to completely download before it would start playing...http://www.macromedia.com/devnet/mx/flash/articles/video_primer_03.html On 7/7/05, John Dowdell [EMAIL PROTECTED] wrote: Clint Modien wrote: Can I start playing the movie before it's loaded?The question is actually harder to answer than it might seem, becauseSWF has added more capabilities and content types since it started. Here's a good intro to the basic streaming nature of a SWF file, writtentowards Flash 4/5 days:http://www.macromedia.com/support/flash/how/subjects/Stream1/ For basic SWF a movie will start to display as soon as the first frameis loaded... the second frame will display immediately if it has no newmedia, or (if the second frame has new media) after the second frame's media has downloaded. Generally, Flash is set up to start playing "in aFlash".It gets harder if you're using elements which can be called at any timeduring play (attachMovie, attachSound, etc) because these elements then need to be front-loaded, and need to be completely downloaded before the*chance* that they might be called in the first frame. Componentsgenerally fall into this class as well.The video features add another complication to "is it streaming"... we can set up video to download entirely before playing, to stream from aserver, more:http://www.macromedia.com/devnet/mx/flash/articles/flv_download.html One useful strategy for many cases where a 13-megabyte SWF is consideredwould be to break the presentation into modules which can then be calledon demand. If everything was in a single 13M SWF then you might have to download the bulk of it before seeing anything interesting (depending onhow it was constructed), but if there's 2M for a map module, another 4Mfor a voice-over and so on, then you can load these assets as they're requested and speed the immediate startup of the piece for your audience.Easier question to ask than to answer, sorry, but does the above providea path for what you wish to achieve...?jd--John Dowdell . Macromedia Developer Support . San Francisco CA USAWeblog: http://www.macromedia.com/go/blog_jdAggregator: http://www.macromedia.com/go/weblogsTechnotes: http://www.macromedia.com/support/Spam killed my private email -- public record is best, thanks.--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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 Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com -- 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 Visit your group "flexcoders" on the web. 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] How do I bound XML data into an array that is mydataprovider for a data grid
No I am not. How do I use that function? CONFIDENTIALITY STATEMENT - This message and any files or text attached to it are intended only for the recipients named above, and contain information that may be confidential or privileged. If you are not an intended recipient, you must not read, copy, use, or disclose this communication. Please also notify the sender by replying to this message, and then delete all copies of it from your system. Thank you. Tracy Spratt [EMAIL PROTECTED] Sent by: flexcoders@yahoogroups.com 07/07/2005 01:38 PM Please respond to flexcoders@yahoogroups.com To flexcoders@yahoogroups.com cc Subject RE: [flexcoders] How do I bound XML data into an array that is my dataprovider for a data grid Are you using editField() to update the dataProvider in the //TODO: section? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, July 07, 2005 12:29 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How do I bound XML data into an array that is my dataprovider for a data grid Thanks that works great, but if select something from the combobox and then try to sort the column that the combobox is in, it does not sort with the rest of the row. How do I set that value? Thanks CONFIDENTIALITY STATEMENT - This message and any files or text attached to it are intended only for the recipients named above, and contain information that may be confidential or privileged. If you are not an intended recipient, you must not read, copy, use, or disclose this communication. Please also notify the sender by replying to this message, and then delete all copies of it from your system. Thank you. Abdul Qabiz [EMAIL PROTECTED] Sent by: flexcoders@yahoogroups.com 07/07/2005 12:54 AM Please respond to flexcoders@yahoogroups.com To flexcoders@yahoogroups.com cc Subject RE: [flexcoders] How do I bound XML data into an array that is my data provider for a data grid Hi, Look at the following code: ##employeesModelTest.mxml## mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml xmlns=* initialize=onAppInit() mx:Script import ComboBoxCellRenderer; function onAppInit() { ComboBoxCellRenderer.dataProvider = [San Francisco, Bangalore,Newton]; } /mx:Script mx:Model id=employeesModel source=employees.xml/ mx:DataGrid dataProvider={employeesModel.employee} width=500 mx:columns mx:Array mx:DataGridColumn columnName=id/mx:DataGridColumn mx:DataGridColumn columnName=name/mx:DataGridColumn mx:DataGridColumn columnName=location cellRenderer={ComboBoxCellRenderer}/mx:DataGridColumn /mx:Array /mx:columns /mx:DataGrid /mx:Application ##ComboBoxCellRenderer.mxml## mx:HBox xmlns:mx=http://www.macromedia.com/2003/mxml mx:Script public static var dataProvider:Array; private var listOwner:Object; //TODO: all required code to make this renderer complete. /mx:Script mx:ComboBox id=_cb dataProvider={ComboBoxCellRenderer.dataProvider} change=/ /mx:HBox ##employees.xml## employees employee id1/id nameMatt/name locationSan Francisco/location /employee employee id2/id nameGary/name locationSan Francisco/location /employee /employees That is how you bind a Model with DataGrid. As far as ComboBox's dataProvider is concerned, you can have static property in CellRenderer class. Set the static property from the application. -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Joe Sent: Thursday, July 07, 2005 3:00 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How do I bound XML data into an array that is my data provider for a data grid I am using an array to provide a data provider for my data grid that has a cellrendering colum that produces a combobox. With in the array is a New Array for the combo box data provider. It is OK that the values for the combo box are hard coded, but I twant he rest of the values tin the data grid to come from a Model which source is a XML file. How can I bound the values from the XML source to my array. -- 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 -- 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] remote objects + CF (another question)
Hello again everyone, I was able to get some data from cold fusion with the following code: mx:RemoteObject id=myService endpoint=http://localhost:8500/flashservices/gateway; source=myPath.someCFC showBusyCursor=true result=myResult(event) fault=myFault(event) / and then to handle the result i have a script block: mx:Script ![CDATA[ private function runMe():Void { myService.someMethod(); } private function myResult(event:Object):Void { //do something with the result; } ]] /mx:Script i understand that i am essentially instantiating the service and then when a button is clicked (or some other event) i am invoking a method in the service i instantiated and then im handling the result with a function that is defined as part of the RemoteObject tag. .. but what if i need to invoke another method in the smae service? the result is already set to be handled by a specific function. for instance let's say i have 2 comboboxes: locations and employees upon completion of the application loading i need to instantiate a service that contains 2 methods getLocations() and getEmployees() and do something different with each resultset. however, unless im missing something with the example i posted above i would need to instantiate the object twice each time with a different handler for the the results? thanks for any help. -- -chris.alvarado [application developer] -- 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] customizing the form class. . .
Hello all, im wondering if it is possible to customize the form class at all. I love the built in validators and I love that I can create a model of the data collected by the form if i use the mx:Form tag. however, im not crazy about the fact that the label for a form element when using mx:FormItem appears to the left of the form field. is there a way to specify the location of the label relative to the form field? i didnt see anything listed in the documentation but i can imagine someone else out there has come across the same issue. Also, is there a way to customize the way the validation errors appear? ideally id love to display some kind of tooltip above the fields with errors instead of displaying the errors out to the right side of the fields. thanks for any help. -- -chris.alvarado [application developer] -- 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] Difference of Webservice result with result format as XML and Object
Hi, I have to use a webservice which i will be using the result to generate a column graph. The problem is, the result which i'm getting from the webservice is different when i use different resultformat. If i use result format as 'object', i get only partial result(half of the result) when i see through the network monitor. the web service will be returning a complex structure. If i use result format as 'XML', i get the whole result which i want, but i'm not able to parse through the xml using action script as the root node is something like n1:ResponseDataquery.../n1:ResponseDataquery I tried getting the xml result and changing it to object, but as the xml result has some extra nodes it is converting it into a wrong object which i cant use. Is there any tips for me to get the whole result in object format, and can i pass this directly to the column graph. with regards, tony -- 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] Camera
It seems this is something you cannot do with a SWC, since you must create your internal assetsfrom withinthe class attached to the componentwith 'createClassObject' or 'createChild' methods. I might be wrong, since I have never played with the SWC in the past. It seems to make the trick in Flash but not in Flex :(( Philippe Maegerman From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Philippe MaegermanSent: jeudi 7 juillet 2005 16:06To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Camera Thank you very muchAbdul, After a good battle I was arrived to your second proposition, very light and simple. I wanted to go the'deluxe' way and bundle it into a .swc so I could instantiate a video tag and pass arguments like 'height', 'width', 'src' video settings etc ... but coudn't get it work :(( I can load it into a container but can't access the video object inside (I simplified, just trying toattachVideo on the client sidewithout Flashcom):(( I am actualy digging the flex doc 'Developing Flex Components and Themes in Flash AUthoring' to see what I miss. Whenever I get something solid like a rock, I'll post the file ;)) Cheers, Philippe Maegerman From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Abdul QabizSent: jeudi 7 juillet 2005 14:57To: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Camera Hi,You don't need a VideoObject to send stream to flashcom. But you need itto see what is going to server :)Video class can not be instantiated using ActionScript. You need to havea Video Symbol in your swf.There are two methods:1) Use MediaDisplay2) Create a swf with Video symbol and embed in Flex app.First method would work without much effort but file size might be more,because entire MediaDisplay code would be in swf even though you won'tbe using any MediaDisplay functionality.Second method would take 5-10 minutes more effort for creating a swfwith Video symbol using Macromedia Flash IDE. But final output of yourapplication would be small.I am going to show you both ways here. See the following code and alsoat attached files:1) ##CameraUsingMediaDisplay.mxml##?xml version="1.0" encoding="iso-8859-1"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"width="600" height="600" creationComplete="onAppInit()" mx:Script ![CDATA[ var video:Video; var camera:Camera; var netConnection:NetConnection; var netStream:NetStream; function onAppInit() { //Get there reference of video object, checkMediaDisplay.as in FlexforFlash.zip. video = mediaDisplay["_videoHolder"]._video; //Make a new connection object netConnection = new NetConnection(); //Connect to the service //my_nc.connect("rtmp://server.com/yourapp/theInstance"); } function startCamera() { camera = Camera.get(); video.attachVideo(camera); //netStream = new NetStream(netConnection); //netStream.attachVideo(camera); //netStream.publish("myCameraStream", "live"); } ]] /mx:Script mx:MediaDisplay id="mediaDisplay" width="340"height="280"/mx:MediaDisplay mx:Button label="Start Camera" click="startCamera()"/ /mx:Application2) ##CameraUsingVideoSymbol.mxml##?xml version="1.0" encoding="iso-8859-1"?mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"width="600" height="600" creationComplete="onAppInit()" mx:Script ![CDATA[ //emebd videoHolder.swf which contains a movieclipsymbol 'videoHolder'. videoHolder movieclip is wrapper around Videoobject [Embed(source="videoHolder.swf", symbol="videoHolder")] var videoHolder:String; var video:Video; var camera:Camera; var netConnection:NetConnection; var netStream:NetStream; function onAppInit() { //_video is the instance name of Video object insidevideoHolder movieclip. video = image.content._video; //Make a new connection object netConnection = new NetConnection(); //Connect to the service //my_nc.connect("rtmp://server.com/yourapp/theInstance"); } function startCamera() { camera = Camera.get(); video.attachVideo(camera); //netStream = new NetStream(netConnection); //netStream.attachVideo(camera); //netStream.publish("myCameraStream", "live"); } ]] /mx:Script mx:Image id="image" contentPath="videoHolder" width="340"height="280" / mx:Button label="Start Camera" click="startCamera()"/ /mx:Application-abdulFrom: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of Philippe MaegermanSent: Thursday, July 07, 2005 4:00 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] CameraIs it possible to instantiate a Video Object in Flex to attach a webcamand stream to flashcom?Philippe Maegerman--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS * Visit your group
[flexcoders] Re: HistoryManger state is undefined on loading
--- In flexcoders@yahoogroups.com, rockmoyosa [EMAIL PROTECTED] wrote: This thing is really weird: first save state: DEBUG: - saveState DUMP START this:Object |view = false (boolean) |detailId = 7bd21a76-b716-4501-a196-1acf4265d847 (string) And if I click on Back: DEBUG: - loadState DUMP START this:Object |detailId = 7bd21a76-b716-4501-a196-1acf4265d847 (string) |view = true (string) What the @[EMAIL PROTECTED] view = true??? ... More documentation on the HistoryManager would be appreciated. Are perhaps more samples. I found one but it to damn simple it doesn't say anything on how it's working only how to use it for simple things. http://www.richinternet.de/blog/index.cfm?mode=entryentry=3CF01C8E-CFBB-A5CA-36BCC797581D2CFB --- In flexcoders@yahoogroups.com, jacksodj [EMAIL PROTECTED] wrote: I personnaly have seen really flakey behavior from that history controller. I have posted before, but have not been able to see a good resolution --- In flexcoders@yahoogroups.com, rockmoyosa [EMAIL PROTECTED] wrote: My case: - saveState is executed - On Back loadState is executed. But. Than my state is undefined private var changed:Boolean; public function initHistory():Void { mx.managers.HistoryManager.register(this); storeInternalState(); } public function saveState():Object { // called by HistoryManager, tells the component // to create a state object and to return it\ var state = new Object(); state.model = Model.getInstance(); state.view = this._scope.m_detailview; mx.controls.Alert.show (+this._scope.m_detailview.visible); Log.debug(hello+state); return state; } public function loadState(state:Object):Void { // called by HistoryManager, passes in a state // object so the component can rebuild it's state mx.controls.Alert.show(state: +state.view); restoreInternalState(state); } public function savePresent():Void { storeInternalState( ); } public function storeInternalState():Void { mx.managers.HistoryManager.save(); } public function restoreInternalState(state:Object):Void { Log.dump(state); Log.debug (state.view.visible: +state.view.visible); if(state.view.visible == true this._scope.m_detailview.visible == false || state.view.visible == false this._scope.m_detailview.visible == true){ toggleView(); } Model.getInstance().restoreInstance(state.model); } -- 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] Scrolling text in flex
Nithya, try this. Code included! http://weblogs.macromedia.com/pent/archives/2004/12/ticker.cfm Manish Jethani wrote: On 7/4/05, Nithya R [EMAIL PROTECTED] wrote: i wnt to know how to create scrolling text in flex.(something like the marquee in html) Put the text inside a Canvas, then move it by setting its 'x' and 'y' properties. -- 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 * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/. -- 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] Re: XML Socket Doesn't Work
--- In flexcoders@yahoogroups.com, Theodore E Patrick [EMAIL PROTECTED] wrote: Ted, Thanks! It is working now. - Chris Ah, there are 2 errors is there, socket is a temporary variable within the connect method and null is not a valid value for the server. Think of the mx:Script block as a class (because it is at runtime). I made this mistake first time round the MXML tree. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ import mx.utils.Delegate; var socket:XMLSocket public function serverConnected(success:Boolean) { if (success) { stat.text=Status = Connected; } else { stat.text=Status = Error; } } public function connect(event){ socket:XMLSocket = new XMLSocket(); socket.onConnect = Delegate.create( this , serverConnected ); socket.connect( 'localhost' , 9875); return } ]] /mx:Script mx:Text text=XMLSocket Test App width=205 textAlign=center / mx:Button label=Connect to XML Server click=connect() / mx:Label id=stat text=Status = width=144 textAlign=center / /mx:Application Cheers, Ted ;) -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cshafer213 Sent: Thursday, July 07, 2005 8:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: XML Socket Doesn't Work --- In flexcoders@yahoogroups.com, Theodore E Patrick [EMAIL PROTECTED] wrote: Thanks for responding and putting me on the right track. I changed my code to add the Delegate as best I could but I still can't get it working: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ import mx.utils.Delegate; public function serverConnected(success:Boolean) { if (success) { stat.text=Status = Connected; } else { stat.text=Status = Error; } } public function connect(event){ var socket:XMLSocket = new XMLSocket(); socket.onConnect = Delegate.create( this, serverConnected ); socket.connect(null, 9875); return } ]] /mx:Script mx:Text text=XML Test App width=205 textAlign=center / mx:Button label=Connect to XML Server click=connect() / mx:Label id = stat text=Status = width=144 textAlign=center / /mx:Application Chris, You need to use Delagate with XMLSocket callbacks. This should work: import mx.utils.Delegate; sock.onClose = Delegate.create( this, sockOnClose ); sock.onConnect = Delegate.create( this, sockOnConnect ); sock.onData = Delegate.create( this, sockOnData ); Cheers, Ted ;) -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of cshafer213 Sent: Thursday, July 07, 2005 2:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] XML Socket Doesn't Work Can Anyone Tell Me what is wrong with the following code to connect to an XML socket server? The stat Lable should display either status = Connected or status = Error when the button is clicked, and nothing is happening. Thanks, Chris Shafer, George Weiss Associates ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ public function serverConnected(success:Boolean) { if (success) { stat.text=Status = Connected; } else { stat.text=Status = Error; } } public function connect(event){ var socket:XMLSocket = new XMLSocket(); socket.onConnect=serverConnected; socket.connect(null, 9875); return } ]] /mx:Script mx:Text text=XML Test App width=205 textAlign=center / mx:Button label=Connect to XML Server click=connect() / mx:Label id = stat text=Status = width=144 textAlign=center / /mx:Application -- 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 -- 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 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives:
RE: [flexcoders] Gartner's Take on Rich Internet Applications
Title: Gartners Take on Rich Internet Technology Hi, Gartner did not select Nexaweb over Flex. Gartner has not done such a report. I have met many times with Gartner and they are quite excited about FlexI am confident that when and if they do their trademark Gartner Magic Quadrent for this category we will be in a very strong position. Gartner did do a recent report on RIA. It was very much informed by Macromedia's perspective, but it was vendor neutral and did not rate or rank any specific vendors in the space--it spoke at a higher level about the category. I have no idea what they think of Nexaweb because as far as I know they have never published a report with such information. To help you parse what you are seeing in this invitation, the way this typically works,this isa commercial seminar by Nexaweb where they have paid Gartner to speak to the topic of RIA. I expect in this Gartner will cover the key points of their recent paper. I haven't seen it specifically and I don't work for Nexaweb or Gartner, but I do know how these things typically work (Macromedia also has hired analyst firms such as Gartner to speak at seminars). Gartner is actually a solid firm (I would not say this about the industry analyst catagory in general) I would be very surprised if they are specifically endorsing a vendor here in the content they present or if they are changing their views based on being paid by a vendor. However, what they do allow is to be used as an industry expert by a vendor. This creates a blurry line in my mind where it can appear that they are specifically endorsing that vendor over another, when in reality they are simply providing industry expertise within a forum. -David Macromedia From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tolulope OlonadeSent: Friday, July 08, 2005 4:12 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Gartner's Take on Rich Internet Applications Whats all the hype about NEXAWEB.? Has anybody seen solutions implemented using the tech? How does it stack against FLEX? Why did Gartner select over Flex? Can somebody shed more light ? From: Nexaweb Technologies, Inc. [mailto:[EMAIL PROTECTED] Sent: Thursday, July 07, 2005 7:24 PMTo: Tolulope OlonadeSubject: Gartner's Take on Rich Internet Applications You are receiving this invitation because you have shown interest in Nexaweb products or technology.If you do not wish to receive future invitations to Nexaweb Webinars, click here: [EMAIL PROTECTED]. --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. 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: Control Bar Background Color
Andrew: Yes, I was using the headerColors attribute and was placing it in the CSS file. Since the ControlBar was/is a separate control, I did not think of it as the footer of the Panel, even though, it actually is displayed that way. This works. Thanks for the help. Jack --- In flexcoders@yahoogroups.com, Andrew Spaulding [EMAIL PROTECTED] wrote: I assume you used the headerColors attribute on the panel to change the header colours. The Panel component also has a footerColors style. The footerColors style is an array of two colours used to the draw footer background (the area for the ControlBar). use it like this: mx:Panel width=100% height=100% headerColors=[#44, #FF] footerColors=[#FF, #44] mx:ControlBar / /mx:Panel You can also use the footer-colours and header-colors tag in your css style declarations. Cheers, Andrew Spaulding www.flexdaddy.info --- In flexcoders@yahoogroups.com, jwc_wensan [EMAIL PROTECTED] wrote: Good Afternoon: In my code I have changed the headerColor of the Panel and want to change the ControlBar background color to match. I changed the background color to match, but it did not work. I then read this from livedocs: The mx:ControlBar container inherits all the properties of its parent classes. Note: Although the ControlBar container inherits the borderStyle, backgroundColor, and backgroundImage styles from the HBox container, you cannot set them. * Does this mean we are stuck with the Flex default background color for the ControlBar? Is there a workaround? Thanks, Jack -- 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] Flex + JSP + MySQL
Hi I want to programm a guestbook in flex, which should store the entries in a database(MySQL). I wrote a JSP site with a flex script and can so show all the entries in the database. That's works fine. But now I have Problem to get the Data from the Flex Form in the JSP-Variables to store them in the Database.(look example at bottom) How can i solve this Has anybody a simple example how i can write the flex variable to the JSP variable. thx flo PROBLEM mx:FormItem horizontalAlign=left label=Name required=true direction=horizontal mx:TextInput id=name width=200/ /mx:FormItem How can I store the value of name.text in the Database or in a JSP/Jave variable -- 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] getDropParent() when the branch is closed.
Unfortunately I just tried to do something like this. The itemRollOver doesnt fire when you are dragging over a itemL Jeff From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Chotin Sent: Thursday, July 07, 2005 10:54 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] getDropParent() when the branch is closed. Maybe you could add a itemRollOver handler on the Tree so that when you are dragging (indicated by dragEnter I guess) and you encounter a branch you could make sure the branch gets opened? Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeff Krueger Sent: Thursday, July 07, 2005 2:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] getDropParent() when the branch is closed. All, I am trying to drag an item from a grid and drop it on a tree control. I have found that the getDropParent seems to be the best bet when trying to find where to add a new child node to. The only problem I am having is if the user chooses to drop the item on a branch that is currently closed, the getDropParent() call returns one level higher. If the branch is set to open even with no children nodes then everything works. I can kind of understand why it works like this, but is there a way to work around this. Below is my dragDrop method, pretty much what everyone else has posted. I could expand all branches when the drag begins but that could be ugly. public function doDragDrop(event:Object) { doDragExit( event); var dragItems = event.dragSource.dataForFormat( items ); var targetForDrop = tree.getDropParent(); for ( var i = 0; i dragItems.length; i++) { targetForDrop.addTreeNode(test,dragItems[i]); tree.setIsOpen(targetForDrop, true); tree.selectItem(targetForDrop, true); } } Thanks Jeff -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Computer software testing Macromedia flex Development Software developer YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. 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] Flex + JSP + MySQL
Hi Flo, take a look at the HTTPService class. This way you can POST data to the jsp page just the way you would with a traditional HTML form. Basically, you need to populate a the rquest model of the HTTPService instance with the data and then send it to your jsp page by using myHttpService.send(), e.g. mx:HTTPService id=myHttpService url=guestbook.jsp mx:request name{name.text}/name /mx:request /mx:HTTPService mx:TextInput id=name / mx:Button label=Senden click=myHttpService.send()/ Instead of using a jsp page you could also send the data to a server side service/class which deals with the data (e.g. a POJO) Dirk. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of florianpflueger Sent: Friday, July 08, 2005 4:19 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex + JSP + MySQL Hi I want to programm a guestbook in flex, which should store the entries in a database(MySQL). I wrote a JSP site with a flex script and can so show all the entries in the database. That's works fine. But now I have Problem to get the Data from the Flex Form in the JSP-Variables to store them in the Database.(look example at bottom) How can i solve this Has anybody a simple example how i can write the flex variable to the JSP variable. thx flo PROBLEM mx:FormItem horizontalAlign=left label=Name required=true direction=horizontal mx:TextInput id=name width=200/ /mx:FormItem How can I store the value of name.text in the Database or in a JSP/Jave variable -- 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 -- 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] Mixing BubbleSeries LineSeries
The documentation states that it is possible to do this, but you must use a cartesianChart. When I change the chart type from bubble to cartestian (for a bubble chart that is already working) the bubbles fail to render. I was told that this had something to do with the bubble chart's implementation of LinearAxis but I am not sure how to make it work with a cartesian chart. Any help would be greatly appreciated! -- 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] application flow, logic question . . .
Good morning everyone, So it looks like I will be rebuilding a year long project that I originially developed in Flash, with Flex. The current structure is that i have a controlling movie that acts as the skeleton. if a user is not logged in they are presented with a login box and that is all. once the user logs in successfully they are presented with various navigation icons based on whatever permissions they have. when they select a particular navigation item, the subsequent interface is loaded into the conrolling movie using the loadMovie() method. (each interface is a separate .swf). so my question is, how would i replicate this structue in Flex? would i make each interface it's own MXML file? and if so how would i call those files into the main MXML file? any suggestions would be greatly appreciated, as would any urls to some examples of similar scenarios. thanks all! -- -chris.alvarado [application developer] -- 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] How do I bound XML data into an array that is mydataprovider for a data grid
See the CheckCellRenderer example in the flex samples. http://localhost:8700/samples/explorer/explorer.mxml It is in Explorer ComponentLibrary DataGrid Custom cell renderers CheckBoxRenderer , in the click handler function. Tracy From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, July 07, 2005 4:53 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How do I bound XML data into an array that is mydataprovider for a data grid No I am not. How do I use that function? CONFIDENTIALITY STATEMENT - This message and any files or text attached to it are intended only for the recipients named above, and contain information that may be confidential or privileged. If you are not an intended recipient, you must not read, copy, use, or disclose this communication. Please also notify the sender by replying to this message, and then delete all copies of it from your system. Thank you. Tracy Spratt [EMAIL PROTECTED] Sent by: flexcoders@yahoogroups.com 07/07/2005 01:38 PM Please respond to flexcoders@yahoogroups.com To flexcoders@yahoogroups.com cc Subject RE: [flexcoders] How do I bound XML data into an array that is my dataprovider for a data grid Are you using editField() to update the dataProvider in the //TODO: section? Tracy From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, July 07, 2005 12:29 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] How do I bound XML data into an array that is my dataprovider for a data grid Thanks that works great, but if select something from the combobox and then try to sort the column that the combobox is in, it does not sort with the rest of the row. How do I set that value? Thanks CONFIDENTIALITY STATEMENT - This message and any files or text attached to it are intended only for the recipients named above, and contain information that may be confidential or privileged. If you are not an intended recipient, you must not read, copy, use, or disclose this communication. Please also notify the sender by replying to this message, and then delete all copies of it from your system. Thank you. Abdul Qabiz [EMAIL PROTECTED] Sent by: flexcoders@yahoogroups.com 07/07/2005 12:54 AM Please respond to flexcoders@yahoogroups.com To flexcoders@yahoogroups.com cc Subject RE: [flexcoders] How do I bound XML data into an array that is my data provider for a data grid Hi, Look at the following code: ##employeesModelTest.mxml## mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml xmlns=* initialize=onAppInit() mx:Script import ComboBoxCellRenderer; function onAppInit() { ComboBoxCellRenderer.dataProvider = [San Francisco, Bangalore,Newton]; } /mx:Script mx:Model id=employeesModel source=employees.xml/ mx:DataGrid dataProvider={employeesModel.employee} width=500 mx:columns mx:Array mx:DataGridColumn columnName=id/mx:DataGridColumn mx:DataGridColumn columnName=name/mx:DataGridColumn mx:DataGridColumn columnName=location cellRenderer={ComboBoxCellRenderer}/mx:DataGridColumn /mx:Array /mx:columns /mx:DataGrid /mx:Application ##ComboBoxCellRenderer.mxml## mx:HBox xmlns:mx=http://www.macromedia.com/2003/mxml mx:Script public static var dataProvider:Array; private var listOwner:Object; //TODO: all required code to make this renderer complete. /mx:Script mx:ComboBox id=_cb dataProvider={ComboBoxCellRenderer.dataProvider} change=/ /mx:HBox ##employees.xml## employees employee id1/id nameMatt/name locationSan Francisco/location /employee employee id2/id nameGary/name locationSan Francisco/location /employee /employees That is how you bind a Model with DataGrid. As far as ComboBox's dataProvider is concerned, you can have static property in CellRenderer class. Set the static property from the application. -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Joe Sent: Thursday, July 07, 2005 3:00 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How do I bound XML data into an array that is my data provider for a data grid I am using an array to provide a data provider for my data grid
RE: [flexcoders] Multiple components sharing a data provider question
I see two possible issues you may be facing. First, how are you updating the dataProvider? You should use the dataProvider API, addTreeNode(), setProperty(), etc., and NOT any lower level methods like maybe XML class methods. The lower level methods do not broadcast the change events that the tree components need. If you really want to use the lower level methods, then supposedly you can call modelChanged yourself. Second, within your components, how are you binding to the data provider? Mx.core.Application... will not work reliably, that reference lacks the type information that binding needs to set up its infrastructure. I suggest that you pass a reference to the dataProvider into each component, and bind to that. Note: the public member variable must be typed, probably as TreeNode. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Jeffery Sent: Thursday, July 07, 2005 7:29 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Multiple components sharing a data provider question I'm trying to come up with a way to have multiple tree components share the same global data provider. I want to have all instances of the components updated to reflect changes to any of them, as though it was a file folder. I've created a global HTTP service object in my main application which passes the results down to the trees for the initial seeding from my xml source, but I can't figure out how to properly go about having all the trees dynamically update on a change event. Updating the instance of the tree that has the action performed on it doesn't alter the global data, and if I modify the global data, it only shows changes to trees if they haven't already been instantiated when the change happens. Is there some trick to this that I'm not seeing, or is this really complicated? Thanks for any assistance, -Tom Jeffery -- 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 -- 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] Background image in button.
Have you looked at ImageButton? It is in the flex\extras folder. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tony_lic Sent: Friday, July 08, 2005 3:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Background image in button. Hi, i tried giving a background image to a button. it accepts the image, but im not able to see the image in the button. what should be the problem? with regards, tony -- 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 -- 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] Re: Background image in button.
ImageButton is definitely worth a look. I don't know what you mean by accepts, but Button doesn't use the backgroundImage style. It's visuals can only be changed via skinning and ImageButton attempts to simply the skinning process. If it doesn't do what you want, read up on skinning. -Alex --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Have you looked at ImageButton? It is in the flex\extras folder. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tony_lic Sent: Friday, July 08, 2005 3:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Background image in button. Hi, i tried giving a background image to a button. it accepts the image, but im not able to see the image in the button. what should be the problem? with regards, tony -- 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 -- 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] application flow, logic question . . .
Starting a big project like that, it might be worth your while to look at the Cairngorm framework. Since you know where you are going, you would be able to see pretty quickly if it would suit your needs. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of chris.alvarado Sent: Friday, July 08, 2005 11:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] application flow, logic question . . . Good morning everyone, So it looks like I will be rebuilding a year long project that I originially developed in Flash, with Flex. The current structure is that i have a controlling movie that acts as the skeleton. if a user is not logged in they are presented with a login box and that is all. once the user logs in successfully they are presented with various navigation icons based on whatever permissions they have. when they select a particular navigation item, the subsequent interface is loaded into the conrolling movie using the loadMovie() method. (each interface is a separate .swf). so my question is, how would i replicate this structue in Flex? would i make each interface it's own MXML file? and if so how would i call those files into the main MXML file? any suggestions would be greatly appreciated, as would any urls to some examples of similar scenarios. thanks all! -- -chris.alvarado [application developer] -- 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 -- 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] HTTPService useProxy question...
Anyone bypass the flex proxy with useProxy=false? I have a flex app that currently uses the server as a proxy but we want to bypass the flex server and go directly to the source HTTP post/request. For example, one source is an RSS feed that will come up in a browser but is an XML file. When I use HTTPService and hit that with the default settings (i.e. Flex Proxy) it works. As soon as I turn that off (i.e. useProxy=false) it says that it cannot retrieve data! I am looking to see what I need to do...I did see this in the manual: -- Note: You must use the Flex proxy to correctly return HTTP status codes from a service. -- Is this my issue? The direct hit on the .rdf (i.e. XML) file does not return status codes?! Is that possible? Ideas? Thanks, -Michael -- 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] Re: Multiple components sharing a data provider question
Tom, What I usually do when I have several components using the same source of data, I use the power of databinding. Imagine 1 datagrid and 2 trees all using data from the same source (your http result), what I do, I create a function for each destination that will return the dataProvider formated as I want and accept my source as parameter. When manipulating the source, all those functions execute automaticly. What I usually use is dataProvider={someFunction(mySource)} and someFunction returns the data formated as I want. João Fernandes --- In flexcoders@yahoogroups.com, Tom Jeffery [EMAIL PROTECTED] wrote: I'm trying to come up with a way to have multiple tree components share the same global data provider. I want to have all instances of the components updated to reflect changes to any of them, as though it was a file folder. I've created a global HTTP service object in my main application which passes the results down to the trees for the initial seeding from my xml source, but I can't figure out how to properly go about having all the trees dynamically update on a change event. Updating the instance of the tree that has the action performed on it doesn't alter the global data, and if I modify the global data, it only shows changes to trees if they haven't already been instantiated when the change happens. Is there some trick to this that I'm not seeing, or is this really complicated? Thanks for any assistance, -Tom Jeffery -- 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] HTTPService useProxy question...
Sorry that should be useProxy=false. Ted ;) When you set proxy=false you need to have crossdomain.xml files set-up to handle the flash player security sandbox. If you do not have crossdomain.xml files configured, the player will block the URL request internally. Here is the lowdown on crossdomain.xml. http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14213 Here are some sample crossdomain.xml files: http://www.macromedia.com/crossdomain.xml http://www.yahoo.com/crossdomain.xml http://www.ifbin.com/crossdomain.xml These files are typically found on the server where the data is being requested. The Flash Player will automatically check this address for any domain or subdomain that is accessed. The Flex proxy gets around this restriction. Cheers, Ted ;) -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of heybluez Sent: Friday, July 08, 2005 3:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] HTTPService useProxy question... Anyone bypass the flex proxy with useProxy=false? I have a flex app that currently uses the server as a proxy but we want to bypass the flex server and go directly to the source HTTP post/request. For example, one source is an RSS feed that will come up in a browser but is an XML file. When I use HTTPService and hit that with the default settings (i.e. Flex Proxy) it works. As soon as I turn that off (i.e. useProxy=false) it says that it cannot retrieve data! I am looking to see what I need to do...I did see this in the manual: -- Note: You must use the Flex proxy to correctly return HTTP status codes from a service. -- Is this my issue? The direct hit on the .rdf (i.e. XML) file does not return status codes?! Is that possible? Ideas? Thanks, -Michael -- 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 -- 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 -- 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] Difference of Webservice result with result format as XML and Object
thanx again to Michelangelo Capraro for this one... http://www.mail-archive.com/flexcoders@yahoogroups.com/msg09146.htmlOn 7/8/05, tony_lic [EMAIL PROTECTED] wrote: Hi,I have to use a webservice which i will be using the result togenerate a column graph.The problem is, the result which i'm getting from the webserviceis different when i use different resultformat. If i use result format as 'object', i get only partial result(halfof the result) when i see through the network monitor. the webservice will be returning a complex structure.If i use result format as 'XML', i get the whole result which i want, but i'm not able to parse through the xml using action scriptas the root node is something liken1:ResponseDataquery.../n1:ResponseDataqueryI tried getting the xml result and changing it to object, but as the xml result has some extra nodes it is converting it into a wrongobject which i cant use.Is there any tips for me to get the whole result in objectformat, and can i pass this directly to the column graph. with regards,tony--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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 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 Visit your group "flexcoders" on the web. 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: HTTPService useProxy question...
First thanks for the response! Clears a lot of things up. But...if I read this correctly, then all the sites that I am requesting FROM have to have a crossdomain.xml file in their root web directory? Thanks again, Michael --- In flexcoders@yahoogroups.com, Theodore E Patrick [EMAIL PROTECTED] wrote: When you set proxy=false you need to have crossdomain.xml files set-up to handle the flash player security sandbox. If you do not have crossdomain.xml files configured, the player will block the URL request internally. Here is the lowdown on crossdomain.xml. http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14213 Here are some sample crossdomain.xml files: http://www.macromedia.com/crossdomain.xml http://www.yahoo.com/crossdomain.xml http://www.ifbin.com/crossdomain.xml These files are typically found on the server where the data is being requested. The Flash Player will automatically check this address for any domain or subdomain that is accessed. The Flex proxy gets around this restriction. Cheers, Ted ;) -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of heybluez Sent: Friday, July 08, 2005 3:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] HTTPService useProxy question... Anyone bypass the flex proxy with useProxy=false? I have a flex app that currently uses the server as a proxy but we want to bypass the flex server and go directly to the source HTTP post/request. For example, one source is an RSS feed that will come up in a browser but is an XML file. When I use HTTPService and hit that with the default settings (i.e. Flex Proxy) it works. As soon as I turn that off (i.e. useProxy=false) it says that it cannot retrieve data! I am looking to see what I need to do...I did see this in the manual: -- Note: You must use the Flex proxy to correctly return HTTP status codes from a service. -- Is this my issue? The direct hit on the .rdf (i.e. XML) file does not return status codes?! Is that possible? Ideas? Thanks, -Michael -- 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 -- 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] Extending DataGridColumn + emitting events = java.lang.NullPointerException
Hi all, I'm trying to create an easy way to apply a custom cell renderer to a DataGridColumn *and* keep that cell renderer flexible enough so that its behavior can be configured from the mxml file that contains the DataGridColumn. For example, I have a LinkCellRenderer that displays a column's text as a link. However, I'd like to reuse that renderer throughout my application, using different handlers for the link's click event. Ideally, I'd like to do something like this: mx:DataGrid ... mx:columns mx:Array mx:DataGridColumn columnName=textField1 / mx:DataGridColumn columnName=textField2 / custom:DataGridLinkColumn columnName=linkField click=myLocalClickHandler(event) / /mx:Array /mx:columns /mx:DataGrid I've tried implementing this by creating a class called DataGridLinkColumn that extends mx.controls.gridclasses.DataGridColumn. It looks something like this: // BEGIN CODE import mx.events.*; [Event(click)] class DataGridLinkColumn extends mx.controls.gridc lasses.DataGridColumn { public function clickPropagator(event) { var eventObj:Object = new Object(); eventObj.type = click; eventObj.item = event.item; dispatcher.dispatchEvent(eventObj); } public function DataGridLinkColumn() { cellRenderer = LinkCellRenderer; } private static function staticConstructor():Boolean { EventDispatcher.initialize(dispatcher); return true; } private static var staticConstructed:Boolean = staticConstructor(); public var addEventListener:Function; public var removeEventListener:Function; private static var dispatcher:Object = new Object(); } // END CODE LinkCellRenderer is your basic custom cell renderer (in this case, rendering a link). It uses the DataGridLinkColumn's clickPropagator method to handle the link's click method. clickPropagator would then emit a click event from the DataGridLinkColumn. This would allow you to define a click handler right from the mxml file that has the DataGridColumn declarations... like the first code sample. The problem is, while Flex tries to compile those classes, I get the king of all exceptions, java.lang.NullPointerException. That exception seems to go away when I remove the Event metadata tag from the DataGridLinkColumn class, but that tag's obviously needed for that method to emit a click event. Anyone have any ideas? Is there a better way to go about this? -Doug -- 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] unknown property warning
Hi, I am getting data using a HTTPService from a jsp. which returns an xml of the following format catalog product id1/id nameTable Cloth (Cotton)/name description / imageassets/noimage.jpg/image Attributes Attribute NameColor/Name Attvalues data17/data label / /Attvalues /Attribute Attribute NameSize/Name Attvalues data8/data label / /Attvalues /Attribute /Attributes /product product id10/id nameBaseball Cap/name description / imageassets/noimage.jpg/image Attributes Attribute NameColor/Name Attvalues data7/data labelBlack/label /Attvalues Attvalues data5/data labelWhite/label /Attvalues Attvalues data6/data labelBlue/label /Attvalues Attvalues data4/data labelRed/label /Attvalues /Attribute Attribute NameSize/Name Attvalues data3/data labelLarge/label /Attvalues Attvalues data1/data labelSmall/label /Attvalues Attvalues data2/data labelMedium/label /Attvalues /Attribute /Attributes /product when I use this in a repeater mx:Repeater id=att dataProvider={dataObject.Attributes.Attribute} I get the warning on my browser and my app server console Warning C:\jboss\server\default\tmp\deploy\tmp44091mr-exp.war\ProductDetail.mxml:44 Changes to unknown property, Attribute, will not be detected. The data is coming back and is display fine. What is this warning about and how do I clear this. Regards Rajesh J -- 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] unknown property warning
Check the FAQs to find why you see this warning. FAQs: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt What is dataObject? I think, if you make it mx:Model id=dataObject /mx:Model It should work properly... -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rajesh Jayabalan Sent: Saturday, July 09, 2005 4:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] unknown property warning Hi, I am getting data using a HTTPService from a jsp. which returns an xml of the following format catalog product id1/id nameTable Cloth (Cotton)/name description / imageassets/noimage.jpg/image Attributes Attribute NameColor/Name Attvalues data17/data label / /Attvalues /Attribute Attribute NameSize/Name Attvalues data8/data label / /Attvalues /Attribute /Attributes /product product id10/id nameBaseball Cap/name description / imageassets/noimage.jpg/image Attributes Attribute NameColor/Name Attvalues data7/data labelBlack/label /Attvalues Attvalues data5/data labelWhite/label /Attvalues Attvalues data6/data labelBlue/label /Attvalues Attvalues data4/data labelRed/label /Attvalues /Attribute Attribute NameSize/Name Attvalues data3/data labelLarge/label /Attvalues Attvalues data1/data labelSmall/label /Attvalues Attvalues data2/data labelMedium/label /Attvalues /Attribute /Attributes /product when I use this in a repeater mx:Repeater id=att dataProvider={dataObject.Attributes.Attribute} I get the warning on my browser and my app server console Warning C:\jboss\server\default\tmp\deploy\tmp44091mr-exp.war\ProductDetail.mxml :44 Changes to unknown property, Attribute, will not be detected. The data is coming back and is display fine. What is this warning about and how do I clear this. Regards Rajesh J -- 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 -- 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] Re: unknown property warning
Hi, How do I bind it.. I thought by mx:Array id=attArr{dataObject.Attributes}/mx:Array and then mx:Repeater id=att dataProvider={attArr.Attribute} I thought I was binding it.. but I still get the same error. Rajesh J --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Check the FAQs to find why you see this warning. FAQs: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt What is dataObject? I think, if you make it mx:Model id=dataObject /mx:Model It should work properly... -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rajesh Jayabalan Sent: Saturday, July 09, 2005 4:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] unknown property warning Hi, I am getting data using a HTTPService from a jsp. which returns an xml of the following format catalog product id1/id nameTable Cloth (Cotton)/name description / imageassets/noimage.jpg/image Attributes Attribute NameColor/Name Attvalues data17/data label / /Attvalues /Attribute Attribute NameSize/Name Attvalues data8/data label / /Attvalues /Attribute /Attributes /product product id10/id nameBaseball Cap/name description / imageassets/noimage.jpg/image Attributes Attribute NameColor/Name Attvalues data7/data labelBlack/label /Attvalues Attvalues data5/data labelWhite/label /Attvalues Attvalues data6/data labelBlue/label /Attvalues Attvalues data4/data labelRed/label /Attvalues /Attribute Attribute NameSize/Name Attvalues data3/data labelLarge/label /Attvalues Attvalues data1/data labelSmall/label /Attvalues Attvalues data2/data labelMedium/label /Attvalues /Attribute /Attributes /product when I use this in a repeater mx:Repeater id=att dataProvider={dataObject.Attributes.Attribute} I get the warning on my browser and my app server console Warning C:\jboss\server\default\tmp\deploy\tmp44091mr-exp.war\ProductDetail.mxml :44 Changes to unknown property, Attribute, will not be detected. The data is coming back and is display fine. What is this warning about and how do I clear this. Regards Rajesh J -- 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 -- 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/