Ri: [flexcoders] Flex 2 problem about remoteo bject in tomcat
I got the root cause: the JSM service do not be install in tomcat, and who can offer some guide or link for installing the JMS in tomcat ,such as activeMQ ?and it muddle me that why flex 1.5 remote object do not need JMS but needbyflex 2.0 ... more complex ...more heavy...thanks - sanksank xuan [EMAIL PROTECTED] 写道: I meet a issue of remoteObject in flex2, when config a remote object , and call its method, and return detail resultofthis error message "Channel.connect.failed error netconnection.call.failed:http status 500"and even I put the samples in flex2packageto webapp dir of tomcat, also appear this error."send failed".who can help me? thanksand I have finish a blog site with flex1.5 ,you can visit it if you are intersting with it. http://sankeye.go.3322.org thanks - sank 想成为冯小刚、陈凯歌、张纪中三大导演的主角吗? 雅虎1G免费邮箱百分百防垃圾信 雅虎助手-搜索、杀毒、防骚扰 -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Uncaught exceptions in Flex 1.5
But is there any way to centralize the calling code? The only solution I see is to create own Delegate class with try..catch..finally statement and also with static method execute() that executes any function in any context using this Delegate class. That static method execute() is not obligatory, but it could speed up refactoring. True? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter Farland Sent: Monday, April 24, 2006 5:26 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Uncaught exceptions in Flex 1.5 If these exceptions are due to non-Flex framework code then either its a bug in that 3rd party code or, as Matt suggested, the number of entry points that need to be checked can be reduced by centralizing the calling code. -- 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] How to user setInterval() to call the remoteobject method?
Hi All, I have a piece of code below: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml initialize=test() mx:RemoteObject id=EJBUserProxy source=net.wind.proxy.UserProxy mx:method name=getUserInfo result=setCurrentUser (event.result)/mx:method /mx:RemoteObject mx:Script ![CDATA[ function test(){ setInterval(getUser,1); } function getUser(){ EJBUserProxy.getUserInfo(qaz); } function setCurrentUser(obj){ if(obj!=null) mx.controls.Alert.show(execute); } ]] /mx:Script /mx:Application it seems the setInterval function can't execute remoteobject method, Who has such experience,wait for your help, Thanks -- 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: Flex2B2 - calling a function in the base class to manipulate a base string var
Please ignore. my mistake (noticed it while i was trying to make a testcase) --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Yes, I would expect that to work. Can you provide a complete testcase? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bhaq1972 Sent: Monday, April 24, 2006 1:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2B2 - calling a function in the base class to manipulate a base string var this is follows on from the post Matt recently answered(thanks btw). i have a function on a base class (MyBox.as..extends a Box) as follows public var myString=; public function someFunction():void { myString = helloworld; } if i now call this function from my extended component (see below), myString equals . Shouldn't it be helloworld. (i also made myString into a getter/setter ...didnt work) myBox mx:Button click=someFunction();trace(myString)/ -- 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 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] How to access the tag name in a tree XML data provider
In my tree I use an XML based data provider. An example is: category name=cat 1 code=001 group name=group 1 code=987 brand name=barnd 1 code=ABC/ /group /category When a user opens a tree node, I can access an attribute as: var n:String = [EMAIL PROTECTED]; How can I access the tag name to find out if it is a category, group or brand etc. Thank you Andrew -- 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] Objects and arrays as treeview datasource
Hi, Im trying to fill my treeview with data retrieved from a webservice. I have my resultformat set to default (Object), as e4x or xml doesnt give the correct result. Filling a datagrid with the data I retrieve works perfectly, but the problem is when there are nested objects in it, the tree doesnt draw childNodes. This is the value of my webservice result object: event = events.DataManagerResultEvent (@2b67be6) bubbles = false : Boolean cancelable = false : Boolean currentTarget = managers.DataManager (@2b0b0b6) eventPhase = 2 [0x2] : Number result = mx.utils.ObjectProxy (@29d6e46) getCategoriesResult = Object (@2bab0a6) node = Object (@2bab8c6) node = Array (@2b672b6) [0] = Object (@2baba66) catID = 15 [0xf] : Number label = Pixco Labs : String [1] = Object (@2babc26) catID = 1 [0x1] : Number label = Technology : String node = Array (@2b671c6) [0] = Object (@2babe06) catID = 6 [0x6] : Number label = ASP.NET : String [1] = Object (@2b9c046) catID = 7 [0x7] : Number label = HTML/CSS : String [2] = Object (@2b9c246) catID = 8 [0x8] : Number label = _javascript_ : String [3] = Object (@2b9c426) catID = 9 [0x9] : Number label = SQL : String [4] = Object (@2b9c606) catID = 10 [0xa] : Number label = Tech Experiments : String [5] = Object (@2b9c7e6) catID = 16 [0x10] : Number label = Flash/Flex/Flash Lite : String length = 6 [0x6] : Number [2] = Object (@2b6fa06) catID = 2 [0x2] : Number label = Utilities : String node = Array (@2b67376) [0] = Object (@2babf66) catID = 11 [0xb] : Number label = Client tools : String [1] = Object (@2babd66) catID = 12 [0xc] : Number label = Server tools : String length = 2 [0x2] : Number [3] = Object (@2babb86) catID = 3 [0x3] : Number label = Design : String node = Array (@2b676d6) [0] = Object (@2bab966) catID = 13 [0xd] : Number label = Cool layouts : String [1] = Object (@2bab386) catID = 14 [0xe] : Number label = Design experiments : String length = 2 [0x2] : Number [4] = Object (@2c62e26) catID = 4 [0x4] : Number label = Usability : String [5] = Object (@2c62286) catID = 5 [0x5] : Number label = Off-topic : String length = 6 [0x6] : Number xmlns = 0 [0x0] : Number object = Object (@2bab1a6) uid = F97D8CAC-0C05-4ED5-3B1F090A : String xmlns = http://tempuri.org/ : String target = managers.DataManager (@2b0b0b6) type = getCategoriesResponse : String The tree only renders the nodes in the root, it doesnt create the subNodes. Do I need to loop through this data in code? It would be a lot easier if I could just put this result as the dataSource for my tree. Thanks for any suggestions, Jonas -- 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: How to access the tag name in a tree XML data provider
I forgot to mention that this is using Flex 2 Beta 2 --- In flexcoders@yahoogroups.com, greenfishinwater [EMAIL PROTECTED] wrote: In my tree I use an XML based data provider. An example is: category name=cat 1 code=001 group name=group 1 code=987 brand name=barnd 1 code=ABC/ /group /category When a user opens a tree node, I can access an attribute as: var n:String = [EMAIL PROTECTED]; How can I access the tag name to find out if it is a category, group or brand etc. Thank you Andrew -- 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: Dynamic create child in Flex1.5
Dear all, that mean can i do at this way? var component_name = My_Component; My_VBox.createChild(mx.utils.ClassUtil.findClass(component_name),undefined); But i fail in using this method_ . can someone help me? thx capho --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: We have mx.utils.ClassUtil.findClass which takes a string and will return the class instance. You still need to make sure that your custom class gets linked into the SWF though by making sure there's a typed reference to it somewhere. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sinacapho Sent: Thursday, April 20, 2006 11:25 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Dynamic create child in Flex1.5 Dear all, i have a container that i need to create different custom component on it. I find that the function createChild() only accept hard code component. For example createChild(Button,undefined); Does it have some method that can run like this? var c_component = Button; // Actually it may be my custom component. XX.createChild(c_component,undefined); thx capho -- 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 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] Re: Looping output
When you say loop over components, do you mean loop over existing UI objects? Or do you mean create UI objects? If you are creating, then do something like the following to create a label and/or textbox control for each index of the array returned: For loop { var newLabel = myVBox.createChild(mx.controls.Label, undefined); newLabel.text = myArray[i]; } Are we on the right path here or is this not what you are looking for? | Karl Johnson Cynergy Systems, Inc. http://www.cynergysystems.com -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Tuesday, April 25, 2006 3:43 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Looping output I am trying to loop over components. Like Labels and text. So depending on how many records I return it outputs that many sets of labels and text components. --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Jeremy, have you looked at the for loops? for (var i:Number=0;imyArray.length;i++) { oElement = myArray[i]; } Or for (var key in myObject) { oTemp = myObject[key]; } Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Monday, April 24, 2006 4:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Looping output In my application, I have a section where I need to output text that is returned from my cfc. The cfc returns an array, is there away to loop output text. -- 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 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] Autocompletion textfield
Dear all, is there any help about the autocompletion textfield in Flex 1.5, basically i want to use web service to refresh ,can somebody have any resource about that? thx capho -- 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 to user setInterval() to call the remoteobject method?
Try calling setInterval like this, intervalID = setInterval(this,getUser,1); Also, in the getUser function add clearInterval(intervalID);--JoshOn 4/25/06, loveewind [EMAIL PROTECTED] wrote: Hi All, I have a piece of code below:?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml initialize=test() mx:RemoteObject id=EJBUserProxysource=net.wind.proxy.UserProxy mx:method name=getUserInfo result=setCurrentUser (event.result)/mx:method/mx:RemoteObjectmx:Script![CDATA[function test(){setInterval(getUser,1);}function getUser(){EJBUserProxy.getUserInfo (qaz);}function setCurrentUser(obj){if(obj!=null)mx.controls.Alert.show(execute);}]]/mx:Script/mx:Applicationit seems the setInterval function can't execute remoteobject method, Who has such experience,wait for your help,Thanks--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] Flex 1.5 ViewStack child creation
I'm using the following ViewStack within my application: mx:ViewStack id=myViewStack height=100% cmp:FirstView id=firstView / cmp:SecondView id=secondView / cmp:ThirdView id=thirdView / /mx:ViewStack I've been reading about the ViewStack component and found that children (except the first one) are only created when the user explicitly makes an action that causes the selected child to change as: function myButton.click() { myViewStack.selectedChild = thirdView; } What I'm realising is that children are ALL created, in a sequential fashion, but CREATED in fact. Why is this happening? Should I set a creationPolicy property to none and then instantiate the views manually? If so, which is the best way to do it? createComponent()? createChild()? createClassObject()? Please, help me... :-S Thanks! -- 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: How to user setInterval() to call the remoteobject method?
Or changing the method to like this would work: (notice the parenthesis) function test(){ setInterval(getUser(),3000); } --- In flexcoders@yahoogroups.com, Joshua Garnett [EMAIL PROTECTED] wrote: Try calling setInterval like this, intervalID = setInterval(this,getUser,1); Also, in the getUser function add clearInterval(intervalID); --Josh On 4/25/06, loveewind [EMAIL PROTECTED] wrote: Hi All, I have a piece of code below: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml initialize=test() mx:RemoteObject id=EJBUserProxy source=net.wind.proxy.UserProxy mx:method name=getUserInfo result=setCurrentUser (event.result)/mx:method /mx:RemoteObject mx:Script ![CDATA[ function test(){ setInterval(getUser,1); } function getUser(){ EJBUserProxy.getUserInfo(qaz); } function setCurrentUser(obj){ if(obj!=null) mx.controls.Alert.show(execute); } ]] /mx:Script /mx:Application it seems the setInterval function can't execute remoteobject method, Who has such experience,wait for your help, Thanks -- 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 SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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: Autocompletion textfield
Sho posted a nice example in Flex 2.0. It works pretty much the same way in 1.5. http://weblogs.macromedia.com/sho/archives/2006/04/new_version_of.cfm mx:TextInput id=myBox keyDown=callWebService();/ --- In flexcoders@yahoogroups.com, sinacapho [EMAIL PROTECTED] wrote: Dear all, is there any help about the autocompletion textfield in Flex 1.5, basically i want to use web service to refresh ,can somebody have any resource about that? thx capho -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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: Attaching component dynamically
yeah understood! thanks a lot Regards Flex Learner --- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] wrote: No, the Repeater is not a container; you will need to place a repeater object within a container (I used VBox in the sample, but any container should do). You can use createClassObject() to create child objects at runtime in AS. MovieClip.attachMovie() should be there as well, although I can't remember ever seeing it used in a Flex app. Typically, you'll see createClassObject() used in custom controls that extend an existing class, or for specific applications where child objects need to be created dynamically in actionscript as opposed to mxml. Hope that helps! Doug --- In flexcoders@yahoogroups.com, flexlearner flexlearner@ wrote: Cool! thanks a lot yes i have the variables in my component file and also the xml and component mxml is available to mail application I could import one instance of custom component just the information on repeater component(which in the hirarchy of container class ..am i right? ) was missing my problem is solved but just asking for curiosity that can we have run time asset assembling in flex as we do attachmovie() or creatClassobject() in flash -actionscript Thanks once again Regards Flex Learner --- In flexcoders@yahoogroups.com, Doug Lowder douglowder@ wrote: Hello, You could use a Model tag for accessing the xml within your app, and a Repeater tag to loop through the items and pass their values to your custom component. I'm assuming your component has variables for the category, notes, and date_day xml fields, so code would be something like the following (Flex 1.5, but should be very similar in 2.0). Make sure your app can find the xml file and CustomComponent.mxml (or whatever you chose to name your custom component). ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml width=100% height=100% mx:Model id=xmlFromFile source=xml_file.xml/ mx:VBox height=100% width=100% mx:Repeater id=rp dataProvider={xmlFromFile.dailly_learning} CustomComponent category={rp.currentItem.category} notes={rp.currentItem.notes} date_day={rp.currentItem.date_day} / /CustomComponent /mx:Repeater /mx:VBox /mx:Application --- In flexcoders@yahoogroups.com, flexlearner flexlearner@ wrote: I created a custom component there are some text Areas in that component This component will be imported in main application My final and simple goal is : To load a xml file -- loop thru the array of node dailly_learning And attach the custom component as many as dailly_learning nodes are and fill the data into it I could have easily done flash using attachmovie but how to do it in Flex I could load the xml and could retrieve the value from it Some one please guide me ! Structure of xml files is something like : ! Xml file -- dailly_learning category flex /category notes some text /notes date_day date date_day /dailly_learning dailly_learning category flash /category notes some text /notes date_day date date_day /dailly_learning dailly_learning category Misc /category notes some text /notes date_day date date_day /dailly_learning Regards, Flex Learner -- 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] Flex 1.5 ViewStack child creation
>From Help: Navigator containers such as Accordion, TabNavigator, and ViewStack implement the auto policy by creating all their children immediately, but wait to create the deeper descendants of a child until it becomes the selected child of the navigator container. So if you want to create all your childrens at one time, just use creationPolicy=all On 4/25/06, nahruka [EMAIL PROTECTED] wrote: I'm using the following ViewStack within my application: mx:ViewStack id=myViewStack height=100% cmp:FirstView id=firstView / cmp:SecondView id=secondView / cmp:ThirdView id=thirdView / /mx:ViewStack I've been reading about the ViewStack component and found that children (except the first one) are only created when the user explicitly makes an action that causes the selected child to change as: function myButton.click() { myViewStack.selectedChild = thirdView; } What I'm realising is that children are ALL created, in a sequential fashion, but CREATED in fact. Why is this happening? Should I set a creationPolicy property to none and then instantiate the views manually? If so, which is the best way to do it? createComponent()? createChild()? createClassObject()? Please, help me... :-S Thanks! -- 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 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] Re: Flex 1.5 - Cairngorm .99 - Binding VO to TextInput help please
Thanks Suzy but my problem isn't with populating a combobox...my combobox of users populates just fine, when I select a user from the list and the user is fetched, the user object whose fields are bound to various textinput fields in my form are not shown...it's only when I 'touch' the file and refresh my browser, is the user information shown correctly in the textinput components of my form...I can't grasp why this would be happening... robert l. brueckmann vice president merlin securities 595 madison avenue new york, ny 10022 p: 212.822.4821 f: 212.822.4820 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Suzy Lawson Sent: Monday, April 24, 2006 7:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex 1.5 - Cairngorm .99 - Binding VO to TextInput help please Roger, I have faced the same problem. The reason is that when you deploy it the server for the first time, nothing is compiled. So in your initial request, your application returns the users before it has compiled and created the component...so your call to set the combo box with user silenty fails. When you hit refresh, since everything is already compiled, it can set the combobox with the data in time. Put your logic to fetch the XML user in the creationComplete method of your mx:Combobox...or somewhere where you know it is created. hope this helps. cheers. --- In flexcoders@yahoogroups.com, Robert Brueckmann [EMAIL PROTECTED] wrote: I tried searching the archives and couldn't find anything relevant to what we're doing here, so I'm hoping someone can explain something: 1. User logs in 2. XML is returned with all applications user has access to 3. Tab Navigator component is generated on the fly with tabs labeled according to application names in XML returned from DB. Actual MXML component each tab is linked to is not yet created upon creation of the TabNavigator...ONLY when the user clicks on a tab, is the appropriate MXML component created. 4. One of the tabs is a user admin form where an admin user can select any of the system users from a list and edit their information 5. All fields in this form are bound to ModelLocator.selectedUser.someField 6. Admin user selects user from list and in the result method of my command class that retrieves the user, the code is simply ModelLocator.selectedUser = UserAdminVO(event.result); 7. The VERY first time the application is deployed and the application server restarted, and the application compiles for the first time, the TextInput components DO not get updated with the bound selectedUser's information. My trace statements in the command class SHOW the selectedUser object getting set and the field values there, but my TextInput components do not reflect this information. 8. If I open up FlexBuilder and open my UserAdmin.mxml file, simply hit the spacebar, and save it (the file is automatically uploaded to my app server) and I hit the refresh button on my browser, go to the User Admin tab and select a user, magically, the user info is displayed as it should. 9. If I try to redploy the code and restart the app server again, I'm back to square one. What the HECK is going on here? It's like a bug in the binding of a VO to the TextInput components does not work upon initial compilation on dynamically created components...not until I TOUCH the component MXML file and refresh the browser, forcing the Flex compiler to recompile the app, do the fields actually show the properly bound information. Any thoughts? robert l. brueckmann vice president merlin securities 595 madison avenue new york, ny 10022 p: 212.822.4821 f: 212.822.4820 This message contains information from Merlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone or by replying to this transmission. Merlin Securities, LLC is a registered broker-dealer. Services offered through Merlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed by Merlin Securities, LLC and may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security. -- 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 This message contains information from Merlin Securities, LLC, or from one of its affiliates, that
[flexcoders] [Flex2 Beta2] setting up flex/coldfusion connectivity on j2ee multiserver installations
hi flexcoders, is there any possibility to get the flex/coldfusion connectivity up and running already with the beta2 versions available from labs? i read in some forums and ben's blog, that this will only be supported in the final version (or possibly later betas)... for that, the installer fails saying 'invalid JRun root directory' at the moment, no matter what directory i point it to. now, since i spent the last week and a half concepting and configuring everything so far, it just would be extrmely nice not having to start all over again. greetings, thomas -- 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: Autocompletion textfield
Capho- Sorry, to elaborate more. You could have a canvas below the text box that by default is set to visible=false...and then appears as data comes back...something like this. Hope this helps get you going ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml mx:Script ![CDATA[ function callIt() { //call webservice //myList.dataprovider=... } ]] /mx:Script mx:TextInput id=myTextBox keyDown=callIt();/ mx:Canvas visible={myTextBox.text.length 0} width=100 height=50 mx:List id=myList /mx:List /mx:Canvas /mx:Application --- In flexcoders@yahoogroups.com, Suzy Lawson [EMAIL PROTECTED] wrote: Sho posted a nice example in Flex 2.0. It works pretty much the same way in 1.5. http://weblogs.macromedia.com/sho/archives/2006/04/new_version_of.cfm mx:TextInput id=myBox keyDown=callWebService();/ --- In flexcoders@yahoogroups.com, sinacapho capmatch@ wrote: Dear all, is there any help about the autocompletion textfield in Flex 1.5, basically i want to use web service to refresh ,can somebody have any resource about that? thx capho -- 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] Flex2b2 - DataGrid bug - using ArrayCollection of ValueObjects as data provider
Hi Here is my vrey simple test: http://virtualro.co.uk/~andi/flex/datagrid/Test1.html View Source is enabled. Conains 2 very simple files. You can see that the first DataGrid works well, the second does not. The only difference between them is the structure of the dataprovder. The first one is an ArrayCollection of Objects, the second one is an ArrayCollection of TestVO, which is a very simple value object class with one single property. How could I make the DataGrid to accept my VO-s? Thanks Andi -- 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: Flex 1.5 - Cairngorm .99 - Binding VO to TextInput help please
Have you tried debugging? set a breakpoint in your onResult of the Command class and where you explictly set the selectedUser in the model locator. Once that line has passed, you should stop again then check your text box to see if it has the value. I find I get a lot further debugging then using trace statements. Then repeat the process with the second hit when the behavior works OK. This should hopefully identify your issue. --- In flexcoders@yahoogroups.com, Robert Brueckmann [EMAIL PROTECTED] wrote: Thanks Suzy but my problem isn't with populating a combobox...my combobox of users populates just fine, when I select a user from the list and the user is fetched, the user object whose fields are bound to various textinput fields in my form are not shown...it's only when I 'touch' the file and refresh my browser, is the user information shown correctly in the textinput components of my form...I can't grasp why this would be happening... robert l. brueckmann vice president merlin securities 595 madison avenue new york, ny 10022 p: 212.822.4821 f: 212.822.4820 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Suzy Lawson Sent: Monday, April 24, 2006 7:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex 1.5 - Cairngorm .99 - Binding VO to TextInput help please Roger, I have faced the same problem. The reason is that when you deploy it the server for the first time, nothing is compiled. So in your initial request, your application returns the users before it has compiled and created the component...so your call to set the combo box with user silenty fails. When you hit refresh, since everything is already compiled, it can set the combobox with the data in time. Put your logic to fetch the XML user in the creationComplete method of your mx:Combobox...or somewhere where you know it is created. hope this helps. cheers. --- In flexcoders@yahoogroups.com, Robert Brueckmann rbrueckmann@ wrote: I tried searching the archives and couldn't find anything relevant to what we're doing here, so I'm hoping someone can explain something: 1. User logs in 2. XML is returned with all applications user has access to 3. Tab Navigator component is generated on the fly with tabs labeled according to application names in XML returned from DB. Actual MXML component each tab is linked to is not yet created upon creation of the TabNavigator...ONLY when the user clicks on a tab, is the appropriate MXML component created. 4. One of the tabs is a user admin form where an admin user can select any of the system users from a list and edit their information 5. All fields in this form are bound to ModelLocator.selectedUser.someField 6. Admin user selects user from list and in the result method of my command class that retrieves the user, the code is simply ModelLocator.selectedUser = UserAdminVO(event.result); 7. The VERY first time the application is deployed and the application server restarted, and the application compiles for the first time, the TextInput components DO not get updated with the bound selectedUser's information. My trace statements in the command class SHOW the selectedUser object getting set and the field values there, but my TextInput components do not reflect this information. 8. If I open up FlexBuilder and open my UserAdmin.mxml file, simply hit the spacebar, and save it (the file is automatically uploaded to my app server) and I hit the refresh button on my browser, go to the User Admin tab and select a user, magically, the user info is displayed as it should. 9. If I try to redploy the code and restart the app server again, I'm back to square one. What the HECK is going on here? It's like a bug in the binding of a VO to the TextInput components does not work upon initial compilation on dynamically created components...not until I TOUCH the component MXML file and refresh the browser, forcing the Flex compiler to recompile the app, do the fields actually show the properly bound information. Any thoughts? robert l. brueckmann vice president merlin securities 595 madison avenue new york, ny 10022 p: 212.822.4821 f: 212.822.4820 This message contains information from Merlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone or by replying to this transmission. Merlin Securities, LLC is a registered broker-dealer. Services
[flexcoders] Re: Flex 1.5 ViewStack child creation
Hi Stanislav, what I'm trying to do is just the opposite: avoid children to be created at the begining. After reading the documentation I can't understand why this is happening... I've put a trace sentence at the initialize property of each child and I've debugged the application. The trace message is shown for each of the 3 children in myViewStack! Thanks for your response :) --- In flexcoders@yahoogroups.com, Stanislav Zayarsky [EMAIL PROTECTED] wrote: From Help: Navigator containers such as Accordion, TabNavigator, and ViewStack implement the auto policy by creating all their children immediately, but wait to create the deeper descendants of a child until it becomes the selected child of the navigator container. So if you want to create all your childrens at one time, just use creationPolicy=all On 4/25/06, nahruka [EMAIL PROTECTED] wrote: I'm using the following ViewStack within my application: mx:ViewStack id=myViewStack height=100% cmp:FirstView id=firstView / cmp:SecondView id=secondView / cmp:ThirdView id=thirdView / /mx:ViewStack I've been reading about the ViewStack component and found that children (except the first one) are only created when the user explicitly makes an action that causes the selected child to change as: function myButton.click() { myViewStack.selectedChild = thirdView; } What I'm realising is that children are ALL created, in a sequential fashion, but CREATED in fact. Why is this happening? Should I set a creationPolicy property to none and then instantiate the views manually? If so, which is the best way to do it? createComponent()? createChild()? createClassObject()? Please, help me... :-S Thanks! -- 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 SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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: Dynamic create child in Flex1.5
dont forget your component_name has to be the full name, including the folder structure. eg if My_Components sits in a folder called MyComponents then your full name is MyComponents.My_Component --- In flexcoders@yahoogroups.com, sinacapho [EMAIL PROTECTED] wrote: Dear all, that mean can i do at this way? var component_name = My_Component; My_VBox.createChild(mx.utils.ClassUtil.findClass (component_name),undefined); But i fail in using this method_ . can someone help me? thx capho --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote: We have mx.utils.ClassUtil.findClass which takes a string and will return the class instance. You still need to make sure that your custom class gets linked into the SWF though by making sure there's a typed reference to it somewhere. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sinacapho Sent: Thursday, April 20, 2006 11:25 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Dynamic create child in Flex1.5 Dear all, i have a container that i need to create different custom component on it. I find that the function createChild() only accept hard code component. For example createChild(Button,undefined); Does it have some method that can run like this? var c_component = Button; // Actually it may be my custom component. XX.createChild(c_component,undefined); thx capho -- 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 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: Ri£º [flexcoders] Flex 2 problem about remoteobject in tomcat
Hello sank, there's someone who already wrote such tuto: http://www.silver-island.com/arts/flex/FDS2.0_on_Tomcat/jms_chat_on_ tomcat.html good luck! :D kind regards, Peter Blazejewicz -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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: Flex2b2 - DataGrid bug - using ArrayCollection of ValueObjects
Hi Andrea, your VO should implement IUID interface, that's discussed on list already, http://www.cflex.net/flexcoders.cfm?Message=msg25112.html http://livedocs.macromedia.com/labs/1/flex/langref/mx/core/IUID.html you can also mark your classes dynamic and flex will assing uuid itself (sample): http://www.simb.net/blog/index.cfm/2006/4/19/Using-Flex-2-List- Controls-with-ColdFusion-Components I've also used another solution based on boxing VO with ObjectProxy before building data provider, there are some thread on list about that already (just search for IUID or UUID keyword), hth, regards, Peter Blazejewicz -- 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: (Flex20 Beta2): RemoteObject Destination configuration problem
Thanks for your reply. I am precompiling the SWFs using flex builder. The value present in the Additional compiler arguments field is, -services C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml when I change it to, -services C:\tomcat\webapps\flex\WEB-INF\flex\flex-remoting-service.xml I start getting, exception 'java.lang.RuntimeException' while setting variable 'compiler.services'. It seems that the only value allowed is C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml. I tried putting, C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml;C:\tom\ cat\webapps\flex\WEB-INF\flex\flex-remoting-service.xml it gave me Unable to open C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml;C:\tomc\ at\webapps\flex\WEB-INF\flex\flex-remoting-service.xml Please let me know what does setting, -services C:\tomcat\webapps\flex\WEB-INF\flex\flex-remoting-service.xml do can't it be done manually. Thanks, Aejaz --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: Are you precompiling the SWFs? If so, are you specifying --services and pointing to the configuration file at compile time with either Flex Builder compiler command line arguments or mxmlc command line arguments? -- 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] Reference Errors, Flex Beta 2
Has anyone seen the Flash Player spew out some Reference Errors when trying to load a Flex 2 compiled movie? I saw it once last week and a co-worker saw it yesterday on an application that I could load fine. Below is an example of the errors. This error only comes up sporadically, and does not affect all users. ~harris ReferenceError: Error #1065: Variable _demo_mx_managers_SystemManager is not defined ReferenceError: Error #1065: Variable _HDividedBoxStyle__embed_css_Assets_swf_mx_skins_cursor_VBoxDivider_15 58936548 is not defined ReferenceError: Error #1065: Variable RichTextEditor__embed_mxml_assets_icon_style_italic_png_1789808142 is not defined ReferenceError: Error #1065: Variable _TreeStyle__embed_css_Assets_swf_TreeNodeIcon_1734862534 is not defined ReferenceError: Error #1065: Variable _AlertStyle__embed_css_Assets_swf_CloseButtonDown_1884413801 is not defined -- 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: 回复: RE: [flexcoders] Flex 2 probl em about remoteobject in tomcat
You shouldn't have both "localhost" and "{server.name}" in your channel-definitionendpoint uri="..." From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sank xuanSent: Tuesday, April 25, 2006 12:45 AMTo: flexcoders@yahoogroups.comSubject: 回复: RE: [flexcoders] Flex 2 problem about remoteobject in tomcat Hi Matt, thanks your quickly reply. below is my config list: and when i call meetingService.login(), got the error that I refered. in mxml: private function faultHandler(event:FaultEvent):void {Alert.show(event.fault.faultDetail, "Error");} . mx:RemoteObject id="meetingService" destination="meetingService" showBusyCursor="true" fault="faultHandler(event)"mx:method name="login" result="loginResult(event)"//mx:RemoteObject in flex-remoting-service: adapters adapter-definition id="java-object" class="flex.messaging.services.remoting.adapters.JavaAdapter" default="true"/ /adapters default-channels channel ref="my-amf"/ /default-channels destination id="database" properties sourcesamples.sqladmin.DatabaseService/source /properties /destinationdestination id="meetingService" properties sourcecom.poppybar.meeting.MeetingService/source /properties /destination in flex-enterprise-service: channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel" endpoint uri="http://localhost:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/ properties polling-enabledfalse/polling-enabled /properties /channel-definition and I can't get the stack trace error log from console of tomcat, and if we need set something to get it ? thanks - sank Matt Chotin [EMAIL PROTECTED] 写道: There must be a configuration setting that’s wrong. I’d check your logfiles and see if there are any errors as it starts up. If you don’t see anything change the log settings to debug and see what else spits out, you should at least see a stack trace when the flex app tries to connect. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of sank xuanSent: Monday, April 24, 2006 8:46 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Flex 2 problem about remoteobject in tomcat I meet a issue of remoteObject in flex2, when config a remote object , and call its method, and return detail resultofthis error message "Channel.connect.failed error netconnection.call.failed:http status 500" and even I put the samples in flex2packageto webapp dir of tomcat, also appear this error."send failed". who can help me? thanks and I have finish a blog site with flex1.5 ,you can visit it if you are intersting with it. http://sankeye.go.3322.org thanks - sank __赶快注册雅虎超大容量免费邮箱?http://cn.mail.yahoo.com __赶快注册雅虎超大容量免费邮箱?http://cn.mail.yahoo.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: Ri: [flexcoders] Flex 2 problem abo ut remoteobject in tomcat
Just comment out the messaging service include in your /WEB-INF/flex/flex-enterprise-services.xml file. !-- service-include file-path="flex-message-service.xml" / -- The messaging service has a JMS adapter registered which you don't need unless you're planning on using the messaging service with a Producer/Consumer to do real time messaging to a JMS destination. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sank xuanSent: Tuesday, April 25, 2006 2:41 AMTo: flexcoders@yahoogroups.comSubject: Ri: [flexcoders] Flex 2 problem about remoteobject in tomcat I got the root cause: the JSM service do not be install in tomcat, and who can offer some guide or link for installing the JMS in tomcat ,such as activeMQ ? and it muddle me that why flex 1.5 remote object do not need JMS but needbyflex 2.0 ... more complex ...more heavy... thanks - sanksank xuan [EMAIL PROTECTED] 写道: I meet a issue of remoteObject in flex2, when config a remote object , and call its method, and return detail resultofthis error message "Channel.connect.failed error netconnection.call.failed:http status 500" and even I put the samples in flex2packageto webapp dir of tomcat, also appear this error."send failed". who can help me? thanks and I have finish a blog site with flex1.5 ,you can visit it if you are intersting with it. http://sankeye.go.3322.org thanks - sank 想成为冯小刚、陈凯歌、张纪中三大导演的主角吗? 雅虎1G免费邮箱百分百防垃圾信雅虎助手-搜索、杀毒、防骚扰 -- 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: force image reload
Hello Andrea, do you mean something like preventing using cached images? try something similiar: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* creationComplete=initApp(); mx:Script ![CDATA[ import mx.controls.Alert; [Bindable] private var imageURL:String; private function initApp():void{ imageURL = http://www.macromedia.com/images/ homepage/en_us/fma/fma_54_bu_messaging.gif; } private function getRand():String{ return ?+(new Date().getTime()); } ]] /mx:Script mx:Image id=img width=756 height=200 source ={imageURL+getRand()} complete=Alert.show('source url: '+img.source. toString()) click=img.executeBindings()/ /mx:Application click image to refresh and see current url, hope that helps, kind regards, Peter Blazejewicz -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Re: (Flex20 Beta2): RemoteObject Destination configuration problem
You must always point --services to the top level services file, which is flex-enterprise-services.xml. The flex-remoting-service.xml is merely an include to this top level file (see the service-include tag pointing to this and the other services in the top level flex-enterprise-services.xml file). It's ok to make changes to the flex-remoting-service.xml file as it's included each time by the top level file. That said, if you're changing destination settings in any of the configuration and are using the --services option to codegen the correct information for you at runtime then you need to recompile the SWFs everytime you make a change. Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98 Sent: Tuesday, April 25, 2006 10:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex20 Beta2): RemoteObject Destination configuration problem Thanks for your reply. I am precompiling the SWFs using flex builder. The value present in the Additional compiler arguments field is, -services C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml when I change it to, -services C:\tomcat\webapps\flex\WEB-INF\flex\flex-remoting-service.xml I start getting, exception 'java.lang.RuntimeException' while setting variable 'compiler.services'. It seems that the only value allowed is C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml. I tried putting, C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml;C:\tom \ cat\webapps\flex\WEB-INF\flex\flex-remoting-service.xml it gave me Unable to open C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml;C:\tomc \ at\webapps\flex\WEB-INF\flex\flex-remoting-service.xml Please let me know what does setting, -services C:\tomcat\webapps\flex\WEB-INF\flex\flex-remoting-service.xml do can't it be done manually. Thanks, Aejaz --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: Are you precompiling the SWFs? If so, are you specifying --services and pointing to the configuration file at compile time with either Flex Builder compiler command line arguments or mxmlc command line arguments? -- 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 SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Binding with Child Object In Flex 2.0
Before in flex 1.5 I have this mx:Binding destination=this.DesignView[0].incomingDescription source=AssetTitle.text / In Flex 2.0 Beta 2 this does not seem to work. Thanks Bill -- 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: Flex 2.0 Remote Objects over SecureAMFChannel (HTTPS) in Apache or IIS
No, nothing really changed in the flex config. files other than the port when I was going directly through Tomcat and JRun. When going through Apache and IIS they stayed the same . I'd say with near certainty the port is configured correctly since I'm seeing the Command and Acknowledge messages in the console and the log. Also when going through Apache and IIS I see in the web server log that it is calling the messagebroker/amfsecure servlet and getting a 200 back. For some reason, I can't tell why since there's no source code and very little information available in the log other than the messages, it does not get (or process) the Remoting messages. That's why I feel like something else may need to be configured. However, the same configuration works when running directly through JRun over SecureAMF (HTTPS). Of course, that's the only time it works. I appreciate all the help, but I'm not sure where to go from here. It doesn't seem like anyone else has tried to get Flex 2 working in a secure environment (other than JRun). Like I said, I'd be elated if I was doing something wrong that was easily corrected as opposed to waiting for a new release. However, I've gone over this more times than I'd like to count and I cannot see anything wrong and other (non- Flex) J2EE applications are running correctly over HTTPS. --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: I've forwarded on to QA to see if we know of any issues. Did anything change between configurations when you use the connector like what server name you use? Is the port configured right? -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steven Toth Sent: Monday, April 24, 2006 11:01 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex 2.0 Remote Objects over SecureAMFChannel (HTTPS) in Apache or IIS I've also setup the flex application to run on Tomcat. Again, it works fine over an AMFChannel (HTTP), but not over a SecureAMF channel (HTTPS). It seems that there's a bug here. The only platform I could get it to work strictly over the SecureAMFChannel is standalone JRun. I was not able to get it to work strictly over HTTPS on standalone Tomcat, Apache-Tomcat, Apache-JRun, or IIS-JRun. All of these configurations support working applications that are executing strictly over HTTPS. Has anyone had other results? Can anyone at Macromedia/Adobe comment? Flex 2.0 is a great technology, but it's not going to penetrate the mainstream if it won't run on the lion's share of web environments. We've made a concerted effort to use Flex 2.0 and it would be counter productive to move back to the Flex 1.5 platform. Strictly using JRun is not an option where existing environments are already situated. I would be elated if I were simply missing something or configured something incorrectly, but other applications are working fine on these configurations. Also, as I mentioned previously, I see some of the flex messages in the log. Are there additional settings to run over SecureAMF? I'm truly at an impass. Any help would be appreciated. Thanks. --- In flexcoders@yahoogroups.com, Steven Toth steventoth@ wrote: Has anyone been able to get Flex 2.0 remote objects to work over a SecureAMFChannel (HTTPS) in Apache or IIS via the JRUN connectors? I have had success over a AMFChannel (HTTP) in Apache and IIS, but have only been able to get it to work over a SecureAMFChannel (HTTPS) when using JRun by itself. When executing over a AMFChannel (HTTP) in Apache and IIS, or over a SecureAMFChannel (HTTPS) in standalone JRun I see traces for CommandMessage, AcknowledgeMessage, and RemotingMessage. However, when running over a SecureAMFChannel (HTTPS) in Apache or IIS I only see the CommandMessage and AcknowledgeMessage. Any help would be greatly appreciated, I've put a lot of effort into getting this to work and I'm at a loss. Thanks. -- 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 SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the
[flexcoders] Re: How to access the tag name in a tree XML data provider
Try something like: var tagName:String = node.name().toString(); --- In flexcoders@yahoogroups.com, greenfishinwater [EMAIL PROTECTED] wrote: I forgot to mention that this is using Flex 2 Beta 2 --- In flexcoders@yahoogroups.com, greenfishinwater greenfishinwater@ wrote: In my tree I use an XML based data provider. An example is: category name=cat 1 code=001 group name=group 1 code=987 brand name=barnd 1 code=ABC/ /group /category When a user opens a tree node, I can access an attribute as: var n:String = [EMAIL PROTECTED]; How can I access the tag name to find out if it is a category, group or brand etc. Thank you Andrew -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Flex 2 not maintaining order of web service parameters.
Hello, I've been unable to get Flex to submit parameters to a web service method in a consistent order. I'm using Flex 2 beta 2 and a web service running on JBoss 4.0.4CR2 using annotations. This problem has been described in the following locations: -Macromedia Forum: Webservice always returns a Error #2032: Stream Error (http://tinyurl.com/ebyg8) -flexcoders archive: Flex 2: WebServervice call sometimes swaps parameters (http://tinyurl.com/ghwmr) -Macromedia Forum: WebService fields out of order (http://tinyurl.com/jsdg6) The order of the parameters appears to be somewhat random, as each time you refresh the page, the order changes. Though that order will last until you refesh again. One suggestion was wrapping the parameters in a single complex object. However, the problem still persists, as order is not maintained when flex serializies the object. Another suggested setting the parameters like so: if svc is your webservice id... svc.function.arguments = {value1:val1, value2:val2, ...}; svc.function(); Unfortunately, order is still not mainatained. Has anyone found a workaround for this? Thanks, Ilia -- 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] Flex2b2 - DataGrid bug - using ArrayCollection of ValueObjects as data provider
Hi Andi; Your TestVO class needs to implement the IUID interface. Tobias. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andrea Varga Sent: Tuesday, April 25, 2006 6:03 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2b2 - DataGrid bug - using ArrayCollection of ValueObjects as data provider Hi Here is my vrey simple test: http://virtualro.co.uk/~andi/flex/datagrid/Test1.html View Source is enabled. Conains 2 very simple files. You can see that the first DataGrid works well, the second does not. The only difference between them is the structure of the dataprovder. The first one is an ArrayCollection of Objects, the second one is an ArrayCollection of TestVO, which is a very simple value object class with one single property. How could I make the DataGrid to accept my VO-s? Thanks Andi -- 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 SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Flex1.5 Cairngorm ModelLocator and VO's
Hi, I've made some tweaks to the cairngorm framework for my own purposes, but I would like to ask your opinion of a feature I would like to add. Scenario: User logs in and the Value Objects are all filed with data using Java RemoteObjects. User does lots of stuff then wants to log out. Now I would like to clear the VO's of their data without having to destroy and re-create them. One idea I have to do this is to extend all of my VO's from a base VO class which has a reset() method. This method will clear all the property data in its instance. I would also add a reset() method to the ModelLocator which will iterate through all the registered VO's and call their reset() method. Has anyone got any opinions on this? Is there a better way? Should I even bother? Simon Fifield Senior Developer Mango Solutions -- 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: (Flex20 Beta2): RemoteObject Destination configuration problem
Hi Peter, Thanks for your reply. flash-remoting-service.xml is indeed included in flash-enterprise-services.xml. From your reply, it seemed to me that I should have the correct destination in flash-remoting-service BEFORE I attempt to save the project from the Flex builder(which in turn compiles it when I save the project). Is that correct ? If so, other than touching the mxml file open in Flex builder,how do I force Flex builder to compile the swf ? I removed the swf from the target directory, but Edit-Save of the mxml file is still not producing the the swf. Thanks for looking into this. -Aejaz --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: You must always point --services to the top level services file, which is flex-enterprise-services.xml. The flex-remoting-service.xml is merely an include to this top level file (see the service-include tag pointing to this and the other services in the top level flex-enterprise-services.xml file). It's ok to make changes to the flex-remoting-service.xml file as it's included each time by the top level file. That said, if you're changing destination settings in any of the configuration and are using the --services option to codegen the correct information for you at runtime then you need to recompile the SWFs everytime you make a change. Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98 Sent: Tuesday, April 25, 2006 10:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex20 Beta2): RemoteObject Destination configuration problem Thanks for your reply. I am precompiling the SWFs using flex builder. The value present in the Additional compiler arguments field is, -services C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml when I change it to, -services C:\tomcat\webapps\flex\WEB-INF\flex\flex-remoting-service.xml I start getting, exception 'java.lang.RuntimeException' while setting variable 'compiler.services'. It seems that the only value allowed is C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml. I tried putting, C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml;C:\tom \ cat\webapps\flex\WEB-INF\flex\flex-remoting-service.xml it gave me Unable to open C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml;C:\tomc \ at\webapps\flex\WEB-INF\flex\flex-remoting-service.xml Please let me know what does setting, -services C:\tomcat\webapps\flex\WEB-INF\flex\flex-remoting-service.xml do can't it be done manually. Thanks, Aejaz --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: Are you precompiling the SWFs? If so, are you specifying --services and pointing to the configuration file at compile time with either Flex Builder compiler command line arguments or mxmlc command line arguments? -- 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 SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] darron schall : My FITC 2006 ActionScript 3 Slides
Good reading, especialy the Open Source Commodore 64 Emulator written in ActionScript 3 :)) http://www.darronschall.com/weblog/archives/000226.cfm //Pim DISCLAIMER: The content of this e-mail message does not constitute a commitment of S.A. Emakina N.V. This e-mail and any attachments thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the intended recipient only. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) by persons other than the designated recipient(s) is prohibited. If an addressing or transmission error has misdirected this e-mail, please notify the author, either by telephone or by e-mail and delete the material from any computer. -- 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: Uncaught exceptions in Flex 1.5
Hy guys, I have the same problem. Can someone give a response??? It's really hard to develop without exceptions handling. --- In flexcoders@yahoogroups.com, Sergey Kovalyov skovalyov. [EMAIL PROTECTED] wrote: But is there any way to centralize the calling code? The only solution I see is to create own Delegate class with try..catch..finally statement and also with static method execute() that executes any function in any context using this Delegate class. That static method execute() is not obligatory, but it could speed up refactoring. True? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Peter Farland Sent: Monday, April 24, 2006 5:26 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Uncaught exceptions in Flex 1.5 If these exceptions are due to non-Flex framework code then either its a bug in that 3rd party code or, as Matt suggested, the number of entry points that need to be checked can be reduced by centralizing the calling code. -- 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] Flex2B2 - Need to hit 'tab' key twice to fire datagrid.itemEditEnd
I have noticed that if you set the editedItemPosition first (on an editable datagrid), it takes two hits on the tab key to trigger the datagrid itemEditEnd event. I'm sure it should trigger straight away. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml mx:Text text=test1 - edits cells directly and 'tab' out color=yellow width=50%/ mx:Text text=test2 - click 'edit' and then edit cell and 'tab' out color=yellow width=50%/ mx:DataGrid id=dg itemEditEnd=out.text+='itemEditEnd\n' editable=true mx:columns mx:Array mx:DataGridColumn dataField=one/ mx:DataGridColumn dataField=two/ mx:DataGridColumn dataField=three/ /mx:Array /mx:columns mx:dataProvider mx:Object two=b three=c/ mx:Object two=e three=f/ mx:Object two=h three=i/ /mx:dataProvider /mx:DataGrid mx:Button label=edit click=dg.editedItemPosition= {columnIndex:1, rowIndex:1} / mx:TextArea id=out width=40% height=110/ /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 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: (Flex20 Beta2): send failed for RemoteObject
Hi Peter, Thanks for your reply please disregard my previous message. I recompiled the application now I am getting send failed error message. Can you please take a look at the mxml to see if anything is wrong. I am very new to mxml might have had overlooked something obvious. Thanks, Aejaz ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* layout=absolute mx:Script ![CDATA[ import mx.rpc.events.*; import mx.collections.*; import mx.controls.* private function getNameHandler(event:ResultEvent):void { Result.text = event.result.toString(); currentState='TargetState'; } private function faultHandler(event:FaultEvent):void { Alert.show(event.fault.faultstring, Error); } ]] /mx:Script mx:states mx:State name=TargetState mx:RemoveChild child={button1}/ mx:RemoveChild child={formInput}/ mx:RemoveChild child={label1}/ mx:AddChild position=lastChild mx:Label x=99 y=130 width=265 height=28 id=Result/ /mx:AddChild /mx:State /mx:states mx:RemoteObject id=SendStringBack destination=EchoString showBusyCursor=true fault=faultHandler(event) mx:method name=getString result=getNameHandler(event) mx:arguments str {formInput.text} /str /mx:arguments /mx:method /mx:RemoteObject mx:TextInput x=119 y=129 id=formInput/ mx:Button x=119 y=170 label=Submit fontSize=13 id=button1 click=SendStringBack.getString.send()/ mx:Label x=119 y=86 text=What is your name ? width=160 fontSize=15 id=label1/ /mx:Application --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: You must always point --services to the top level services file, which is flex-enterprise-services.xml. The flex-remoting-service.xml is merely an include to this top level file (see the service-include tag pointing to this and the other services in the top level flex-enterprise-services.xml file). It's ok to make changes to the flex-remoting-service.xml file as it's included each time by the top level file. That said, if you're changing destination settings in any of the configuration and are using the --services option to codegen the correct information for you at runtime then you need to recompile the SWFs everytime you make a change. Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98 Sent: Tuesday, April 25, 2006 10:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex20 Beta2): RemoteObject Destination configuration problem Thanks for your reply. I am precompiling the SWFs using flex builder. The value present in the Additional compiler arguments field is, -services C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml when I change it to, -services C:\tomcat\webapps\flex\WEB-INF\flex\flex-remoting-service.xml I start getting, exception 'java.lang.RuntimeException' while setting variable 'compiler.services'. It seems that the only value allowed is C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml. I tried putting, C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml;C:\tom \ cat\webapps\flex\WEB-INF\flex\flex-remoting-service.xml it gave me Unable to open C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml;C:\tomc \ at\webapps\flex\WEB-INF\flex\flex-remoting-service.xml Please let me know what does setting, -services C:\tomcat\webapps\flex\WEB-INF\flex\flex-remoting-service.xml do can't it be done manually. Thanks, Aejaz --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: Are you precompiling the SWFs? If so, are you specifying --services and pointing to the configuration file at compile time with either Flex Builder compiler command line arguments or mxmlc command line arguments? -- 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 SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Re: Flex 1.5 - Cairngorm .99 - Binding VO to TextInput help please
Are/have you used a validator with a bound field anywhere in this file? If so you may be experiencing the same problem as I did. I wasted days trying to figure out why my Binding had suddenly broken down on several forms. I was using about 6 or 7 validators per form and the fields in the forms were using binding which should be no problem. However the binding just stopped working and I tried for days to get it to work again. In the end I got it working by commenting out nearly all of the mxml content and when it started working again I uncommented it and it worked, but then guess what - it stopped working again. Libby kindly gave me some pointers and mentioned that you must use the listener attribute of the Validator tag to explicitly target the field that you want to validate. I'm not certain if her solution works but give it a go. I found a workaround by using just 1 Validator for the entire form and using a custom validation function. mx:Validator field=checkContact validate=contactVH.validateForm(event.validator, event.value) / Then your validate function could be: function validateForm( validator, value ) : Void { if ( value.firstname== || value.firstname==undefined ) { validator.validationError(firstnameMissing, You must enter the firstname, firstname); } if ( value.lastname== || value.lastname==undefined ) { validator.validationError(lastnameMissing, You must enter the lastname, lastname); } EmailValidator.validateEmail( validator, value.email, null, email ); if ( value.telephone== || value.telephone==undefined ) { validator.validationError(telephoneMissing, You must enter the landline telephone number, telephone); } if ( value.addrstreet== || value.addrstreet==undefined ) { validator.validationError(addrstreetMissing, You must enter the street address, addrstreet); } if ( value.addrcity== || value.addrcity==undefined ) { validator.validationError(addrcityMissing, You must enter the city address, addrcity); } if ( value.addrpostcode== || value.addrpostcode==undefined ) { validator.validationError(addrpostcodeMissing, You must enter the post code, addrpostcode); } } Its not at all efficient because I validate the form on every change of every field so there is lots of testing going on - but that's because I need it to highlight errors as they are being typed or being resolved This seems to work for me. If you are not experiencing the Validator/Binding problem - ignore all of this! Regards, Simon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Suzy Lawson Sent: 25 April 2006 14:17 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex 1.5 - Cairngorm .99 - Binding VO to TextInput help please Have you tried debugging? set a breakpoint in your onResult of the Command class and where you explictly set the selectedUser in the model locator. Once that line has passed, you should stop again then check your text box to see if it has the value. I find I get a lot further debugging then using trace statements. Then repeat the process with the second hit when the behavior works OK. This should hopefully identify your issue. --- In flexcoders@yahoogroups.com, Robert Brueckmann [EMAIL PROTECTED] wrote: Thanks Suzy but my problem isn't with populating a combobox...my combobox of users populates just fine, when I select a user from the list and the user is fetched, the user object whose fields are bound to various textinput fields in my form are not shown...it's only when I 'touch' the file and refresh my browser, is the user information shown correctly in the textinput components of my form...I can't grasp why this would be happening... robert l. brueckmann vice president merlin securities 595 madison avenue new york, ny 10022 p: 212.822.4821 f: 212.822.4820 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Suzy Lawson Sent: Monday, April 24, 2006 7:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex 1.5 - Cairngorm .99 - Binding VO to TextInput help please Roger, I have faced the same problem. The reason is that when you deploy it the server for the first time, nothing is compiled. So in your initial request, your application returns the users before it has compiled and created the component...so your call to set the combo box with user silenty fails. When you hit refresh, since everything is already compiled, it can set the combobox with the data in time. Put your logic to fetch the XML user in the creationComplete method of your mx:Combobox...or somewhere where you know it is created. hope this helps. cheers. --- In flexcoders@yahoogroups.com, Robert Brueckmann rbrueckmann@ wrote: I tried searching the archives and couldn't find anything relevant to what we're doing here, so I'm hoping someone can explain something: 1. User logs in
RE: [flexcoders] Flex hangs when server times out session
I am calling a remote object on the jboss server with tomcat 5.5. We are using custom authentication, we use setusernamepassword on the remote object to set the authorized user. We are using flex 1.5.Thanks, BrentMatt Chotin [EMAIL PROTECTED] wrote: Hi Brent,I checked with QA here but no one had seen hangs like you describe. Sowe need more info as to what your setup entails. What channel are youusing? What kind of destination are you hitting (RemoteObject Iassume)? How was authentication enforced, constraints on a destinationand using setCredentials? Or was this through HTTP authentication?The more details you can provide the easier I can ask someone to tryreproducing.If you want to send code that's fine, just please make sure that youdon't send something with a .zip extension because the Adobe spam filterwill eliminate it (you can take the .zip and add a different extensionlike .zipper)Thanks!Matt-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of jfournetSent: Wednesday, April 19, 2006 8:10 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Flex hangs when server times out sessionMy flex interface hangs when the jboss server automatically times out the session after 30min of being idle. How do I detect this and create a new session so that I can automatically send the user to the login screen again.Thanks,Brent--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates. -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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 hangs when server times out session
Encoding on the remote object is set to AMFMatt Chotin [EMAIL PROTECTED] wrote: Hi Brent,I checked with QA here but no one had seen hangs like you describe. Sowe need more info as to what your setup entails. What channel are youusing? What kind of destination are you hitting (RemoteObject Iassume)? How was authentication enforced, constraints on a destinationand using setCredentials? Or was this through HTTP authentication?The more details you can provide the easier I can ask someone to tryreproducing.If you want to send code that's fine, just please make sure that youdon't send something with a .zip extension because the Adobe spam filterwill eliminate it (you can take the .zip and add a different extensionlike .zipper)Thanks!Matt-Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of jfournetSent: Wednesday, April 19, 2006 8:10 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Flex hangs when server times out sessionMy flex interface hangs when the jboss server automatically times out the session after 30min of being idle. How do I detect this and create a new session so that I can automatically send the user to the login screen again.Thanks,Brent--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives:http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Mail goes everywhere you do. Get it on your phone. -- 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] Flex 2 not maintaining order of web service parameters.
Try reading the comments on this page: http://jeff.mxdj.com/as3_datamanager.htm I always pass the arguments in an object, and so far no problems.. var args:Object = new Object(); args.yourParam = first param; etc. Good luck -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ilia_papas Sent: dinsdag 25 april 2006 17:06 To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex 2 not maintaining order of web service parameters. Hello, I've been unable to get Flex to submit parameters to a web service method in a consistent order. I'm using Flex 2 beta 2 and a web service running on JBoss 4.0.4CR2 using annotations. This problem has been described in the following locations: -Macromedia Forum: Webservice always returns a Error #2032: Stream Error (http://tinyurl.com/ebyg8) -flexcoders archive: Flex 2: WebServervice call sometimes swaps parameters (http://tinyurl.com/ghwmr) -Macromedia Forum: WebService fields out of order (http://tinyurl.com/jsdg6) The order of the parameters appears to be somewhat random, as each time you refresh the page, the order changes. Though that order will last until you refesh again. One suggestion was wrapping the parameters in a single complex object. However, the problem still persists, as order is not maintained when flex serializies the object. Another suggested setting the parameters like so: if svc is your webservice id... svc.function.arguments = {value1:val1, value2:val2, ...}; svc.function(); Unfortunately, order is still not mainatained. Has anyone found a workaround for this? Thanks, Ilia -- 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 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] Adding addEventListener too a Child object
I am trying to add a addEventListener to a child object in Flex 2.0 beta 2 and I have tried this DesignView[0].addEventListener (selectionChanged, valueChanged(this)); but this does not seem to work. Anyone know how? Thanks Bill -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Long chart labels in beta2
Is there some way to tell charts (specifically bar charts) to automatically wrap long labels for the chart items? I've done it manually by inserting chr(13)'s into the query being returned by my CFC, but it's doing an align left and the results are not pretty. Thanks, Chris -- 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] Adding addEventListener too a Child object
Not positive about flex 2, but in Flex 1.5 I would do DesignView.getChildAt(0).addEventListener(eventType, handler); (assuming DesignView is the parent container). Does that work in F2B2? | Karl Johnson Cynergy Systems, Inc. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of vestcomprogrammer Sent: Tuesday, April 25, 2006 4:39 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Adding addEventListener too a Child object I am trying to add a addEventListener to a child object in Flex 2.0 beta 2 and I have tried this DesignView[0].addEventListener (selectionChanged, valueChanged(this)); but this does not seem to work. Anyone know how? Thanks Bill -- 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 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: Looping output
That is exactly what I was talking about karl. --- In flexcoders@yahoogroups.com, Karl Johnson [EMAIL PROTECTED] wrote: When you say loop over components, do you mean loop over existing UI objects? Or do you mean create UI objects? If you are creating, then do something like the following to create a label and/or textbox control for each index of the array returned: For loop { var newLabel = myVBox.createChild(mx.controls.Label, undefined); newLabel.text = myArray[i]; } Are we on the right path here or is this not what you are looking for? | Karl Johnson Cynergy Systems, Inc. http://www.cynergysystems.com -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Tuesday, April 25, 2006 3:43 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Looping output I am trying to loop over components. Like Labels and text. So depending on how many records I return it outputs that many sets of labels and text components. --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: Jeremy, have you looked at the for loops? for (var i:Number=0;imyArray.length;i++) { oElement = myArray[i]; } Or for (var key in myObject) { oTemp = myObject[key]; } Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Monday, April 24, 2006 4:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Looping output In my application, I have a section where I need to output text that is returned from my cfc. The cfc returns an array, is there away to loop output text. -- 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 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] Re: Flex 1.5 - Cairngorm .99 - Binding VO to TextInput help please
Thanks for taking the time for the detailed reply Simon! I WISH it was validator related. In one instance, I am using a validator but the first time I saw this behavior was in a simple MXML file that had 3 lists that get populated with 3 separate message types and directly next to the lists is a title label and a text area...when the user clicks on a message in any of the 3 lists, the title and text area should be updated with the selected message's title and body content. The title label and body text area have their text attributes bound to {ModelLocator.selectedMessage.title} and {ModelLocator.selectedMessage.body} respectively and the change listener on all 3 of the lists is simple ModelLocator.selectedMessage = event.target.selectedItem; This NEVER works upon first compilation after a fresh server restart. If I 'touch' the file that contains this message reader component and refresh my browser...magically, the title and body start appearing when I select a message in the lists. This behavior escapes me and is obviously not conducive to a production release because I can't exactly go in and 'touch' all necessary files for this behavior to be fixed...this should work the first time. I even have a test button on the message reader page that, upon first time server start and app compilation, when I click on a message and the ModelLocator.selectedMessage object have been set but the title and body do not appear, I can click on this button and in an alert body display the title and the body of the selectedMessage object...I am confirming the selectedMessage object is getting set with the proper information, the damn TextInput components do not want to show it to me though...if I open up FlexBuilder, open up my MessagerReader.mxml file, hit the spacebar, backspace and then save it, refresh my browser...magically it all works properly. It's that initial load that is completely baffling me. I've tried debugging and because my components are being created as children on the fly it doesn't see the breakpoints I'm setting up. I'm at a loss. My work around, and this is the kicker, if I take the two fields that currently, in the same component, reside next to the 3 lists, and wrap them up into their own MXML file component and add a COMPLETELY EMPTY public function set message(m:Message){} method call in this new wrapped up component and then in the original message reader component, do this: comp:MessageReaderFields width=100% height=100% message={ModelLocator.selectedMessage} / And now, when I select a message, first compilation, 14th compilation, 1st server restart, 10th server restart, the message title and body field binding to the ModelLocator.selectedMessage object in my new embedded component work as they should. Makes sense, right? Nope. Not even a little bit. Whatever...looks like I have a work-around for the time being... robert l. brueckmann vice president merlin securities 595 madison avenue new york, ny 10022 p: 212.822.4821 f: 212.822.4820 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Simon Fifield Sent: Tuesday, April 25, 2006 11:33 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Flex 1.5 - Cairngorm .99 - Binding VO to TextInput help please Are/have you used a validator with a bound field anywhere in this file? If so you may be experiencing the same problem as I did. I wasted days trying to figure out why my Binding had suddenly broken down on several forms. I was using about 6 or 7 validators per form and the fields in the forms were using binding which should be no problem. However the binding just stopped working and I tried for days to get it to work again. In the end I got it working by commenting out nearly all of the mxml content and when it started working again I uncommented it and it worked, but then guess what - it stopped working again. Libby kindly gave me some pointers and mentioned that you must use the listener attribute of the Validator tag to explicitly target the field that you want to validate. I'm not certain if her solution works but give it a go. I found a workaround by using just 1 Validator for the entire form and using a custom validation function. mx:Validator field=checkContact validate=contactVH.validateForm(event.validator, event.value) / Then your validate function could be: function validateForm( validator, value ) : Void { if ( value.firstname== || value.firstname==undefined ) { validator.validationError(firstnameMissing, You must enter the firstname, firstname); } if ( value.lastname== || value.lastname==undefined ) { validator.validationError(lastnameMissing, You must enter the lastname, lastname); } EmailValidator.validateEmail( validator, value.email, null, email ); if ( value.telephone== || value.telephone==undefined ) { validator.validationError(telephoneMissing, You must enter the landline telephone number, telephone); } if (
RE: [flexcoders] Re: Flex 1.5 - Cairngorm .99 - Binding VO to TextInput help please
Hi Robert, Although on the surface of things our problems were not the same, I'll bet it's the same thing somewhere under the hood of the Flex 1.5 compiler that is causing these strange binding problems to occur. I keep reading of more and more people that are encountering this binding/compilation bug. Have you tried changing your flex-config.xml settings to not keep the compiled mxml components: !-- cache compiled custom components as swo files -- cache-swosfalse/cache-swos And maybe try some of the other cache/compiling settings to see if this resolves your problem. Compiling may be a little slower but it may be a better workaround than you currently have. With the growing number of people having these mysterious problems I wonder if Adobe are going to release an update to resolve them. Regards, Simon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Robert Brueckmann Sent: 25 April 2006 18:19 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Flex 1.5 - Cairngorm .99 - Binding VO to TextInput help please Thanks for taking the time for the detailed reply Simon! I WISH it was validator related. In one instance, I am using a validator but the first time I saw this behavior was in a simple MXML file that had 3 lists that get populated with 3 separate message types and directly next to the lists is a title label and a text area...when the user clicks on a message in any of the 3 lists, the title and text area should be updated with the selected message's title and body content. The title label and body text area have their text attributes bound to {ModelLocator.selectedMessage.title} and {ModelLocator.selectedMessage.body} respectively and the change listener on all 3 of the lists is simple ModelLocator.selectedMessage = event.target.selectedItem; This NEVER works upon first compilation after a fresh server restart. If I 'touch' the file that contains this message reader component and refresh my browser...magically, the title and body start appearing when I select a message in the lists. This behavior escapes me and is obviously not conducive to a production release because I can't exactly go in and 'touch' all necessary files for this behavior to be fixed...this should work the first time. I even have a test button on the message reader page that, upon first time server start and app compilation, when I click on a message and the ModelLocator.selectedMessage object have been set but the title and body do not appear, I can click on this button and in an alert body display the title and the body of the selectedMessage object...I am confirming the selectedMessage object is getting set with the proper information, the damn TextInput components do not want to show it to me though...if I open up FlexBuilder, open up my MessagerReader.mxml file, hit the spacebar, backspace and then save it, refresh my browser...magically it all works properly. It's that initial load that is completely baffling me. I've tried debugging and because my components are being created as children on the fly it doesn't see the breakpoints I'm setting up. I'm at a loss. My work around, and this is the kicker, if I take the two fields that currently, in the same component, reside next to the 3 lists, and wrap them up into their own MXML file component and add a COMPLETELY EMPTY public function set message(m:Message){} method call in this new wrapped up component and then in the original message reader component, do this: comp:MessageReaderFields width=100% height=100% message={ModelLocator.selectedMessage} / And now, when I select a message, first compilation, 14th compilation, 1st server restart, 10th server restart, the message title and body field binding to the ModelLocator.selectedMessage object in my new embedded component work as they should. Makes sense, right? Nope. Not even a little bit. Whatever...looks like I have a work-around for the time being... robert l. brueckmann vice president merlin securities 595 madison avenue new york, ny 10022 p: 212.822.4821 f: 212.822.4820 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Simon Fifield Sent: Tuesday, April 25, 2006 11:33 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Flex 1.5 - Cairngorm .99 - Binding VO to TextInput help please Are/have you used a validator with a bound field anywhere in this file? If so you may be experiencing the same problem as I did. I wasted days trying to figure out why my Binding had suddenly broken down on several forms. I was using about 6 or 7 validators per form and the fields in the forms were using binding which should be no problem. However the binding just stopped working and I tried for days to get it to work again. In the end I got it working by commenting out nearly all of the mxml content and when it started working again I uncommented it and it worked, but then guess what - it stopped
RE: [flexcoders] Flex 2 not maintaining order of web service parameters.
This is a known issue in Beta 2, should be addressed in Beta 3. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ilia_papas Sent: Tuesday, April 25, 2006 11:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex 2 not maintaining order of web service parameters. Hello, I've been unable to get Flex to submit parameters to a web service method in a consistent order. I'm using Flex 2 beta 2 and a web service running on JBoss 4.0.4CR2 using annotations. This problem has been described in the following locations: -Macromedia Forum: Webservice always returns a Error #2032: Stream Error (http://tinyurl.com/ebyg8) -flexcoders archive: Flex 2: WebServervice call sometimes swaps parameters (http://tinyurl.com/ghwmr) -Macromedia Forum: WebService fields out of order (http://tinyurl.com/jsdg6) The order of the parameters appears to be somewhat random, as each time you refresh the page, the order changes. Though that order will last until you refesh again. One suggestion was wrapping the parameters in a single complex object. However, the problem still persists, as order is not maintained when flex serializies the object. Another suggested setting the parameters like so: if svc is your webservice id... svc.function.arguments = {value1:val1, value2:val2, ...}; svc.function(); Unfortunately, order is still not mainatained. Has anyone found a workaround for this? Thanks, Ilia -- 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 SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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: (Flex20 Beta2): send failed for RemoteObject
The detailed error message in this case is, Channel.Connect.Failed error Netconnection.Call.Failed:HTTP:Failed My flex-remoting-service.xml looks as follows, default-channels channel ref=my-amf/ /default-channels destination id=EchoString properties sourcesamples.SimpleRemoteObject.Echo/source /properties /destination the channel my-amf is defined in flex-enterprise-services.xml as follows, channel-definition id=my-amf class=mx.messaging.channels.AMFChannel endpoint uri=http://{server.name}:{server.port}/{context.root}/messagebroker/amf class=flex.messaging.endpoints.AMFEndpoint/ properties polling-enabledfalse/polling-enabled /properties /channel-definition Thanks, Aejaz --- In flexcoders@yahoogroups.com, aejaz_98 [EMAIL PROTECTED] wrote: Hi Peter, Thanks for your reply please disregard my previous message. I recompiled the application now I am getting send failed error message. Can you please take a look at the mxml to see if anything is wrong. I am very new to mxml might have had overlooked something obvious. Thanks, Aejaz ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* layout=absolute mx:Script ![CDATA[ import mx.rpc.events.*; import mx.collections.*; import mx.controls.* private function getNameHandler(event:ResultEvent):void { Result.text = event.result.toString(); currentState='TargetState'; } private function faultHandler(event:FaultEvent):void { Alert.show(event.fault.faultstring, Error); } ]] /mx:Script mx:states mx:State name=TargetState mx:RemoveChild child={button1}/ mx:RemoveChild child={formInput}/ mx:RemoveChild child={label1}/ mx:AddChild position=lastChild mx:Label x=99 y=130 width=265 height=28 id=Result/ /mx:AddChild /mx:State /mx:states mx:RemoteObject id=SendStringBack destination=EchoString showBusyCursor=true fault=faultHandler(event) mx:method name=getString result=getNameHandler(event) mx:arguments str {formInput.text} /str /mx:arguments /mx:method /mx:RemoteObject mx:TextInput x=119 y=129 id=formInput/ mx:Button x=119 y=170 label=Submit fontSize=13 id=button1 click=SendStringBack.getString.send()/ mx:Label x=119 y=86 text=What is your name ? width=160 fontSize=15 id=label1/ /mx:Application --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: You must always point --services to the top level services file, which is flex-enterprise-services.xml. The flex-remoting-service.xml is merely an include to this top level file (see the service-include tag pointing to this and the other services in the top level flex-enterprise-services.xml file). It's ok to make changes to the flex-remoting-service.xml file as it's included each time by the top level file. That said, if you're changing destination settings in any of the configuration and are using the --services option to codegen the correct information for you at runtime then you need to recompile the SWFs everytime you make a change. Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98 Sent: Tuesday, April 25, 2006 10:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex20 Beta2): RemoteObject Destination configuration problem Thanks for your reply. I am precompiling the SWFs using flex builder. The value present in the Additional compiler arguments field is, -services C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml when I change it to, -services C:\tomcat\webapps\flex\WEB-INF\flex\flex-remoting-service.xml I start getting, exception 'java.lang.RuntimeException' while setting variable 'compiler.services'. It seems that the only value allowed is C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml. I tried putting, C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml;C:\tom \ cat\webapps\flex\WEB-INF\flex\flex-remoting-service.xml it gave me Unable to open C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml;C:\tomc \ at\webapps\flex\WEB-INF\flex\flex-remoting-service.xml Please let me know what does setting, -services C:\tomcat\webapps\flex\WEB-INF\flex\flex-remoting-service.xml do can't it be done manually. Thanks, Aejaz --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: Are you precompiling the SWFs? If so, are you specifying --services and pointing to the configuration file at compile time with either Flex Builder compiler command line arguments or mxmlc command line arguments? -- 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
RE: [flexcoders] Flex1.5 Cairngorm ModelLocator and VO's
Haha, No need for me to add reset() methods to all my VO's because I've just added a reInitialise() method to the ModelLocator that reintialises all the Models. Now I need to do similar thing for my ViewHelpers to make the view go back to their normal state when a user logs in. Simon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Simon Fifield Sent: 25 April 2006 16:13 To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex1.5 Cairngorm ModelLocator and VO's Hi, I've made some tweaks to the cairngorm framework for my own purposes, but I would like to ask your opinion of a feature I would like to add. Scenario: User logs in and the Value Objects are all filed with data using Java RemoteObjects. User does lots of stuff then wants to log out. Now I would like to clear the VO's of their data without having to destroy and re-create them. One idea I have to do this is to extend all of my VO's from a base VO class which has a reset() method. This method will clear all the property data in its instance. I would also add a reset() method to the ModelLocator which will iterate through all the registered VO's and call their reset() method. Has anyone got any opinions on this? Is there a better way? Should I even bother? Simon Fifield Senior Developer Mango Solutions -- 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 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] Re: Flex 1.5 - Cairngorm .99 - Binding VO to TextInput help please
I'll play with the config file and let you know what I find...thanks again for the help! Gotta love these things that you spend days on with no obvious cause...grrr! Thanks again! Cheers, robert l. brueckmann vice president merlin securities 595 madison avenue new york, ny 10022 p: 212.822.4821 f: 212.822.4820 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Simon Fifield Sent: Tuesday, April 25, 2006 1:52 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Flex 1.5 - Cairngorm .99 - Binding VO to TextInput help please Hi Robert, Although on the surface of things our problems were not the same, I'll bet it's the same thing somewhere under the hood of the Flex 1.5 compiler that is causing these strange binding problems to occur. I keep reading of more and more people that are encountering this binding/compilation bug. Have you tried changing your flex-config.xml settings to not keep the compiled mxml components: !-- cache compiled custom components as swo files -- cache-swosfalse/cache-swos And maybe try some of the other cache/compiling settings to see if this resolves your problem. Compiling may be a little slower but it may be a better workaround than you currently have. With the growing number of people having these mysterious problems I wonder if Adobe are going to release an update to resolve them. Regards, Simon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Robert Brueckmann Sent: 25 April 2006 18:19 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Flex 1.5 - Cairngorm .99 - Binding VO to TextInput help please Thanks for taking the time for the detailed reply Simon! I WISH it was validator related. In one instance, I am using a validator but the first time I saw this behavior was in a simple MXML file that had 3 lists that get populated with 3 separate message types and directly next to the lists is a title label and a text area...when the user clicks on a message in any of the 3 lists, the title and text area should be updated with the selected message's title and body content. The title label and body text area have their text attributes bound to {ModelLocator.selectedMessage.title} and {ModelLocator.selectedMessage.body} respectively and the change listener on all 3 of the lists is simple ModelLocator.selectedMessage = event.target.selectedItem; This NEVER works upon first compilation after a fresh server restart. If I 'touch' the file that contains this message reader component and refresh my browser...magically, the title and body start appearing when I select a message in the lists. This behavior escapes me and is obviously not conducive to a production release because I can't exactly go in and 'touch' all necessary files for this behavior to be fixed...this should work the first time. I even have a test button on the message reader page that, upon first time server start and app compilation, when I click on a message and the ModelLocator.selectedMessage object have been set but the title and body do not appear, I can click on this button and in an alert body display the title and the body of the selectedMessage object...I am confirming the selectedMessage object is getting set with the proper information, the damn TextInput components do not want to show it to me though...if I open up FlexBuilder, open up my MessagerReader.mxml file, hit the spacebar, backspace and then save it, refresh my browser...magically it all works properly. It's that initial load that is completely baffling me. I've tried debugging and because my components are being created as children on the fly it doesn't see the breakpoints I'm setting up. I'm at a loss. My work around, and this is the kicker, if I take the two fields that currently, in the same component, reside next to the 3 lists, and wrap them up into their own MXML file component and add a COMPLETELY EMPTY public function set message(m:Message){} method call in this new wrapped up component and then in the original message reader component, do this: comp:MessageReaderFields width=100% height=100% message={ModelLocator.selectedMessage} / And now, when I select a message, first compilation, 14th compilation, 1st server restart, 10th server restart, the message title and body field binding to the ModelLocator.selectedMessage object in my new embedded component work as they should. Makes sense, right? Nope. Not even a little bit. Whatever...looks like I have a work-around for the time being... robert l. brueckmann vice president merlin securities 595 madison avenue new york, ny 10022 p: 212.822.4821 f: 212.822.4820 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Simon Fifield Sent: Tuesday, April 25, 2006 11:33 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Flex 1.5 - Cairngorm .99 - Binding VO to TextInput help please Are/have you
RE: [flexcoders] Re: Flex 1.5 ViewStack child creation
Perhaps your components are initialized, but the child controls are not? Put a trace on the initialize event of a child control, see if it fires. Also, try a trace on the creationComplete or childrenCreated events on the component as well. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nahruka Sent: Tuesday, April 25, 2006 9:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex 1.5 ViewStack child creation Hi Stanislav, what I'm trying to do is just the opposite: avoid children to be created at the begining. After reading the documentation I can't understand why this is happening... I've put a trace sentence at the initialize property of each child and I've debugged the application. The trace message is shown for each of the 3 children in myViewStack! Thanks for your response :) --- In flexcoders@yahoogroups.com, Stanislav Zayarsky [EMAIL PROTECTED] wrote: From Help: Navigator containers such as Accordion, TabNavigator, and ViewStack implement the auto policy by creating all their children immediately, but wait to create the deeper descendants of a child until it becomes the selected child of the navigator container. So if you want to create all your childrens at one time, just use creationPolicy=all On 4/25/06, nahruka [EMAIL PROTECTED] wrote: I'm using the following ViewStack within my application: mx:ViewStack id=myViewStack height=100% cmp:FirstView id=firstView / cmp:SecondView id=secondView / cmp:ThirdView id=thirdView / /mx:ViewStack I've been reading about the ViewStack component and found that children (except the first one) are only created when the user explicitly makes an action that causes the selected child to change as: function myButton.click() { myViewStack.selectedChild = thirdView; } What I'm realising is that children are ALL created, in a sequential fashion, but CREATED in fact. Why is this happening? Should I set a creationPolicy property to none and then instantiate the views manually? If so, which is the best way to do it? createComponent()? createChild()? createClassObject()? Please, help me... :-S Thanks! -- 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 SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Re: (Flex20 Beta2): send failed for RemoteObject
Ah, yes, you need to specify --context.root on the command line as the client can't tell what the context root is (i.e. because you can have the default context root it can't make assumptions as to whether the first level under the webroot is a subdirectory or a context root). -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98 Sent: Tuesday, April 25, 2006 1:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex20 Beta2): send failed for RemoteObject The detailed error message in this case is, Channel.Connect.Failed error Netconnection.Call.Failed:HTTP:Failed My flex-remoting-service.xml looks as follows, default-channels channel ref=my-amf/ /default-channels destination id=EchoString properties sourcesamples.SimpleRemoteObject.Echo/source /properties /destination the channel my-amf is defined in flex-enterprise-services.xml as follows, channel-definition id=my-amf class=mx.messaging.channels.AMFChannel endpoint uri=http://{server.name}:{server.port}/{context.root}/messagebroker/amf class=flex.messaging.endpoints.AMFEndpoint/ properties polling-enabledfalse/polling-enabled /properties /channel-definition Thanks, Aejaz --- In flexcoders@yahoogroups.com, aejaz_98 [EMAIL PROTECTED] wrote: Hi Peter, Thanks for your reply please disregard my previous message. I recompiled the application now I am getting send failed error message. Can you please take a look at the mxml to see if anything is wrong. I am very new to mxml might have had overlooked something obvious. Thanks, Aejaz ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* layout=absolute mx:Script ![CDATA[ import mx.rpc.events.*; import mx.collections.*; import mx.controls.* private function getNameHandler(event:ResultEvent):void { Result.text = event.result.toString(); currentState='TargetState'; } private function faultHandler(event:FaultEvent):void { Alert.show(event.fault.faultstring, Error); } ]] /mx:Script mx:states mx:State name=TargetState mx:RemoveChild child={button1}/ mx:RemoveChild child={formInput}/ mx:RemoveChild child={label1}/ mx:AddChild position=lastChild mx:Label x=99 y=130 width=265 height=28 id=Result/ /mx:AddChild /mx:State /mx:states mx:RemoteObject id=SendStringBack destination=EchoString showBusyCursor=true fault=faultHandler(event) mx:method name=getString result=getNameHandler(event) mx:arguments str {formInput.text} /str /mx:arguments /mx:method /mx:RemoteObject mx:TextInput x=119 y=129 id=formInput/ mx:Button x=119 y=170 label=Submit fontSize=13 id=button1 click=SendStringBack.getString.send()/ mx:Label x=119 y=86 text=What is your name ? width=160 fontSize=15 id=label1/ /mx:Application --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: You must always point --services to the top level services file, which is flex-enterprise-services.xml. The flex-remoting-service.xml is merely an include to this top level file (see the service-include tag pointing to this and the other services in the top level flex-enterprise-services.xml file). It's ok to make changes to the flex-remoting-service.xml file as it's included each time by the top level file. That said, if you're changing destination settings in any of the configuration and are using the --services option to codegen the correct information for you at runtime then you need to recompile the SWFs everytime you make a change. Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98 Sent: Tuesday, April 25, 2006 10:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex20 Beta2): RemoteObject Destination configuration problem Thanks for your reply. I am precompiling the SWFs using flex builder. The value present in the Additional compiler arguments field is, -services C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml when I change it to, -services C:\tomcat\webapps\flex\WEB-INF\flex\flex-remoting-service.xml I start getting, exception 'java.lang.RuntimeException' while setting variable 'compiler.services'. It seems that the only value allowed is C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml. I tried putting, C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml;C:\tom \ cat\webapps\flex\WEB-INF\flex\flex-remoting-service.xml it gave me Unable to open C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml;C:\tomc \ at\webapps\flex\WEB-INF\flex\flex-remoting-service.xml Please let me know what does setting, -services C:\tomcat\webapps\flex\WEB-INF\flex\flex-remoting-service.xml do can't it be done
[flexcoders] Re: Flex 2 not maintaining order of web service parameters.
Thanks for the quick response, though the problem still exists for me if I put them into an object. It seems in its current state, Flex cannot enforce the order in which arguments are provided. I have found a way to have JBoss disregard the order of arguments by editing the wsdl and referencing it in the annotation like so: @WebService(name = WSInterface , serviceName = WebService, wsdlLocation = META-INF/wsdl/test.wsdl) To get it to work, I changed the type of parameter input in the wsdl from sequence to all, ie: complexType name=getData all element name=param1 type=int/ element name=param2 type=int/ element name=param3 type=int/ /all /complexType Though I'd rather use the generated wsdl for simplicity's sake. This workaround should be sufficient for now. Thanks, Ilia --- In flexcoders@yahoogroups.com, Jonas Windey [EMAIL PROTECTED] wrote: Try reading the comments on this page: http://jeff.mxdj.com/as3_datamanager.htm I always pass the arguments in an object, and so far no problems.. var args:Object = new Object(); args.yourParam = first param; etc. Good luck -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ilia_papas Sent: dinsdag 25 april 2006 17:06 To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex 2 not maintaining order of web service parameters. Hello, I've been unable to get Flex to submit parameters to a web service method in a consistent order. I'm using Flex 2 beta 2 and a web service running on JBoss 4.0.4CR2 using annotations. This problem has been described in the following locations: -Macromedia Forum: Webservice always returns a Error #2032: Stream Error (http://tinyurl.com/ebyg8) -flexcoders archive: Flex 2: WebServervice call sometimes swaps parameters (http://tinyurl.com/ghwmr) -Macromedia Forum: WebService fields out of order (http://tinyurl.com/jsdg6) The order of the parameters appears to be somewhat random, as each time you refresh the page, the order changes. Though that order will last until you refesh again. One suggestion was wrapping the parameters in a single complex object. However, the problem still persists, as order is not maintained when flex serializies the object. Another suggested setting the parameters like so: if svc is your webservice id... svc.function.arguments = {value1:val1, value2:val2, ...}; svc.function(); Unfortunately, order is still not mainatained. Has anyone found a workaround for this? Thanks, Ilia -- 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 SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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: (Flex20 Beta2): send failed for RemoteObject
Thanks Peter. Please let me know how exactly to do that. Do you mean add --context.root C:\tomcat\webapps\flex while starting tomcat i.e. catalina start --context.root C:\tomcat\webapps\flex Is that right ? Thanks, Aejaz --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: Ah, yes, you need to specify --context.root on the command line as the client can't tell what the context root is (i.e. because you can have the default context root it can't make assumptions as to whether the first level under the webroot is a subdirectory or a context root). -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98 Sent: Tuesday, April 25, 2006 1:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex20 Beta2): send failed for RemoteObject The detailed error message in this case is, Channel.Connect.Failed error Netconnection.Call.Failed:HTTP:Failed My flex-remoting-service.xml looks as follows, default-channels channel ref=my-amf/ /default-channels destination id=EchoString properties sourcesamples.SimpleRemoteObject.Echo/source /properties /destination the channel my-amf is defined in flex-enterprise-services.xml as follows, channel-definition id=my-amf class=mx.messaging.channels.AMFChannel endpoint uri=http://{server.name}:{server.port}/{context.root}/messagebroker/amf class=flex.messaging.endpoints.AMFEndpoint/ properties polling-enabledfalse/polling-enabled /properties /channel-definition Thanks, Aejaz --- In flexcoders@yahoogroups.com, aejaz_98 aejaz_98@ wrote: Hi Peter, Thanks for your reply please disregard my previous message. I recompiled the application now I am getting send failed error message. Can you please take a look at the mxml to see if anything is wrong. I am very new to mxml might have had overlooked something obvious. Thanks, Aejaz ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* layout=absolute mx:Script ![CDATA[ import mx.rpc.events.*; import mx.collections.*; import mx.controls.* private function getNameHandler(event:ResultEvent):void { Result.text = event.result.toString(); currentState='TargetState'; } private function faultHandler(event:FaultEvent):void { Alert.show(event.fault.faultstring, Error); } ]] /mx:Script mx:states mx:State name=TargetState mx:RemoveChild child={button1}/ mx:RemoveChild child={formInput}/ mx:RemoveChild child={label1}/ mx:AddChild position=lastChild mx:Label x=99 y=130 width=265 height=28 id=Result/ /mx:AddChild /mx:State /mx:states mx:RemoteObject id=SendStringBack destination=EchoString showBusyCursor=true fault=faultHandler(event) mx:method name=getString result=getNameHandler(event) mx:arguments str {formInput.text} /str /mx:arguments /mx:method /mx:RemoteObject mx:TextInput x=119 y=129 id=formInput/ mx:Button x=119 y=170 label=Submit fontSize=13 id=button1 click=SendStringBack.getString.send()/ mx:Label x=119 y=86 text=What is your name ? width=160 fontSize=15 id=label1/ /mx:Application --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: You must always point --services to the top level services file, which is flex-enterprise-services.xml. The flex-remoting-service.xml is merely an include to this top level file (see the service-include tag pointing to this and the other services in the top level flex-enterprise-services.xml file). It's ok to make changes to the flex-remoting-service.xml file as it's included each time by the top level file. That said, if you're changing destination settings in any of the configuration and are using the --services option to codegen the correct information for you at runtime then you need to recompile the SWFs everytime you make a change. Pete -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98 Sent: Tuesday, April 25, 2006 10:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex20 Beta2): RemoteObject Destination configuration problem Thanks for your reply. I am precompiling the SWFs using flex builder. The value present in the Additional compiler arguments field is, -services C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml when I change it to, -services C:\tomcat\webapps\flex\WEB-INF\flex\flex-remoting-service.xml I start getting, exception 'java.lang.RuntimeException' while setting variable 'compiler.services'. It seems that the only value allowed is C:\tomcat\webapps\flex\WEB-INF\flex\flex-enterprise-services.xml. I tried putting,
Re: [flexcoders] Re: force image reload
Hi Peter, I didn't mean preventing caching. I knew the trick there. But, actually, your solution can be used for my problem too. Thanks, Andi Peter Blazejewicz wrote: Hello Andrea, do you mean something like preventing using cached images? try something similiar: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* creationComplete=initApp(); mx:Script ![CDATA[ import mx.controls.Alert; [Bindable] private var imageURL:String; private function initApp():void{ imageURL = http://www.macromedia.com/images/ homepage/en_us/fma/fma_54_bu_messaging.gif; } private function getRand():String{ return ?+(new Date().getTime()); } ]] /mx:Script mx:Image id=img width=756 height=200 source ={imageURL+getRand()} complete=Alert.show('source url: '+img.source. toString()) click=img.executeBindings()/ /mx:Application click image to refresh and see current url, hope that helps, kind regards, Peter Blazejewicz -- 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 SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Re: Flex 1.5 - Cairngorm .99 - Binding VO to TextInput help please
Hello Robert, Have you tried setting creationPolicy ?. Just say creationPolicy=all --Suresh Akula --- Robert Brueckmann [EMAIL PROTECTED] wrote: I'll play with the config file and let you know what I find...thanks again for the help! Gotta love these things that you spend days on with no obvious cause...grrr! Thanks again! Cheers, robert l. brueckmann vice president merlin securities 595 madison avenue new york, ny 10022 p: 212.822.4821 f: 212.822.4820 -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Simon Fifield Sent: Tuesday, April 25, 2006 1:52 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Flex 1.5 - Cairngorm .99 - Binding VO to TextInput help please Hi Robert, Although on the surface of things our problems were not the same, I'll bet it's the same thing somewhere under the hood of the Flex 1.5 compiler that is causing these strange binding problems to occur. I keep reading of more and more people that are encountering this binding/compilation bug. Have you tried changing your flex-config.xml settings to not keep the compiled mxml components: !-- cache compiled custom components as swo files -- cache-swosfalse/cache-swos And maybe try some of the other cache/compiling settings to see if this resolves your problem. Compiling may be a little slower but it may be a better workaround than you currently have. With the growing number of people having these mysterious problems I wonder if Adobe are going to release an update to resolve them. Regards, Simon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Robert Brueckmann Sent: 25 April 2006 18:19 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Flex 1.5 - Cairngorm .99 - Binding VO to TextInput help please Thanks for taking the time for the detailed reply Simon! I WISH it was validator related. In one instance, I am using a validator but the first time I saw this behavior was in a simple MXML file that had 3 lists that get populated with 3 separate message types and directly next to the lists is a title label and a text area...when the user clicks on a message in any of the 3 lists, the title and text area should be updated with the selected message's title and body content. The title label and body text area have their text attributes bound to {ModelLocator.selectedMessage.title} and {ModelLocator.selectedMessage.body} respectively and the change listener on all 3 of the lists is simple ModelLocator.selectedMessage = event.target.selectedItem; This NEVER works upon first compilation after a fresh server restart. If I 'touch' the file that contains this message reader component and refresh my browser...magically, the title and body start appearing when I select a message in the lists. This behavior escapes me and is obviously not conducive to a production release because I can't exactly go in and 'touch' all necessary files for this behavior to be fixed...this should work the first time. I even have a test button on the message reader page that, upon first time server start and app compilation, when I click on a message and the ModelLocator.selectedMessage object have been set but the title and body do not appear, I can click on this button and in an alert body display the title and the body of the selectedMessage object...I am confirming the selectedMessage object is getting set with the proper information, the damn TextInput components do not want to show it to me though...if I open up FlexBuilder, open up my MessagerReader.mxml file, hit the spacebar, backspace and then save it, refresh my browser...magically it all works properly. It's that initial load that is completely baffling me. I've tried debugging and because my components are being created as children on the fly it doesn't see the breakpoints I'm setting up. I'm at a loss. My work around, and this is the kicker, if I take the two fields that currently, in the same component, reside next to the 3 lists, and wrap them up into their own MXML file component and add a COMPLETELY EMPTY public function set message(m:Message){} method call in this new wrapped up component and then in the original message reader component, do this: comp:MessageReaderFields width=100% height=100% message={ModelLocator.selectedMessage} / And now, when I select a message, first compilation, 14th compilation, 1st server restart, 10th server restart, the message title and body field binding to the ModelLocator.selectedMessage object in my new embedded component work as they should. Makes sense, right? Nope. Not even a little bit. Whatever...looks like I have a work-around for the time being... robert l. brueckmann vice president merlin securities 595 madison avenue new
[flexcoders] Re: Looping output
I am still working on this. And I have run into an issue. When I create a child, I need to give that child a unique id. I tried 'grid' i to make it unique, but that doesnt work. Here is hte code I am trying for ( var i:Number=0;iresult.length;i++){ var newGrid = parentApplication.closing.createChild(mx.containers.Grid, undefined); newGrid.id = 'grid' i; newGrid.x = 10; newGrid.y = mainGrid.y + 20; newGrid.width = 90%; var newGridRow = parentApplication.closing.'grid' i.createChild(mx.containers.GridRow, undefined); newGridRow = 'gridRow' i; var newGridItem = parentApplication.closing.'grid' i.'gridRow' i.createChild(mx.containers.GridItem, undefined); newGridItem.width = 445; newGridItem.id = 'gridItem' i; var newCanvas = parentApplication.closing.'grid' i.'gridRow' i.'gridItem' i.createChild(mx.containers.Canvas); newCanvas.width = 100%; newCanvas.heigth = 100%; newCanvas.id = 'canvas' i; var newLabel = var newLabel =parentApplication.closing.'grid' i.'gridRow' i.'gridItem' i.'canvas' i.createChild(mx.controls.Label, undefined); newLabel.id = 'name' i newLabel.test = 'TEST' } --- In flexcoders@yahoogroups.com, Jeremy Rottman [EMAIL PROTECTED] wrote: That is exactly what I was talking about karl. --- In flexcoders@yahoogroups.com, Karl Johnson karl.johnson@ wrote: When you say loop over components, do you mean loop over existing UI objects? Or do you mean create UI objects? If you are creating, then do something like the following to create a label and/or textbox control for each index of the array returned: For loop { var newLabel = myVBox.createChild(mx.controls.Label, undefined); newLabel.text = myArray[i]; } Are we on the right path here or is this not what you are looking for? | Karl Johnson Cynergy Systems, Inc. http://www.cynergysystems.com -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Tuesday, April 25, 2006 3:43 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Looping output I am trying to loop over components. Like Labels and text. So depending on how many records I return it outputs that many sets of labels and text components. --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: Jeremy, have you looked at the for loops? for (var i:Number=0;imyArray.length;i++) { oElement = myArray[i]; } Or for (var key in myObject) { oTemp = myObject[key]; } Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Monday, April 24, 2006 4:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Looping output In my application, I have a section where I need to output text that is returned from my cfc. The cfc returns an array, is there away to loop output text. -- 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 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] Re: (Flex20 Beta2): send failed for RemoteObject
Hello Aejaz, I am not getting why you are mentioning the complete URI path in endpoint, can't we avoid http://{server.name}:{server.port}/{context.root}/ Just say /messagebroker/amf the context root will take from the browser URL. channel-definition id=my-amf class=mx.messaging.channels.AMFChannel endpoint uri=http://{server.name}:{server.port}/{context.root}/messagebroker/a mf class=flex.messaging.endpoints.AMFEndpoint/ properties polling-enabledfalse/polling-enabled /properties /channel-definition Please correct if I am wrong. Thanks --Suresh Akula --- Peter Farland [EMAIL PROTECTED] wrote: Sorry, the J2EE context root as it would appear in the URL (i.e. this value will replace the token {context.root} at compile time based on the value of --context-root). e.g. --context-root=/dev Note that the other two tokens in the endpoint URL, {server.name} and {server.port} will be known at runtime if the SWF is loaded via a URL so these are replaced at runtime based on how the SWF is loaded. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98 Sent: Tuesday, April 25, 2006 3:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex20 Beta2): send failed for RemoteObject Thanks Peter. Please let me know how exactly to do that. Do you mean add --context.root C:\tomcat\webapps\flex while starting tomcat i.e. catalina start --context.root C:\tomcat\webapps\flex Is that right ? Thanks, Aejaz --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: Ah, yes, you need to specify --context.root on the command line as the client can't tell what the context root is (i.e. because you can have the default context root it can't make assumptions as to whether the first level under the webroot is a subdirectory or a context root). -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98 Sent: Tuesday, April 25, 2006 1:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex20 Beta2): send failed for RemoteObject The detailed error message in this case is, Channel.Connect.Failed error Netconnection.Call.Failed:HTTP:Failed My flex-remoting-service.xml looks as follows, default-channels channel ref=my-amf/ /default-channels destination id=EchoString properties sourcesamples.SimpleRemoteObject.Echo/source /properties /destination the channel my-amf is defined in flex-enterprise-services.xml as follows, channel-definition id=my-amf class=mx.messaging.channels.AMFChannel endpoint uri=http://{server.name}:{server.port}/{context.root}/messagebroker/a mf class=flex.messaging.endpoints.AMFEndpoint/ properties polling-enabledfalse/polling-enabled /properties /channel-definition Thanks, Aejaz --- In flexcoders@yahoogroups.com, aejaz_98 aejaz_98@ wrote: Hi Peter, Thanks for your reply please disregard my previous message. I recompiled the application now I am getting send failed error message. Can you please take a look at the mxml to see if anything is wrong. I am very new to mxml might have had overlooked something obvious. Thanks, Aejaz ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* layout=absolute mx:Script ![CDATA[ import mx.rpc.events.*; import mx.collections.*; import mx.controls.* private function getNameHandler(event:ResultEvent):void { Result.text = event.result.toString(); currentState='TargetState'; } private function faultHandler(event:FaultEvent):void { Alert.show(event.fault.faultstring, Error); } ]] /mx:Script mx:states mx:State name=TargetState mx:RemoveChild child={button1}/ mx:RemoveChild child={formInput}/ mx:RemoveChild child={label1}/ mx:AddChild position=lastChild mx:Label x=99 y=130 width=265 height=28 id=Result/ /mx:AddChild /mx:State /mx:states mx:RemoteObject id=SendStringBack destination=EchoString showBusyCursor=true fault=faultHandler(event) mx:method name=getString result=getNameHandler(event) mx:arguments str {formInput.text} /str /mx:arguments /mx:method /mx:RemoteObject mx:TextInput x=119 y=129 id=formInput/ mx:Button x=119 y=170 label=Submit fontSize=13 id=button1 click=SendStringBack.getString.send()/ mx:Label x=119 y=86 text=What is your name ? width=160 fontSize=15 id=label1/ /mx:Application --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: You must always point --services to the top level services file, which is flex-enterprise-services.xml. The flex-remoting-service.xml
[flexcoders] Flex 2 B 2 + Cairngorm 2 - Simple Question
I'm fairly new to Flex and really new to Cairngorm and am trying to break Cg2 down and understand it (I'm not trying to understand Cg.99 and then learn Cg2, I'm just jumping into 2.) I have a quick question: In the Cg2 sample CairngormLogin.mxml theres a Label in the loggedIn VBox... mx:Label text={ 'Logged in as ' + LoginVO( model.loginVO ).username + ' at ' + model.loginDate } / This seems to still work fine when changed to... mx:Label text={ 'Logged in as ' + model.loginVO.username + ' at ' + model.loginDate } / Is there some reason why the first form must be used over of the second form? If I were writing this code myself from scratch it would seem more intuitive to bind directly to the model.loginVO.username. Am I missing something? Thanks, Darren -- 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] Re: Looping output
Hello Rottman, You already created the newGrid and assigned a dynamic id to that. Why can't you use the same intance variable name in the rest of the code. i.e. var newGridRow = parentApplication.closing.newGrid.createChild(mx.containers.GridRow, undefined); --Suresh Akula. --- Jeremy Rottman [EMAIL PROTECTED] wrote: I am still working on this. And I have run into an issue. When I create a child, I need to give that child a unique id. I tried 'grid' i to make it unique, but that doesnt work. Here is hte code I am trying for ( var i:Number=0;iresult.length;i++){ var newGrid = parentApplication.closing.createChild(mx.containers.Grid, undefined); newGrid.id = 'grid' i; newGrid.x = 10; newGrid.y = mainGrid.y + 20; newGrid.width = 90%; var newGridRow = parentApplication.closing.'grid' i.createChild(mx.containers.GridRow, undefined); newGridRow = 'gridRow' i; var newGridItem = parentApplication.closing.'grid' i.'gridRow' i.createChild(mx.containers.GridItem, undefined); newGridItem.width = 445; newGridItem.id = 'gridItem' i; var newCanvas = parentApplication.closing.'grid' i.'gridRow' i.'gridItem' i.createChild(mx.containers.Canvas); newCanvas.width = 100%; newCanvas.heigth = 100%; newCanvas.id = 'canvas' i; var newLabel = var newLabel =parentApplication.closing.'grid' i.'gridRow' i.'gridItem' i.'canvas' i.createChild(mx.controls.Label, undefined); newLabel.id = 'name' i newLabel.test = 'TEST' } --- In flexcoders@yahoogroups.com, Jeremy Rottman [EMAIL PROTECTED] wrote: That is exactly what I was talking about karl. --- In flexcoders@yahoogroups.com, Karl Johnson karl.johnson@ wrote: When you say loop over components, do you mean loop over existing UI objects? Or do you mean create UI objects? If you are creating, then do something like the following to create a label and/or textbox control for each index of the array returned: For loop { var newLabel = myVBox.createChild(mx.controls.Label, undefined); newLabel.text = myArray[i]; } Are we on the right path here or is this not what you are looking for? | Karl Johnson Cynergy Systems, Inc. http://www.cynergysystems.com -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Tuesday, April 25, 2006 3:43 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Looping output I am trying to loop over components. Like Labels and text. So depending on how many records I return it outputs that many sets of labels and text components. --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: Jeremy, have you looked at the for loops? for (var i:Number=0;imyArray.length;i++) { oElement = myArray[i]; } Or for (var key in myObject) { oTemp = myObject[key]; } Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Monday, April 24, 2006 4:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Looping output In my application, I have a section where I need to output text that is returned from my cfc. The cfc returns an array, is there away to loop output text. -- 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 __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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.
[flexcoders] Re: (Flex20 Beta2): send failed for RemoteObject
Hi Peter,Thanks for taking the time to patiently answer my questions. Unfortunately, I am still unable to proceed. I changed the following line(in flex-enterprise-services.xml under channel definition for my-amf),endpoint uri="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/toendpoint uri="http://{server.name}:{server.port}/flex/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/as the URL to which I go form the browser is http://localhost:8080/flex/SimpleRemoteObject/SimpleRemoteObject.html there is no change in behavior. I must have not understood you correctly. Can you please clarify if possible on how to set context root step by step.Thanks again,Aejaz--- In flexcoders@yahoogroups.com, "Peter Farland" [EMAIL PROTECTED] wrote: Sorry, the J2EE context root as it would appear in the URL (i.e. this value will replace the token {context.root} at compile time based on the value of --context-root). e.g. --context-root=/dev Note that the other two tokens in the endpoint URL, {server.name} and {server.port} will be known at runtime if the SWF is loaded via a URL so these are replaced at runtime based on how the SWF is loaded. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98 Sent: Tuesday, April 25, 2006 3:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex20 Beta2): send failed for RemoteObject Thanks Peter. Please let me know how exactly to do that. Do you mean add --context.root C:\tomcat\webapps\flex while starting tomcat i.e. catalina start --context.root C:\tomcat\webapps\flex Is that right ? Thanks, Aejaz --- In flexcoders@yahoogroups.com, "Peter Farland" pfarland@ wrote: Ah, yes, you need to specify --context.root on the command line as the client can't tell what the context root is (i.e. because you can have the default context root "" it can't make assumptions as to whether the first level under the webroot is a subdirectory or a context root). -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98 Sent: Tuesday, April 25, 2006 1:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex20 Beta2): send failed for RemoteObjectThe detailed error message in this case is,Channel.Connect.Failed error Netconnection.Call.Failed:HTTP:FailedMy flex-remoting-service.xml looks as follows,default-channels channel ref="my-amf"/ /default-channelsdestination id="EchoString" properties sourcesamples.SimpleRemoteObject.Echo/source /properties /destination the channel "my-amf" is defined in flex-enterprise-services.xml as follows,channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel" endpoint uri="http://{server.name}:{server.port}/{context.root}/messagebroker/a mf " class="flex.messaging.endpoints.AMFEndpoint"/ properties polling-enabledfalse/polling-enabled /properties /channel-definitionThanks, Aejaz--- In flexcoders@yahoogroups.com, "aejaz_98" aejaz_98@ wrote: Hi Peter, Thanks for your reply please disregard my previous message. Irecompiled the application now I am getting "send failed" errormessage. Can you please take a look at the mxml to see if anythingis wrong. I am very new to mxml might have had overlookedsomething obvious. Thanks, Aejaz ?xml version="1.0" encoding="utf-8"? mx:Applicationxmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="absolute" mx:Script ![CDATA[ import mx.rpc.events.*; import mx.collections.*; import mx.controls.* private function getNameHandler(event:ResultEvent):void { Result.text = event.result.toString(); currentState='TargetState'; } private function faultHandler(event:FaultEvent):void { Alert.show(event.fault.faultstring, "Error"); } ]] /mx:Script mx:states mx:State name="TargetState" mx:RemoveChild child="{button1}"/ mx:RemoveChild child="{formInput}"/ mx:RemoveChild child="{label1}"/ mx:AddChild position="lastChild" mx:Label x="99" y="130" width="265" height="28" id="Result"/ /mx:AddChild /mx:State /mx:states mx:RemoteObject id="SendStringBack" destination="EchoString" showBusyCursor="true" fault="faultHandler(event)" mx:method name="getString" result="getNameHandler(event)" mx:arguments str {formInput.text} /str /mx:arguments /mx:method /mx:RemoteObject mx:TextInput x="119" y="129" id="formInput"/ mx:Button x="119" y="170" label="Submit" fontSize="13" id="button1" click="SendStringBack.getString.send()"/ mx:Label x="119" y="86" text="What is your name ?" width="160"
Re: [flexcoders] Flex 2 B 2 + Cairngorm 2 - Simple Question
Hello Darren, its good partice to typecast with orginal object and invoke the object members. --Suresh Akula. --- Darren Houle [EMAIL PROTECTED] wrote: I'm fairly new to Flex and really new to Cairngorm and am trying to break Cg2 down and understand it (I'm not trying to understand Cg.99 and then learn Cg2, I'm just jumping into 2.) I have a quick question: In the Cg2 sample CairngormLogin.mxml theres a Label in the loggedIn VBox... mx:Label text={ 'Logged in as ' + LoginVO( model.loginVO ).username + ' at ' + model.loginDate } / This seems to still work fine when changed to... mx:Label text={ 'Logged in as ' + model.loginVO.username + ' at ' + model.loginDate } / Is there some reason why the first form must be used over of the second form? If I were writing this code myself from scratch it would seem more intuitive to bind directly to the model.loginVO.username. Am I missing something? Thanks, Darren __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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: Looping output
Well I tried what you said Suresh, and it is still a no go. Here is my updated code. for ( var i:Number=0;iresult.length;i++){ var newGrid = parentApplication.closing.createChild(mx.containers.Grid, undefined); newGrid.id = grid + i; newGrid.x = 10; newGrid.y = parentApplication.closing.mainGrid.y + 20; newGrid.width = '90%'; var newGridRow = parentApplication.closing.newGrid.createChild(mx.containers.GridRow, undefined); newGridRow.id = gridRow + i; var newGridItem = parentApplication.closing.newGrid.newGridRow.createChild(mx.containers.G\ ridItem, undefined); newGridItem.width = 445; newGridItem.id = gridItem + i; var newCanvas = parentApplication.closing.newGrid.newGridRow.newGridItem.createChild(mx.\ containers.Canvas); newCanvas.width ='100%'; newCanvas.heigth ='100%'; newCanvas.id = canvas + i; var newLabel =parentApplication.closing.newGrid.newGridRow.newGridItem.newCanvas.crea\ teChild(mx.controls.Label, undefined); newLabel.id = name + i; newLabel.text = TEST; } --- In flexcoders@yahoogroups.com, Suresh Akula [EMAIL PROTECTED] wrote: Hello Rottman, You already created the newGrid and assigned a dynamic id to that. Why can't you use the same intance variable name in the rest of the code. i.e. var newGridRow = parentApplication.closing.newGrid.createChild(mx.containers.GridRow, undefined); --Suresh Akula. --- Jeremy Rottman [EMAIL PROTECTED] wrote: I am still working on this. And I have run into an issue. When I create a child, I need to give that child a unique id. I tried 'grid' i to make it unique, but that doesnt work. Here is hte code I am trying for ( var i:Number=0;iresult.length;i++){ var newGrid = parentApplication.closing.createChild(mx.containers.Grid, undefined); newGrid.id = 'grid' i; newGrid.x = 10; newGrid.y = mainGrid.y + 20; newGrid.width = 90%; var newGridRow = parentApplication.closing.'grid' i.createChild(mx.containers.GridRow, undefined); newGridRow = 'gridRow' i; var newGridItem = parentApplication.closing.'grid' i.'gridRow' i.createChild(mx.containers.GridItem, undefined); newGridItem.width = 445; newGridItem.id = 'gridItem' i; var newCanvas = parentApplication.closing.'grid' i.'gridRow' i.'gridItem' i.createChild(mx.containers.Canvas); newCanvas.width = 100%; newCanvas.heigth = 100%; newCanvas.id = 'canvas' i; var newLabel = var newLabel =parentApplication.closing.'grid' i.'gridRow' i.'gridItem' i.'canvas' i.createChild(mx.controls.Label, undefined); newLabel.id = 'name' i newLabel.test = 'TEST' } --- In flexcoders@yahoogroups.com, Jeremy Rottman rottmanj@ wrote: That is exactly what I was talking about karl. --- In flexcoders@yahoogroups.com, Karl Johnson karl.johnson@ wrote: When you say loop over components, do you mean loop over existing UI objects? Or do you mean create UI objects? If you are creating, then do something like the following to create a label and/or textbox control for each index of the array returned: For loop { var newLabel = myVBox.createChild(mx.controls.Label, undefined); newLabel.text = myArray[i]; } Are we on the right path here or is this not what you are looking for? | Karl Johnson Cynergy Systems, Inc. http://www.cynergysystems.com -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Tuesday, April 25, 2006 3:43 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Looping output I am trying to loop over components. Like Labels and text. So depending on how many records I return it outputs that many sets of labels and text components. --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: Jeremy, have you looked at the for loops? for (var i:Number=0;imyArray.length;i++) { oElement = myArray[i]; } Or for (var key in myObject) { oTemp = myObject[key]; } Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Monday, April 24, 2006 4:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Looping output In my application, I have a section where I need to output text that is returned from my cfc. The cfc returns an array, is there away to loop output text. -- 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:
Re: [flexcoders] Flex 2 B 2 + Cairngorm 2 - Simple Question
But when? Why? In every case? If that was a generic, universal rule and you're supposed to cast everything as it's original object type then a little further in the line we should see: ' at ' + Date(model.loginDate) } / I'm just curious why the LoginVO is cast here. Is there some rule like you don't have to cast an object when simply accessing an attribute of that object, but you do have to cast an object if it contains other objects with an attributes you need to access. That sounds kinda silly to me, that's why I'm asking :-) Thanks! Darren From: Suresh Akula [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex 2 B 2 + Cairngorm 2 - Simple Question Date: Tue, 25 Apr 2006 12:59:59 -0700 (PDT) Hello Darren, its good partice to typecast with orginal object and invoke the object members. --Suresh Akula. --- Darren Houle [EMAIL PROTECTED] wrote: I'm fairly new to Flex and really new to Cairngorm and am trying to break Cg2 down and understand it (I'm not trying to understand Cg.99 and then learn Cg2, I'm just jumping into 2.) I have a quick question: In the Cg2 sample CairngormLogin.mxml theres a Label in the loggedIn VBox... mx:Label text={ 'Logged in as ' + LoginVO( model.loginVO ).username + ' at ' + model.loginDate } / This seems to still work fine when changed to... mx:Label text={ 'Logged in as ' + model.loginVO.username + ' at ' + model.loginDate } / Is there some reason why the first form must be used over of the second form? If I were writing this code myself from scratch it would seem more intuitive to bind directly to the model.loginVO.username. Am I missing something? Thanks, Darren __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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 -- 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] Re: Looping output
try it out this parentApplication.closing.createChild(mx.containers.Grid, undefined,{id = grid+i}); --Suresh --- Jeremy Rottman [EMAIL PROTECTED] wrote: Well I tried what you said Suresh, and it is still a no go. Here is my updated code. for ( var i:Number=0;iresult.length;i++){ var newGrid = parentApplication.closing.createChild(mx.containers.Grid, undefined); newGrid.id = grid + i; newGrid.x = 10; newGrid.y = parentApplication.closing.mainGrid.y + 20; newGrid.width = '90%'; var newGridRow = parentApplication.closing.newGrid.createChild(mx.containers.GridRow, undefined); newGridRow.id = gridRow + i; var newGridItem = parentApplication.closing.newGrid.newGridRow.createChild(mx.containers.G\ ridItem, undefined); newGridItem.width = 445; newGridItem.id = gridItem + i; var newCanvas = parentApplication.closing.newGrid.newGridRow.newGridItem.createChild(mx.\ containers.Canvas); newCanvas.width ='100%'; newCanvas.heigth ='100%'; newCanvas.id = canvas + i; var newLabel =parentApplication.closing.newGrid.newGridRow.newGridItem.newCanvas.crea\ teChild(mx.controls.Label, undefined); newLabel.id = name + i; newLabel.text = TEST; } --- In flexcoders@yahoogroups.com, Suresh Akula [EMAIL PROTECTED] wrote: Hello Rottman, You already created the newGrid and assigned a dynamic id to that. Why can't you use the same intance variable name in the rest of the code. i.e. var newGridRow = parentApplication.closing.newGrid.createChild(mx.containers.GridRow, undefined); --Suresh Akula. --- Jeremy Rottman [EMAIL PROTECTED] wrote: I am still working on this. And I have run into an issue. When I create a child, I need to give that child a unique id. I tried 'grid' i to make it unique, but that doesnt work. Here is hte code I am trying for ( var i:Number=0;iresult.length;i++){ var newGrid = parentApplication.closing.createChild(mx.containers.Grid, undefined); newGrid.id = 'grid' i; newGrid.x = 10; newGrid.y = mainGrid.y + 20; newGrid.width = 90%; var newGridRow = parentApplication.closing.'grid' i.createChild(mx.containers.GridRow, undefined); newGridRow = 'gridRow' i; var newGridItem = parentApplication.closing.'grid' i.'gridRow' i.createChild(mx.containers.GridItem, undefined); newGridItem.width = 445; newGridItem.id = 'gridItem' i; var newCanvas = parentApplication.closing.'grid' i.'gridRow' i.'gridItem' i.createChild(mx.containers.Canvas); newCanvas.width = 100%; newCanvas.heigth = 100%; newCanvas.id = 'canvas' i; var newLabel = var newLabel =parentApplication.closing.'grid' i.'gridRow' i.'gridItem' i.'canvas' i.createChild(mx.controls.Label, undefined); newLabel.id = 'name' i newLabel.test = 'TEST' } --- In flexcoders@yahoogroups.com, Jeremy Rottman rottmanj@ wrote: That is exactly what I was talking about karl. --- In flexcoders@yahoogroups.com, Karl Johnson karl.johnson@ wrote: When you say loop over components, do you mean loop over existing UI objects? Or do you mean create UI objects? If you are creating, then do something like the following to create a label and/or textbox control for each index of the array returned: For loop { var newLabel = myVBox.createChild(mx.controls.Label, undefined); newLabel.text = myArray[i]; } Are we on the right path here or is this not what you are looking for? | Karl Johnson Cynergy Systems, Inc. http://www.cynergysystems.com -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Tuesday, April 25, 2006 3:43 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Looping output I am trying to loop over components. Like Labels and text. So depending on how many records I return it outputs that many sets of labels and text components. --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: Jeremy, have you looked at the for loops? for (var i:Number=0;imyArray.length;i++) { oElement = myArray[i]; } Or for (var key in myObject) { oTemp = myObject[key]; } Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Monday, April 24, 2006 4:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Looping output === message truncated === __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Flexcoders Mailing List FAQ:
Re: [flexcoders] Re: (Flex20 Beta2): send failed for RemoteObject
As per the below code change the endpoint to endpoint uri=../messagebroker/amf class=flex.messaging.endpoints.AMFEndpoint/ as the URL to which I go form the browser is http://localhost:8080/flex/SimpleRemoteObject/SimpleRemoteObject.html from the URL it takes the http://localhost:8080/flex and it will append to ../ in uri. please let me know if you find any other alternative. --Suresh Akula --- aejaz_98 [EMAIL PROTECTED] wrote: Hi Peter, Thanks for taking the time to patiently answer my questions. Unfortunately, I am still unable to proceed. I changed the following line(in flex-enterprise-services.xml under channel definition for my-amf), endpoint uri=http://{server.name}:{server.port}/{context.root}/messagebroker/amf\ class=flex.messaging.endpoints.AMFEndpoint/ to endpoint uri=http://{server.name}:{server.port}/flex/messagebroker/amf class=flex.messaging.endpoints.AMFEndpoint/ as the URL to which I go form the browser is http://localhost:8080/flex/SimpleRemoteObject/SimpleRemoteObject.html there is no change in behavior. I must have not understood you correctly. Can you please clarify if possible on how to set context root step by step. Thanks again, Aejaz --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: Sorry, the J2EE context root as it would appear in the URL (i.e. this value will replace the token {context.root} at compile time based on the value of --context-root). e.g. --context-root=/dev Note that the other two tokens in the endpoint URL, {server.name} and {server.port} will be known at runtime if the SWF is loaded via a URL so these are replaced at runtime based on how the SWF is loaded. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98 Sent: Tuesday, April 25, 2006 3:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex20 Beta2): send failed for RemoteObject Thanks Peter. Please let me know how exactly to do that. Do you mean add --context.root C:\tomcat\webapps\flex while starting tomcat i.e. catalina start --context.root C:\tomcat\webapps\flex Is that right ? Thanks, Aejaz --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: Ah, yes, you need to specify --context.root on the command line as the client can't tell what the context root is (i.e. because you can have the default context root it can't make assumptions as to whether the first level under the webroot is a subdirectory or a context root). -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98 Sent: Tuesday, April 25, 2006 1:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex20 Beta2): send failed for RemoteObject The detailed error message in this case is, Channel.Connect.Failed error Netconnection.Call.Failed:HTTP:Failed My flex-remoting-service.xml looks as follows, default-channels channel ref=my-amf/ /default-channels destination id=EchoString properties sourcesamples.SimpleRemoteObject.Echo/source /properties /destination the channel my-amf is defined in flex-enterprise-services.xml as follows, channel-definition id=my-amf class=mx.messaging.channels.AMFChannel endpoint uri=http://{server.name}:{server.port}/{context.root}/messagebroker/a mf class=flex.messaging.endpoints.AMFEndpoint/ properties polling-enabledfalse/polling-enabled /properties /channel-definition Thanks, Aejaz --- In flexcoders@yahoogroups.com, aejaz_98 aejaz_98@ wrote: Hi Peter, Thanks for your reply please disregard my previous message. I recompiled the application now I am getting send failed error message. Can you please take a look at the mxml to see if anything is wrong. I am very new to mxml might have had overlooked something obvious. Thanks, Aejaz ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* layout=absolute mx:Script ![CDATA[ import mx.rpc.events.*; import mx.collections.*; import mx.controls.* private function getNameHandler(event:ResultEvent):void { Result.text = event.result.toString(); currentState='TargetState'; } private function faultHandler(event:FaultEvent):void { Alert.show(event.fault.faultstring, Error); } ]] /mx:Script mx:states mx:State name=TargetState mx:RemoveChild child={button1}/ mx:RemoveChild child={formInput}/ mx:RemoveChild child={label1}/ mx:AddChild position=lastChild mx:Label x=99 y=130 width=265 height=28 id=Result/ /mx:AddChild /mx:State === message truncated ===
[flexcoders] Re: mx:States and databinding issue
I'm at a loss here, Anybody having any issues with binding in States? --- In flexcoders@yahoogroups.com, sof4real03 [EMAIL PROTECTED] wrote: After tracing my code, I'm sure that the event is being propagated, but the button still doesn't become enabled even when the forms are valid. Could it be the issue of creating this state on the component's parent? --- In flexcoders@yahoogroups.com, sof4real03 soubraham2@ wrote: You are correct, the formsValidationChange event is bound for the formvalid property of the component. [ChangeEvent(formValidChanged)] public function get formValid():Boolean { return _formValid; } public function set formValid( formValid:Boolean ):void { setFormValid( formValid ); } private function setFormValid( formValid:Boolean ):void { if ( formValid != _formValid ) { _formValid = formValid; dispatchEvent(new Event(formValidChanged)); } } I've put Alerts in the formsValid function and it's getting to the function, but it doesn't seem to be recieving the formValidationChange event everytime it's set to a new value. I'm at a loss... If I don't use a state and put in this button on the page initially all is good. --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote: What is formValidationChanged the event on? The formValid property I hope? Are you sure you're not going into the formsValid method? Try naming the arguments array to something different like args, arguments is a reserved word and may be acting funky here (though it should work correctly in this case I think). Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sof4real03 Sent: Monday, April 24, 2006 9:03 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] mx:States and databinding issue I have a custom form component that broadcasts an event every time the form changes validation states: ContactDetails.mxml: [ChangeEvent(formValidationChanged)] Now the parent component of ContactDetails is CreateClientProfile.mxml and it uses an accordian to instantiate the ContactDetails form. Finally CreateClientProfile is a state of another component. Ok, so in ContactDetails, I have the following code: mx:states mx:State name=default id=defaultCCView mx:AddChild target={parentDocument.clientPanelControl} mx:Button id=addClientBtn label=Add My Client/ /mx:AddChild mx:SetProperty target={addClientBtn} name=enabled value={ formsValid(personalDetails.formValid,contactDetails.formValid) }/ mx:SetEventHandler target={addClientBtn} name=click handler=submitClientForm()/ /mx:State /mx:states mx:Script ![CDATA[ public function formsValid(...arguments:Array):Boolean { for(var i:int = 0; i arguments.length; ++i) { if( arguments[i] == false ) { return false; } } return true; } So, in the CreateClientProfile.mxml, I create a button on it's parent container, ClientPanel.mxml. ClientPanel - CreateClientProfile - ContactDetails Eventhough I'm broadcasting the FormValidationChange event from the ContactDetails component it doesn't get picked up from the state that creates the button though it's using databinding on the formsvalid function. Any insight? Thanks, Sof -- 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 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] Re: Looping output
correction parentApplication.closing.createChild(mx.containers.Grid, undefined,{id:grid+i}); --- Suresh Akula [EMAIL PROTECTED] wrote: try it out this parentApplication.closing.createChild(mx.containers.Grid, undefined,{id = grid+i}); --Suresh --- Jeremy Rottman [EMAIL PROTECTED] wrote: Well I tried what you said Suresh, and it is still a no go. Here is my updated code. for ( var i:Number=0;iresult.length;i++){ var newGrid = parentApplication.closing.createChild(mx.containers.Grid, undefined); newGrid.id = grid + i; newGrid.x = 10; newGrid.y = parentApplication.closing.mainGrid.y + 20; newGrid.width = '90%'; var newGridRow = parentApplication.closing.newGrid.createChild(mx.containers.GridRow, undefined); newGridRow.id = gridRow + i; var newGridItem = parentApplication.closing.newGrid.newGridRow.createChild(mx.containers.G\ ridItem, undefined); newGridItem.width = 445; newGridItem.id = gridItem + i; var newCanvas = parentApplication.closing.newGrid.newGridRow.newGridItem.createChild(mx.\ containers.Canvas); newCanvas.width ='100%'; newCanvas.heigth ='100%'; newCanvas.id = canvas + i; var newLabel =parentApplication.closing.newGrid.newGridRow.newGridItem.newCanvas.crea\ teChild(mx.controls.Label, undefined); newLabel.id = name + i; newLabel.text = TEST; } --- In flexcoders@yahoogroups.com, Suresh Akula [EMAIL PROTECTED] wrote: Hello Rottman, You already created the newGrid and assigned a dynamic id to that. Why can't you use the same intance variable name in the rest of the code. i.e. var newGridRow = parentApplication.closing.newGrid.createChild(mx.containers.GridRow, undefined); --Suresh Akula. --- Jeremy Rottman [EMAIL PROTECTED] wrote: I am still working on this. And I have run into an issue. When I create a child, I need to give that child a unique id. I tried 'grid' i to make it unique, but that doesnt work. Here is hte code I am trying for ( var i:Number=0;iresult.length;i++){ var newGrid = parentApplication.closing.createChild(mx.containers.Grid, undefined); newGrid.id = 'grid' i; newGrid.x = 10; newGrid.y = mainGrid.y + 20; newGrid.width = 90%; var newGridRow = parentApplication.closing.'grid' i.createChild(mx.containers.GridRow, undefined); newGridRow = 'gridRow' i; var newGridItem = parentApplication.closing.'grid' i.'gridRow' i.createChild(mx.containers.GridItem, undefined); newGridItem.width = 445; newGridItem.id = 'gridItem' i; var newCanvas = parentApplication.closing.'grid' i.'gridRow' i.'gridItem' i.createChild(mx.containers.Canvas); newCanvas.width = 100%; newCanvas.heigth = 100%; newCanvas.id = 'canvas' i; var newLabel = var newLabel =parentApplication.closing.'grid' i.'gridRow' i.'gridItem' i.'canvas' i.createChild(mx.controls.Label, undefined); newLabel.id = 'name' i newLabel.test = 'TEST' } --- In flexcoders@yahoogroups.com, Jeremy Rottman rottmanj@ wrote: That is exactly what I was talking about karl. --- In flexcoders@yahoogroups.com, Karl Johnson karl.johnson@ wrote: When you say loop over components, do you mean loop over existing UI objects? Or do you mean create UI objects? If you are creating, then do something like the following to create a label and/or textbox control for each index of the array returned: For loop { var newLabel = myVBox.createChild(mx.controls.Label, undefined); newLabel.text = myArray[i]; } Are we on the right path here or is this not what you are looking for? | Karl Johnson Cynergy Systems, Inc. http://www.cynergysystems.com -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Tuesday, April 25, 2006 3:43 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Looping output I am trying to loop over components. Like Labels and text. So === message truncated === __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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.
[flexcoders] Re: Looping output
I have tried that, and still doesnt work. I have tried testing with just this. var newLabel = parentApplication.closing.mainPanel.subCanvas.createChildren(mx.controls.Label, undefined ); newLabel.text = 'test'; newLabel.x = 10; newLabel.y = 300; --- In flexcoders@yahoogroups.com, Suresh Akula [EMAIL PROTECTED] wrote: try it out this parentApplication.closing.createChild(mx.containers.Grid, undefined,{id = grid+i}); --Suresh --- Jeremy Rottman [EMAIL PROTECTED] wrote: Well I tried what you said Suresh, and it is still a no go. Here is my updated code. for ( var i:Number=0;iresult.length;i++){ var newGrid = parentApplication.closing.createChild(mx.containers.Grid, undefined); newGrid.id = grid + i; newGrid.x = 10; newGrid.y = parentApplication.closing.mainGrid.y + 20; newGrid.width = '90%'; var newGridRow = parentApplication.closing.newGrid.createChild(mx.containers.GridRow, undefined); newGridRow.id = gridRow + i; var newGridItem = parentApplication.closing.newGrid.newGridRow.createChild(mx.containers.G\ ridItem, undefined); newGridItem.width = 445; newGridItem.id = gridItem + i; var newCanvas = parentApplication.closing.newGrid.newGridRow.newGridItem.createChild(mx.\ containers.Canvas); newCanvas.width ='100%'; newCanvas.heigth ='100%'; newCanvas.id = canvas + i; var newLabel =parentApplication.closing.newGrid.newGridRow.newGridItem.newCanvas.crea\ teChild(mx.controls.Label, undefined); newLabel.id = name + i; newLabel.text = TEST; } --- In flexcoders@yahoogroups.com, Suresh Akula suresha143@ wrote: Hello Rottman, You already created the newGrid and assigned a dynamic id to that. Why can't you use the same intance variable name in the rest of the code. i.e. var newGridRow = parentApplication.closing.newGrid.createChild(mx.containers.GridRow, undefined); --Suresh Akula. --- Jeremy Rottman rottmanj@ wrote: I am still working on this. And I have run into an issue. When I create a child, I need to give that child a unique id. I tried 'grid' i to make it unique, but that doesnt work. Here is hte code I am trying for ( var i:Number=0;iresult.length;i++){ var newGrid = parentApplication.closing.createChild(mx.containers.Grid, undefined); newGrid.id = 'grid' i; newGrid.x = 10; newGrid.y = mainGrid.y + 20; newGrid.width = 90%; var newGridRow = parentApplication.closing.'grid' i.createChild(mx.containers.GridRow, undefined); newGridRow = 'gridRow' i; var newGridItem = parentApplication.closing.'grid' i.'gridRow' i.createChild(mx.containers.GridItem, undefined); newGridItem.width = 445; newGridItem.id = 'gridItem' i; var newCanvas = parentApplication.closing.'grid' i.'gridRow' i.'gridItem' i.createChild(mx.containers.Canvas); newCanvas.width = 100%; newCanvas.heigth = 100%; newCanvas.id = 'canvas' i; var newLabel = var newLabel =parentApplication.closing.'grid' i.'gridRow' i.'gridItem' i.'canvas' i.createChild(mx.controls.Label, undefined); newLabel.id = 'name' i newLabel.test = 'TEST' } --- In flexcoders@yahoogroups.com, Jeremy Rottman rottmanj@ wrote: That is exactly what I was talking about karl. --- In flexcoders@yahoogroups.com, Karl Johnson karl.johnson@ wrote: When you say loop over components, do you mean loop over existing UI objects? Or do you mean create UI objects? If you are creating, then do something like the following to create a label and/or textbox control for each index of the array returned: For loop { var newLabel = myVBox.createChild(mx.controls.Label, undefined); newLabel.text = myArray[i]; } Are we on the right path here or is this not what you are looking for? | Karl Johnson Cynergy Systems, Inc. http://www.cynergysystems.com -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Tuesday, April 25, 2006 3:43 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Looping output I am trying to loop over components. Like Labels and text. So depending on how many records I return it outputs that many sets of labels and text components. --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: Jeremy, have you looked at the for loops? for (var i:Number=0;imyArray.length;i++) { oElement = myArray[i]; } Or for (var key in myObject) { oTemp = myObject[key];
[flexcoders] Re: Looping output
opps didnt fully explain my last post. I removed the for loop in my function, and tried testing with this. I am trying to create the label on the subCanvas, which is where all my display happens. And I still get nothing. var newLabel = parentApplication.closing.mainPanel.subCanvas.createChildren(mx.controls\ .Label, undefined ); newLabel.text = 'test'; newLabel.x = 10; newLabel.y = 300; --- In flexcoders@yahoogroups.com, Jeremy Rottman [EMAIL PROTECTED] wrote: I have tried that, and still doesnt work. I have tried testing with just this. var newLabel = parentApplication.closing.mainPanel.subCanvas.createChildren(mx.controls\ .Label, undefined ); newLabel.text = 'test'; newLabel.x = 10; newLabel.y = 300; --- In flexcoders@yahoogroups.com, Suresh Akula suresha143@ wrote: try it out this parentApplication.closing.createChild(mx.containers.Grid, undefined,{id = grid+i}); --Suresh --- Jeremy Rottman rottmanj@ wrote: Well I tried what you said Suresh, and it is still a no go. Here is my updated code. for ( var i:Number=0;iresult.length;i++){ var newGrid = parentApplication.closing.createChild(mx.containers.Grid, undefined); newGrid.id = grid + i; newGrid.x = 10; newGrid.y = parentApplication.closing.mainGrid.y + 20; newGrid.width = '90%'; var newGridRow = parentApplication.closing.newGrid.createChild(mx.containers.GridRow, undefined); newGridRow.id = gridRow + i; var newGridItem = parentApplication.closing.newGrid.newGridRow.createChild(mx.containers.G\ \ ridItem, undefined); newGridItem.width = 445; newGridItem.id = gridItem + i; var newCanvas = parentApplication.closing.newGrid.newGridRow.newGridItem.createChild(mx.\ \ containers.Canvas); newCanvas.width ='100%'; newCanvas.heigth ='100%'; newCanvas.id = canvas + i; var newLabel =parentApplication.closing.newGrid.newGridRow.newGridItem.newCanvas.crea\ \ teChild(mx.controls.Label, undefined); newLabel.id = name + i; newLabel.text = TEST; } --- In flexcoders@yahoogroups.com, Suresh Akula suresha143@ wrote: Hello Rottman, You already created the newGrid and assigned a dynamic id to that. Why can't you use the same intance variable name in the rest of the code. i.e. var newGridRow = parentApplication.closing.newGrid.createChild(mx.containers.GridRow, undefined); --Suresh Akula. --- Jeremy Rottman rottmanj@ wrote: I am still working on this. And I have run into an issue. When I create a child, I need to give that child a unique id. I tried 'grid' i to make it unique, but that doesnt work. Here is hte code I am trying for ( var i:Number=0;iresult.length;i++){ var newGrid = parentApplication.closing.createChild(mx.containers.Grid, undefined); newGrid.id = 'grid' i; newGrid.x = 10; newGrid.y = mainGrid.y + 20; newGrid.width = 90%; var newGridRow = parentApplication.closing.'grid' i.createChild(mx.containers.GridRow, undefined); newGridRow = 'gridRow' i; var newGridItem = parentApplication.closing.'grid' i.'gridRow' i.createChild(mx.containers.GridItem, undefined); newGridItem.width = 445; newGridItem.id = 'gridItem' i; var newCanvas = parentApplication.closing.'grid' i.'gridRow' i.'gridItem' i.createChild(mx.containers.Canvas); newCanvas.width = 100%; newCanvas.heigth = 100%; newCanvas.id = 'canvas' i; var newLabel = var newLabel =parentApplication.closing.'grid' i.'gridRow' i.'gridItem' i.'canvas' i.createChild(mx.controls.Label, undefined); newLabel.id = 'name' i newLabel.test = 'TEST' } --- In flexcoders@yahoogroups.com, Jeremy Rottman rottmanj@ wrote: That is exactly what I was talking about karl. --- In flexcoders@yahoogroups.com, Karl Johnson karl.johnson@ wrote: When you say loop over components, do you mean loop over existing UI objects? Or do you mean create UI objects? If you are creating, then do something like the following to create a label and/or textbox control for each index of the array returned: For loop { var newLabel = myVBox.createChild(mx.controls.Label, undefined); newLabel.text = myArray[i]; } Are we on the right path here or is this not what you are looking for? | Karl Johnson Cynergy Systems, Inc. http://www.cynergysystems.com -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman
Re: [flexcoders] Uncaught exceptions in Flex 1.5
Ok Peter, no idea why you've been confused but... ActionScript specification has a notion of throwable objects, so saying that Exception is a bug of the AS2Lib is slightly incorrect. I'm relaizing that due to the size constraints of the player it might be good idea not to include exception handling in it, but once more again you can add this in the development version of the player and this should be extremely easy to do if the overal palyer's architecture is good enough, isn't it? My opinion is that without having proper error reporting it is impossible to build anything larger than hello-world presentations with a very good quality, so I'd warn people to treat Flex/Flash as a really serious platform unless this feature will be implemented. Flex Developers in my company mostly are very unhappy with the quality of the framework and the level of the support Adobe provide for the users, I'm not saying about paid support I'm saying about community support, feature requests, bugfixes, open source frameworks around Flex etc. I see no other way for developing the really good product other than involve the community into the development. It is the way lots of really cool stuff were developed for the last year and it is mostly ignored by Adobe. You have a great idea of RIA and a great high performant player, if you make a great product it will be an all win situation. The only way to make a great product is to make it more open to the contributing than it is now. IMHO but it is proven many times in Java world So do not just throw away comment from such crazy guys like me, Maxym, Sergey and lots more, all we want is to make the platform we are using better, and do trust me without responding to the real feedback from developers any technology will shortly become outdated. On 4/24/06, Peter Farland [EMAIL PROTECTED] wrote: Mykola, I'm slightly confused by your post in contrast to what Sergey and Stanislav originally said. I read Sergey's post as that he was having trouble with uncaught exceptions and had to add a lot of code to catch and possibly ignore such errors. I read your post to mean the opposite of this in that the uncaught exceptions were important at development time because if they were silently caught and ignored it would be hard to diagnose what the problem was. As Matt said, in general for our data services framework code we tend to not throw exceptions but instead funnel everything through a fault event mechanism. If you run into exceptions in our Flex framework code then it may be a bug and should be reported with a reproducible case or at the very least a stacktrace. If these exceptions are due to non-Flex framework code then either its a bug in that 3rd partycode or, as Matt suggested, the number of entry points that need to be checked can be reduced by centralizingthe calling code. Finally, the behavior of uncaught exceptions isn't determined by Flex - it's a feature of the Flash Player virtual machine and how ithandles ActionScript. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mykola PaliyenkoSent: Monday, April 24, 2006 3:34 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Uncaught exceptions in Flex 1.5 Hm... Matt, I thought the problem will be fixed in 2.0, because developing in the runtime that silently ignors the exceptions is absolutely unaceptable for a lot of developers. It is extremely hard to locate problems in this case. I can understand why it is not implemented in Flex 1.5 since the flash player did not changed, but I see no reasons why whould not introduce this with a new version of player or at least allow player to run in a debug mode where such stuff will be handled.Mykola On 4/23/06, Matt Chotin [EMAIL PROTECTED] wrote: I see, the same problem exists in 2.0 I guess too (though I've askedinternally about it to make sure). Only thing I can recommend is youtry to centralize your entry points. If you use a framework likeCairngorm you can do that in the framework by catching errors in thebroadcaster or some main method that triggers your service handlers. Matt -Original Message-From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] OnBehalf Of Stanislav Zayarsky Sent: Sunday, April 23, 2006 3:45 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Uncaught exceptions in Flex 1.5Matt, we are using 3rd party libraries like AS2lib, and it throwsexceptions.And also we starting to throw exceptions from our custom classes too.Best regardsStanislavOn 4/23/06, Matt Chotin [EMAIL PROTECTED] wrote: In 1.5 we don't throw exceptions as a practice, I'm not sure whatyou're actually running into here? -Original Message- From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com]On Behalf Of Stanislav Zayarsky Sent: Saturday, April 22, 2006 7:52 AM To: flexcoders@yahoogroups.com Subject: Re:
Re: [flexcoders] Re: Looping output
can you explain me why you are using parentApplication.closing.mainPanel.subCanvas. can't you use subCanvas.createChild(...); here is the sample application ?xml version=1.0? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml mx:Script ![CDATA[ function getData1():Array { var r:Array = new Array(); var vA:Array = new Array(); vA.push(a); vA.push(b); var vB:Array = new Array(); vB.push(c); vB.push(d); r.push(text A) r.push(vA); r.push(text B) r.push(vB); return(r) } function isArray(myVal) { if(myVal.currentItem instanceof Array){ b1.createChild(mx.controls.ComboBox, undefined, {dataProvider:myVal.currentItem}) } else{ b1.createChild(mx.controls.TextInput, undefined, {text:myVal.currentItem}); } } ]] /mx:Script mx:Box id=b1 direction=vertical borderStyle=solid marginTop=10 marginBottom=10 marginLeft=10 marginRight=10 mx:Repeater id=r1 dataProvider={getData1()} repeat=isArray(event.target)/ /mx:Box /mx:Application --- Jeremy Rottman [EMAIL PROTECTED] wrote: opps didnt fully explain my last post. I removed the for loop in my function, and tried testing with this. I am trying to create the label on the subCanvas, which is where all my display happens. And I still get nothing. var newLabel = parentApplication.closing.mainPanel.subCanvas.createChildren(mx.controls\ .Label, undefined ); newLabel.text = 'test'; newLabel.x = 10; newLabel.y = 300; --- In flexcoders@yahoogroups.com, Jeremy Rottman [EMAIL PROTECTED] wrote: I have tried that, and still doesnt work. I have tried testing with just this. var newLabel = parentApplication.closing.mainPanel.subCanvas.createChildren(mx.controls\ .Label, undefined ); newLabel.text = 'test'; newLabel.x = 10; newLabel.y = 300; --- In flexcoders@yahoogroups.com, Suresh Akula suresha143@ wrote: try it out this parentApplication.closing.createChild(mx.containers.Grid, undefined,{id = grid+i}); --Suresh --- Jeremy Rottman rottmanj@ wrote: Well I tried what you said Suresh, and it is still a no go. Here is my updated code. for ( var i:Number=0;iresult.length;i++){ var newGrid = parentApplication.closing.createChild(mx.containers.Grid, undefined); newGrid.id = grid + i; newGrid.x = 10; newGrid.y = parentApplication.closing.mainGrid.y + 20; newGrid.width = '90%'; var newGridRow = parentApplication.closing.newGrid.createChild(mx.containers.GridRow, undefined); newGridRow.id = gridRow + i; var newGridItem = parentApplication.closing.newGrid.newGridRow.createChild(mx.containers.G\ \ ridItem, undefined); newGridItem.width = 445; newGridItem.id = gridItem + i; var newCanvas = parentApplication.closing.newGrid.newGridRow.newGridItem.createChild(mx.\ \ containers.Canvas); newCanvas.width ='100%'; newCanvas.heigth ='100%'; newCanvas.id = canvas + i; var newLabel =parentApplication.closing.newGrid.newGridRow.newGridItem.newCanvas.crea\ \ teChild(mx.controls.Label, undefined); newLabel.id = name + i; newLabel.text = TEST; } --- In flexcoders@yahoogroups.com, Suresh Akula suresha143@ wrote: Hello Rottman, You already created the newGrid and assigned a dynamic id to that. Why can't you use the same intance variable name in the rest of the code. i.e. var newGridRow = parentApplication.closing.newGrid.createChild(mx.containers.GridRow, undefined); --Suresh Akula. --- Jeremy Rottman rottmanj@ wrote: I am still working on this. And I have run into an issue. When I create a child, I need to give that child a unique id. I tried 'grid' i to make it unique, but that doesnt work. Here is hte code I am trying for ( var i:Number=0;iresult.length;i++){ var newGrid = parentApplication.closing.createChild(mx.containers.Grid, undefined); newGrid.id = 'grid' i; newGrid.x = 10; newGrid.y = mainGrid.y + 20; newGrid.width = 90%; var newGridRow = parentApplication.closing.'grid' i.createChild(mx.containers.GridRow, undefined); newGridRow = 'gridRow' i; var newGridItem = parentApplication.closing.'grid' i.'gridRow' i.createChild(mx.containers.GridItem, undefined); newGridItem.width = 445; newGridItem.id = 'gridItem' i; var newCanvas = parentApplication.closing.'grid' i.'gridRow' i.'gridItem' i.createChild(mx.containers.Canvas); newCanvas.width = 100%; newCanvas.heigth = 100%; newCanvas.id = 'canvas' i; var newLabel = var newLabel =parentApplication.closing.'grid' i.'gridRow' i.'gridItem'
Re: [flexcoders] Flex 2 B 2 + Cairngorm 2 - Simple Question
LoginVO is user defined object and where as Date is System defined object, no need to type the these objects. --Suresh --- Darren Houle [EMAIL PROTECTED] wrote: But when? Why? In every case? If that was a generic, universal rule and you're supposed to cast everything as it's original object type then a little further in the line we should see: ' at ' + Date(model.loginDate) } / I'm just curious why the LoginVO is cast here. Is there some rule like you don't have to cast an object when simply accessing an attribute of that object, but you do have to cast an object if it contains other objects with an attributes you need to access. That sounds kinda silly to me, that's why I'm asking :-) Thanks! Darren From: Suresh Akula [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex 2 B 2 + Cairngorm 2 - Simple Question Date: Tue, 25 Apr 2006 12:59:59 -0700 (PDT) Hello Darren, its good partice to typecast with orginal object and invoke the object members. --Suresh Akula. --- Darren Houle [EMAIL PROTECTED] wrote: I'm fairly new to Flex and really new to Cairngorm and am trying to break Cg2 down and understand it (I'm not trying to understand Cg.99 and then learn Cg2, I'm just jumping into 2.) I have a quick question: In the Cg2 sample CairngormLogin.mxml theres a Label in the loggedIn VBox... mx:Label text={ 'Logged in as ' + LoginVO( model.loginVO ).username + ' at ' + model.loginDate } / This seems to still work fine when changed to... mx:Label text={ 'Logged in as ' + model.loginVO.username + ' at ' + model.loginDate } / Is there some reason why the first form must be used over of the second form? If I were writing this code myself from scratch it would seem more intuitive to bind directly to the model.loginVO.username. Am I missing something? Thanks, Darren __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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 __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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] Re: Looping output
So the issue is not assigning an id, but rather that you are not able to successfully use createChild() at all? Could the problem be the reference chain? Can you do it in a sample app? Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Tuesday, April 25, 2006 5:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Looping output opps didnt fully explain my last post. I removed the for loop in my function, and tried testing with this. I am trying to create the label on the subCanvas, which is where all my display happens. And I still get nothing. var newLabel = parentApplication.closing.mainPanel.subCanvas.createChildren(mx.controls \ .Label, undefined ); newLabel.text = 'test'; newLabel.x = 10; newLabel.y = 300; --- In flexcoders@yahoogroups.com, Jeremy Rottman [EMAIL PROTECTED] wrote: I have tried that, and still doesnt work. I have tried testing with just this. var newLabel = parentApplication.closing.mainPanel.subCanvas.createChildren(mx.controls \ .Label, undefined ); newLabel.text = 'test'; newLabel.x = 10; newLabel.y = 300; --- In flexcoders@yahoogroups.com, Suresh Akula suresha143@ wrote: try it out this parentApplication.closing.createChild(mx.containers.Grid, undefined,{id = grid+i}); --Suresh --- Jeremy Rottman rottmanj@ wrote: Well I tried what you said Suresh, and it is still a no go. Here is my updated code. for ( var i:Number=0;iresult.length;i++){ var newGrid = parentApplication.closing.createChild(mx.containers.Grid, undefined); newGrid.id = grid + i; newGrid.x = 10; newGrid.y = parentApplication.closing.mainGrid.y + 20; newGrid.width = '90%'; var newGridRow = parentApplication.closing.newGrid.createChild(mx.containers.GridRow, undefined); newGridRow.id = gridRow + i; var newGridItem = parentApplication.closing.newGrid.newGridRow.createChild(mx.containers.G \ \ ridItem, undefined); newGridItem.width = 445; newGridItem.id = gridItem + i; var newCanvas = parentApplication.closing.newGrid.newGridRow.newGridItem.createChild(mx. \ \ containers.Canvas); newCanvas.width ='100%'; newCanvas.heigth ='100%'; newCanvas.id = canvas + i; var newLabel =parentApplication.closing.newGrid.newGridRow.newGridItem.newCanvas.crea \ \ teChild(mx.controls.Label, undefined); newLabel.id = name + i; newLabel.text = TEST; } --- In flexcoders@yahoogroups.com, Suresh Akula suresha143@ wrote: Hello Rottman, You already created the newGrid and assigned a dynamic id to that. Why can't you use the same intance variable name in the rest of the code. i.e. var newGridRow = parentApplication.closing.newGrid.createChild(mx.containers.GridRow, undefined); --Suresh Akula. --- Jeremy Rottman rottmanj@ wrote: I am still working on this. And I have run into an issue. When I create a child, I need to give that child a unique id. I tried 'grid' i to make it unique, but that doesnt work. Here is hte code I am trying for ( var i:Number=0;iresult.length;i++){ var newGrid = parentApplication.closing.createChild(mx.containers.Grid, undefined); newGrid.id = 'grid' i; newGrid.x = 10; newGrid.y = mainGrid.y + 20; newGrid.width = 90%; var newGridRow = parentApplication.closing.'grid' i.createChild(mx.containers.GridRow, undefined); newGridRow = 'gridRow' i; var newGridItem = parentApplication.closing.'grid' i.'gridRow' i.createChild(mx.containers.GridItem, undefined); newGridItem.width = 445; newGridItem.id = 'gridItem' i; var newCanvas = parentApplication.closing.'grid' i.'gridRow' i.'gridItem' i.createChild(mx.containers.Canvas); newCanvas.width = 100%; newCanvas.heigth = 100%; newCanvas.id = 'canvas' i; var newLabel = var newLabel =parentApplication.closing.'grid' i.'gridRow' i.'gridItem' i.'canvas' i.createChild(mx.controls.Label, undefined); newLabel.id = 'name' i newLabel.test = 'TEST' } --- In flexcoders@yahoogroups.com, Jeremy Rottman rottmanj@ wrote: That is exactly what I was talking about karl. --- In flexcoders@yahoogroups.com, Karl Johnson karl.johnson@ wrote: When you say loop over components, do you mean loop over existing UI objects? Or do you mean create UI objects? If you are creating, then do something like the following to create a label and/or textbox control for each index of the array returned: For loop { var newLabel = myVBox.createChild(mx.controls.Label,
RE: [flexcoders] Re: (Flex20 Beta2): send failed for RemoteObject
Are you loading your SWF from http://localhost:8080? Or are you using the standalone player by, say, double clicking on the SWF and opening it using SAFlashPlayer.exe? Note that if the SWF isn't loaded from the same domain then you'll need a crossdomain.xml file in the webroot of the domain that you're trying to access (i.e. localhost:8080). Pete From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98Sent: Tuesday, April 25, 2006 4:06 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: (Flex20 Beta2): send failed for RemoteObject Hi Peter,Thanks for taking the time to patiently answer my questions. Unfortunately, I am still unable to proceed. I changed the following line(in flex-enterprise-services.xml under channel definition for my-amf),endpoint uri="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/toendpoint uri="http://{server.name}:{server.port}/flex/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint"/as the URL to which I go form the browser is http://localhost:8080/flex/SimpleRemoteObject/SimpleRemoteObject.html there is no change in behavior. I must have not understood you correctly. Can you please clarify if possible on how to set context root step by step.Thanks again,Aejaz--- In flexcoders@yahoogroups.com, "Peter Farland" [EMAIL PROTECTED] wrote: Sorry, the J2! EE context root as it would appear in the URL (i.e. this value will replace the token {context.root} at compile time based on the value of --context-root). e.g. --context-root=/dev Note that the other two tokens in the endpoint URL, {server.name} and {server.port} will be known at runtime if the SWF is loaded via a URL so these are replaced at runtime based on how the SWF is loaded. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98 Sent: Tuesday, April 25, 2006 3:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex20 Beta2): send failed for RemoteObject Thanks Peter. Please let me know how exactly to do that. Do you mean add --context.root C:\tomcat\webapps\flex while starting tomcat i.e. catalina start --context! .root C:\tomcat\webapps\flex Is that right ? Thanks, Aejaz --- In flexcoders@yahoogroups.com, "Peter Farland" pfarland@ wrote: Ah, yes, you need to specify --context.root on the command line as the client can't tell what the context root is (i.e. because you can have the default context root "" it can't make assumptions as to whether the first level under the webroot is a subdirectory or a context root). -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98 Sent: Tuesday, April 25, 2006 1:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex20 Beta2): send failed for RemoteObjectThe detailed error message in this case is, Channel.Connect.Failed error Netconnection.Call.Failed:HTTP:FailedMy flex-remoting-service.xml looks as follows, default-channels channel ref="my-amf"/ /default-channelsdestination id="EchoString" properties sourcesamples.SimpleRemoteObject.Echo/source /properties /destination the channel "my-amf" is defined in flex-enterprise-services.xml as follows,channel-definition id="my-amf" class="mx.messaging.channels.AMFChannel" endpoint uri="http://{server.name}:{server.port}/{context.root}/messagebroker/a mf " class="flex.messaging.e! ndpoints.AMFEndpoint"/ proper! ties polling-enabledfalse/polling-enabled /properties /channel-definition Thanks, Aejaz--- In flexcoders@yahoogroups.com, "aejaz_98" aejaz_98@ wrote: Hi Peter, Thanks for your reply please disregard my previous message. I recompiled the application now I am getting "send failed" error message. Can you please take a look at the mxml to see if anything is wrong. I am very new to mxml might have had overlookedsomething obvious. Thanks, Aejaz ?xml version="1.0" encoding="utf-8"? mx:Application xmlns:mx="http://www.ado! be.com/2006/mxml" xmlns="*" layout="absolute" mx:Script ![CDATA[ import mx.rpc.events.*;import mx.collections.*; import mx.controls.* private function getNameHandler(event:ResultEvent):void { Result.text = event.result.toString(); currentState='TargetState'; } private function faultHandler(event:FaultEvent):void { Alert.show(event.fault.faultstring, "Error"); } ]] /mx:Script mx:statesmx:State name="TargetState" mx:RemoveChild child="{button1}"/! ; mx:RemoveChild child="{formInput}"/! ; mx:RemoveChild child="{label1}"/ mx:AddChild position="lastChild" mx:Label x="99" y="130" width="265" height="28" id="Result"/ /mx:AddChild /mx:State /mx:states mx:RemoteObject id="SendStringBack"
RE: [flexcoders] Adding addEventListener too a Child object
You don't want to be calling valueChanged; you want to be passing a reference to it: DesignView[0].addEventListener(selectionChanged, valueChanged); - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of vestcomprogrammer Sent: Tuesday, April 25, 2006 8:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Adding addEventListener too a Child object I am trying to add a addEventListener to a child object in Flex 2.0 beta 2 and I have tried this DesignView[0].addEventListener (selectionChanged, valueChanged(this)); but this does not seem to work. Anyone know how? Thanks Bill -- 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 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: Looping output
I finally got it figured out. BTw this is for F2B2 only. var newLabel:Label = new Label(); newLabel.text = 'TEST'; newLabel.x = 10; newLabel.y = 300; parentApplication.closing.mainBox.addChild(newLabel); --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: So the issue is not assigning an id, but rather that you are not able to successfully use createChild() at all? Could the problem be the reference chain? Can you do it in a sample app? Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Tuesday, April 25, 2006 5:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Looping output opps didnt fully explain my last post. I removed the for loop in my function, and tried testing with this. I am trying to create the label on the subCanvas, which is where all my display happens. And I still get nothing. var newLabel = parentApplication.closing.mainPanel.subCanvas.createChildren(mx.controls \ .Label, undefined ); newLabel.text = 'test'; newLabel.x = 10; newLabel.y = 300; --- In flexcoders@yahoogroups.com, Jeremy Rottman rottmanj@ wrote: I have tried that, and still doesnt work. I have tried testing with just this. var newLabel = parentApplication.closing.mainPanel.subCanvas.createChildren(mx.controls \ .Label, undefined ); newLabel.text = 'test'; newLabel.x = 10; newLabel.y = 300; --- In flexcoders@yahoogroups.com, Suresh Akula suresha143@ wrote: try it out this parentApplication.closing.createChild(mx.containers.Grid, undefined,{id = grid+i}); --Suresh --- Jeremy Rottman rottmanj@ wrote: Well I tried what you said Suresh, and it is still a no go. Here is my updated code. for ( var i:Number=0;iresult.length;i++){ var newGrid = parentApplication.closing.createChild(mx.containers.Grid, undefined); newGrid.id = grid + i; newGrid.x = 10; newGrid.y = parentApplication.closing.mainGrid.y + 20; newGrid.width = '90%'; var newGridRow = parentApplication.closing.newGrid.createChild(mx.containers.GridRow, undefined); newGridRow.id = gridRow + i; var newGridItem = parentApplication.closing.newGrid.newGridRow.createChild(mx.containers.G \ \ ridItem, undefined); newGridItem.width = 445; newGridItem.id = gridItem + i; var newCanvas = parentApplication.closing.newGrid.newGridRow.newGridItem.createChild(mx. \ \ containers.Canvas); newCanvas.width ='100%'; newCanvas.heigth ='100%'; newCanvas.id = canvas + i; var newLabel =parentApplication.closing.newGrid.newGridRow.newGridItem.newCanvas.crea \ \ teChild(mx.controls.Label, undefined); newLabel.id = name + i; newLabel.text = TEST; } --- In flexcoders@yahoogroups.com, Suresh Akula suresha143@ wrote: Hello Rottman, You already created the newGrid and assigned a dynamic id to that. Why can't you use the same intance variable name in the rest of the code. i.e. var newGridRow = parentApplication.closing.newGrid.createChild(mx.containers.GridRow, undefined); --Suresh Akula. --- Jeremy Rottman rottmanj@ wrote: I am still working on this. And I have run into an issue. When I create a child, I need to give that child a unique id. I tried 'grid' i to make it unique, but that doesnt work. Here is hte code I am trying for ( var i:Number=0;iresult.length;i++){ var newGrid = parentApplication.closing.createChild(mx.containers.Grid, undefined); newGrid.id = 'grid' i; newGrid.x = 10; newGrid.y = mainGrid.y + 20; newGrid.width = 90%; var newGridRow = parentApplication.closing.'grid' i.createChild(mx.containers.GridRow, undefined); newGridRow = 'gridRow' i; var newGridItem = parentApplication.closing.'grid' i.'gridRow' i.createChild(mx.containers.GridItem, undefined); newGridItem.width = 445; newGridItem.id = 'gridItem' i; var newCanvas = parentApplication.closing.'grid' i.'gridRow' i.'gridItem' i.createChild(mx.containers.Canvas); newCanvas.width = 100%; newCanvas.heigth = 100%; newCanvas.id = 'canvas' i; var newLabel = var newLabel =parentApplication.closing.'grid' i.'gridRow' i.'gridItem' i.'canvas' i.createChild(mx.controls.Label, undefined); newLabel.id = 'name' i newLabel.test = 'TEST' } --- In flexcoders@yahoogroups.com, Jeremy Rottman rottmanj@ wrote: That is exactly what I was talking about karl. --- In
[flexcoders] Flex 2.0 Breeze Preso by Jesse Warden 4/26/2006
Not sure if this is considered spam but figured I'd post it anyway and get blasted later, if it is spam. :-)From gotoAndStop.org:Come see what all the hype surrounding Flex 2.0 is about. Jesse will cover the new Actionscript 3.0, mxml, and other Flex sweetness. This is an exciting time for web junkies. Come geek out with us!Come geek out with us a bit on Breeze.-- John C. Bland III do what I can do when I can do it. - Chris Tucker, Money Talks http://www.gotoandstop.org - Home of FMUG.az -- 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: (Flex20 Beta2): send failed for RemoteObject
Thanks Peter, I am loading the SWF from the following URL, http://localhost:8080/flex/SimpleRemoteObject/SimpleRemoteObject.html Do I still need crossdomain.xml as Tomcat is running locally. If so what will this file contain in which directory I should create it. Thanks, Aejaz --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: Are you loading your SWF from http://localhost:8080? Or are you using the standalone player by, say, double clicking on the SWF and opening it using SAFlashPlayer.exe? Note that if the SWF isn't loaded from the same domain then you'll need a crossdomain.xml file in the webroot of the domain that you're trying to access (i.e. localhost:8080). Pete From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98 Sent: Tuesday, April 25, 2006 4:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex20 Beta2): send failed for RemoteObject Hi Peter, Thanks for taking the time to patiently answer my questions. Unfortunately, I am still unable to proceed. I changed the following line(in flex-enterprise-services.xml under channel definition for my-amf), endpoint uri=http://{server.name}:{server.port}/{context.root}/messagebroker/amf class=flex.messaging.endpoints.AMFEndpoint/ to endpoint uri=http://{server.name}:{server.port}/flex/messagebroker/amf class=flex.messaging.endpoints.AMFEndpoint/ as the URL to which I go form the browser is http://localhost:8080/flex/SimpleRemoteObject/SimpleRemoteObject.html there is no change in behavior. I must have not understood you correctly. Can you please clarify if possible on how to set context root step by step. Thanks again, Aejaz --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: Sorry, the J2! EE context root as it would appear in the URL (i.e. this value will replace the token {context.root} at compile time based on the value of --context-root). e.g. --context-root=/dev Note that the other two tokens in the endpoint URL, {server.name} and {server.port} will be known at runtime if the SWF is loaded via a URL so these are replaced at runtime based on how the SWF is loaded. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98 Sent: Tuesday, April 25, 2006 3:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex20 Beta2): send failed for RemoteObject Thanks Peter. Please let me know how exactly to do that. Do you mean add --context.root C:\tomcat\webapps\flex while starting tomcat i.e. catalina start --context! .root C:\tomcat\webapps\flex Is that right ? Thanks, Aejaz --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: Ah, yes, you need to specify --context.root on the command line as the client can't tell what the context root is (i.e. because you can have the default context root it can't make assumptions as to whether the first level under the webroot is a subdirectory or a context root). -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98 Sent: Tuesday, April 25, 2006 1:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex20 Beta2): send failed for RemoteObject The detailed error message in this case is, Channel.Connect.Failed error Netconnection.Call.Failed:HTTP:Failed My flex-remoting-service.xml looks as follows, default-channels channel ref=my-amf/ /default-channels destination id=EchoString properties sourcesamples.SimpleRemoteObject.Echo/source /properties /destination the channel my-amf is defined in flex-enterprise-services.xml as follows, channel-definition id=my-amf class=mx.messaging.channels.AMFChannel endpoint uri=http://{server.name}:{server.port}/{context.root}/messagebroker/a mf class=flex.messaging.e! ndpoints.AMFEndpoint/ proper! ties polling-enabledfalse/polling-enabled /properties /channel-definition Thanks, Aejaz --- In flexcoders@yahoogroups.com, aejaz_98 aejaz_98@ wrote: Hi Peter, Thanks for your reply please disregard my previous message. I recompiled the application now I am getting send failed error message. Can you please take a look at the mxml to see if anything is wrong. I am very new to mxml might have had overlooked something obvious. Thanks, Aejaz ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.ado! be.com/2006/mxml xmlns=* layout=absolute mx:Script ![CDATA[ import mx.rpc.events.*; import mx.collections.*; import mx.controls.* private function getNameHandler(event:ResultEvent):void { Result.text =
RE: [flexcoders] Uncaught exceptions in Flex 1.5
Hi Mykola, Have you used the debug versions of the Flash Player during development? The debug version of the Flash Player reports uncaught exceptions and it also traces information to a flashlog.txt file as long as you have a mm.cfg file setup in your user directory. We include debug versions of the Flash Player (i.e. the Standalone Player, the Firefox/Netscape/Opera plugin and MSIE Active-X player) in the Flex installer. We include them for the same reasons that you state - "withouthaving proper error reporting it is impossible to build anything larget than hello-world presentations". Flex Builder has a visual debugger with breakpoints and watch statements. Also AS3 Error objects remember their stacktraces and you can print them out if you're using the debug player. We built the Flex 2 framework of over 1000 classes using the same tools as you would to build your own applications... I feel that they are adequate. Regarding the confusion, it wasn't that important - it was just that from my reading the various posts on this thread I got the impression that there were two complaints here that were at odds with each other. One complaining they couldn't manage errors coming from lots of different places and the other that they weren't getting enough errors and related information at runtime. Regards, Pete From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mykola PaliyenkoSent: Tuesday, April 25, 2006 5:24 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Uncaught exceptions in Flex 1.5 Ok Peter,no idea why you've been confused but...ActionScript specification has a notion of throwable objects, so saying that Exception is a bug of the AS2Lib is slightly incorrect. I'm relaizing that due to the size constraints of the player it might be good idea not to include exception handling in it, but once more again you can add this in the development version of the player and this should be extremely easy to do if the overal palyer's architecture is good enough, isn't it?My opinion is that without having proper error reporting it is impossible to build anything larger than hello-world presentations with a very good quality, so I'd warn people to treat Flex/Flash as a really serious platform unless this feature will be implemented. Flex Developers in my company mostly are very unhappy with the quality of the framework and the level of the support Adobe provide for the users, I'm not saying about paid support I'm saying about community support, feature requests, bugfixes, open source frameworks around Flex etc. I see no other way for developing the really good product other than involve the community into the development. It is the way lots of really cool stuff were developed for the last year and it is mostly ignored by Adobe.You have a great idea of RIA and a great high performant player, if you make a great product it will be an "all win" situation. The only way to make a great product is to make it more open to the contributing than it is now. IMHO but it is proven many times in Java worldSo do not just throw away comment from such crazy guys like me, Maxym, Sergey and lots more, all we want is to make the platform we are using better, and do trust me without responding to the real feedback from developers any technology will shortly become outdated. On 4/24/06, Peter Farland [EMAIL PROTECTED] wrote: Mykola, I'm slightly confused by your post in contrast to what Sergey and Stanislav originally said. I read Sergey's post as that he was having trouble with uncaught exceptions and had to add a lot of code to catch and possibly ignore such errors. I read your post to mean the opposite of this in that the uncaught exceptions were important at development time because if they were silently caught and ignored it would be hard to diagnose what the problem was. As Matt said, in general for our data services framework code we tend to not throw exceptions but instead funnel everything through a fault event mechanism. If you run into exceptions in our Flex framework code then it may be a bug and should be reported with a reproducible case or at the very least a stacktrace. If these exceptions are due to non-Flex framework code then either its a bug in that 3rd partycode or, as Matt suggested, the number of entry points that need to be checked can be reduced by centralizingthe calling code. Finally, the behavior of uncaught exceptions isn't determined by Flex - it's a feature of the Flash Player virtual machine and how ithandles ActionScript. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Mykola PaliyenkoSent: Monday, April 24, 2006 3:34 AM To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Uncaught exceptions in Flex 1.5 Hm... Matt, I thought the problem will be fixed in 2.0, because developing in
[flexcoders] labs.abobe.com redirect??
Hi all, I'm tring to get to labs.adobe(or marcormedia).com and I keep getting redirected to http://www.macromedia.com/cfusion/mmform/index.cfm?name=labs_earlybird I've put in my email and such, but it still redirects me there. Is there a new site for the labs? -- 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] labs.abobe.com redirect??
This shouldn't be happening anymore. The internal Labs team has been notified and it was working for me earlier but seems to be back to the same old tricks.From what I've heard so far...internal is looking into it. On 4/25/06, Rick Schmitty [EMAIL PROTECTED] wrote: Hi all, I'm tring to get to labs.adobe(or marcormedia).com and I keep getting redirected to http://www.macromedia.com/cfusion/mmform/index.cfm?name=labs_earlybird I've put in my email and such, but it still redirects me there. Is there a new site for the labs? -- 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 . -- John C. Bland III do what I can do when I can do it. - Chris Tucker, Money Talkshttp://www.gotoandstop.org - Home of FMUG.az -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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: Looping output
Well tracy, it is assinging the id perfectly fine. But when I try to set the canvas width or height to 100% I get this error. Implicit coercion of a value of type 'String' to an unrelated type When I try to set it to 100% with out the '' I get this error. Expecting primary _expression_ before semicolon for ( var i:Number=0;iresult.length;i++){ var newLabel:Label = new Label(); newLabel.text = 'TEST'; newLabel.x = 10; newLabel.y = 300; parentApplication.closing.mainBox.addChild(newLabel); var newCanvas:Canvas = new Canvas(); newCanvas.id = 'canvas' + i; newCanvas.width = '100%'; newCanvas.height = '100%'; parentApplication.closing.mainBox.addChild(newCanvas); } --- In flexcoders@yahoogroups.com, Jeremy Rottman [EMAIL PROTECTED] wrote: I finally got it figured out. BTw this is for F2B2 only. var newLabel:Label = new Label(); newLabel.text = 'TEST'; newLabel.x = 10; newLabel.y = 300; parentApplication.closing.mainBox.addChild(newLabel); --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: So the issue is not assigning an id, but rather that you are not able to successfully use createChild() at all? Could the problem be the reference chain? Can you do it in a sample app? Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Tuesday, April 25, 2006 5:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Looping output opps didnt fully explain my last post. I removed the for loop in my function, and tried testing with this. I am trying to create the label on the subCanvas, which is where all my display happens. And I still get nothing. var newLabel = parentApplication.closing.mainPanel.subCanvas.createChildren(mx.controls \ .Label, undefined ); newLabel.text = 'test'; newLabel.x = 10; newLabel.y = 300; --- In flexcoders@yahoogroups.com, Jeremy Rottman rottmanj@ wrote: I have tried that, and still doesnt work. I have tried testing with just this. var newLabel = parentApplication.closing.mainPanel.subCanvas.createChildren(mx.controls \ .Label, undefined ); newLabel.text = 'test'; newLabel.x = 10; newLabel.y = 300; --- In flexcoders@yahoogroups.com, Suresh Akula suresha143@ wrote: try it out this parentApplication.closing.createChild(mx.containers.Grid, undefined,{id = grid+i}); --Suresh --- Jeremy Rottman rottmanj@ wrote: Well I tried what you said Suresh, and it is still a no go. Here is my updated code. for ( var i:Number=0;iresult.length;i++){ var newGrid = parentApplication.closing.createChild(mx.containers.Grid, undefined); newGrid.id = grid + i; newGrid.x = 10; newGrid.y = parentApplication.closing.mainGrid.y + 20; newGrid.width = '90%'; var newGridRow = parentApplication.closing.newGrid.createChild(mx.containers.GridRow, undefined); newGridRow.id = gridRow + i; var newGridItem = parentApplication.closing.newGrid.newGridRow.createChild(mx.containers.G \ \ ridItem, undefined); newGridItem.width = 445; newGridItem.id = gridItem + i; var newCanvas = parentApplication.closing.newGrid.newGridRow.newGridItem.createChild(mx. \ \ containers.Canvas); newCanvas.width ='100%'; newCanvas.heigth ='100%'; newCanvas.id = canvas + i; var newLabel =parentApplication.closing.newGrid.newGridRow.newGridItem.newCanvas.crea \ \ teChild(mx.controls.Label, undefined); newLabel.id = name + i; newLabel.text = TEST; } --- In flexcoders@yahoogroups.com, Suresh Akula suresha143@ wrote: Hello Rottman, You already created the newGrid and assigned a dynamic id to that. Why can't you use the same intance variable name in the rest of the code. i.e. var newGridRow = parentApplication.closing.newGrid.createChild(mx.containers.GridRow, undefined); --Suresh Akula. --- Jeremy Rottman rottmanj@ wrote: I am still working on this. And I have run into an issue. When I create a child, I need to give that child a unique id. I tried 'grid' i to make it unique, but that doesnt work. Here is hte code I am trying for ( var i:Number=0;iresult.length;i++){ var newGrid = parentApplication.closing.createChild(mx.containers.Grid, undefined); newGrid.id = 'grid' i; newGrid.x = 10; newGrid.y = mainGrid.y + 20; newGrid.width = 90%; var newGridRow = parentApplication.closing.'grid' i.createChild(mx.containers.GridRow, undefined);
RE: [flexcoders] Re: (Flex20 Beta2): send failed for RemoteObject
No, you shouldn't need a crossdomain.xml file in this case. So long as you're sure that you're recompiling with the updated configuration each time that you make a change, and so long as this files contents matches what is on the server, and so long as you've tried replacing tokens with hard coded values and worked back to make sure they're not the problem, then an unrelated error must have happened during startup as the MessageBroker AMFChannel endpoint mustn't be active? To get more information on the client, you can add the following tag to your MXML: mx:TraceTarget level=0 / All of the traffic for your RPC services (like RemoteObject) will be traced out to the debug player log file, that is, the flashlog.txt file in your user directory (on Windows, C:\Documents and Settings\yourusername\flashlog.txt) so long as you have a mm.cfg file setup in this user directory with the following contents: ErrorReportingEnable=1 TraceOutputFileEnable=1 (Note the format of this C:\Documents and Settings\yourusername\mm.cfg file needs to be exact, no tabs or indents, etc). To get more information on the server, check your logs for stacktraces and other errors starting up the MessageBroker Servlet. For an example of what might go wrong, just say you have a messaging service include defined in your flex-enterprise-services.xml file and it included a JMS Adapter then Tomcat might not startup as it doesn't have the necessary support in a default installation... in which case you'd comment out the include for the message service. You can also change the logging settings in /WEB-INF/flex/flex-enterprise-services.xml to the Debug level and then look at the logs again for more clues. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98 Sent: Tuesday, April 25, 2006 6:20 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex20 Beta2): send failed for RemoteObject Thanks Peter, I am loading the SWF from the following URL, http://localhost:8080/flex/SimpleRemoteObject/SimpleRemoteObject.html Do I still need crossdomain.xml as Tomcat is running locally. If so what will this file contain in which directory I should create it. Thanks, Aejaz --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: Are you loading your SWF from http://localhost:8080? Or are you using the standalone player by, say, double clicking on the SWF and opening it using SAFlashPlayer.exe? Note that if the SWF isn't loaded from the same domain then you'll need a crossdomain.xml file in the webroot of the domain that you're trying to access (i.e. localhost:8080). Pete From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98 Sent: Tuesday, April 25, 2006 4:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex20 Beta2): send failed for RemoteObject Hi Peter, Thanks for taking the time to patiently answer my questions. Unfortunately, I am still unable to proceed. I changed the following line(in flex-enterprise-services.xml under channel definition for my-amf), endpoint uri=http://{server.name}:{server.port}/{context.root}/messagebroker/a mf class=flex.messaging.endpoints.AMFEndpoint/ to endpoint uri=http://{server.name}:{server.port}/flex/messagebroker/amf class=flex.messaging.endpoints.AMFEndpoint/ as the URL to which I go form the browser is http://localhost:8080/flex/SimpleRemoteObject/SimpleRemoteObject.html there is no change in behavior. I must have not understood you correctly. Can you please clarify if possible on how to set context root step by step. Thanks again, Aejaz --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: Sorry, the J2! EE context root as it would appear in the URL (i.e. this value will replace the token {context.root} at compile time based on the value of --context-root). e.g. --context-root=/dev Note that the other two tokens in the endpoint URL, {server.name} and {server.port} will be known at runtime if the SWF is loaded via a URL so these are replaced at runtime based on how the SWF is loaded. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98 Sent: Tuesday, April 25, 2006 3:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex20 Beta2): send failed for RemoteObject Thanks Peter. Please let me know how exactly to do that. Do you mean add --context.root C:\tomcat\webapps\flex while starting tomcat i.e. catalina start --context! .root C:\tomcat\webapps\flex Is that right ? Thanks, Aejaz --- In flexcoders@yahoogroups.com, Peter Farland pfarland@ wrote: Ah, yes, you need to specify --context.root on the command line as the client can't tell what the context root is (i.e. because you can have the default
[flexcoders] What happened with labs.macromedia ????
I am trying to open the site and I receive a notification message ! Does anyone knows what hapenned -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] SVG as Image source at runtime in Flex 2.0?
In Beta2, I can only use an SVG as an embedded source for an Image. I'd like to be able to set an Image source to an SVG URL at runtime. Will this be possible in a later beta, or in the shipping version of Flex? Thanks, ---Will Chapman -- 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: Turn off Validators
Thanks Tim, I will try it !!! --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: If you just want to turn off the visual indication, you can clear the errorString property of the control. Tip: For custom validation, you can write your own error message to errorString. This will trigger the red border and error message to appear. As I understand the Flex framework, you have three states of validation. You can validate as-you-go and/or validate in response to a gesture (like clicking a search button). I like validating as-you-go when at all possible. It notifies the user immediately that they need to make a correction before proceeding. Usually, controls that always need to be validated should be validated as-you-go. In addition, you can create a catch-all function that selectively validates controls before submitting a request to the server. As a practical matter, you can choose to validate the as-you-go controls in this function as well. This may be overkill, but I don't like embarrassing the application by asking the server an impossible question. For controls that may or may not need to be validated, depending on the state of other controls, you should try to organize the validation into functional groups/collections in the catch-all function. From here, you can manually control the error state of the controls. I'm sure that there is a possible reason for disabling a validator, but I prefer avoiding this approach. imho, I think that this creates code that is more difficult to maintain. Instead, I would move the validation to the catch-all function. I'm really not sure if this applies to your particular situation, but I hope that this helps you. Tim Hoff --- In flexcoders@yahoogroups.com, mvbaffa mvbaffa@ wrote: Hi everybody, I need to turn off or disable a validator. After an error is detected in the associated field I cannot turnoff the visual indication or the error message, even if I write to the textinput or set the enabled property of the valdator to false. When I first show the screen I make the validator disabled so that required fields can be blank and it worked. But at moment an error is detected I can only turnoff the validator if I set the textinput with a valid value, in this case a number. How can I make it work ? Thanks in advance -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] labs.abobe.com redirect??
True. There are *many* redirects being edited each day now, in advance of the next phase of adobe.com/mm.com integration. One of the redirects in last night's bunch was wrong, and got propagated out to some external servers. The cause in this case is fixed, but may take awhile to propagate out through all servers. I'd anticipate other little temporary oddities over the next few weeks as this massive piece of integration work enters its final stages. One tactic for emergencies, whenever an URL doesn't resolve properly, is to hit Google's cache on the subject. jd -- John Dowdell . Adobe Developer Support . San Francisco CA USA Weblog: http://weblogs.macromedia.com/jd Aggregator: http://weblogs.macromedia.com/mxna Technotes: http://www.macromedia.com/support/ Spam killed my private email -- public record is best, thanks. -- 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] Eclipse Plugin for Flex 1.5?
Gentlemen, Forgive my possibly naive question. But is there an Eclipse plugin for Flex 1.5 and AS 2? And if not, would I be able to use the plugin for Flex 2.0 for development in Flex 1.5 and AS2? Cheers, Dmitry -- 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] Eclipse Plugin for Flex 1.5?
FB 2 outputs swf's built for Flash Player 9 (formerly 8.5). Unless there is something I haven't seen...strictly AS 3 here.On 4/25/06, Dmitry Miller [EMAIL PROTECTED] wrote: Gentlemen, Forgive my possibly naive question. But is there an Eclipse plugin for Flex 1.5 and AS 2? And if not, would I be able to use the plugin for Flex 2.0 for development in Flex 1.5 and AS2? Cheers, Dmitry -- 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 . -- John C. Bland III do what I can do when I can do it. - Chris Tucker, Money Talkshttp://www.gotoandstop.org - Home of FMUG.az -- 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 Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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] Eclipse Plugin for Flex 1.5?
Try Flashout for your GUI: http://www.osflash.org/flashout ASDT for your AS: http://www.osflash.org/asdt MTASC for your compiler: http://www.osflash.org/mtasc You can use Oxygen for XML I think. Darron's got more info here: http://www.darronschall.com/weblog/archives/000182.cfm - Original Message - From: Dmitry Miller [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, April 25, 2006 7:20 PM Subject: [flexcoders] Eclipse Plugin for Flex 1.5? Gentlemen, Forgive my possibly naive question. But is there an Eclipse plugin for Flex 1.5 and AS 2? And if not, would I be able to use the plugin for Flex 2.0 for development in Flex 1.5 and AS2? Cheers, Dmitry -- 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 SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice 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 2 B 2 + Cairngorm 2 - Simple Question
IMHO, it makes no difference where the object is defined. In general, if the object returned by a function call or accessor is not the type you think it is, then you must cast it to the correct type before calling methods or accessors defined in that type. It gets a little bit complicated, but the crux of the problem is that every object has two types: its static (compile-time) and its dynamic (runtime) type. For instance I can say: var o : Object = new String( Hello World ); The static type of o is Object, but its actual runtime type is String. I can do this because String derives from Object. It's always possible to assign an object to an instance of a class from which that object derives. Casting tells the compiler that you want to ignore the static type of an object, and treat it as its dynamic type. For example: var myArray : Array = [ 1, 2.0, Hello World ]; var s : String = String( myArray[ 2 ] ); var l : int = String( myArray[ 2 ] ).length; var o : Object = myArray[ 1 ]; var n : Number = Number( o ); Arrays can hold any object. Because of this, when you get an element out of an Array, it is returned to you as an Object regardless of its actual type. Casting tells the compiler that you, the programmer, know that the returned Object is actually some other type. In the example above, I can successfully cast Objects to String and Number. The compiler will generate an error if the class of the object being cast is not a super-class of the class your casting it to. Since String and Number both derive from Object, the examples above work. But this would generate a compiler error: var b : VBox = new VBox(); var s : String = String( b ); because String does not derive from VBox. Casting can generate runtime errors as well. The compiler can only check static type information. If the actual type of the object being cast does not derive from the type it's being cast to, you will get a run-time error. For example: Var s : String = String( myArray[ 1 ] ); Because the element at position 1 in the array is a Number, and because Number does not derive from String, this command will generate a run-time error. (This might actually not generate an error -- I haven't tried it -- but only because there's some voodoo going on behind the scenes that coerces between unrelated types.) This is a very round-about way of saying that I think the Cairngorm example is wrong. There is no need to cast model.loginVO to LoginVO before accessing the username property. In the ViewLocator class, the loginVO property is typed as LoginVO, so no casting is necessary. It's runtime type matches its static type. Tobias. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Suresh Akula Sent: Tuesday, April 25, 2006 2:05 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex 2 B 2 + Cairngorm 2 - Simple Question LoginVO is user defined object and where as Date is System defined object, no need to type the these objects. --Suresh --- Darren Houle [EMAIL PROTECTED] wrote: But when? Why? In every case? If that was a generic, universal rule and you're supposed to cast everything as it's original object type then a little further in the line we should see: ' at ' + Date(model.loginDate) } / I'm just curious why the LoginVO is cast here. Is there some rule like you don't have to cast an object when simply accessing an attribute of that object, but you do have to cast an object if it contains other objects with an attributes you need to access. That sounds kinda silly to me, that's why I'm asking :-) Thanks! Darren From: Suresh Akula [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex 2 B 2 + Cairngorm 2 - Simple Question Date: Tue, 25 Apr 2006 12:59:59 -0700 (PDT) Hello Darren, its good partice to typecast with orginal object and invoke the object members. --Suresh Akula. --- Darren Houle [EMAIL PROTECTED] wrote: I'm fairly new to Flex and really new to Cairngorm and am trying to break Cg2 down and understand it (I'm not trying to understand Cg.99 and then learn Cg2, I'm just jumping into 2.) I have a quick question: In the Cg2 sample CairngormLogin.mxml theres a Label in the loggedIn VBox... mx:Label text={ 'Logged in as ' + LoginVO( model.loginVO ).username + ' at ' + model.loginDate } / This seems to still work fine when changed to... mx:Label text={ 'Logged in as ' + model.loginVO.username + ' at ' + model.loginDate } / Is there some reason why the first form must be used over of the second form? If I were writing this code myself from scratch it would seem more intuitive to bind directly to the model.loginVO.username. Am I missing something? Thanks, Darren __ Do You Yahoo!? Tired of
RE: [flexcoders] Re: Looping output
Use percentWidth and percentHeight instead -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Tuesday, April 25, 2006 3:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Looping output Well tracy, it is assinging the id perfectly fine. But when I try to set the canvas width or height to 100% I get this error. Implicit coercion of a value of type 'String' to an unrelated type When I try to set it to 100% with out the '' I get this error. Expecting primary _expression_ before semicolon for ( var i:Number=0;iresult.length;i++){ var newLabel:Label = new Label(); newLabel.text = 'TEST'; newLabel.x = 10; newLabel.y = 300; parentApplication.closing.mainBox.addChild(newLabel); var newCanvas:Canvas = new Canvas(); newCanvas.id = 'canvas' + i; newCanvas.width = '100%'; newCanvas.height = '100%'; parentApplication.closing.mainBox.addChild(newCanvas); } --- In flexcoders@yahoogroups.com, Jeremy Rottman [EMAIL PROTECTED] wrote: I finally got it figured out. BTw this is for F2B2 only. var newLabel:Label = new Label(); newLabel.text = 'TEST'; newLabel.x = 10; newLabel.y = 300; parentApplication.closing.mainBox.addChild(newLabel); --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: So the issue is not assigning an id, but rather that you are not able to successfully use createChild() at all? Could the problem be the reference chain? Can you do it in a sample app? Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Tuesday, April 25, 2006 5:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Looping output opps didnt fully explain my last post. I removed the for loop in my function, and tried testing with this. I am trying to create the label on the subCanvas, which is where all my display happens. And I still get nothing. var newLabel = parentApplication.closing.mainPanel.subCanvas.createChildren(mx.controls \ .Label, undefined ); newLabel.text = 'test'; newLabel.x = 10; newLabel.y = 300; --- In flexcoders@yahoogroups.com, Jeremy Rottman rottmanj@ wrote: I have tried that, and still doesnt work. I have tried testing with just this. var newLabel = parentApplication.closing.mainPanel.subCanvas.createChildren(mx.controls \ .Label, undefined ); newLabel.text = 'test'; newLabel.x = 10; newLabel.y = 300; --- In flexcoders@yahoogroups.com, Suresh Akula suresha143@ wrote: try it out this parentApplication.closing.createChild(mx.containers.Grid, undefined,{id = grid+i}); --Suresh --- Jeremy Rottman rottmanj@ wrote: Well I tried what you said Suresh, and it is still a no go. Here is my updated code. for ( var i:Number=0;iresult.length;i++){ var newGrid = parentApplication.closing.createChild(mx.containers.Grid, undefined); newGrid.id = grid + i; newGrid.x = 10; newGrid.y = parentApplication.closing.mainGrid.y + 20; newGrid.width = '90%'; var newGridRow = parentApplication.closing.newGrid.createChild(mx.containers.GridRow, undefined); newGridRow.id = gridRow + i; var newGridItem = parentApplication.closing.newGrid.newGridRow.createChild(mx.containers.G \ \ ridItem, undefined); newGridItem.width = 445; newGridItem.id = gridItem + i; var newCanvas = parentApplication.closing.newGrid.newGridRow.newGridItem.createChild(mx. \ \ containers.Canvas); newCanvas.width ='100%'; newCanvas.heigth ='100%'; newCanvas.id = canvas + i; var newLabel =parentApplication.closing.newGrid.newGridRow.newGridItem.newCanvas.crea \ \ teChild(mx.controls.Label, undefined); newLabel.id = name + i; newLabel.text = TEST; } --- In flexcoders@yahoogroups.com, Suresh Akula suresha143@ wrote: Hello Rottman, You already created the newGrid and assigned a dynamic id to that. Why can't you use the same intance variable name in the rest of the code. i.e. var newGridRow = parentApplication.closing.newGrid.createChild(mx.containers.GridRow, undefined); --Suresh Akula. --- Jeremy Rottman rottmanj@ wrote: I am still working on this. And I have run into an issue. When I create a child, I need to give that child a unique id. I tried 'grid' i to make it unique, but that doesnt work. Here is hte code I am trying for ( var i:Number=0;iresult.length;i++){ var newGrid =
RE: [flexcoders] Eclipse Plugin for Flex 1.5?
I use ASDT for the AS code, WTP/WST for editing the MXML files (using the mxml.xsd for the schema) and I use the mxml c as the project compiler from Eclipse. Its great being able to finally do all of my Java/JSP/AS/MXML/XML/PHP/HTML development in one IDE. Eclipse is allowing me to dump several other tools that I can now do with Eclipse. Its not quite as sleek as FB2 (of course) but it works fairly well. Darron's blog has the details of how to do it - nice job Darron! Simon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: 26 April 2006 00:42 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Eclipse Plugin for Flex 1.5? Try Flashout for your GUI: http://www.osflash.org/flashout ASDT for your AS: http://www.osflash.org/asdt MTASC for your compiler: http://www.osflash.org/mtasc You can use Oxygen for XML I think. Darron's got more info here: http://www.darronschall.com/weblog/archives/000182.cfm - Original Message - From: Dmitry Miller [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, April 25, 2006 7:20 PM Subject: [flexcoders] Eclipse Plugin for Flex 1.5? Gentlemen, Forgive my possibly naive question. But is there an Eclipse plugin for Flex 1.5 and AS 2? And if not, would I be able to use the plugin for Flex 2.0 for development in Flex 1.5 and AS2? Cheers, Dmitry -- 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 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.