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. MykolaOn 4/23/06, Matt Chotin [EMAIL PROTECTED] wrote: I see, the same problem exists in 2.0 I guess too (though I've asked internally about it to make sure). Only thing I can recommend is you try to centralize your entry points. If you use a framework like Cairngorm you can do that in the framework by catching errors in the broadcaster or some main method that triggers your service handlers. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Stanislav Zayarsky Sent: Sunday, April 23, 2006 3:45 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Uncaught exceptions in Flex 1.5 Matt, we are using 3rd party libraries like AS2lib, and it throws exceptions. And also we starting to throw exceptions from our custom classes too. Best regards Stanislav On 4/23/06, Matt Chotin [EMAIL PROTECTED] wrote: In 1.5 we don't throw exceptions as a practice, I'm not sure what you'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: [flexcoders] Uncaught exceptions in Flex 1.5 Hello FlexCoders, I have the same problem! Adobe guys, can you help us? Best regards Stanislav On 4/21/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: Hi All! How to deal with uncaught exceptions in Flex 1.5? Actually they kill application running via terminating the current script. Due to the fact Flex application has a lot of entry points (each and every event handling delegate), I need either put try..catch..finally statements in each and every function assigned as an event handler that is wrong copy and paste method or create own Delegate class that is much more better by design. But on the other hand using the second approach force me not to assign event handlers in MXML (like mx:Button click=onClick()). Instead we need to assign those handlers in linked ActionScript class. It's very difficult when you deal with complex nested structures, repeaters, ViewStack, Accordion and their successors. Any suggestions? Thank you in advance. Regards, Sergey. -- 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 -- 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. -- WBR, Mykola -- 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 - 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 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: Drag Drop conundrum... BUG?
Hi Martin, Did you see my previous reply? I've pasted it below. Thanks, Paul Previous reply: === Hi Martin, Can you post your code? Another guess: Are you using an Array or an ArrayCollection as your dataprovider? My understanding is that you must use an ArrayCollection if you want updates to propagate to the control, see below for more: http://livedocs.macromedia.com/flex/20beta1/docs/wwhelp/wwhimpl/common/h tml/wwhelp.htm?context=LiveDocs_Partsfile=2088.html Paul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flexabledev Sent: Sunday, April 23, 2006 10:23 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Drag Drop conundrum... BUG? I am still having a problem. This looks like it might be a bug? Once I set dropEnabled to false, I can see (while debugging) that the contents of the Array after the Drop were Correct, i.e. no [object Object] items in the List. So far so good... BUT!!! Once it is set to false the List does not reflect the contents of the Array (it's dataProvider) after the Drop. I tested this in two ways: 1. I Initialized the [Bindable] Array to contain values before the Drop. They show up in the List as expected but when I Drop an item nothing changes! In debug mode, though, the Array contains both the initialized values and the drop items. 2. When I set dropEnabled back to true, the drop items show up in the list, but so does the default [object Object] for each drop item. This now looks like a bug to me, that somehow the list control does not get notified of change to the dataProvider. To test this, I added a button that manually adds a value to the Array and the List still does not reflect the change to it's dataProvider. Any Ideas? Thanks... Martin --- In flexcoders@yahoogroups.com, Paul Williams paulw@ wrote: Just a guess, but one possibility is that your list's default drop behaviour is switched on, i.e. on the list control, dropEnabled=true. This could cause the item to be added twice, once by your event handler and once by the default drop behaviour. Paul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flexabledev Sent: Saturday, April 22, 2006 9:38 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Drag Drop conundrum... I've started to experiment with Drag Drop and have run into a problem I can't figure out. I have successfully written code that allows me to Drag rows from a DataGrid (with a custom Drag Proxy) and Drop the value of one of the columns into a List. The only thing I don't understand is why when I do a Drag Drop, I always get two entries in the List for each of the rows that were dragged. If I drag two rows with String values that get dropped (i.e. ONE, TWO), the result in the List after the Drop looks like: [object Object] [object Object] ONE TWO When I debug it, the value of items.length equals 2 which drives a For loop with IList(dropTarget.dataProvider).addItem(items[i].field); As I step through the doDragDrop function in debug mode, it only executes the loop twice, yet I end up with four entries in the List? Any ideas? I can't figure it out, but it feels like there is some default behaviour (dropping the items Object separate from my addItem) occuring that I don't see when I step through it in debug mode? -- 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.
[flexcoders] Resultformat in mx.rpc.soap.WebService
Hi, Im using the webservice class and having difficulties setting the result as the datasource for my treecontrol (it stays 2-dimensional and it doesnt create the child nodes, since the data is all in object/array format). So Im trying to use the e4x format to see if this would help. How can I add this using the mx.rpc.soap.WebService class? resultFormat is not a valid property Thanks 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.
RE: [flexcoders] New to Flex, couple of questions
Ive checked through the block and found 3 Ant build files, but none of them mention the Flex compiler anywhere (compc.exe), not sure if this is helpful. Thanks anyway for the link! Sascha From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of JB Sent: Friday, 21. April, 2006 23:04 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] New to Flex, couple of questions Importance: High Hi, Check out Simeon Bateman site http://www.simb.net/blog/ -- 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] New to Flex, couple of questions
Hi Tracy, An example would be great if you got any. Even if it's in 1.5 I think it will be helpful to understand how AS and Flex works together. Thanks, Sascha -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Saturday, 22. April, 2006 02:34 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] New to Flex, couple of questions I am not doing 2.0 yet, but in 1.5 you can put your AS code in a class file, and then either instantiate it in a tag, or make the class methods static, import it and then use the static methods. I have a simple example in 1.5 if you want to see it. Tracy -- 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 2.0 Remote Objects over SecureAMFChannel (HTTPS) in Apache or IIS
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 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] set print option
Dear All, is that i can set the default PrintJob.orientation before the printing start? 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] sandbox issue
hello, I have simple mxml file in which I am importing a swf publish in flash8 I can see the output in flex builder in design mode also get successful compilation result when I compile it by mxmlc command line complier but when I open a sand alone swf i get a dialogue box with these error : SecurityError: Error #2047: Security sandbox violation: 'content': 'file:///D|/flexPractice/flextry.swf' may not access 'file:///D|/flexPractice/verticalbar.swf'. at mx.controls::Loader/get Loader$404 $private::contentHolderWidth() at mx.controls::Loader/Loader$404$private::contentLoaded() at mx.controls::Loader/completeEventHandler() at mx.controls::Image/completeEventHandler() Please help Thanks in advance 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.
[flexcoders] 6 Urgent Flex openings in Hyderabad, India
Hi Friends, This is Rakesh Reddy from hyderabad. I am working as a Senior Software Engineer in Kanbay Software India Pvt.Ltd. A well known MNC which has more than 5000 employees all over the globe. We have urgent openings for Flex Developers. Requirement as follows.. Positions: 6 Location : Hyderabad, India Exp: 3-5 years Technologies: Flex 1.5, Coldfusion, Java would be added advantage. Please send your resumes to my mail ID. I will forward to my concern department. Please mention Flex Resume in subject line. My mail ID : [EMAIL PROTECTED] Regards, Rakesh Reddy Kanbay, Hyderabad. Mobile: +91 - 9949661252 -- 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] sandbox issue
hello, I have simple mxml file in which I am importing a swf publish in flash8 I can see the output in flex builder in design mode also get successful compilation result when I compile it by mxmlc command line complier but when I open a sand alone swf i get a dialogue box with these error : SecurityError: Error #2047: Security sandbox violation: 'content': 'file:///D|/flexPractice/flextry.swf' may not access 'file:///D|/flexPractice/verticalbar.swf'. at mx.controls::Loader/get Loader$404 $private::contentHolderWidth() at mx.controls::Loader/Loader$404$private::contentLoaded() at mx.controls::Loader/completeEventHandler() at mx.controls::Image/completeEventHandler() Please help Thanks in advance 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.
AW: [flexcoders] Re: update Datagrid but stay in edit mode (Flex 1.5)
Ok, I use the dataProvider API method editField to update the values. Now I don't have to reassign the dataProvider and the focus is still on one of the cells. So far so good But the fields, even the one I just edited, stay empty. I use labelFunctions on the fields to format the numbers When I use the labelFunction function lblFuncNumber(item:Object, colName:String, dec:Number):String { return Str.formatNumber(item[colName], dec); } static function formatNumber(value:Object, dec:Number):String { var f:NumberFormatter = new mx.formatters.NumberFormatter(); f.precision = dec; // Nachkommastellen f.thousandsSeparatorTo = '; return f.format(value); } the fields are empty but when just I use function lblFuncNumber(item:Object, colName:String, dec:Number):String { return item[colName]; } the numbers show up in the cell. Can someone help me? Thomas vertical ag Leutschenbachstrasse 48 8050 Zürich-Oerlikon +41 43 299 77 27 -Ursprüngliche Nachricht- Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von Tracy Spratt Gesendet: Freitag, 21. April 2006 19:26 An: flexcoders@yahoogroups.com Betreff: RE: [flexcoders] Re: update Datagrid but stay in edit mode (Flex 1.5) Also, how are you updating the dataProvider? You should be using the dataProvider API, and not the low level array methods. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bhaq1972 Sent: Friday, April 21, 2006 3:55 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: update Datagrid but stay in edit mode (Flex 1.5) if you want to set focus on an editable cell, just use focusedCell property. eg dg.focusedCell = {itemIndex:1, columnIndex:1} --- In flexcoders@yahoogroups.com, Thomas Ott [EMAIL PROTECTED] wrote: Hi everyone I have a Datagrid with editable cells. Pressing tab or enter key while editing a Cell, calls the function updateTotal which calculates other non-editable fields in the grid and updates the dataProvider. The problem is now, that the non-editable values dont show up in the grid, although there present in the dataProvider dg.invalidate() never worked. reassigning the dataprovider or using editField made the values show up, but the cell lost focus How can I update the cells with the celleditor staying active? 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 -- 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: Help with Effect on Panel...
I just figured out why it was not working as expected... To test it out I had Labels as children of each Panel, which means that they were text and as such would not work with the Fade (according to the docs) unless they were embedded. I switched the effect to a Dissolve and everything worked! --- In flexcoders@yahoogroups.com, flexabledev [EMAIL PROTECTED] wrote: I am trying to create an Fade effect on each Panel in a ViewStack, that takes place when I change the viewStack.selectedIndex value. I have something similar to this: mx:ViewStack id=vStack... mx:Panel child . . . /mx:Panel mx:Panel child . . . /mx:Panel . . . /mx:ViewStack I would like the entire Panel (including all it's children) to Fade in when the viewStack.selectedIndex value is changed. What would the best way be to accomplish this? -- 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: Embedding the fonts of a Tab Label.
Thanx for the reply, I'll be using icons and not text labels. --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Have you made sure the font is truly embedded, using one of the techniques mentioned in the docs? E.g., http://livedocs.macromedia.com/labs/1/flex20beta2/1052.html -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of leo4beer Sent: Sunday, April 23, 2006 6:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Embedding the fonts of a Tab Label... Embedding the fonts of a Tab Label... Hi, I'm extending the TabBar class in order to make a vertical tab bar... When I rotate a tab the fonts must be embedded otherwise they will not appear. Currently my main problem is embedding the fonts. I've tried embedding the font in various ways: //child is a tab, I'm referring to it in a loop when overdding the base class layoutChildren() method child.labelPath.labelField.embedFonts = true; //or child.labelPath.setStyle(embedFonts, true); both methods did not work and I'm unable to view the text... Any ideas? 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 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: Flex2 ButtonBar; Can its buttons be individually enabled or disabled?
Mike, thanks for the reply. I made a couple of attempts at casting to a button but I must be missing something. Here is a simple example of what I'm talking about. If any row is selected in dg, then all buttons except button A should be disabled. What do I need to do to make this happen? Thanks, Bill... ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* layout=vertical mx:Script ![CDATA[ import mx.events.ItemClickEvent; import mx.events.ListEvent; private function btnbarEvent(event:ItemClickEvent):void{ ta.text=btnbar selected index is +event.index.toString(); } private function dgEvent(event:ListEvent):void{ ta.text=dg selected index is +event.rowIndex.toString(); } ]] /mx:Script mx:DataGrid id=dg itemClick=dgEvent(event) mx:dataProvider mx:ArrayCollection mx:source mx:Object item=Something descr=Some thing/ mx:Object item=Nothing descr=No thing/ /mx:source /mx:ArrayCollection /mx:dataProvider /mx:DataGrid mx:ButtonBar id=btnbar itemClick=btnbarEvent(event) mx:dataProvider mx:Array mx:StringA/mx:String mx:StringB/mx:String mx:StringC/mx:String mx:StringD/mx:String /mx:Array /mx:dataProvider /mx:ButtonBar mx:TextArea id=ta width=200 height=100/ /mx:Application --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: Hi, Did you cast the returned button instance to Button? var child:Button = getChildAt(buttonIndex) as Button; Peace, Mike On 4/20/06, wlbagent [EMAIL PROTECTED] wrote: I know this can be done using individual buttons but can the individual buttons in a ButtonBar component (not the whole ButtonBar) be enabled or disabled? For example. You have a ButtonBar with 4 buttons labeled A,B,C,and D. You want button A to always be enabled but the remaining buttons would be enabled or disabled based on some other condition. You might have a DataGrid and want B,C,and D enabled if a row is selected, otherwise they are disabled. This should be a fairly easy thing to do if its actually possible. I can reference the individual buttons but there doesn't seem to be an enabled property for them. What have I missed?? Any ideas??? -- 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 developmenthttp://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software developmenthttp://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and developmenthttp://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flexhttp://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practicehttp://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw -- YAHOO! GROUPS LINKS - Visit your group flexcodershttp://groups.yahoo.com/group/flexcoders on the web. - To unsubscribe from this group, send an email to: [EMAIL PROTECTED][EMAIL PROTECTED] - Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/. -- -- What goes up, does come down. -- 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
RE: [flexcoders] New to Flex, couple of questions
Hi - and welcome to Flex :) MXML files get turned into AS prior compilation and you can do pretty anything either in MXML or AS. A typical usecase is to setup a Controller inside your main Application file. This can be done either in a Script block or by tag syntax as Tracy suggested. Below are two examples - email code, but you should get the idea :) 1) Script style mx:Application creationComplete=initApp() mx:Script import foo.bar.Controller; private var controller:Controller; private function initApp():void { controller = new Controller(); controller.init(this); } /mx:Script /mx:Application 2) Tag style mx:Application creationComplete=controller.init(this) Controller id=controller xmlns=foo.bar.* / /mx:Application // Controller.as package foo.bar { import mx.core.Application; public class Controller { public function init(application:Application) { // whatever... } } } Concerning ANT and the command line compilers: mxmlc is used to compile applications (SWF files), compc is used to compile component libraries (SWC files) so you should look out for ANT scripts that use mxmlc and not compc :) In addition, you might want to check what Mike Chambers blogged recently: http://weblogs.macromedia.com/mesh/archives/2006/04/flex_2_actionsc_1.cf m Dirk. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sascha Balkau Sent: Monday, April 24, 2006 6:36 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] New to Flex, couple of questions Hi Tracy, An example would be great if you got any. Even if it's in 1.5 I think it will be helpful to understand how AS and Flex works together. Thanks, Sascha -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Saturday, 22. April, 2006 02:34 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] New to Flex, couple of questions I am not doing 2.0 yet, but in 1.5 you can put your AS code in a class file, and then either instantiate it in a tag, or make the class methods static, import it and then use the static methods. I have a simple example in 1.5 if you want to see it. Tracy -- 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: Flex2 ButtonBar; Can its buttons be individually enabled or disabled?
You need to import the Button class, and then you can try something like this: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* layout=vertical mx:Script ![CDATA[ import mx.events.ItemClickEvent; import mx.events.ListEvent; // Add this import import mx.controls.Button; private function btnbarEvent(event:ItemClickEvent):void{ ta.text=btnbar selected index is +event.index.toString(); } private function dgEvent(event:ListEvent):void{ ta.text=dg selected index is +event.rowIndex.toString(); var childA:Button= btnbar.getChildAt(0) as Button; var childB:Button= btnbar.getChildAt(1) as Button; var childC:Button= btnbar.getChildAt(2) as Button; var childD:Button= btnbar.getChildAt(3) as Button; childB.enabled=false; childC.enabled=false; childD.enabled=false; } ]] /mx:Script mx:DataGrid id=dg itemClick=dgEvent(event) mx:dataProvider mx:ArrayCollection mx:source mx:Object item=Something descr=Some thing/ mx:Object item=Nothing descr=No thing/ /mx:source /mx:ArrayCollection /mx:dataProvider /mx:DataGrid mx:ButtonBar id=btnbar itemClick=btnbarEvent(event) mx:dataProvider mx:Array mx:StringA/mx:String mx:StringB/mx:String mx:StringC/mx:String mx:StringD/mx:String /mx:Array /mx:dataProvider /mx:ButtonBar mx:TextArea id=ta width=200 height=100/ /mx:Application |-+- | | | | | wlbagent | | | [EMAIL PROTECTED] | | | Sent by: | | | flexcoders@yahoogroups.com | | | 04/24/2006 09:07 AM | | | Please respond to | | | flexcoders | | | | |-+- -| | | | To: flexcoders@yahoogroups.com | | cc: | | Subject: [flexcoders] Re: Flex2 ButtonBar; Can its buttons be individually enabled or disabled? | -| Mike, thanks for the reply. I made a couple of attempts at casting to a button but I must be missing something. Here is a simple example of what I'm talking about. If any row is selected in dg, then all buttons except button A should be disabled. What do I need to do to make this happen? Thanks, Bill... ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* layout=vertical mx:Script ![CDATA[ import mx.events.ItemClickEvent; import mx.events.ListEvent; private function btnbarEvent(event:ItemClickEvent):void{ ta.text=btnbar selected index is +event.index.toString(); } private function dgEvent(event:ListEvent):void{ ta.text=dg selected index is +event.rowIndex.toString(); } ]] /mx:Script mx:DataGrid id=dg itemClick=dgEvent(event) mx:dataProvider mx:ArrayCollection mx:source mx:Object item=Something descr=Some thing/ mx:Object item=Nothing descr=No thing/ /mx:source /mx:ArrayCollection /mx:dataProvider /mx:DataGrid mx:ButtonBar id=btnbar itemClick=btnbarEvent(event) mx:dataProvider mx:Array mx:StringA/mx:String mx:StringB/mx:String mx:StringC/mx:String mx:StringD/mx:String /mx:Array /mx:dataProvider /mx:ButtonBar mx:TextArea id=ta width=200 height=100/ /mx:Application --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: Hi, Did you cast the returned button instance to Button? var child:Button = getChildAt(buttonIndex) as Button; Peace, Mike On 4/20/06, wlbagent [EMAIL PROTECTED] wrote: I know this can be done using individual buttons but can the individual buttons in a ButtonBar component (not the whole ButtonBar) be enabled or disabled? For example. You have a ButtonBar with 4 buttons labeled A,B,C,and D. You want button A to always be enabled but the remaining buttons would be enabled or disabled based on some other condition. You might have a DataGrid and want B,C,and D enabled if a row is selected, otherwise they are disabled. This should be a fairly easy thing to do if its actually possible. I can reference the individual buttons but there doesn't seem to be an enabled property for them. What have I missed?? Any ideas??? -- 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 http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development
[flexcoders] Attaching component dynamically
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] Caurngorm 2 - where to deal with system events?
I've been using Cairngorm in Flex 1.5, haven't used C2 in Flex 2 yet, thanks for the link! In that case, yep, have to do what Alex suggested. As far as maintainable code, you can extend a Cairngorm Event class (or you own), and attach a callback function to it. Your Command classes can then call this function when they are done. This will allow the View who dispatched the command to know when it's done, and immediately call another one, etc. - Original Message - From: Andrea Varga [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, April 23, 2006 1:35 PM Subject: Re: [flexcoders] Caurngorm 2 - where to deal with system events? I have read that using EventBroadcaster is deprecated in Cairngorm 2, instead the built in dispatchEvent() should be used: http://weblogs.macromedia.com/swebster/archives/2006/02/index.cfm OT - My messages appear with several hours delay on the list. Does anyone know why? Andi JesterXL wrote: You don't need that if you are using Cairngorm's EventBroadcaster; it has nothing to do with DisplayObjects. Simply do what Alex suggested in the result of your Command, do: EventBroadcaster.getInstance().broadcastEvent ( Event.YOUR_EVENT, {param: value}); - Original Message - From: Alex Uhlmann [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, April 23, 2006 12:03 PM Subject: RE: [flexcoders] Caurngorm 2 - where to deal with system events? Hi Andi, You can certainly call another Command in the onResult of your LoginCommand. But since a Command class in not on the display list, events wouldn't make it to Cairngorm's FrontController. You have to use mx.core.Application.application.dispatchEvent. Darron Schall has a nice explanation of it here: http://www.darronschall.com/weblog/archives/000224.cfm Best, Alex Alex Uhlmann Consultant (Rich Internet Applications) Adobe Consulting Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK p: +44 (0) 131 338 6969 m: +44 (0) 7917 428 951 [EMAIL PROTECTED] -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andrea Varga Sent: 23 April 2006 11:15 To: flexcoders@yahoogroups.com Subject: [flexcoders] Caurngorm 2 - where to deal with system events? Hi All! I have to mention that I'm new to Cairngorm and Flex. What is best practice to deal with system events (or whatever the events that are not dispatched by a user gesture are called)? For example: after a successful user login I have to display a list of products (list loded from the server). So, I have a login form in a component: Login.mxml, where I have a dispatch for the LoginEvent = the LoginCommand takes care of it... (goes to server etc.), the onResult method in the LoginCommand is called. If the login was successful, I set the ModelLocator.applicationState to the new state, the view is binded to that, so now I have the correct view (with a datagrid for example), and now I need the list of the products. But for that, I need the list of the products = the ProductListGetCommand must be executed which means, that somebody has to dispatch an event for that, but there is no user gesture here. Where should I place the code for dispathing the event? Or, is my whole logic correct? My only idea here is to place it in LoginCommand.onResult? I have tried that: var tmpEvent:ProductListGetEvent = new ProductListGetEvent(); dispatchEvent( tmpEvent ); I got the error: Call to a possibly undefined method 'dispatchEvent' That's why I think this might not be the right place. I'm using Cairngorm 2.0 Flex 2.0 and AMFPHP , but I think this is not reallt relevant here. 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 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 -- 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] Uncaught exceptions in Flex 1.5
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:[EMAIL PROTECTED] 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: [flexcoders] Uncaught exceptions in Flex 1.5 Hello FlexCoders, I have the same problem! Adobe guys, can you help us? Best regards Stanislav On 4/21/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: Hi All! How to deal with uncaught exceptions in Flex 1.5? Actually they kill application running via terminating the current script. Due to the fact Flex application has a lot of "entry points" (eachand every event handling delegate), I need either put try..catch..finally statements in each and every function assigned as an event handler that iswrong copy and paste method or create own Delegate class that is much morebetter by design. But on the other hand using the second approach force me not toassign event handlers in MXML (like mx:Button click="onClick()"). Instead weneed to assign those handlers in linked ActionScript class. It's very difficult when you deal with complex nested structures, repeaters, ViewStack, Accordion and their successors. Any suggestions? Thank you in advance. Regards, Sergey. -- 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] page change not work when loaded(FB2 beta2 + ColdFusion)
hi flexcoders; The idea is I have a container swf, a list swf and an add swf. When container swf is running, it first loads the list swf and displays some buttons like add. The list swf displays data in several pages and you can change the page with a horizontal slide. When add button is clicked, the add swf is loaded and displayed with some buttons like cancel, submit and clear. And in add swf, when cancel button is clicked, the container swf should display the list swf with its current state. It's really disturbing me because when list swf runs as a single swf, page changing works ok, but when it's running as a loaded swf by container swf, page changing gave me the following two errors: TypeError: Error #1034: Type Coercion failed: cannot convert mx.messaging.messages::[EMAIL PROTECTED] to mx.messaging.messages.Message TypeError: Error #1034: Type Coercion failed: cannot convert mx.messaging.messages::[EMAIL PROTECTED] to mx.messaging.messages.Message I guess I must have missed something but I tried with no luck. And I just couldn't figure out why the errors only occured when loaded. Any help would be appreciated. -xd List.mxml ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* layout=absolute creationComplete=InitApp() mx:Script source=List.as/ mx:Panel title=List width=95% mx:DataGrid id=dg dataProvider={svc.getList.result} width=100% rowCount=2 mx:columns mx:DataGridColumn headerText=Name dataField=apm_name/ mx:DataGridColumn headerText=Description dataField=apm_desc/ /mx:columns /mx:DataGrid mx:HBox width=100% mx:Spacer width=25%/ mx:HSlider id=hsldPageNo width=50% minimum=1 maximum={svc.getPageCounts.result} tickInterval=1 snapInterval=1 dataTipPlacement=bottom dataTipFormatFunction=pageToolTipFunc change=pageChange(event);/ mx:Spacer width=25%/ /mx:HBox /mx:Panel mx:RemoteObject id=svc destination=ColdFusion source=cf.ap/ /mx:Application List.as import mx.events.SliderEvent; public function InitApp():void { getInfo(0); } public function getInfo(nPageNo:int):void { svc.getList(nPageNo); svc.getPageCounts(); } private function pageChange(event:SliderEvent):void { getInfo(event.currentTarget.value - 1); } private function pageToolTipFunc(val:String):String { return page + int(val); } Add.mxml ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* layout=absolute mx:Script source=Add.as/ mx:Panel title=AddForm width=95% mx:Form width=100% mx:FormItem label=Name required=true mx:TextInput id=txtiName/ /mx:FormItem mx:FormItem label=Description mx:TextInput id=txtiDesc/ /mx:FormItem mx:HBox width=100% mx:Button label=Cancel click=cancelAction();/ mx:Spacer width=100%/ mx:Button label=Reset click=clearAction();/ mx:Button label=Submit click=addAction();/ /mx:HBox /mx:Form /mx:Panel /mx:Application Add.as public function addAction():void { clearForm(); if(this.automationParent) { var obj:Object = Object(this).automationParent.parentApplication; obj.afterAdd(addok); } } public function cancelAction():void { clearForm(); if(this.automationParent) { var obj:Object = Object(this).automationParent.parentApplication; obj.afterAdd(cancel); } } public function clearAction():void { clearForm(); } public function clearForm():void { txtiName.text = ; txtiDesc.text = ; } Container.mxml ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* layout=absolute backgroundColor=#FF mx:Script source=Container.as/ mx:VBox width=95% height=95% horizontalAlign=center mx:ViewStack id=vstk width=100% height=100% change=changeDisplay(event); mx:Panel id=cnvList label=List width=100% height=100% mx:Button label=Add click=toAddForm();/ mx:Loader id=ldrList width=100% height=100% source=List.swf/ /mx:Panel mx:Panel id=cnvAdd label=Add width=100% height=100% mx:Loader id=ldrAdd width=100% height=100% source=Add.swf/ /mx:Panel /mx:ViewStack /mx:VBox /mx:Application Container.as import mx.events.IndexChangedEvent; public function toList():void { vstk.selectedIndex = 0; } public function toAddForm():void { vstk.selectedIndex = 1; } public function afterAdd(status:String):void { if(status == addok) toList(); if(status == cancel) toList(); } public function changeDisplay(e:IndexChangedEvent):void { // if(e.currentTarget.selectedIndex == 0) // e.currentTarget.selectedChild.getChildByName(ldrList).load(); } ap.cfc cfcomponent cfset nCountsPerPage = 1 cffunction name=getList returntype=query access=remote output=false cfargument name=nPageNo type=numeric default=0 cfset nSkipCounts = nPageNo * nCountsPerPage cfscript myQuery = QueryNew(apm_id, apm_name, apm_desc); for(iRow = nSkipCounts + 1; iRow LE min(3, nSkipCounts + nCountsPerPage); iRow = IncrementValue(iRow)) { QueryAddRow(myQuery); QuerySetCell(myQuery, apm_id, id iRow);
RE: [flexcoders] Flex2B2: JAVA to AS object serialization issue
PeterMatt, declaring the variable in the AS file fixed the JAVA to AS mapping.Thanks a lot. ValyPeter Farland [EMAIL PROTECTED] wrote: Valy, the only bug I know of in this area for Beta 2 has to do with AMF 0. If you're not changing the objectEncoding of the underlying NetConnection to ObjectEncoding.AMF0 then it's likely that you either have registered the wrong alias for the type or you simply don't have the class linked in to the SWF, as Matt suggested. The debug trace output of your AMF response has the typed Object name as org.ifm.model.TlcPhoneNumber but this is not what you've registered as the class alias in the [RemoteClass] metadata [RemoteClass(alias="org.ifm.model.PhoneNumber")] even though the Java code you pasted below has this as its classname. Are you returning the wrong type from your Java service at runtime? Note that it can not be an implementation of an interface in order for a server type to be matched to a client type the client type alias must match the concrete implementation's class name. Also, rather than relying on rumor of fixes for beta 3, can you please try to add the following in one of your MXML script blocks to see if it fixes the issue Matt describes? import org.ifm.model.PhoneNumber; private var dep:PhoneNumber; Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice. -- 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] F2B2: Deploying sample apps
history manager did the trick! =)Thanks, Matt.-TomOn 4/22/06, Matt Chotin [EMAIL PROTECTED] wrote: Hmm, could be a problem with the HistoryManager, I know we've made some changes there. You can disable the history manager maybe and see how it goes without. From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Tom Ortega Sent: Tuesday, April 18, 2006 8:21 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] F2B2: Deploying sample apps Here's the error I've seen internally, with the site name and domain removed to protect the innocent. =) Error #2044: Unhandled SecurityErrorEvent: text=Error #2047: Security sandbox violation: 'LocalConnection.send ': 'corp.domain.com' may not access 'http://site.corp.domain.com/somedir/wgc.swf'. On 4/17/06, Matt Chotin [EMAIL PROTECTED] wrote: What are the errors you see? There shouldn't be much of a trick, I posted those samples to our hosted site without changing any settings. From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com] On Behalf Of Tom Ortega Sent: Monday, April 17, 2006 8:53 AM To: flexcoders Subject: [flexcoders] F2B2: Deploying sample apps Is there any tricks to deploying FlexBuilder2 Beta2 apps? I've deployed some internally, and I get an error message popup when I deploy the htmal and swf files from the bin directory to an internal web server and try to browse it. I was thinking of putting up some sample stuff in the coming weeks on a personal web server, but will that not work? Most of the examples I see on the web run off the same labs server, so I'm guessing we can't just post our own examples on the web? Hopefully someone can correct me and prove me wrong! =) Thanks, Tom -- 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 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 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: Possible to invoke Flex2b2 compiler as a Java class?
Dave, thanks for your help! What you said makes sense, but unfortunately I'm still having trouble with it. Here's my ColdFusion code: cfscript MXMLc = URLClassLoader.LoadJarClass(C:\Program Files\Adobe\Flex Framework 2\lib\mxmlc.jar, flex2.tools.Compiler); Args = '-flexlib C:\Program Files\Adobe\Flex Framework 2\frameworks\ C:\inetpub\builder\mxml\test1.mxml; MXMLc.main(JavaCast(String, Args)); /cfscript I *think* this follows what you suggested. When I try to run this, I get the following error message: The selected method main was not found. Either there are no methods with the specified method name and argument types, or the method main is overloaded with arguments types that ColdFusion can't decipher reliably. If this is a Java object and you verified that the method exists, you may need to use the javacast function to reduce ambiguity. So... any more tips? BTW I do know that I'm initializing the class properly; if I pass MXMLc to the CFDUMP tag, I see the following: object of flex2.tools.Compiler Methods: main (returns void) hashCode (returns int) getClass (returns java.lang.Class) wait (returns void) wait (returns void) wait (returns void) equals (returns boolean) notify (returns void) notifyAll (returns void) toString (returns java.lang.String) FILE_SPECS: file-specs Thanks! Avi --- In flexcoders@yahoogroups.com, Dave Wolf [EMAIL PROTECTED] wrote: In any Java JAR there can be a main-class which is the class called when no classname is specified. That main-class will also have a main() method which si the default entry point of the class. That method has the following signature public static void main(String[] args); Where the String[] are the command line arguments. Call the main() method passing in whatever command line arguments there would be as the String[]. -- Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, Avi Flax avif@ wrote: I'd like to invoke the Flex2b2 compiler from ColdFusion using the Java class, if possible. I looked at the file MANIFEST.MF in mxmlc.jar, and saw: Main-Class: flex2.tools.Compiler So, I tried this in CF: Application.com.MXMLc = Application.com.URLClassLoader.LoadJarClass(CompilerPath, flex2.tools.Compiler); That works, and I can CFDUMP the object to see a list of its methods and properties, but: - I can't set the property FILE_SPECS: I get an java.lang.IllegalAccessException with the message: field is final - I can't invoke the compile method. My code is: Application.com.MXMLc.compile(JavaCast(String, MxmlPath)); I get the CF message The selected method compile was not found. Can anyone shed some light on this? Is it documented anywhere? I apologize if this is silly; I'm expert with CFML but not experienced with Java interaction. I did try to just use CFEXECUTE at first, with mxmlc.exe, but had trouble with it. I've always found CFEXECUTE frustrating, so I thought I'd give this approach a try. Thanks! Avi Flax Flex Newbie Arc90, New York http://www.arc90.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] Flex2B2 :: backgroundImage problem :: not working
Hi, This is an easy solution but, for the life of me I cannot get the background image to show up on anything compiled. When Viewing the ui in Eclipse/plugin FB2, I can see the backgroundImage applied to all the different containers, But, when I export(compile) and view in FireFox, nothing is shown except the default borderStyles of the containers. Peace, Mike-- What goes up, does come down. -- 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
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 [EMAIL PROTECTED] 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.
[flexcoders] Re: Flex 1.5 Box container component that wraps?
Andrew, hi You would have to implement your own class that would extend mx.containers.Container class. You would need to implement measure() and layoutChildren() methods. Dmitry --- In flexcoders@yahoogroups.com, Andrew D. Goodfellow [EMAIL PROTECTED] wrote: We're all super familiar with the HBox and VBox containers. Has anyone extended one of these to get a wrapping behavior? Almost like an HVBox? :) I want to create a tag cloud using Link components to look like: http://www.flickr.com/photos/tags/ I don't think Grid or Tile will give me the functionality I'm looking for because it will be really hard to cluster them up together when they have differing heights and widths. I guess I'm looking for some suggestions for the best way to tackle it. Anyone have any? Thanks in advance... -Andy -- 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: Developing Flex Book Example not working in Flex 2 Beta 2
That is the Developing Rich Clients with Macromedia Flex book which was written for Flex 1.0. You should look at the Flex 2.0 documentation, including the migration guide, if you want to try to get that example working. Validators have changed quite a bit since Flex 1.0. Stephen -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sof4real03 Sent: Saturday, April 22, 2006 9:44 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Developing Flex Book Example not working in Flex 2 Beta 2 Sure it's Chapter 8: Validating Form Driven Applications, page 192. I'm trying to build the ValidatingForm.mxml base component. I then will use that base component to create each of the child forms that will eventually be children of the accordian. Any insight? --- In flexcoders@yahoogroups.com, Stephen Gilson [EMAIL PROTECTED] wrote: Can you be more specific on the code that you are trying? What section or page in the book is it in? Thanks, Stephen -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sof4real03 Sent: Friday, April 21, 2006 1:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Developing Flex Book Example not working in Flex 2 Beta 2 I'm trying to use a similar function as in Chapter 8 of the flex book regarding Forms. In the chapter, we create a base custom component that extends the Form component. We then use that base custom component to make the individual child forms which will be the different panes in the accordian component. When I apply this in Flex 2 Beta 2, the player gives me an error that says: Error: Multiple sets of visual children have been specified for this component (base component definition and derived component definition) Any insight? -- 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.
[flexcoders] Re: Caurngorm 2 - where to deal with system events?
I had a similar issue with the ap that I'm working on. When the user clicks a search button, I dispatch an event that triggers a command to get data, update the model and change the view. However, I also needed to calculate summary fields (count, totalAmountDue) once the data was retrieved. Hmm, to dispatch another event or not. In this case, I decided just to call the second command (calculateTotals();) from the onResult function of the first command (getData();). My thought was that since I was already in the command abstraction layer (verbs), I could simply just do something else, without having to go back to the view to dispatch another event. It seems to me that you want to keep apples with apples and oranges with oranges. I'd be interested to know if there is a best practice concerning how to do this in cairngorm. Tim Hoff --- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote: I've been using Cairngorm in Flex 1.5, haven't used C2 in Flex 2 yet, thanks for the link! In that case, yep, have to do what Alex suggested. As far as maintainable code, you can extend a Cairngorm Event class (or you own), and attach a callback function to it. Your Command classes can then call this function when they are done. This will allow the View who dispatched the command to know when it's done, and immediately call another one, etc. - Original Message - From: Andrea Varga [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, April 23, 2006 1:35 PM Subject: Re: [flexcoders] Caurngorm 2 - where to deal with system events? I have read that using EventBroadcaster is deprecated in Cairngorm 2, instead the built in dispatchEvent() should be used: http://weblogs.macromedia.com/swebster/archives/2006/02/index.cfm OT - My messages appear with several hours delay on the list. Does anyone know why? Andi JesterXL wrote: You don't need that if you are using Cairngorm's EventBroadcaster; it has nothing to do with DisplayObjects. Simply do what Alex suggested in the result of your Command, do: EventBroadcaster.getInstance().broadcastEvent ( Event.YOUR_EVENT, {param: value}); - Original Message - From: Alex Uhlmann [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, April 23, 2006 12:03 PM Subject: RE: [flexcoders] Caurngorm 2 - where to deal with system events? Hi Andi, You can certainly call another Command in the onResult of your LoginCommand. But since a Command class in not on the display list, events wouldn't make it to Cairngorm's FrontController. You have to use mx.core.Application.application.dispatchEvent. Darron Schall has a nice explanation of it here: http://www.darronschall.com/weblog/archives/000224.cfm Best, Alex Alex Uhlmann Consultant (Rich Internet Applications) Adobe Consulting Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK p: +44 (0) 131 338 6969 m: +44 (0) 7917 428 951 [EMAIL PROTECTED] -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andrea Varga Sent: 23 April 2006 11:15 To: flexcoders@yahoogroups.com Subject: [flexcoders] Caurngorm 2 - where to deal with system events? Hi All! I have to mention that I'm new to Cairngorm and Flex. What is best practice to deal with system events (or whatever the events that are not dispatched by a user gesture are called)? For example: after a successful user login I have to display a list of products (list loded from the server). So, I have a login form in a component: Login.mxml, where I have a dispatch for the LoginEvent = the LoginCommand takes care of it... (goes to server etc.), the onResult method in the LoginCommand is called. If the login was successful, I set the ModelLocator.applicationState to the new state, the view is binded to that, so now I have the correct view (with a datagrid for example), and now I need the list of the products. But for that, I need the list of the products = the ProductListGetCommand must be executed which means, that somebody has to dispatch an event for that, but there is no user gesture here. Where should I place the code for dispathing the event? Or, is my whole logic correct? My only idea here is to place it in LoginCommand.onResult? I have tried that: var tmpEvent:ProductListGetEvent = new ProductListGetEvent(); dispatchEvent( tmpEvent ); I got the error: Call to a possibly undefined method 'dispatchEvent' That's why I think this might not be the right place. I'm using Cairngorm 2.0 Flex 2.0 and AMFPHP , but I think this is not reallt relevant here. 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:
[flexcoders] Re: Attaching component dynamically
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 [EMAIL PROTECTED] 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 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: 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 [EMAIL PROTECTED] 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 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: Caurngorm 2 - where to deal with system events?
Mybest practice for now is: mx.core.Application.application.dispatchEvent using this syntax will always work. On 4/24/06, Tim Hoff [EMAIL PROTECTED] wrote: I had a similar issue with the ap that I'm working on.When theuser clicks a search button, I dispatch an event that triggers a command to get data, update the model and change the view.However,I also needed to calculate summary fields (count, totalAmountDue)once the data was retrieved.Hmm, to dispatch another event ornot.In this case, I decided just to call the second command (calculateTotals();) from the onResult function of the first command(getData();).My thought was that since I was already in thecommand abstraction layer (verbs), I could simply just do somethingelse, without having to go back to the view to dispatch another event.It seems to me that you want to keep apples with apples andoranges with oranges.I'd be interested to know if there is a bestpractice concerning how to do this in cairngorm.Tim Hoff --- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote: I've been using Cairngorm in Flex 1.5, haven't used C2 in Flex 2yet, thanks for the link! In that case, yep, have to do what Alex suggested. As far as maintainable code, you can extend a Cairngorm Eventclass (or you own), and attach a callback function to it.Your Command classes can then call this function when they are done.This will allow the Viewwho dispatched the command to know when it's done, and immediatelycall another one, etc. - Original Message - From: Andrea Varga [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, April 23, 2006 1:35 PM Subject: Re: [flexcoders] Caurngorm 2 - where to deal with system events? I have read that usingEventBroadcaster is deprecated inCairngorm 2, instead the built in dispatchEvent() should be used: http://weblogs.macromedia.com/swebster/archives/2006/02/index.cfm OT - My messages appear with several hours delay on the list. Does anyone know why? Andi JesterXL wrote: You don't need that if you are using Cairngorm'sEventBroadcaster; it has nothing to do with DisplayObjects.Simply do what Alex suggestedin the result of your Command, do: EventBroadcaster.getInstance().broadcastEvent ( Event.YOUR_EVENT,{param: value}); - Original Message - From: Alex Uhlmann [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, April 23, 2006 12:03 PM Subject: RE: [flexcoders] Caurngorm 2 - where to deal with system events? Hi Andi, You can certainly call another Command in the onResult of your LoginCommand. But since a Command class in not on the display list, events wouldn't make it to Cairngorm's FrontController. You haveto use mx.core.Application.application.dispatchEvent. Darron Schall hasa nice explanation of it here: http://www.darronschall.com/weblog/archives/000224.cfm Best, Alex Alex Uhlmann Consultant (Rich Internet Applications) Adobe Consulting Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK p: +44 (0) 131 338 6969 m: +44 (0) 7917 428 951 [EMAIL PROTECTED] -Original Message- From: flexcoders@yahoogroups.com[mailto:flexcoders@yahoogroups.com] On Behalf Of Andrea Varga Sent: 23 April 2006 11:15 To: flexcoders@yahoogroups.com Subject: [flexcoders] Caurngorm 2 - where to deal with system events? Hi All! I have to mention that I'm new to Cairngorm and Flex. What is best practice to deal with system events (or whatever theevents that are not dispatched by a user gesture are called)? For example: after a successful user login I have to display alist of products (list loded from the server). So, I have a login form in a component: Login.mxml, where I have a dispatch for the LoginEvent =the LoginCommand takes care of it... (goes to server etc.), the onResult method in the LoginCommand is called. If the login was successful, I set the ModelLocator.applicationState to the new state, the view is binded to that, so now I have the correct view (with a datagrid forexample), and now I need the list of the products. But for that, I need the list of the products =the ProductListGetCommand must be executed which means, that somebody has to dispatch an event for that, but there is no user gesture here. Where should I place the code for dispathing the event? Or, is my whole logic correct? My only idea here is to place it in LoginCommand.onResult? I have tried that: var tmpEvent:ProductListGetEvent = new ProductListGetEvent(); dispatchEvent( tmpEvent ); I got the error: Call to a possiblyundefined method 'dispatchEvent' That's why I think this might not be the right place. I'm using Cairngorm 2.0 Flex 2.0 and AMFPHP , but I think this is not reallt relevant here. 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
[flexcoders] Re: Attaching component dynamically
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 [EMAIL PROTECTED] 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.
[flexcoders] Job Openings - Cynergy Systems
Title: Job Openings - Cynergy Systems Hello Flexcoders, We have a number of exciting Flex projects going on here at Cynergy and are looking for a few talented individuals to join our teams in Washington, DC, Houston, TX and Grand Rapids, MI. Who are we looking for? Energetic and talented programmers with at least 6 months of relevant experience developing applications with Flex 1.5/2.0 and at least 3 years of database application development using Java, C# or an equivalent object oriented programming language. We understand that duration is not the only measure of skill and are willing to speak to anyone who thinks they have what it takes but may not have the amount of experience we're looking for. If that's you, we'd love to hear from you. Interested in traveling? Great. We have projects all over the US and Europe. Not interested in traveling? That's great too. Most of our projects are carried out within our offices with very little or no travel required. Love programming? This is definitely your place. You'll be working with some of the best and brightest in the industry in an environment conducive to learning and personal/professional growth. If you're interested in learning more about the positions and Cynergy in general, drop me a line directly or send an email to [EMAIL PROTECTED] including your resume and your thoughts/feelings on Flex development. We'd love to hear from you. Thanks, Carson Carson Hager Cynergy Systems, Inc. http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY Mobile: 1.703.489.6466 -- 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: update Datagrid but stay in edit mode (Flex 1.5)
Have you traced or otherwise debugged the call to formatNumber? Will it work if the function is in the same file as the labelFunction? Perhaps it is a scope issue? Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Ott Sent: Monday, April 24, 2006 5:23 AM To: flexcoders@yahoogroups.com Subject: AW: [flexcoders] Re: update Datagrid but stay in edit mode (Flex 1.5) Ok, I use the dataProvider API method editField to update the values. Now I don't have to reassign the dataProvider and the focus is still on one of the cells. So far so good But the fields, even the one I just edited, stay empty. I use labelFunctions on the fields to format the numbers When I use the labelFunction function lblFuncNumber(item:Object, colName:String, dec:Number):String { return Str.formatNumber(item[colName], dec); } static function formatNumber(value:Object, dec:Number):String { var f:NumberFormatter = new mx.formatters.NumberFormatter(); f.precision = dec; // Nachkommastellen f.thousandsSeparatorTo = '; return f.format(value); } the fields are empty but when just I use function lblFuncNumber(item:Object, colName:String, dec:Number):String { return item[colName]; } the numbers show up in the cell. Can someone help me? Thomas vertical ag Leutschenbachstrasse 48 8050 Zürich-Oerlikon +41 43 299 77 27 -Ursprüngliche Nachricht- Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von Tracy Spratt Gesendet: Freitag, 21. April 2006 19:26 An: flexcoders@yahoogroups.com Betreff: RE: [flexcoders] Re: update Datagrid but stay in edit mode (Flex 1.5) Also, how are you updating the dataProvider? You should be using the dataProvider API, and not the low level array methods. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bhaq1972 Sent: Friday, April 21, 2006 3:55 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: update Datagrid but stay in edit mode (Flex 1.5) if you want to set focus on an editable cell, just use focusedCell property. eg dg.focusedCell = {itemIndex:1, columnIndex:1} --- In flexcoders@yahoogroups.com, Thomas Ott [EMAIL PROTECTED] wrote: Hi everyone I have a Datagrid with editable cells. Pressing tab or enter key while editing a Cell, calls the function updateTotal which calculates other non-editable fields in the grid and updates the dataProvider. The problem is now, that the non-editable values dont show up in the grid, although there present in the dataProvider dg.invalidate() never worked. reassigning the dataprovider or using editField made the values show up, but the cell lost focus How can I update the cells with the celleditor staying active? 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 -- 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.
[flexcoders] Developing Rich Clients with Macromedia Flex , out of date?
I'm just starting to learn Flex 2.0 and wondered if Developing Rich Clients with Macromedia Flex is too out of date, or if it's still useful with Flex 2.0. Also, does anyone have any 'getting started' material, like links to tutorials etc. Thanks Alex -- 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] New to Flex, couple of questions
This very simple sample app consist of three file. One is an ordinary class, one is a class with static methods and the third is the main mxml file, which uses the two utility classes. Tracy ?xml version=1.0 encoding=utf-8? !-- UtilityClassTest.msml -- mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml xmlns=* mx:Script![CDATA[ import UtilityClassStatic public var sAppProperty:String = BAZ; ]]/mx:Script UtilityClass id=u app={this}/ mx:Label text={u.getFoo()} / mx:Label text={UtilityClassStatic.getBar()} / /mx:Application // UtilityClas.as Example utility function class for dynamic instantiation class UtilityClass { public var app:UtilityClassTest; public function getFoo():String{ return FOO + app.sAppProperty; } }//UtilityClass // UtilityClassStatic Example utility function class for Static reference class UtilityClassStatic { public static function getBar():String{ return BAR; } }//UtilityClassStatic -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sascha Balkau Sent: Monday, April 24, 2006 12:36 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] New to Flex, couple of questions Hi Tracy, An example would be great if you got any. Even if it's in 1.5 I think it will be helpful to understand how AS and Flex works together. Thanks, Sascha -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Saturday, 22. April, 2006 02:34 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] New to Flex, couple of questions I am not doing 2.0 yet, but in 1.5 you can put your AS code in a class file, and then either instantiate it in a tag, or make the class methods static, import it and then use the static methods. I have a simple example in 1.5 if you want to see it. Tracy -- 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] Developing Rich Clients with Macromedia Flex , out of date?
Alex MacCaw wrote: I'm just starting to learn Flex 2.0 and wondered if Developing Rich Clients with Macromedia Flex is too out of date, or if it's still useful with Flex 2.0. Also, does anyone have any 'getting started' material, like links to tutorials etc. Thanks Alex -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/. The Concept of Flex is still availble from DRCIMF but I would wait for a Flex 2.0 book to hit the shelves -- 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: Flex2 ButtonBar; Can its buttons be individually enabled or disabled?
Thanks, Oscar (and Mike). This does answer my question. I was looking for something more dynamic, though, in case buttons were added or removed. I'll tinker a bit more (btnbar.numChildren, etc) but thanks for the jump start. Bill... --- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote: You need to import the Button class, and then you can try something like this: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* layout=vertical mx:Script ![CDATA[ import mx.events.ItemClickEvent; import mx.events.ListEvent; // Add this import import mx.controls.Button; private function btnbarEvent(event:ItemClickEvent):void{ ta.text=btnbar selected index is +event.index.toString(); } private function dgEvent(event:ListEvent):void{ ta.text=dg selected index is +event.rowIndex.toString(); var childA:Button= btnbar.getChildAt(0) as Button; var childB:Button= btnbar.getChildAt(1) as Button; var childC:Button= btnbar.getChildAt(2) as Button; var childD:Button= btnbar.getChildAt(3) as Button; childB.enabled=false; childC.enabled=false; childD.enabled=false; } ]] /mx:Script mx:DataGrid id=dg itemClick=dgEvent(event) mx:dataProvider mx:ArrayCollection mx:source mx:Object item=Something descr=Some thing/ mx:Object item=Nothing descr=No thing/ /mx:source /mx:ArrayCollection /mx:dataProvider /mx:DataGrid mx:ButtonBar id=btnbar itemClick=btnbarEvent(event) mx:dataProvider mx:Array mx:StringA/mx:String mx:StringB/mx:String mx:StringC/mx:String mx:StringD/mx:String /mx:Array /mx:dataProvider /mx:ButtonBar mx:TextArea id=ta width=200 height=100/ /mx:Application |-+- | | | | | wlbagent | | | [EMAIL PROTECTED] | | | Sent by: | | | flexcoders@yahoogroups.com | | | 04/24/2006 09:07 AM | | | Please respond to | | | flexcoders | | | | |-+- -| | | | To: flexcoders@yahoogroups.com | | cc: | | Subject: [flexcoders] Re: Flex2 ButtonBar; Can its buttons be individually enabled or disabled? | -| Mike, thanks for the reply. I made a couple of attempts at casting to a button but I must be missing something. Here is a simple example of what I'm talking about. If any row is selected in dg, then all buttons except button A should be disabled. What do I need to do to make this happen? Thanks, Bill... ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* layout=vertical mx:Script ![CDATA[ import mx.events.ItemClickEvent; import mx.events.ListEvent; private function btnbarEvent(event:ItemClickEvent):void{ ta.text=btnbar selected index is +event.index.toString(); } private function dgEvent(event:ListEvent):void{ ta.text=dg selected index is +event.rowIndex.toString(); } ]] /mx:Script mx:DataGrid id=dg itemClick=dgEvent(event) mx:dataProvider mx:ArrayCollection mx:source mx:Object item=Something descr=Some thing/ mx:Object item=Nothing descr=No thing/ /mx:source /mx:ArrayCollection /mx:dataProvider /mx:DataGrid mx:ButtonBar id=btnbar itemClick=btnbarEvent(event) mx:dataProvider mx:Array mx:StringA/mx:String mx:StringB/mx:String mx:StringC/mx:String mx:StringD/mx:String /mx:Array /mx:dataProvider /mx:ButtonBar mx:TextArea id=ta width=200 height=100/ /mx:Application --- In flexcoders@yahoogroups.com, Michael Schmalle teoti.graphix@ wrote: Hi, Did you cast the returned button instance to Button? var child:Button = getChildAt(buttonIndex) as Button; Peace, Mike On 4/20/06, wlbagent wlbagent@ wrote: I know this can be done using individual buttons but can the individual buttons in a ButtonBar component (not the whole ButtonBar) be enabled or disabled? For example. You have a ButtonBar with 4 buttons labeled A,B,C,and D. You want button A to always be enabled but the remaining buttons would be enabled or disabled based on some other condition. You might have a DataGrid and want B,C,and D enabled if a row is selected, otherwise they are disabled. This should be a fairly easy thing to do if its actually possible. I can reference the individual buttons but there doesn't seem to be an enabled property for them. What have I missed?? Any ideas??? -- 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
[flexcoders] Flex 1.5 - Cairngorm .99 - Binding VO to TextInput help please
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 fromMerlin 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 throughMerlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed byMerlin Securities, LLCand 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 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
Hi Brent, I checked with QA here but no one had seen hangs like you describe. So we need more info as to what your setup entails. What channel are you using? What kind of destination are you hitting (RemoteObject I assume)? How was authentication enforced, constraints on a destination and using setCredentials? Or was this through HTTP authentication? The more details you can provide the easier I can ask someone to try reproducing. If you want to send code that's fine, just please make sure that you don't send something with a .zip extension because the Adobe spam filter will eliminate it (you can take the .zip and add a different extension like .zipper) Thanks! Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jfournet Sent: Wednesday, April 19, 2006 8:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex hangs when server times out session My 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 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] dispatching from an MXML component
Hello,I want to dispatch an onclick event from a datagrid inside Providers.mxml ( = component ).My main mxml should listen to this event, it has the mx:methods tag.How do I do this ?I know about Arp and Cairngorm, but I am just getting into Flex, so first thing first for me. tnx ; ) -- 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] Help with populating from array
in my app, I have a closing screen. The data returned from my cfc is an array of structures. It is retunred like this.1 struct ADDRESS 5119 N 20th St. Phoenix ADDTRANSFEE 2500 AGENTCOMM 31500 AGENTNAME Jeremy Rottman COMMTOTAL 3 EN0 50 FILENUM S060001 GCI 75000 PERCENTSIDE 42 POSITION 1 PROPPRICE 250 TRANSFEE 250 TRANSSIDE buyer 2 struct ADDRESS 5119 N 20th St. Phoenix ADDTRANSFEE 0 AGENTCOMM 75000 AGENTNAME Jeremy Rottman COMMTOTAL 3 EN0 50 FILENUM S060001 GCI 75000 PERCENTSIDE 100 POSITION 2 PROPPRICE 250 TRANSFEE 250 TRANSSIDE sellerThe issue I have is, when trying to populate text inputs, it puts all the objects that are returned in that array object into the text input and gives me a null output. I have tried this code below to get the first object and return it to the text input, but this also doenst work. Anyone have an idea on how I can pull the first object from an array of structures that returns more then 1 array var gciFirst:Object = result.gci.getItemAt(0); parentApplication.closing.commTotal.text = gciFirst; -- 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] Looping output
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 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: dispatching from an MXML component
Hi, If you click inside the dataGrid tag and press the space bar, you will see a list of code hinting properties and events, that are available to the control. To dispatch an onclick event, you should have something like click=dispatchEvent(event); or click=runMyFunction (); inside of the dataGrid tag. runMyFunction(); would be a function that you created. To listen for events, I'll refer you to the help docs. There a couple of ways to do it, so look for addEventListeners, dispatchEvent and metaData. Later, Tim Hoff --- In flexcoders@yahoogroups.com, Webdevotion [EMAIL PROTECTED] wrote: Hello, I want to dispatch an onclick event from a datagrid inside Providers.mxml ( = component ). My main mxml should listen to this event, it has the mx:methods tag. How do I do this ? I know about Arp and Cairngorm, but I am just getting into Flex, so first thing first for me. tnx ; ) -- 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] (Flex20 Beta2): RemoteObject Destination configuration problem
Hi,I have created a very simple 2 state mxml file(attached below) where you submit a name which is passed to a RemoteObject which appends "Welcome "to the input string returns the whole string back.The java class which does this is,package samples.SimpleRemoteObject;public class Echo { public Echo(){ } public String getString(String str){ return "Welcome " + str ; }}I have added the following to flex-remoting-service.xml underc:\tomcat\webapps\flex\WEB-INF\flex, destination id="EchoString" properties sourcesamples.SimpleRemoteObject.Echo/source /properties /destinationThe default-channels adapters definition was already there.I also put Echo.class under C:\tomcat\webapps\flex\WEB-INF\classes\samples\SimpleRemoteObject.After Tomcat(v5.5.9) is started, it correctly loads the initial pageat http://localhost:8080/flex/SimpleRemoteObject/SimpleRemoteObject.htmlbut after I click on submit, I always get "Error: Unknown destination 'EchoString'". I have tried renaming the destination names but there is no change in behavior.Please let me know what am I doing wrong. All the samples are running finethough. This is my first attempt on doing something with Flex.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:argumentsstr{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 -- 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 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 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: Help with populating from array
The object returned are not as object. They are objects returned from my cfc. As an array of strcutures. I need to pull the first record from the first object called GCI in my array.The array I return from my cfc looks like this. In Array Object 1, I need to pull the strcut object GCI and use the results to populate a text input.1 struct ADDRESS 5119 N 20th St. Phoenix ADDTRANSFEE 2500 AGENTCOMM 31500 AGENTNAME Jeremy Rottman COMMTOTAL 3 EN0 50 FILENUM S060001 GCI 75000 PERCENTSIDE 42 POSITION 1 PROPPRICE 250 TRANSFEE 250 TRANSSIDE buyer 2 struct ADDRESS 5119 N 20th St. Phoenix ADDTRANSFEE 0 AGENTCOMM 75000 AGENTNAME Jeremy Rottman COMMTOTAL 3 EN0 50 FILENUM S060001 GCI 75000 PERCENTSIDE 100 POSITION 2 PROPPRICE 250 TRANSFEE 250 TRANSSIDE seller--- In flexcoders@yahoogroups.com, "Tracy Spratt" [EMAIL PROTECTED] wrote: Assuming you have an array of AS objects in Flex, try: result.gci[0].ADDRESS Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeremy Rottman Sent: Monday, April 24, 2006 6:53 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Help with populating from array in my app, I have a closing screen. The data returned from my cfc is an array of structures. It is retunred like this. 1 struct ADDRESS 5119 N 20th St. Phoenix ADDTRANSFEE 2500 AGENTCOMM 31500 AGENTNAME Jeremy Rottman COMMTOTAL 3 EN0 50 FILENUM S060001 GCI 75000 PERCENTSIDE 42 POSITION 1 PROPPRICE 250 TRANSFEE 250 TRANSSIDE buyer 2 struct ADDRESS 5119 N 20th St. Phoenix ADDTRANSFEE 0 AGENTCOMM 75000 AGENTNAME Jeremy Rottman COMMTOTAL 3 EN0 50 FILENUM S060001 GCI 75000 PERCENTSIDE 100 POSITION 2 PROPPRICE 250 TRANSFEE 250 TRANSSIDE sellerThe issue I have is, when trying to populate text inputs, it puts all the objects that are returned in that array object into the text input and gives me a null output. I have tried this code below to get the first object and return it to the text input, but this also doenst work. Anyone have an idea on how I can pull the first object from an array of structures that returns more then 1 array var gciFirst:Object = result.gci.getItemAt(0); parentApplication.closing.commTotal.text = gciFirst;-- 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 http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+ site+design+developmentw2=Computer+software+developmentw3=Software+des ign+and+developmentw4=Macromedia+flexw5=Software+development+best+prac ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQComputer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We b+site+design+developmentw2=Computer+software+developmentw3=Software+d esign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHwSoftware design and development
[flexcoders] context-menu in flex...
Hi, Can anybody tell me that how to customize the context-menu in flex? or how to disable right-click menu in flex? Thanks -Rajni -- 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] (Flex20 Beta2): RemoteObject Destination configuration problem
Are you precompiling the SWFs? If so, are you specifying --services and pointing to the configuration file at compile time with either Flex Buildercompilercommand line arguments or mxmlc command line arguments? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of aejaz_98Sent: Monday, April 24, 2006 10:15 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] (Flex20 Beta2): RemoteObject Destination configuration problem Hi,I have created a very simple 2 state mxml file(attached below) where you submit a name which is passed to a RemoteObject which appends "Welcome "to the input string returns the whole string back.The java class which does this is,package samples.SimpleRemoteObject;public class Echo { public Echo(){ } public String getString(String str){ return "Welcome " + str ; }}I have added the following to flex-remoting-service.xml underc:\tomcat\webapps\flex\WEB-INF\flex, destination id="EchoString" properties sourcesamples.SimpleRemoteObject.Echo/source /properties
/destinationThe default-channels adapters definition was already there.I also put Echo.class under C:\tomcat\webapps\flex\WEB-INF\classes\samples\SimpleRemoteObject.After Tomcat(v5.5.9) is started, it correctly loads the initial pageat http://localhost:8080/flex/SimpleRemoteObject/SimpleRemoteObject.htmlbut after I click on submit, I always get "Error: Unknown destination 'EchoString'". I have tried renaming the destination names but there is no change in behavior.Please let me know what am I doing wrong. All the samples are running finethough. This is my first attempt on doing something with Flex.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[ ! nbsp; import mx.rpc.events.*; nbs! p; 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 n! bsp; 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:metho! d 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 -- 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 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? thanksand I have finish a blog site with flex1.5 ,you can visit it if you are intersting with it.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] Flex2B2 - calling a function in the base class to manipulate a base string var
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] Flex 2 problem about remoteobject in tomcat
Fotgot it. that site is http://sankeye.go.3322.orgsank 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. thanks - sank 雅虎1G免费邮箱百分百防垃圾信雅虎助手-搜索、杀毒、防骚扰 雅虎1G免费邮箱百分百防垃圾信 雅虎助手-搜索、杀毒、防骚扰 雅虎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] Resultformat in mx.rpc.soap.WebService
You need to set the resultFormat on the individual Operation. myService.myMethod.resultFormat=e4x; myService.myMethod() From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jonas Windey Sent: Monday, April 24, 2006 2:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Resultformat in mx.rpc.soap.WebService Hi, Im using the webservice class and having difficulties setting the result as the datasource for my treecontrol (it stays 2-dimensional and it doesnt create the child nodes, since the data is all in object/array format). So Im trying to use the e4x format to see if this would help. How can I add this using the mx.rpc.soap.WebService class? resultFormat is not a valid property Thanks 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.
RE: [flexcoders] sandbox issue
Does your Flash 8 SWF have AS code that is trying to execute? That unfortunately is not allowed (we don't allow cross-VM AS). Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flexlearner Sent: Monday, April 24, 2006 3:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] sandbox issue hello, I have simple mxml file in which I am importing a swf publish in flash8 I can see the output in flex builder in design mode also get successful compilation result when I compile it by mxmlc command line complier but when I open a sand alone swf i get a dialogue box with these error : SecurityError: Error #2047: Security sandbox violation: 'content': 'file:///D|/flexPractice/flextry.swf' may not access 'file:///D|/flexPractice/verticalbar.swf'. at mx.controls::Loader/get Loader$404 $private::contentHolderWidth() at mx.controls::Loader/Loader$404$private::contentLoaded() at mx.controls::Loader/completeEventHandler() at mx.controls::Image/completeEventHandler() Please help Thanks in advance 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 -- 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] page change not work when loaded(FB2 beta2 + ColdFusion) [Roger Needed?]
I believe this might be a bug in Beta 2 which we're hoping is fixed in Beta 3. The problem is that some classes get loaded in the main swf and some classes get loaded into the child swf and sometimes the VM gets screwed up in reconciling everything. Let's see if I put the word Roger in here (and in the subject) if he happens to see and can confirm. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ZhaoXingdong Sent: Monday, April 24, 2006 7:26 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] page change not work when loaded(FB2 beta2 + ColdFusion) hi flexcoders; The idea is I have a container swf, a list swf and an add swf. When container swf is running, it first loads the list swf and displays some buttons like add. The list swf displays data in several pages and you can change the page with a horizontal slide. When add button is clicked, the add swf is loaded and displayed with some buttons like cancel, submit and clear. And in add swf, when cancel button is clicked, the container swf should display the list swf with its current state. It's really disturbing me because when list swf runs as a single swf, page changing works ok, but when it's running as a loaded swf by container swf, page changing gave me the following two errors: TypeError: Error #1034: Type Coercion failed: cannot convert mx.messaging.messages::[EMAIL PROTECTED] to mx.messaging.messages.Message TypeError: Error #1034: Type Coercion failed: cannot convert mx.messaging.messages::[EMAIL PROTECTED] to mx.messaging.messages.Message I guess I must have missed something but I tried with no luck. And I just couldn't figure out why the errors only occured when loaded. Any help would be appreciated. -xd List.mxml ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* layout=absolute creationComplete=InitApp() mx:Script source=List.as/ mx:Panel title=List width=95% mx:DataGrid id=dg dataProvider={svc.getList.result} width=100% rowCount=2 mx:columns mx:DataGridColumn headerText=Name dataField=apm_name/ mx:DataGridColumn headerText=Description dataField=apm_desc/ /mx:columns /mx:DataGrid mx:HBox width=100% mx:Spacer width=25%/ mx:HSlider id=hsldPageNo width=50% minimum=1 maximum={svc.getPageCounts.result} tickInterval=1 snapInterval=1 dataTipPlacement=bottom dataTipFormatFunction=pageToolTipFunc change=pageChange(event);/ mx:Spacer width=25%/ /mx:HBox /mx:Panel mx:RemoteObject id=svc destination=ColdFusion source=cf.ap/ /mx:Application List.as import mx.events.SliderEvent; public function InitApp():void { getInfo(0); } public function getInfo(nPageNo:int):void { svc.getList(nPageNo); svc.getPageCounts(); } private function pageChange(event:SliderEvent):void { getInfo(event.currentTarget.value - 1); } private function pageToolTipFunc(val:String):String { return page + int(val); } Add.mxml ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* layout=absolute mx:Script source=Add.as/ mx:Panel title=AddForm width=95% mx:Form width=100% mx:FormItem label=Name required=true mx:TextInput id=txtiName/ /mx:FormItem mx:FormItem label=Description mx:TextInput id=txtiDesc/ /mx:FormItem mx:HBox width=100% mx:Button label=Cancel click=cancelAction();/ mx:Spacer width=100%/ mx:Button label=Reset click=clearAction();/ mx:Button label=Submit click=addAction();/ /mx:HBox /mx:Form /mx:Panel /mx:Application Add.as public function addAction():void { clearForm(); if(this.automationParent) { var obj:Object = Object(this).automationParent.parentApplication; obj.afterAdd(addok); } } public function cancelAction():void { clearForm(); if(this.automationParent) { var obj:Object = Object(this).automationParent.parentApplication; obj.afterAdd(cancel); } } public function clearAction():void { clearForm(); } public function clearForm():void { txtiName.text = ; txtiDesc.text = ; } Container.mxml ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* layout=absolute backgroundColor=#FF mx:Script source=Container.as/ mx:VBox width=95% height=95% horizontalAlign=center mx:ViewStack id=vstk width=100% height=100% change=changeDisplay(event); mx:Panel id=cnvList label=List width=100% height=100% mx:Button label=Add click=toAddForm();/ mx:Loader id=ldrList width=100% height=100% source=List.swf/ /mx:Panel mx:Panel id=cnvAdd label=Add width=100% height=100% mx:Loader id=ldrAdd width=100% height=100% source=Add.swf/ /mx:Panel /mx:ViewStack /mx:VBox /mx:Application Container.as import mx.events.IndexChangedEvent; public function toList():void { vstk.selectedIndex = 0; } public function toAddForm():void { vstk.selectedIndex = 1; } public function afterAdd(status:String):void { if(status == addok) toList(); if(status == cancel) toList(); }
RE: [flexcoders] Flex2B2 :: backgroundImage problem :: not working
Is it possible the asset isnt being copied to where your SWF lives? From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michael Schmalle Sent: Monday, April 24, 2006 8:42 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2B2 :: backgroundImage problem :: not working Hi, This is an easy solution but, for the life of me I cannot get the background image to show up on anything compiled. When Viewing the ui in Eclipse/plugin FB2, I can see the backgroundImage applied to all the different containers, But, when I export(compile) and view in FireFox, nothing is shown except the default borderStyles of the containers. Peace, Mike -- What goes up, does come down. -- 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] 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 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: Help with populating from array
Its hard to know what the problem might be, Id just recommend running in a debugger and seeing what the result object actually looks like. Maybe theres another array or object in the hierarchy youre not seeing? Otherwise this would look like result[0].GCI based on what youve written here. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]] On Behalf Of Jeremy Rottman Sent: Monday, April 24, 2006 7:41 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Help with populating from array The object returned are not as object. They are objects returned from my cfc. As an array of strcutures. I need to pull the first record from the first object called GCI in my array. The array I return from my cfc looks like this. In Array Object 1, I need to pull the strcut object GCI and use the results to populate a text input. 1 struct ADDRESS 5119 N 20th St. Phoenix ADDTRANSFEE 2500 AGENTCOMM 31500 AGENTNAME Jeremy Rottman COMMTOTAL 3 EN0 50 FILENUM S060001 GCI 75000 PERCENTSIDE 42 POSITION 1 PROPPRICE 250 TRANSFEE 250 TRANSSIDE buyer 2 struct ADDRESS 5119 N 20th St. Phoenix ADDTRANSFEE 0 AGENTCOMM 75000 AGENTNAME Jeremy Rottman COMMTOTAL 3 EN0 50 FILENUM S060001 GCI 75000 PERCENTSIDE 100 POSITION 2 PROPPRICE 250 TRANSFEE 250 TRANSSIDE seller --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Assuming you have an array of AS objects in Flex, try: result.gci[0].ADDRESS Tracy From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeremy Rottman Sent: Monday, April 24, 2006 6:53 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Help with populating from array in my app, I have a closing screen. The data returned from my cfc is an array of structures. It is retunred like this. 1 struct ADDRESS 5119 N 20th St. Phoenix ADDTRANSFEE 2500 AGENTCOMM ! ; 31500 AGENTNAME Jeremy Rottman COMMTOTAL 3 EN0 50 FILENUM S060001 GCI 75000 PERCENTSIDE 42 POSITION 1 PROPPRICE 250 TRANSFEE 250 TRANSSIDE buyer 2 struct ADDRESS 5119 N 20th St. Phoenix ADDTRANSFEE 0 AGENTCOMM 75000 AGENTNAME Jeremy Rottman COMMTOTAL 3 EN0 50 FILENUM S060001 GCI 75000 PERCE! NTSIDE 100 POSITION ! ; 2 PROPPRICE 250 TRANSFEE 250 TRANSSIDE seller The issue I have is, when trying to populate text inputs, it puts all the objects that are returned in that array object into the text input and gives me a null output. I have tried this code below to get the first object and return it to the text input, but this also doenst work. Anyone have an idea on how I can pull the first object from an array of structures that returns more then 1 array var gciFirst:Object = result.gci.getItemAt(0); parentApplication.closing.commTotal.text = gciFirst; -- 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 http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+ site+design+developmentw2=Computer+software+developmentw3=Software+des ign+and+developmentw4=Macromedia+flexw5=Software+development+best+prac ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We b+site+design+developmentw2=Computer+software+developmentw3=Software+d esign+and+developmentw4=Macromedia+flexw5=Software+development+best+pr acticec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and development http://groups.yahoo.com/gads?t=msk=! Software+design+and+developmentw1=
RE: [flexcoders] context-menu in flex...
Look for the ContextMenu class in the ASDoc (and reference). You can't disable the right-click menu completely, the most you can do is remove some of the settings. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rajni Sent: Monday, April 24, 2006 8:03 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] context-menu in flex... Hi, Can anybody tell me that how to customize the context-menu in flex? or how to disable right-click menu in flex? Thanks -Rajni -- 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] Flex 2 problem about remoteobject in tomcat
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 xuan Sent: Monday, April 24, 2006 8:46 PM To: flexcoders@yahoogroups.com Subject: [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. 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] Re: Flex 2.0 Remote Objects over SecureAMFChannel (HTTPS) in Apache or IIS
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 [EMAIL PROTECTED] 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 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.