[flexcoders] Flash + Cairngorm Example With Source Code
FYI I have posted a Flash version of the Cairngorm sample application with source code on our blog:http://www.rocketboots.com.au/blog/index.cfm?mode=entryentry=83219052-E081-51EF-A73B5F4EF642C3F5Cheers,RobinOn 31/01/2005, at 11:10 AM, Robin Hilliard wrote:FYI the sample application code, README, presentation slides and meeting recording URL are available here:http://www.rocketboots.com.au/blog/index.cfm?mode=entryentry=C6173106-E081-51EF-A73336809276EB7CRobinOn 27/01/2005, at 1:50 PM, Robin Hilliard wrote: Hi All,Just letting you know that I'm doing a little presentation on Flex andCairngorm tomorrow as part of the Macromedia Australia - New ZealandCommunity seminar series. The meeting is at 3pm Australian EasternStandard Time and will be recorded. The URL ishttp://www.macromedia.com/go/anzcommunityCheers,Robin Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Cell Rendering
Check this: http://www.bpurcell.org/blog/index.cfm?mode=entryentry=1052 Philippe Maegerman Webdeveloper +32 2 400 40 39 +32 472 35 28 10 http://pimz.blogspot.com http://cfpim.blogspot.com From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JoeSent: mercredi 15 juin 2005 21:51To: flexcoders@yahoogroups.comSubject: [flexcoders] Cell Rendering I have a data grid that is using cellrendering in one of the columns to prodice a checkbox. I would like to be able to change the text color of the row that when the heck box is checked. Please Help. Thankl you. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. --**STATEMENT OF CONFIDENTIALITY** This e-mail and any attached files are confidential and intended solely for the use of the individual to whom it is addressed. If you have received this email in error please send it back to the person that sent it to you. Any views or opinions presented are solely those of author and do not necessarily represent those the Emakina Company. Unauthorized publication, use, dissemination, forwarding, printing or copying of this email and its associated attachments is strictly prohibited. We also inform you that we have checked that this message does not contain any virus but we decline any responsability in case of any damage caused by an a non detected virus.--
[flexcoders] Interval
I have a 3 part accordian control. The accordian is in a component that loads in a vstack (not the default). When I load it, I want the accordian to start with the selectedIndex=2, then every five seconds, show the next accordian until I get to selectedIndex = 0. When the control loads, I successfully get the control to go from selected index 2-1, but the interval never fires again. Listed below is my code. If anyone can point out what I'm missing, I'd appreciate it. creationComplete of the component VBox calls startInterval() var accint:Number; function startInterval():Void { accint=setInterval(changeAccordian(),5000); } function changeAccordian():Void { if (services2.selectedIndex0) { services2.selectedIndex--; } else { stopInterval(); } } function stopInterval():Void { clearInterval(accint); } Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Image disappears
Im loading an image through AS. (just setting the contentpath/source). this Image is 800x600. Im openinng A Popup (TitleWindow) and than I set de the path. Giving the load command. It will load andeven the complete event is called. But no Image is shown. If I'm trying it by embedding the image it works. If I save the image and place it in my webapp and tha setting tghe path to local it works. If I get another smaller image from the same server it wordks also. but when I'm loading it from an other server it fails(loading will complete, but image is not visible). what seems to be the problem? MXML mx:Loader id=image_large width=350 height=240 visible=true autoLoad=false complete=loader.visible=false; progressbar.mode = 'manual'; progressbar.setProgress(100, 100) / - AS - this._scope.image_large.contentPath = +detailData.Content.Image.url; this._scope.image_large.load(); Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Interval
Hi, Your code looks fine except one mistake. setInteval(..) takes function reference as shown below: var accint:Number; function startInterval():Void { accint = setInterval(changeAccordian, 5000); // accint=setInterval(this,changeAccordian 5000); } function changeAccordian():Void { if (services2.selectedIndex0) { services2.selectedIndex--; } else { stopInterval(); } } function stopInterval():Void { clearInterval(accint); } -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of davidgdean Sent: Thursday, June 16, 2005 7:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Interval I have a 3 part accordian control. The accordian is in a component that loads in a vstack (not the default). When I load it, I want the accordian to start with the selectedIndex=2, then every five seconds, show the next accordian until I get to selectedIndex = 0. When the control loads, I successfully get the control to go from selected index 2-1, but the interval never fires again. Listed below is my code. If anyone can point out what I'm missing, I'd appreciate it. creationComplete of the component VBox calls startInterval() var accint:Number; function startInterval():Void { accint=setInterval(changeAccordian(),5000); } function changeAccordian():Void { if (services2.selectedIndex0) { services2.selectedIndex--; } else { stopInterval(); } } function stopInterval():Void { clearInterval(accint); } Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Image disappears
WHen my popup and canvas is bigger(900,900) than the original size of the image(800x600) it works fine. my structure is like this: popup w=900 h=900 canvas //(for background image) loader x=0 y=0/ /canvas /popup So when popup and canvas is smaller image disappears --- In flexcoders@yahoogroups.com, rockmoyosa [EMAIL PROTECTED] wrote: Im loading an image through AS. (just setting the contentpath/source). this Image is 800x600. Im openinng A Popup (TitleWindow) and than I set de the path. Giving the load command. It will load andeven the complete event is called. But no Image is shown. If I'm trying it by embedding the image it works. If I save the image and place it in my webapp and tha setting tghe path to local it works. If I get another smaller image from the same server it wordks also. but when I'm loading it from an other server it fails(loading will complete, but image is not visible). what seems to be the problem? MXML mx:Loader id=image_large width=350 height=240 visible=true autoLoad=false complete=loader.visible=false; progressbar.mode = 'manual'; progressbar.setProgress(100, 100) / - AS - this._scope.image_large.contentPath = +detailData.Content.Image.url; this._scope.image_large.load(); Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flash + Cairngorm Example With Source Code
Hi Robin, so sad your website isn't viewable from Switzerland... :-( (Still can't understand why) r0main --- In flexcoders@yahoogroups.com, Robin Hilliard [EMAIL PROTECTED] wrote: FYI I have posted a Flash version of the Cairngorm sample application with source code on our blog: http://www.rocketboots.com.au/blog/index.cfm? mode=entryentry=83219052-E081-51EF-A73B5F4EF642C3F5 Cheers, Robin On 31/01/2005, at 11:10 AM, Robin Hilliard wrote: FYI the sample application code, README, presentation slides and meeting recording URL are available here: http://www.rocketboots.com.au/blog/index.cfm? mode=entryentry=C6173106-E081-51EF-A73336809276EB7C Robin On 27/01/2005, at 1:50 PM, Robin Hilliard wrote: Hi All, Just letting you know that I'm doing a little presentation on Flex and Cairngorm tomorrow as part of the Macromedia Australia - New Zealand Community seminar series. The meeting is at 3pm Australian Eastern Standard Time and will be recorded. The URL is http://www.macromedia.com/go/anzcommunity Cheers, Robin Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Image disappears
Ok, try this URL and let me know if it is working. http://www.bigfoto.com/sites/galery/flowers1/flow011_small.jpg I can think of two reasons:- - image might be progressive, but I doubt as it is working if you place locally. - hot linking of the image is not allowed. How did you make image is being downloaded? Did you check the browser cache to make sure? -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rockmoyosa Sent: Thursday, June 16, 2005 1:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Image disappears Im loading an image through AS. (just setting the contentpath/source). this Image is 800x600. Im openinng A Popup (TitleWindow) and than I set de the path. Giving the load command. It will load andeven the complete event is called. But no Image is shown. If I'm trying it by embedding the image it works. If I save the image and place it in my webapp and tha setting tghe path to local it works. If I get another smaller image from the same server it wordks also. but when I'm loading it from an other server it fails(loading will complete, but image is not visible). what seems to be the problem? MXML mx:Loader id=image_large width=350 height=240 visible=true autoLoad=false complete=loader.visible=false; progressbar.mode = 'manual'; progressbar.setProgress(100, 100) / - AS - this._scope.image_large.contentPath = +detailData.Content.Image.url; this._scope.image_large.load(); Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: Image disappears
Seems, some different issue. Never mind. -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rockmoyosa Sent: Thursday, June 16, 2005 2:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Image disappears WHen my popup and canvas is bigger(900,900) than the original size of the image(800x600) it works fine. my structure is like this: popup w=900 h=900 canvas //(for background image) loader x=0 y=0/ /canvas /popup So when popup and canvas is smaller image disappears --- In flexcoders@yahoogroups.com, rockmoyosa [EMAIL PROTECTED] wrote: Im loading an image through AS. (just setting the contentpath/source). this Image is 800x600. Im openinng A Popup (TitleWindow) and than I set de the path. Giving the load command. It will load andeven the complete event is called. But no Image is shown. If I'm trying it by embedding the image it works. If I save the image and place it in my webapp and tha setting tghe path to local it works. If I get another smaller image from the same server it wordks also. but when I'm loading it from an other server it fails(loading will complete, but image is not visible). what seems to be the problem? MXML mx:Loader id=image_large width=350 height=240 visible=true autoLoad=false complete=loader.visible=false; progressbar.mode = 'manual'; progressbar.setProgress(100, 100) / - AS - this._scope.image_large.contentPath = +detailData.Content.Image.url; this._scope.image_large.load(); Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Interval
Hi, I've got it working with the following sample code. I just made a slight change to your startInterval method to reference the calling object (this). ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ var accint:Number; function startInterval():Void { accint = setInterval( this, 'changeAccordian', 5000 ); } function changeAccordian():Void { if ( services2.selectedIndex 0 ) { services2.selectedIndex--; } else { stopInterval(); } } function stopInterval():Void { clearInterval( accint ); } ]] /mx:Script mx:Accordion id=services2 creationComplete=startInterval() width=100% height=100% selectedIndex=2 mx:Box label=Page 1 width=100% height=100% / mx:Box label=Page 2 width=100% height=100% / mx:Box label=Page 3 width=100% height=100% / /mx:Accordion /mx:Application --- In flexcoders@yahoogroups.com, davidgdean [EMAIL PROTECTED] wrote: I have a 3 part accordian control. The accordian is in a component that loads in a vstack (not the default). When I load it, I want the accordian to start with the selectedIndex=2, then every five seconds, show the next accordian until I get to selectedIndex = 0. When the control loads, I successfully get the control to go from selected index 2-1, but the interval never fires again. Listed below is my code. If anyone can point out what I'm missing, I'd appreciate it. creationComplete of the component VBox calls startInterval() var accint:Number; function startInterval():Void { accint=setInterval(changeAccordian(),5000); } function changeAccordian():Void { if (services2.selectedIndex0) { services2.selectedIndex--; } else { stopInterval(); } } function stopInterval():Void { clearInterval(accint); } Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] TREE : Collapsing expanding TreeNode
Matt, Thank you for your help. I've already tried to use setIsBranch but it doesn't work because Nodes are automatically configured as branch nodes when they have children... I try your second suggestion! Thank too for thecode for adding node. I haven't thought to this way of coding...It works welland it'svery simple approach. great! David De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la part de Matt ChotinEnvoy: jeudi 16 juin 2005 06:31: flexcoders@yahoogroups.comObjet: RE: [flexcoders] TREE : Collapsing expanding TreeNode You should be able to use the Tree.setIsBranch method on your node to set it so that it will be treated as a leaf instead (won?t show children). Now if you want it to show as a branch but not be able to open then I think you?ll need to subclass Tree and override setIsOpen to check if the node really should be allowed to open (and if not don?t do anything). Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of david_gal-reyniezSent: Wednesday, June 15, 2005 8:35 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] TREE : Collapsing expanding TreeNode Hi everybody, New question about Tree manipulation. I would like to have control on specific parts of my Tree structure. More precisely I would like to prevent user to expand specific TreeNodes among all TreeNode into my Tree because I don't want them to have a look on the subnode. I should assume that I have no real good idea to investigate this problem. Do I have to create a new CellRenderer adapted to my need? Thank for your help and your suggestions! David ** Coface facilite les echanges entre les entreprises partout dans le monde. Pour cela, elle offre a toutes les entreprises des solutions pour gerer, financer et proteger leur poste client, en leur permettant d'externaliser tout ou partie de la gestion et des risques lies a leurs relations commerciales. Coface est notee AA par Fitch Ratings et Aa3 par Moody's. Pour en savoir plus, http://www.coface.fr Coface facilitates business-to-business commerce worldwide. It offers all size companies an array of solutions to manage, finance, and protect their accounts receivables affording them the option of fully or partly outsourcing trade relationship management and attendant risks. Coface is rated AA by Fitch ratings and Aa3 by Moody's. More about Coface, http://www.coface.com WARNING : - Soyez conscient que notre systeme Anti-Spam peut parfois rejeter des messages, soit parce que certains mots et types de fichiers ne sont pas acceptes, ou bien parce que le mail n'a pas ete identifie correctement. - Be aware that from time to time our Anti-Spam system may reject mails either because some words and types of files are not allowed or because mails are misidentified. ** ** Coface facilite les echanges entre les entreprises partout dans le monde. Pour cela, elle offre a toutes les entreprises des solutions pour gerer, financer et proteger leur poste client, en leur permettant d'externaliser tout ou partie de la gestion et des risques lies a leurs relations commerciales. Coface est notee AA par Fitch Ratings et Aa3 par Moody's. Pour en savoir plus, http://www.coface.fr Coface facilitates business-to-business commerce worldwide. It offers all size companies an array of solutions to manage, finance, and protect their accounts receivables affording them the option of fully or partly outsourcing trade relationship management and attendant risks. Coface is rated AA by Fitch ratings and Aa3 by Moody's. More about Coface, http://www.coface.com WARNING : - Soyez conscient que notre systeme Anti-Spam peut parfois rejeter des messages, soit parce que certains mots et types de fichiers ne sont pas acceptes, ou bien parce que le mail n'a pas ete identifie correctement. - Be aware that from time to time our Anti-Spam system may reject mails either because some words and types of files are not allowed or because mails are misidentified. ** Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Image disappears
I forgot to say that I want to resize it to a size that fits in a window of 400x300. So it doesnt work. --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Seems, some different issue. Never mind. -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rockmoyosa Sent: Thursday, June 16, 2005 2:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Image disappears WHen my popup and canvas is bigger(900,900) than the original size of the image(800x600) it works fine. my structure is like this: popup w=900 h=900 canvas //(for background image) loader x=0 y=0/ /canvas /popup So when popup and canvas is smaller image disappears --- In flexcoders@yahoogroups.com, rockmoyosa [EMAIL PROTECTED] wrote: Im loading an image through AS. (just setting the contentpath/source). this Image is 800x600. Im openinng A Popup (TitleWindow) and than I set de the path. Giving the load command. It will load andeven the complete event is called. But no Image is shown. If I'm trying it by embedding the image it works. If I save the image and place it in my webapp and tha setting tghe path to local it works. If I get another smaller image from the same server it wordks also. but when I'm loading it from an other server it fails(loading will complete, but image is not visible). what seems to be the problem? MXML mx:Loader id=image_large width=350 height=240 visible=true autoLoad=false complete=loader.visible=false; progressbar.mode = 'manual'; progressbar.setProgress(100, 100) / - AS - this._scope.image_large.contentPath = +detailData.Content.Image.url; this._scope.image_large.load(); Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Flash + Cairngorm Example With Source Code
Good to see your solution blogged Robin ... as you quite rightly point out, the only real changes that are required are support for native Flash Remoting, which require changes to the Service Locator. In terms of the way you chose to structure the UI ...sounds valid, andto be honest our feeling with Cairngorm + Flash is "you can structure the UI however you want". There are many views on best-practice organisation of Flash applications (we have our own) and the nice thing about Cairngorm is that it's agnostic about how the Flash developer chooses to organise their application layout. Do you have source for your Service Locator and changes to commands that you'd be willing to contribute back to Cairngorm ? Pls I need this soon as possible for urgent deadline on project (Flexcoders joke). Best, Steven -- Steven WebsterTechnical Director iteration::two[EMAIL PROTECTED] Office: +44 (0)131 338 6108Mobile: +44 (0)7977 216 223 This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately.Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Robin HilliardSent: 16 June 2005 07:33To: flexcoders@yahoogroups.comSubject: [flexcoders] Flash + Cairngorm Example With Source Code FYI I have posted a Flash version of the Cairngorm sample application with source code on our blog: http://www.rocketboots.com.au/blog/index.cfm?mode=entryentry=83219052-E081-51EF-A73B5F4EF642C3F5 Cheers, Robin On 31/01/2005, at 11:10 AM, Robin Hilliard wrote: FYI the sample application code, README, presentation slides and meeting recording URL are available here: http://www.rocketboots.com.au/blog/index.cfm?mode=entryentry=C6173106-E081-51EF-A73336809276EB7C Robin On 27/01/2005, at 1:50 PM, Robin Hilliard wrote: Hi All, Just letting you know that I'm doing a little presentation on Flex and Cairngorm tomorrow as part of the Macromedia Australia - New Zealand Community seminar series. The meeting is at 3pm Australian Eastern Standard Time and will be recorded. The URL is http://www.macromedia.com/go/anzcommunity Cheers, Robin Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] legend is correct but just all black
Hi, I have a working (column) char. The basis of the chart is constructed with MXML. Using a function, ActionScript is executed later on to fill this chart with data, like: - the series objects - chart data provider All renders ok. When I add a legend I do the same: basis in MXML and in the function as above, I use ActionScript to set the dataprovider. The legend now shows the correct labels, but all in *black*... The legend uses not the corresponding colors as the chart... Any idea? Regards, Frederik Claerhout Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flash + Cairngorm Example With Source Code
In light of some of the posts over the past week, nice to see you can still crack a joke about it ;) Pls I need this soon as possible for urgent deadline on project (Flexcoders joke) hehe nice one Steven. Andrew www.flexdaddy.com --- In flexcoders@yahoogroups.com, Steven Webster [EMAIL PROTECTED] wrote: Good to see your solution blogged Robin ... as you quite rightly point out, the only real changes that are required are support for native Flash Remoting, which require changes to the Service Locator. In terms of the way you chose to structure the UI ... sounds valid, and to be honest our feeling with Cairngorm + Flash is you can structure the UI however you want. There are many views on best-practice organisation of Flash applications (we have our own) and the nice thing about Cairngorm is that it's agnostic about how the Flash developer chooses to organise their application layout. Do you have source for your Service Locator and changes to commands that you'd be willing to contribute back to Cairngorm ? Pls I need this soon as possible for urgent deadline on project (Flexcoders joke). Best, Steven -- Steven Webster Technical Director iteration::two mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] Office: +44 (0)131 338 6108 Mobile: +44 (0)7977 216 223 This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately. Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Robin Hilliard Sent: 16 June 2005 07:33 To: flexcoders@yahoogroups.com Subject: [flexcoders] Flash + Cairngorm Example With Source Code FYI I have posted a Flash version of the Cairngorm sample application with source code on our blog: http://www.rocketboots.com.au/blog/index.cfm?mode=entry http://www.rocketboots.com.au/blog/index.cfm?mode=entryentry=83219052-E081 -51EF-A73B5F4EF642C3F5 entry=83219052-E081-51EF-A73B5F4EF642C3F5 Cheers, Robin On 31/01/2005, at 11:10 AM, Robin Hilliard wrote: FYI the sample application code, README, presentation slides and meeting recording URL are available here: http://www.rocketboots.com.au/blog/index.cfm?mode=entry http://www.rocketboots.com.au/blog/index.cfm?mode=entryentry=C6173106-E081 -51EF-A73336809276EB7C entry=C6173106-E081-51EF-A73336809276EB7C Robin On 27/01/2005, at 1:50 PM, Robin Hilliard wrote: Hi All, Just letting you know that I'm doing a little presentation on Flex and Cairngorm tomorrow as part of the Macromedia Australia - New Zealand Community seminar series. The meeting is at 3pm Australian Eastern Standard Time and will be recorded. The URL is http://www.macromedia.com/go/anzcommunity Cheers, Robin _ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flash + Cairngorm Example With Source Code
Nice one Robin and the rocket shoes team ... its good to see a public example of a flex application that has been ported to native flash. congrats and keep up the good work ! Andrew www.flexdaddy.com --- In flexcoders@yahoogroups.com, Steven Webster [EMAIL PROTECTED] wrote: Good to see your solution blogged Robin ... as you quite rightly point out, the only real changes that are required are support for native Flash Remoting, which require changes to the Service Locator. In terms of the way you chose to structure the UI ... sounds valid, and to be honest our feeling with Cairngorm + Flash is you can structure the UI however you want. There are many views on best-practice organisation of Flash applications (we have our own) and the nice thing about Cairngorm is that it's agnostic about how the Flash developer chooses to organise their application layout. Do you have source for your Service Locator and changes to commands that you'd be willing to contribute back to Cairngorm ? Pls I need this soon as possible for urgent deadline on project (Flexcoders joke). Best, Steven -- Steven Webster Technical Director iteration::two mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] Office: +44 (0)131 338 6108 Mobile: +44 (0)7977 216 223 This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately. Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Robin Hilliard Sent: 16 June 2005 07:33 To: flexcoders@yahoogroups.com Subject: [flexcoders] Flash + Cairngorm Example With Source Code FYI I have posted a Flash version of the Cairngorm sample application with source code on our blog: http://www.rocketboots.com.au/blog/index.cfm?mode=entry http://www.rocketboots.com.au/blog/index.cfm?mode=entryentry=83219052-E081 -51EF-A73B5F4EF642C3F5 entry=83219052-E081-51EF-A73B5F4EF642C3F5 Cheers, Robin On 31/01/2005, at 11:10 AM, Robin Hilliard wrote: FYI the sample application code, README, presentation slides and meeting recording URL are available here: http://www.rocketboots.com.au/blog/index.cfm?mode=entry http://www.rocketboots.com.au/blog/index.cfm?mode=entryentry=C6173106-E081 -51EF-A73336809276EB7C entry=C6173106-E081-51EF-A73336809276EB7C Robin On 27/01/2005, at 1:50 PM, Robin Hilliard wrote: Hi All, Just letting you know that I'm doing a little presentation on Flex and Cairngorm tomorrow as part of the Macromedia Australia - New Zealand Community seminar series. The meeting is at 3pm Australian Eastern Standard Time and will be recorded. The URL is http://www.macromedia.com/go/anzcommunity Cheers, Robin _ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Charting
Has anyone done any charting with complex objects or are all using only basic xml for charting data ? Rich On 6/15/05, Rich Tretola [EMAIL PROTECTED] wrote: All of the macromedia examples are using xml for their datasource and then hard coding the node name into the column series. Example: XML: data result month=Jan-04 average=203443 apple224254/apple orange221819/orange banana164256/banana /result result month=Feb-04 average=180365 apple191012/apple orange217965/orange banana132120/banana /result /data Column Series: mx:series mx:Array mx:ColumnSeries yField=apple name=Apple/ mx:ColumnSeries yField=orange name=Orange/ mx:ColumnSeries yField=banana name=Banana/ /mx:Array /mx:series Is there anyway to use a dataprovider specific to the ColumnSeries Array or wrap the ColumnSeries tag with a repeater ? I can't seem to get either to work. My data consists of an array of year objects with a sub array of quarter objects. Object FiscalYear: year:String revenue:Number: 10 Array: quarters Object Quarter: year:String: quarter:String revenue:Number I want to have a grouped chart with a grouping for each year that has 4 columns representing each quarter. Rich Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: Image disappears
If you are using Loader, then it should be doing the same for you. Set the width, height of Loader and your image would be resized to that size. For example: mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Loader source=http://www.bigfoto.com/sites/galery/flowers1/flow011_small.jpg; width=400 height=300/ /mx:Application -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rockmoyosa Sent: Thursday, June 16, 2005 2:45 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Image disappears I forgot to say that I want to resize it to a size that fits in a window of 400x300. So it doesnt work. --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Seems, some different issue. Never mind. -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rockmoyosa Sent: Thursday, June 16, 2005 2:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Image disappears WHen my popup and canvas is bigger(900,900) than the original size of the image(800x600) it works fine. my structure is like this: popup w=900 h=900 canvas //(for background image) loader x=0 y=0/ /canvas /popup So when popup and canvas is smaller image disappears --- In flexcoders@yahoogroups.com, rockmoyosa [EMAIL PROTECTED] wrote: Im loading an image through AS. (just setting the contentpath/source). this Image is 800x600. Im openinng A Popup (TitleWindow) and than I set de the path. Giving the load command. It will load andeven the complete event is called. But no Image is shown. If I'm trying it by embedding the image it works. If I save the image and place it in my webapp and tha setting tghe path to local it works. If I get another smaller image from the same server it wordks also. but when I'm loading it from an other server it fails(loading will complete, but image is not visible). what seems to be the problem? MXML mx:Loader id=image_large width=350 height=240 visible=true autoLoad=false complete=loader.visible=false; progressbar.mode = 'manual'; progressbar.setProgress(100, 100) / - AS - this._scope.image_large.contentPath = +detailData.Content.Image.url; this._scope.image_large.load(); Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Flash + Cairngorm Example With Source Code
|Do you have source for your Service Locator and changes to commands that you'd be willing | to contribute back to Cairngorm ? I should read your blog entry morecarefully...I've just taken a look at the code. Exactly as it should be ... good job; the business delegate and service locator encapsulate the Flex/Flash change, so that your commands are oblivious to the implementation of the service (as they should be). Meanwhile, you demonstrate a clear reason as to how the ViewHelper classes also abstract the implementation of the view, so that your commands are also oblivious to the view implementation. This is pretty much the same implementation we put in the ActionScript 2.0 Dictionary (except the updated Remoting classes weren't available at the time) ... we should be making that chapter available for download soon actualy. As an RIA scales, it tends to scale in the controller/command tier; your solution also accomodates this. I like it -- good job. I'll post more later today about Kent's enquiry about Commands and Delegates; but Robin's post I guess shows one benefits of the Command/Delegate separator - that the Delegate can encapsulate the implementation of the services, such that the Commands are protocol-agnostic. Best, Steven -- Steven WebsterTechnical Director iteration::two[EMAIL PROTECTED] Office: +44 (0)131 338 6108Mobile: +44 (0)7977 216 223 This e-mail and any associated attachments transmitted with it may contain confidential information and must not be copied, or disclosed, or used by anyone other than the intended recipient(s). If you are not the intended recipient(s) please destroy this e-mail, and any copies of it, immediately.Please also note that while software systems have been used to try to ensure that this e-mail has been swept for viruses, iteration::two do not accept responsibility for any damage or loss caused in respect of any viruses transmitted by the e-mail. Please ensure your own checks are carried out before any attachments are opened. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Gartner's Take on Rich Internet Applications: Enterprise Case Studies
A very informative webcast on: http://library.theserverside.com/detail/RES/1118664109_777.html?src=rss_aa Abstract: Rich Internet Application (RIA) technology has been identified as one of the major software trends for 2005. Register for this webcast to hear Gartner's perspective on current RIA dynamics and what you can expect from its evolution. This webcast offers insight into which business and technical challenges RIA can solve and the technical features that are critical to the success of RIA solutions. This webcast will also feature real-world case studies that highlight innovative enterprises that employ RIA technology. Sponsor: Nexaweb Technologies, Inc. Author(s): Mark Driver, Gartner Analyst Scott Cranton, Director of Product Strategy Nexaweb Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flash + Cairngorm Example With Source Code
On 16/06/2005, at 7:51 PM, Steven Webster wrote:it should be ... good job; the business delegate and service locator encapsulate the Flex/Flashchange, so that your commands are oblivious to the implementation of the service (as theyshould be).Working with ColdFusion there's one thing that I'm now doing differently to the sample code - I get the delegate to intercept the server result and copy the values into an instance of the correct VO type, then call the original responder's onResult() method. This is because of an experience I had in an earlier Flash/Cairngorm app, where I discovered that what I thought was an instance of a particular VO type with some getter/setter logic (which I do occasionally use in VOs) was actually a vanilla object with no getter/setters - I had assumed that somehow the cast in my Command's onResult had turned it into the type I wanted, where in fact all it does is stop the compiler generating a type mismatch for that line of code. Andrew has just blogged about this on FlexDaddy.So for Kent, the above is one instance of the separation of the Command/Delegate being useful by hiding a server specific issue (ColdFusion's loose typing) in the Delegate. Another similar example is a Flex application we're working on that communicates in xml request/response strings with the server. All the creation of the xml request string and the parsing of the response are handled in the delegates - if we swap to a non-xml format later then the Commands will be none the wiser, they work exclusively with VOs.Finally, in the same application we have a few commands that trigger off a string of four or more server calls via delegates in a row, so the mapping of commands to delegates is 1:many (I've written a little state-machine logic in my commands onResult using (gasp) a case statement - unfortunately I haven't seen Steven's solution for this in 0.99 at this point, will have a look soon but it may take a bit to tear me from my state machines, which work rather nicely).Cheers,Robinhttp://www.rocketboots.com.au Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Serialization error with Timestamp
Thanks for your response Matt. That Date field (in my AS class) is never getting modified. I am simply passing the Pojo from my datagrid (with the 1 String field I did modify) so I don't know why the Date would get converted as a String?? For now I guess I'll change my updateIt() method to take 2 params, the unique Id and the field I'm updating. --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: It might be that it wasn't an AS Date but actually was a String that got sent across? Also if the cast to Pojo is failing maybe it didn't actually create the proper ActionScript class when it came back? Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Ewok Sent: Wednesday, June 15, 2005 3:03 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Serialization error with Timestamp List, I saw in a previous posting that a Date field in a registered AS class cannot cannot be serialized to a java.sql.Timestamp field to its' registered Java pojo. I have a datagrid where i make a cell edit, and I pass that object to my remoteObject like so: // method code called from cellEdit attribute of datagrid var selected:Pojo = datagrid.dataProvider.getItemAt (event.itemIndex); remoteObj.updateIt(selected); throws this error: 17:52:07,421 INFO [STDOUT] Info: Serializing response (Message #0 targetURI=/2/onStatus, responseURI=null) (Object #0) level = error code = Server.Processing type = flashgateway.GatewayException rootcause = (Object #1) level = error code = null type = flashgateway.translator.ASTranslationException details = flashgateway.translator.ASTranslationException: Could not set object Sun Dec 15 13:31:50 EST 2002 on class Pojo' s method setServiceDate at flashgateway.translator.decoder.JavaBeanDecoder.decodeObject (JavaBeanDecoder.java:99) at flashgateway.translator.decoder.ActionScriptDecoder.decodeObject (ActionScriptDecoder.java:22) at flashgateway.translator.ASTranslator.fromActionScript (ASTranslator.java:187) at flashgateway.adapter.java.JavaAdapter.checkAndTranslateParams (JavaAdapter.java:338) at flashgateway.adapter.java.JavaAdapter.getMethod (JavaAdapter.java:172) at flashgateway.adapter.java.JavaAdapter.invokeFunction (JavaAdapter.java:54) at flashgateway.filter.AdapterFilter.invoke (AdapterFilter.java:117) at flashgateway.filter.MessageSecurityFilter.invoke (MessageSecurityFilter.java:144) .. What I am consfused about is that my datagrid loads the data initially (and displays the date/time)!!! So obviously it has no problem serializing from a java.sql.Timestamp to an AS Date. Am I doing something wrong? I tried doing my call like this. It didn't throw an error, but all the values were null. var selected:Pojo = new Pojo(datagrid.dataProvider.getItemAt (event.itemIndex)); remoteObj.updateIt(selected); thanks. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Datagrid, Cellrenderer Combos
The grid is bound to an array of objects. I've tried adding blank objects to force the combos in the renderers but no go. The grid item returns blank but the combos still default to their original value from the previously deleted item. Stace -Original Message- From: Darron J. Schall [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 15, 2005 10:45 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Datagrid, Cellrenderer Combos Stacy Young wrote: Now, if a user were to delete a row then click 'add' for a new row...the combo's appear but they default to the value of the previous record that was deleted! (as if the objects were not really destroyed) Adding a new row at any other time defaults normally. What does the code for adding a new row look like? Are you adding a new object with properties explicitly set to default values? Like... dataProvider.addItem({prop1:,prop2:17}); ? -d Yahoo! Groups Links table width=800 cellpadding=4 cellspacing=10 border=0tr bgcolor=BDBDBDtd valign=top width=400font face=verdana size=2 color=FFbAVIS IMPORTANT/b/font/tdtd valign=top width=400font face=verdana size=2 color=FFbWARNING/b/font/td/trtrtd valign=top width=400p align=justifyfont face=verdana size=1 color=808080 Les informations contenues dans le present document et ses pieces jointes sont strictement confidentielles et reservees a l'usage de la (des) personne(s) a qui il est adresse. Si vous n'etes pas le destinataire, soyez avise que toute divulgation, distribution, copie, ou autre utilisation de ces informations est strictement prohibee. Si vous avez recu ce document par erreur, veuillez s'il vous plait communiquer immediatement avec l'expediteur et detruire ce document sans en faire de copie sous quelque forme./tdtd valign=top width=400p align=justifyfont face=verdana size=1 color=808080 The information contained in this document and attachments is confidential and intended only for the person(s) named above. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution, or any other use of the information is strictly prohibited. If you have received this document by mistake, please notify the sender immediately and destroy this document and attachments without making any copy of any kind./td/tr/table Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: Charting
Rich -- the charts will work fine on objects instead of xml, but they are written to work only off of a flat array of objects. As you have discovered, there is no way to point a particular series to look down into a nested reference in the dataprovider for its data. This is a great feature request, so if you want to submit it to the wish list that would be great. In the meantime, you'll have to masssage your data into a flat list, either on the client or the server, before displaying it in the chart. Ely. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rich Tretola Sent: Thursday, June 16, 2005 5:42 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Charting Importance: High Has anyone done any charting with complex objects or are all using only basic xml for charting data ? Rich On 6/15/05, Rich Tretola [EMAIL PROTECTED] wrote: All of the macromedia examples are using xml for their datasource and then hard coding the node name into the column series. Example: XML: data result month=Jan-04 average=203443 apple224254/apple orange221819/orange banana164256/banana /result result month=Feb-04 average=180365 apple191012/apple orange217965/orange banana132120/banana /result /data Column Series: mx:series mx:Array mx:ColumnSeries yField=apple name=Apple/ mx:ColumnSeries yField=orange name=Orange/ mx:ColumnSeries yField=banana name=Banana/ /mx:Array /mx:series Is there anyway to use a dataprovider specific to the ColumnSeries Array or wrap the ColumnSeries tag with a repeater ? I can't seem to get either to work. My data consists of an array of year objects with a sub array of quarter objects. Object FiscalYear: year:String revenue:Number: 10 Array: quarters Object Quarter: year:String: quarter:String revenue:Number I want to have a grouped chart with a grouping for each year that has 4 columns representing each quarter. Rich Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Image disappears
I already did this! --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: If you are using Loader, then it should be doing the same for you. Set the width, height of Loader and your image would be resized to that size. For example: mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Loader source=http://www.bigfoto.com/sites/galery/flowers1/flow011_small.jpg; width=400 height=300/ /mx:Application -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rockmoyosa Sent: Thursday, June 16, 2005 2:45 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Image disappears I forgot to say that I want to resize it to a s ize that fits in a window of 400x300. So it doesnt work. --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Seems, some different issue. Never mind. -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rockmoyosa Sent: Thursday, June 16, 2005 2:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Image disappears WHen my popup and canvas is bigger(900,900) than the original size of the image(800x600) it works fine. my structure is like this: popup w=900 h=900 canvas //(for background image) loader x=0 y=0/ /canvas /popup So when popup and canvas is smaller image disappears --- In flexcoders@yahoogroups.com, rockmoyosa [EMAIL PROTECTED] wrote: Im loading an image through AS. (just setting the contentpath/source). this Image is 800x600. Im openinng A Popup (TitleWindow) and than I set de the path. Giving the load command. It will load andeven the complete event is called. But no Image is shown. If I'm trying it by embedding the image it works. If I save the image and place it in my webapp and tha setting tghe path to local it works. If I get another smaller image from the same server it wordks also. but when I'm loading it from an other server it fails(loading will complete, but image is not visible). what seems to be the problem? MXML mx:Loader id=image_large width=350 height=240 visible=true autoLoad=false complete=loader.visible=false; progressbar.mode = 'manual'; progressbar.setProgress(100, 100) / - AS - this._scope.image_large.contentPath = +detailData.Content.Image.url; this._scope.image_large.load(); Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Java intefaces as remote objects?
Instead of using POJO's can we use Java Intefaces definitions instead? Whena guy on our team tested it he got a class instantiation error... If the answer is no then I gess I could add it to the wish list for 2.0. Thanks Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Java intefaces as remote objects?
RemoteObject would need an implementation of an interface in order to invoke it... how would you specify this? It seems that once you've specified the implementation you don't really care about the interface anymore... so you're back to a concrete object. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clint ModienSent: Thursday, June 16, 2005 10:09 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Java intefaces as remote objects? Instead of using POJO's can we use Java Intefaces definitions instead? Whena guy on our team tested it he got a class instantiation error... If the answer is no then I gess I could add it to the wish list for 2.0. Thanks Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Setting a RadioButton from data...
Hi, I feel as though this should be obvious but I can't see it! I have a RadioButtonGroup called 'channel'. In 'channel' I have two RadioButtons - one which has a data value of 'Direct' and the other 'Indirect'. The datasource I'm using contains a field 'channel_code'. When a row in the grid associated with my datasource changes, I want to set the approproate RadioButton in the 'channel' group according to whatever the new value of 'channel_code' is. I can see I can obviously fire an AS function on rowChange to figure out which RadioButton to set - but this seems extremely clunky and I'm hoping there's a more elegant approach - perhaps using Binding ??? Anyone offer any advice on this ? Thanks, Jamie. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Java intefaces as remote objects?
Hi Clint, you can't use interfaces as the name of thesource in RemoteObject, since we do a Class.forName() call for the name. It's really not possible for such a thing to ever work,since something needs to be instantiated for the RemoteObject. You should be able to use a class that implements an interface, though. -Brian From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clint ModienSent: Thursday, June 16, 2005 10:09 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Java intefaces as remote objects? Instead of using POJO's can we use Java Intefaces definitions instead? Whena guy on our team tested it he got a class instantiation error... If the answer is no then I gess I could add it to the wish list for 2.0. Thanks Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] All framework classes get compiled into RSL?
I try to package a subset of the Flex framework into a RSL but I always get the whole framework compiled into the resulting SWC file. Even with this bare-bone SWS file library namespace uri=http://www.macromedia.com/2003/mxml; all=false component name=Button / /namespace /library the resulting SWC is 352 KB in size and contains every class. Ideas? Dirk. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Validation errortip placement
I want an errortip on or on bottom of my textfield, instead of on the rightside. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] https
Title: Message Been away for a few days. Has anyone deteremined what I have not done or done wrong? -S From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson HagerSent: Friday, June 10, 2005 4:14 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] https What you're seeing is exactly what we were seeing before making these changes. This fixed it for us. Dave - Do you see anything missing here? Carson Carson HagerCynergy Systems, Inc.http://www.cynergysystems.com Email: [EMAIL PROTECTED]Office: 866-CYNERGY ext. 89Mobile: 1.703.489.6466 Take PowerBuilder to the Web with EAF 4.0http://www.cynergysystems.com/public/products/eaf From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve PruittSent: Friday, June 10, 2005 3:59 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] https I did. I have. I tried both Basic and Form entries. I put the entries in a file name context.xml and put the file under META-INF. I didn't need to create the META-INF directory, I already had one. Deleted all temporary caches and restarted Tomcat. I also, as someone else, suggested import my certifiicate intoIE. I get the popup warning about both secure and nonsecure items on the webpage. While the popup is active, there is a broken object icon in the top left corner. As soon as I hit ok, the icon goes away and I am left with a blank page. I can view source and its all there. -S From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson HagerSent: Friday, June 10, 2005 3:46 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] https That's exactly right. It does work on FFX. It is only the combination of IE/Tomcat/SSL and Auth. I would look this over again and make sure restarted tomcat, etc. Carson Carson HagerCynergy Systems, Inc.http://www.cynergysystems.com Email: [EMAIL PROTECTED]Office: 866-CYNERGY ext. 89Mobile: 1.703.489.6466 Take PowerBuilder to the Web with EAF 4.0http://www.cynergysystems.com/public/products/eaf From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve PruittSent: Friday, June 10, 2005 3:42 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] https Unfortunately, this did not fix my problem. Its definately an IE problem, it runs ok in Firefox. -S From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson HagerSent: Friday, June 10, 2005 3:27 PMTo: flexcoders@yahoogroups.comCc: Dave WolfSubject: RE: [flexcoders] https This was posted to the web forums by Dave Wolf fromour company. I haven't seen it post out here yet and it's been several hours so here is the explanation and resolution to the problem. This is a bug in IE6 caused by the cache-control headers being set byTomcat 5.X when combined with HTTP auth and SSL and binary contentsuch as a swf.The fix is the following which will disable setting the proper buttroublesome cache-control header.In the flex web app, add a META-INF directory. Inside of thatdirectory create a documentcontext.xmlWithin this file add the following line.Valve className="org.apache.catalina.authenticator.FormAuthenticator" disableProxyCaching="false" /If you are using BASIC instead of form just useValve className="org.apache.catalina.authenticator.BasicAuthenticator" disableProxyCaching="false" /Youre problem will go away.Dave WolfCynergy Systemshttp://www.cynergysystems.com Carson HagerCynergy Systems, Inc.http://www.cynergysystems.com Email: [EMAIL PROTECTED]Office: 866-CYNERGY ext. 89Mobile: 1.703.489.6466 Take PowerBuilder to the Web with EAF 4.0http://www.cynergysystems.com/public/products/eaf From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Battershall, JeffSent: Friday, June 10, 2005 12:15 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] https Steve, For that cert to work, you've got to import it into IE first, I'm pretty sure. Jeff -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve PruittSent: Friday, June 10, 2005 11:48 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] https All, I am trying to get my Flex app working under https. I running with Tomcat using a self-signed certificate. I modified flex-config and opened up the http service whitelist to accept any https url. To kick it off and find the first point of failure, I just changed my url to https://localhost:8443/myApp/main.jsp. The jsp loads my swf file. After a security popup warning, IE is hung trying to load https://localhost:8443/anywhere/flex-internal/secure/history/history.html. This file or its directory does not exist. Can someone explain what Flex is doing?'
[flexcoders] Assigning a AS variable to the return value of a web service
help please: new at AS 2, How do I assign a return from a WS to a AS variable. Example here is what I have so far and its erroring out. 1 Error found. Error /gvs/gvsStartB.mxml:21 This statement is not permitted in a class definition. mx:WebService wsdl=http://blahblah/_cfc/gvs_reports.cfc?wsdl; id=gvsJob mx:operation name=ReportJob / /mx:WebService mx:Script ![CDATA[ var JobRunning:Object = ReportJob.DataAvailable.result; ]] //Checks to see if database Jobs are running, if they are not it will //say available = yes, if they are it will say available = no if (JobRunning == No) { someactions } /mx:Script Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Panel Title Binding
Is there a known issue with binding a panel title to a piece of data ? The screen does not redraw when the data changes. Ex: mx:Panel title={ModelLocator.getInstance().selectedYear} width=100% height=100% ... /mx:Panel Rich Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Image disappears
--- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: If you are using Loader, then it should be doing the same for you. Set the width, height of Loader and your image would be resized to that size. For example: mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Loader source=http://www.bigfoto.com/sites/galery/flowers1/flow011_small.jpg; width=400 height=300/ /mx:Application -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rockmoyosa Sent: Thursday, June 16, 2005 2:45 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Image disappears I forgot to say that I want to resize it to a size that fits in a window of 400x300. So it doesnt work. --- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote: Seems, some different issue. Never mind. -abdul -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rockmoyosa Sent: Thursday, June 16, 2005 2:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Image disappears WHen my popup and canvas is bigger(900,900) than the original size of the image(800x600) it works fine. my structure is like this: popup w=900 h=900 canvas //(for background image) loader x=0 y=0/ /canvas /popup So when popup and canvas is smaller image disappears --- In flexcoders@yahoogroups.com, rockmoyosa [EMAIL PROTECTED] wrote: Im loading an image through AS. (just setting the contentpath/source). this Image is 800x600. Im openinng A Popup (TitleWindow) and than I set de the path. Giving the load command. It will load andeven the complete event is called. But no Image is shown. If I'm trying it by embedding the image it works. If I save the image and place it in my webapp and tha setting tghe path to local it works. If I get another smaller image from the same server it wordks also. but when I'm loading it from an other server it fails(loading will complete, but image is not visible). what seems to be the problem? MXML mx:Loader id=image_large width=350 height=240 visible=true autoLoad=false complete=loader.visible=false; progressbar.mode = 'manual'; progressbar.setProgress(100, 100) / - AS - this._scope.image_large.contentPath = +detailData.Content.Image.url; this._scope.image_large.load(); Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Assigning a AS variable to the return value of a web service
You need to put statements in functions (Waldo's article on this grabbed from google since the site isn't returning for me): http://64.233.187.104/search?q=cache:7i7Ah65NYooJ:www.waldosmeets.com/in dex.cfm%3FentryID%3D550+flex+%22not+permitted+in+a+class+definition%22h l=en -Brian -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gotjosh819i Sent: Thursday, June 16, 2005 12:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Assigning a AS variable to the return value of a web service help please: new at AS 2, How do I assign a return from a WS to a AS variable. Example here is what I have so far and its erroring out. 1 Error found. Error /gvs/gvsStartB.mxml:21 This statement is not permitted in a class definition. mx:WebService wsdl=http://blahblah/_cfc/gvs_reports.cfc?wsdl; id=gvsJob mx:operation name=ReportJob / /mx:WebService mx:Script ![CDATA[ var JobRunning:Object = ReportJob.DataAvailable.result; ]] //Checks to see if database Jobs are running, if they are not it will //say available = yes, if they are it will say available = no if (JobRunning == No) { someactions } /mx:Script Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] https
Title: Message Hi Steve, I'm not surewhat else to suggest here. It seems Carson/Dave are seeing the same thing and have a solution that works for them, and I'm not sure why it doesn't work for you. Perhaps you can ask on a Tomcat list how to turn off the "cache-control" header? If you do find a solution, let us know. -Brian From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve PruittSent: Thursday, June 16, 2005 10:35 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] https Been away for a few days. Has anyone deteremined what I have not done or done wrong? -S From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson HagerSent: Friday, June 10, 2005 4:14 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] https What you're seeing is exactly what we were seeing before making these changes. This fixed it for us. Dave - Do you see anything missing here? Carson Carson HagerCynergy Systems, Inc.http://www.cynergysystems.com Email: [EMAIL PROTECTED]Office: 866-CYNERGY ext. 89Mobile: 1.703.489.6466 Take PowerBuilder to the Web with EAF 4.0http://www.cynergysystems.com/public/products/eaf From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve PruittSent: Friday, June 10, 2005 3:59 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] https I did. I have. I tried both Basic and Form entries. I put the entries in a file name context.xml and put the file under META-INF. I didn't need to create the META-INF directory, I already had one. Deleted all temporary caches and restarted Tomcat. I also, as someone else, suggested import my certifiicate intoIE. I get the popup warning about both secure and nonsecure items on the webpage. While the popup is active, there is a broken object icon in the top left corner. As soon as I hit ok, the icon goes away and I am left with a blank page. I can view source and its all there. -S From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson HagerSent: Friday, June 10, 2005 3:46 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] https That's exactly right. It does work on FFX. It is only the combination of IE/Tomcat/SSL and Auth. I would look this over again and make sure restarted tomcat, etc. Carson Carson HagerCynergy Systems, Inc.http://www.cynergysystems.com Email: [EMAIL PROTECTED]Office: 866-CYNERGY ext. 89Mobile: 1.703.489.6466 Take PowerBuilder to the Web with EAF 4.0http://www.cynergysystems.com/public/products/eaf From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve PruittSent: Friday, June 10, 2005 3:42 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] https Unfortunately, this did not fix my problem. Its definately an IE problem, it runs ok in Firefox. -S From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Carson HagerSent: Friday, June 10, 2005 3:27 PMTo: flexcoders@yahoogroups.comCc: Dave WolfSubject: RE: [flexcoders] https This was posted to the web forums by Dave Wolf fromour company. I haven't seen it post out here yet and it's been several hours so here is the explanation and resolution to the problem. This is a bug in IE6 caused by the cache-control headers being set byTomcat 5.X when combined with HTTP auth and SSL and binary contentsuch as a swf.The fix is the following which will disable setting the proper buttroublesome cache-control header.In the flex web app, add a META-INF directory. Inside of thatdirectory create a documentcontext.xmlWithin this file add the following line.Valve className="org.apache.catalina.authenticator.FormAuthenticator" disableProxyCaching="false" /If you are using BASIC instead of form just useValve className="org.apache.catalina.authenticator.BasicAuthenticator" disableProxyCaching="false" /Youre problem will go away.Dave WolfCynergy Systemshttp://www.cynergysystems.com Carson HagerCynergy Systems, Inc.http://www.cynergysystems.com Email: [EMAIL PROTECTED]Office: 866-CYNERGY ext. 89Mobile: 1.703.489.6466 Take PowerBuilder to the Web with EAF 4.0http://www.cynergysystems.com/public/products/eaf From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Battershall, JeffSent: Friday, June 10, 2005 12:15 PMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] https Steve, For that cert to work, you've got to import it into IE first, I'm pretty sure. Jeff -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve PruittSent: Friday, June 10, 2005 11:48 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] https All, I am trying to get my Flex app working under https. I running with Tomcat using a
RE: [flexcoders] Panel Title Binding
I think it is a loading issue. I just created a public static var and hardcoded a string in my ModelLocator and it pulled that value. You may have to set the title in the initialize function to make sure you get the right data. You might also try to put title after you import your ModelLocator. Like this: mx:Panel mx:Script import myflexhome.model.ModelLocator; /mx:Script mx:title{ModelLocator.title}/mx:title /mx:Panel I did find something that looks like a problem, the icon property of Container that Panel extends doesn't seem to have any effect on a Panel. I would think it would put the icon next to the title. Maybe there is another way to put an icon next to the title. -Kent -Original Message- Is there a known issue with binding a panel title to a piece of data ? The screen does not redraw when the data changes. Ex: mx:Panel title={ModelLocator.getInstance().selectedYear} width=100% height=100% ... /mx:Panel Rich smime.p7s Description: S/MIME cryptographic signature
[flexcoders] Comboboxes and TitleWindows
I noticed something strange happening and I wanted to know if anyone had a solution or if I'm doing something completely wrong/weird... I have an ActionScript method that uses the popup manager to create a custom TitleWindow component like so: var reportWindow:TitleWindow = TitleWindow(PopUpManager.createPopUp( this, ReportWindow, false, {title: reportName, width: w, height: h, reportPath: url, reportType: reportType, showExport: true})); Now my custom ReportWindow component contains a combobox in the upper right hand corner of the window that is populated by the creationComplete listener of the window. Now if a user clicks the button three times that triggers the method above to create 3 separate instances of my custom ReportWindow popupthe first window opens and the combobox is populated, the second window opens, the combobox is populated but it now has duplicated every single element in the combobox AS has the combobox in the 1st window that was openedthen the 3rd window opens and now all three comboboxes in each of the windows has triplicated every single element in the combobox. Why is this? Ive gotten around this by statically listing the elements of the dataprovider for the combobox like this: mx:ComboBox width=200 id=formatTypes change=exportReport(event); mx:dataProvider mx:Array mx:Object label=Export this report to... / mx:Object label=pdf / mx:Object label=xml / mx:Object label=csv / mx:Object label=pipe / mx:Object label=html / mx:Object label=excel / mx:Object label=word / /mx:Array /mx:dataProvider /mx:ComboBox And now each window opens with the correctly populated comboboxbefore, the method being called by the windows creationComplete listener was calling this method (which was causing the duplication of values in all comboboxes across the board): public function setExportFormats() { formats.push({label: html}); formats.push({label: xml}); formats.push({label: csv}); formats.push({label: pipe}); formats.push({label: pdf}); formats.push({label: word}); formats.push({label: excel}); formatTypes.dataProvider = formats; } Why the heck would a method in my third window used to populate the combobox in THAT window ALSO be populating the comboboxes in all open windows? Am I missing something here? robert l. brueckmann senior web developer 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. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] All framework classes get compiled into RSL?
Hi Dirk, I'm not positive on this, but I don't think you actually have all of the framework in the SWC file. I'd guess that you wouldn't see, for instance, MediaDisplay in it. You see more components than just Button because we will automatically include all components/classes that Button needs- this includes a bulk of the core of the framework. -Brian -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dirk Eismann Sent: Thursday, June 16, 2005 10:20 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] All framework classes get compiled into RSL? I try to package a subset of the Flex framework into a RSL but I always get the whole framework compiled into the resulting SWC file. Even with this bare-bone SWS file library namespace uri=http://www.macromedia.com/2003/mxml; all=false component name=Button / /namespace /library the resulting SWC is 352 KB in size and contains every class. Ideas? Dirk. Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Assigning a AS variable to the return value of a web service
thanks good info to know. However it doesnt answer my question to how I put a web service return (which happens to be only a yes or no) and assign it to a action script variable. Any ideas on that one? --- In flexcoders@yahoogroups.com, Brian Deitte [EMAIL PROTECTED] wrote: You need to put statements in functions (Waldo's article on this grabbed from google since the site isn't returning for me): http://64.233.187.104/search? q=cache:7i7Ah65NYooJ:www.waldosmeets.com/in dex.cfm%3FentryID%3D550+flex+%22not+permitted+in+a+class+definition% 22h l=en -Brian -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gotjosh819i Sent: Thursday, June 16, 2005 12:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Assigning a AS variable to the return value of a web service help please: new at AS 2, How do I assign a return from a WS to a AS variable. Example here is what I have so far and its erroring out. 1 Error found. Error /gvs/gvsStartB.mxml:21 This statement is not permitted in a class definition. mx:WebService wsdl=http://blahblah/_cfc/gvs_reports.cfc?wsdl; id=gvsJob mx:operation name=ReportJob / /mx:WebService mx:Script ![CDATA[ var JobRunning:Object = ReportJob.DataAvailable.result; ]] //Checks to see if database Jobs are running, if they are not it will //say available = yes, if they are it will say available = no if (JobRunning == No) { someactions } /mx:Script Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] All framework classes get compiled into RSL?
Brian is correct. See my RSL article for additional details. http://www.macromedia.com/devnet/flex/articles/rsl.html Unfortunately, there are some rather bushy dependencies inside the 1.5 framework code (uiobjects keep track of their application which uses an alert window which...) that make the minimum frameworks buy-in larger than ideal. Also note that there is little difference between putting stuff in the app and putting it in the RSL unless you are sharing common code with two apps. Its all about amortized download performance. -Roger Roger Gonzalez mailto:[EMAIL PROTECTED] -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Deitte Sent: Thursday, June 16, 2005 10:22 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] All framework classes get compiled into RSL? Hi Dirk, I'm not positive on this, but I don't think you actually have all of the framework in the SWC file. I'd guess that you wouldn't see, for instance, MediaDisplay in it. You see more components than just Button because we will automatically include all components/classes that Button needs- this includes a bulk of the core of the framework. -Brian -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dirk Eismann Sent: Thursday, June 16, 2005 10:20 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] All framework classes get compiled into RSL? I try to package a subset of the Flex framework into a RSL but I always get the whole framework compiled into the resulting SWC file. Even with this bare-bone SWS file library namespace uri=http://www.macromedia.com/2003/mxml; all=false component name=Button / /namespace /library the resulting SWC is 352 KB in size and contains every class. Ideas? Dirk. Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Flash + Cairngorm Example With Source Code
Thanks Robin and Steven. That makes total sense. I have been approaching my current implementation with a background in Java and JSPs not in Cold Fusion or even thinking about it by doing what I would call a poor mans version of web services (xml sans SOAP). I have been lucky enough to be using the AMF gateway for this. In the end I am left with the following network architecture: Flex Side Network J2EE Server - -- || - --- -- | Command | = | Delegate | = || = | Command | = | Business Delegate | = | EJBs | - -- || - --- -- By doing this I allow Struts to be a Command on the server side and can keep my Business Delegate clean of any HTTPRequest or AMF processing knowledge. I guess the only open question is would you still pass different Command objects to the Delegate on the Flex side and have more then one function in the delegate that does processing or would you keep it as a one to one relationship between Commands and Delegates to avoid accidental calls of the wrong onResult handler? BTW Once I finally got a grasp on the basics of Cairngorm and Flex my development has been able to movie very fast. Now to figure out all the nuances in Flex containers to add the polish. -Kent From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Robin Hilliard Sent: Thursday, June 16, 2005 4:25 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flash + Cairngorm Example With Source Code So for Kent, the above is one instance of the separation of the Command/Delegate being useful by hiding a server specific issue (ColdFusion's loose typing) in the Delegate. Another similar example is a Flex application we're working on that communicates in xml request/response strings with the server. All the creation of the xml request string and the parsing of the response are handled in the delegates - if we swap to a non-xml format later then the Commands will be none the wiser, they work exclusively with VOs. Finally, in the same application we have a few commands that trigger off a string of four or more server calls via delegates in a row, so the mapping of commands to delegates is 1:many (I've written a little state-machine logic in my commands onResult using (gasp) a case statement - unfortunately I haven't seen Steven's solution for this in 0.99 at this point, will have a look soon but it may take a bit to tear me from my state machines, which work rather nicely). smime.p7s Description: S/MIME cryptographic signature
RE: [flexcoders] Re: Assigning a AS variable to the return value of a web service
By the look of it you are trying to use DataAvailable and it is not valid. You might want to try this: ![CDATA[ var JobRunning:Object = gvsJob.ReportJob.result; ]] This appears to be the way the example in the Flex Samples Explorer-Dynamic Data Services does it. wsId.operation.result You may have to dig through the result for what you want but that is probably not hard. -Kent -Original Message- mx:WebService wsdl=http://blahblah/_cfc/gvs_reports.cfc?wsdl; id=gvsJob mx:operation name=ReportJob / /mx:WebService mx:Script ![CDATA[ var JobRunning:Object = ReportJob.DataAvailable.result; ]] //Checks to see if database Jobs are running, if they are not it will //say available = yes, if they are it will say available = no if (JobRunning == No) { someactions } /mx:Script smime.p7s Description: S/MIME cryptographic signature
RE: [flexcoders] Flash + Cairngorm Example With Source Code
Hi Kent, Thanks Robin and Steven. That makes total sense. I have been approaching my current implementation with a background in Java and JSPs not in Cold Fusion or even thinking about it by doing what I would call a poor mans version of web services (xml sans SOAP). I have been lucky enough to be using the AMF gateway for this. In the end I am left with the following network architecture: For avoidance of doubt, I'm approaching this very much from a J2EE background as well, like yourself. To answer your question on "couldn't a client-side command just invoke server-side command" the answer is that yes, it could. I'm loathe to become religious about how the patterns should be used, and if your use-case merits the omission of the client-side delegate, then so be it. You're your own best architect. However . I do prefer that my client-side commands are insulated from the implementation details of the service; that's a "nice" reason for the separation. However, as an RIA scales, more often than not I would find that a service that is exposed through my client-side delegate, has utility in more than one context. By way of example ... in an SMS messaging application, I may have a delegate method MessagingDelegate.sendSMS( message : MessageVO ) Now -- I have utility in my application to create a new message, reply to a message and to forward a message ... for new message; when replying to a message, I may want to prefix the message with "" characters, same with forwarding a message. Furthermore, I may want new messages and messages I reply to to appear in an Outbox, but forwarded messages to go into a "Forwarded" folder (spare me some poetic license here). The point ... in all cases I have a need to simply call MessagingDelegate.sendSMS() but for each of these 3 use-cases the preconditions and the post-conditions around that delegate call are different. With a Command/Delegate separation, the preconditions can be handled in the execute() method of the command, the post conditions can be handled in the onResult() method of the command, but the MessagingDelegate can simply expose the raw functionality of interacting with an SMS gateway and sending a message. Another example of the utility of commands, is the ability to create base-commands for related use-cases in an application; I'll not provide convoluted example here, but there have been discussions on list about AuthenticatedCommands (commands that should only execute if logged in user with appropriate credentials is present in application state, with a dispatch to login screen if not the case). Again ... the Command is just a nicer level of abstraction for this behavior, than the delegate, which is really just "delegating the business service calls". You may not agree ... and that's the great thing about Cairngorm; you don't have to. If you want to call services directly from the Command class, go for your life. You may at a later date find yourself refactoring towards the delegate, other times you may not. For me, experience of building lots and lots of Flash and Flex RIAs is that the separation is common enough that I feel comfortable having it, and now recommending it, as a starting point for archticture, and not something I refactor towards. Flex Side Network J2EE Server - -- || - --- -- | Command | = | Delegate | = || = | Command | = | Business Delegate | = | EJBs | - -- || - --- -- By doing this I allow Struts to be a Command on the server side and can keep my Business Delegate clean of any HTTPRequest or AMF processing knowledge. I guess the only open question is would you still pass different Command objects to the Delegate on the Flex side and have more then one function in the delegate that does processing or would you keep it as a one to one relationship between Commands and Delegates to avoid accidental calls of the wrong onResulthandler? The only reason I would see tokeep the server-side command, isif you have legacy Struts business logic that you want to build Flex UI upon (or if you want to supportFlex + JSP presentation tiers). Personally, I'd rather see your client-side delegate calling your server-side delegate;the Flex gateway handles all the nuances of AMF(unless you're explicitly using Remoting rather than RemoteObject ... and if so, why ?). So your server-side delegate can be a POJO that is also protocol unaware (ie it doesn't talk HTTP) and your Flex delegate caninvoke that. One of my beefs with Struts has always been that Commands (Actions) are HTTP aware, which was a pain when wanting to use Strutswith alternate presentation tier technologies. I know there aresolutions, I just never found them simple or elegant. I'd rather see the Command (Action) in Struts handle protocol-specific stuff (ie sticking things in and out of HTTPRequest,
Re: [flexcoders] Panel Title Binding
The title is after the import but the variable is not static. I created a 2nd static var that was equal to my non static var and it works now. Rich On 6/16/05, Kent Henneuse [EMAIL PROTECTED] wrote: I think it is a loading issue. I just created a public static var and hardcoded a string in my ModelLocator and it pulled that value. You may have to set the title in the initialize function to make sure you get the right data. You might also try to put title after you import your ModelLocator. Like this: mx:Panel mx:Script import myflexhome.model.ModelLocator; /mx:Script mx:title{ModelLocator.title}/mx:title /mx:Panel I did find something that looks like a problem, the icon property of Container that Panel extends doesn't seem to have any effect on a Panel. I would think it would put the icon next to the title. Maybe there is another way to put an icon next to the title. -Kent -Original Message- Is there a known issue with binding a panel title to a piece of data ? The screen does not redraw when the data changes. Ex: mx:Panel title={ModelLocator.getInstance().selectedYear} width=100% height=100% ... /mx:Panel Rich Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Assigning a AS variable to the return value of a web service
Ya i tried that one. Here is what I have so far...(see 3 paragraphs below this) no more errors... However the flex app isnt reacting accordingly. I dont think its getting the data from the web srvc. I know the service works. i tested it with another bit of code and dropped the result into a datagrid. There has to be a way I can put the WS data (which is yes or no result) into the AS variable so I can change the enable/visible items on the flex app. Basically I have a cfc that checks the database, which has a table whith 2 columns and it fills in Yes or No depending if a certain Job is running, which makes the data unavailable in my app until the job is finished. That way users cant connect to the DB until the Job is complete or not running. mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; initialize=Jobs();gvsJob.ReportJob.send() backgroundImage=_images/gvsbackground.jpg backgroundSize=100% styleName=_css/emx_nav_left.css height=100% width=100% xmlns:comp=* pageTitle=GVS Report Generator themeColor=haloBlue mx:Script source=_as/showmenus-b.as/ mx:WebService wsdl=http://blahblah.com/_cfc/gvs_reports.cfc?wsdl; id=gvsJob mx:operation name=ReportJob/ /mx:WebService mx:Script ![CDATA[ var linkData:Array = [Home, Standard Reports, Custom Reports, My Saved Reports ]; var link1Data:Array = [Needs, Solutions, Deliverables] var link2Data:Array = [Thrust Reports, Business Unit Reports, Sub-Council Reports]; ]] function Jobs() { var JobRunning:Object = gvsJob.ReportJob.result; //Checks to see if database Jobs are running, if they are not it will //say available = yes, if they are it will say available = no if (JobRunning == Yes) { Welcome.visible = false; ReportJobScreen.visible = true; HomeLink.enabled = false; StandardRLink.enabled = false; CustomRLink.enabled = false; MyReportsLink.enabled = false; } } /mx:Script --- In flexcoders@yahoogroups.com, Kent Henneuse [EMAIL PROTECTED] wrote: By the look of it you are trying to use DataAvailable and it is not valid. You might want to try this: ![CDATA[ var JobRunning:Object = gvsJob.ReportJob.result; ]] This appears to be the way the example in the Flex Samples Explorer- Dynamic Data Services does it. wsId.operation.result You may have to dig through the result for what you want but that is probably not hard. -Kent -Original Message- mx:WebService wsdl=http://blahblah/_cfc/gvs_reports.cfc?wsdl; id=gvsJob mx:operation name=ReportJob / /mx:WebService mx:Script ![CDATA[ var JobRunning:Object = ReportJob.DataAvailable.result; ]] //Checks to see if database Jobs are running, if they are not it will //say available = yes, if they are it will say available = no if (JobRunning == No) { someactions } /mx:Script Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] All framework classes get compiled into RSL?
I see - thanks for pointing this out. I need to share some core classes between some apps so I wondered why there's so much stuff in a basic RSL but your explanation makes perfectly sense. Dirk. -Ursprngliche Nachricht- Von: flexcoders@yahoogroups.com im Auftrag von Roger Gonzalez Gesendet: Do 16.06.2005 19:44 An: flexcoders@yahoogroups.com Betreff: RE: [flexcoders] All framework classes get compiled into RSL? Brian is correct. See my RSL article for additional details. http://www.macromedia.com/devnet/flex/articles/rsl.html Unfortunately, there are some rather bushy dependencies inside the 1.5 framework code (uiobjects keep track of their application which uses an alert window which...) that make the minimum frameworks buy-in larger than ideal. Also note that there is little difference between putting stuff in the app and putting it in the RSL unless you are sharing common code with two apps. Its all about amortized download performance. -Roger Roger Gonzalez mailto:[EMAIL PROTECTED] -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Deitte Sent: Thursday, June 16, 2005 10:22 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] All framework classes get compiled into RSL? Hi Dirk, I'm not positive on this, but I don't think you actually have all of the framework in the SWC file. I'd guess that you wouldn't see, for instance, MediaDisplay in it. You see more components than just Button because we will automatically include all components/classes that Button needs- this includes a bulk of the core of the framework. -Brian -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dirk Eismann Sent: Thursday, June 16, 2005 10:20 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] All framework classes get compiled into RSL? I try to package a subset of the Flex framework into a RSL but I always get the whole framework compiled into the resulting SWC file. Even with this bare-bone SWS file library namespace uri=http://www.macromedia.com/2003/mxml; all=false component name=Button / /namespace /library the resulting SWC is 352 KB in size and contains every class. Ideas? Dirk. Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ winmail.dat
[flexcoders] Code not executing in Popup Window
Hello All, I have known to be working code, contained inside of a Custom Created TitleWindow component. The code handles all the RemoteObject declarations, and populates a List Control, upon the Result Event. The Popup Window is launched from a Button residing in my Main Application. After clicking the launch Button, the Window pops up perfectly and all the controls are there, but nothing happens. In fact, the function that retrieves the data, also sends a trace() message to the debug window - and nothing even happens when I do that. It's almost as if the code contained in my custom control, doesn't even exist. Is my problem, the way in which I am creating my Popup Window? There must be something simple I am doing wrong... Here is the code in my main application that launches the window: public function launchWindow() { var pop = mx.managers.PopUpManager.createPopUp(this, Categories, false, null, true); } Here is the code, inside my custom component called Categories.mxml: ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx=http://www.macromedia.com/2003/mxml; title=Manage Categories closeButton=true click=deletePopUp() creationComplete=getCategoriesOnly(); mx:RemoteObject id=remoteService source=services.InfoNexus endpoint=http://www.mysite.com/flashgateway.aspx; showBusyCursor=true mx:method name=getCategoriesOnly result=getCategoriesOnly_Handler(event.result) fault=getCategoriesOnly_Fault(event.fault)/ /mx:RemoteObject mx:Script ![CDATA[ //=== CATEGORIES ===// function getCategoriesOnly() { trace(getCategories just kicked off); remoteService.getCategoriesOnly(); } function getCategoriesOnly_Handler(result) { trace(getCategories_Handler just kicked off); categories_List.dataProvider = result; } function getCategoriesOnly_Fault(result) { } ]] /mx:Script mx:VBox mx:Label text=Categories:/ mx:List id=categories_List width=250 height=200/ /mx:VBox mx:ControlBar mx:Button label=Get Categories click=getCategoriesOnly()/ mx:Button label=Delete/ /mx:ControlBar /mx:TitleWindow Could you all shed some light, as to why this isn't working? Thanks in advance, Mike Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] CFMX7, Flex 1.5, IIS 6
I little while ago, I got Flex and CFMX7 working with IIS 6 seperatly. But now I just went to try and install them together so a CFMX integrated with Flex, I installed JRun, and created a server called CFMX7. I then installed CF as a EAR, deployed it on the server. and I can access it by http://ip:8102/cfmx/CFIDE/administrator/ I then installed Flex 1.5 as a WAR samples and all, deployed them so that it has a structor of .\JRun4\servers\CFMX7\cfusion-ear\ \cfusion-war \flex-war \profiler-war \samples-war I've moddified the application.xml to include new IDs for the WARs such as http://ip:8102/flex or http://ip:8102/flexSamples. is this the right way to go about doing this? any advice would be greatful. I then want to tunnel it to IIS6 but when I do this, nether cfm or mxml files work. I receive a The page cannot be found Thank You Tim Whitehead Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Java intefaces as remote objects?
ok thanks for the explanation Brian... On 6/16/05, Brian Deitte [EMAIL PROTECTED] wrote: Hi Clint, you can't use interfaces as the name of thesource in RemoteObject, since we do a Class.forName() call for the name. It's really not possible for such a thing to ever work,since something needs to be instantiated for the RemoteObject. You should be able to use a class that implements an interface, though. -Brian From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Clint ModienSent: Thursday, June 16, 2005 10:09 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Java intefaces as remote objects? Instead of using POJO's can we use Java Intefaces definitions instead? Whena guy on our team tested it he got a class instantiation error... If the answer is no then I gess I could add it to the wish list for 2.0. Thanks Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: Collections between Flex and Web services
Is your problem on the flex side or on the .NET side? On 6/16/05, Matt Chotin [EMAIL PROTECTED] wrote: Hmm, seems odd. Can you take a look at the object in a debugger and see if it's constructed the way you'd expect? Also turn on debugging (web-service-proxy) and check if we're even sending the phone number across the wire. If not you may need to "re-process" the contact before executing the send to make sure that things are what the web service expects. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of cgobble Sent: Wednesday, June 15, 2005 9:51 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Collections between Flex and Web services I am using the mx.utils.ArrayUtil.toArray to bind to a datagrid. This makes sure that Flex sees it when there is only 1 item in the array. However, going back to the service with the entire object is causing the problem. I've been experimenting with defining classes for these objects and I get the same problem when I use an array. --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Check out mx.utils.ArrayUtil.toArray(). You may need to call that to make sure that when you pass a single item it still gets treated as an array. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of cgobble Sent: Wednesday, June 15, 2005 7:36 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Collections between Flex and Web services Hello, I'm trying to return complex types with collections from a web service and everything seems to work fine. But, when I send the type as the input parameter for the web service, if there is only 1 item in the collection it does not get back to the web service. For instance, you have a Contact object in a dotnet web service. The Contact has a collection of phone numbers. I simply want to pass the entire Contact object back and forth between the web service and Flex. I create a method on the web service such as: (VB) Public Sub SaveContact(Contact as Contact) End Sub However, it seems that if I only have 1 phone number, the phone number gets lost in translation, even though the Contact info comes back correctly. I was able to partially fix this by making sure my collections were instantiated in the constructor, but if I nest a collection, it doesn't seem to work right. Any ideas?? Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]? subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . Yahoo! Groups Links To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: Assigning a AS variable to the return value of a web service
myString = event.result.message; Give that a try. Jeff Founder Flex Authority http://www.flexauthority.com We are actively seeking contributors for the site. Have a sample that you want to share with the world? Send it to us! From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of gotjosh819i Sent: Thursday, June 16, 2005 10:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Assigning a AS variable to the return value of a web service thanks good info to know. However it doesnt answer my question to how I put a web service return (which happens to be only a yes or no) and assign it to a action script variable. Any ideas on that one? --- In flexcoders@yahoogroups.com, Brian Deitte [EMAIL PROTECTED] wrote: You need to put statements in functions (Waldo's article on this grabbed from google since the site isn't returning for me): http://64.233.187.104/search? q=cache:7i7Ah65NYooJ:www.waldosmeets.com/in dex.cfm%3FentryID%3D550+flex+%22not+permitted+in+a+class+definition% 22h l=en -Brian -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of gotjosh819i Sent: Thursday, June 16, 2005 12:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Assigning a AS variable to the return value of a web service help please: new at AS 2, How do I assign a return from a WS to a AS variable. Example here is what I have so far and its erroring out. 1 Error found. Error /gvs/gvsStartB.mxml:21 This statement is not permitted in a class definition. mx:WebService wsdl=http://blahblah/_cfc/gvs_reports.cfc?wsdl id=gvsJob mx:operation name=ReportJob / /mx:WebService mx:Script ![CDATA[ var JobRunning:Object = ReportJob.DataAvailable.result; ]] //Checks to see if database Jobs are running, if they are not it will //say available = yes, if they are it will say available = no if (JobRunning == No) { someactions } /mx:Script Yahoo! Groups Links Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: Assigning a AS variable to the return value of a web service
Data service calls are asynchronous. You need to define a resultHandler function, and call it from the result event of the operation. Below is a bit of an example, and here is a link to a full example. http://www.cflex.net/showfaq.cfm?ChannelID=1faqType=#Question372 http://www.cflex.net/showfiledetails.cfm?ChannelID=1Object=FileobjectID=18 Tracy mx:Operation name=ReportJob result=onResult(event)/private function onResult(oEvent:Object):Void{ alert(oEvent.result);} From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeff Steiner Sent: Thursday, June 16, 2005 11:15 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Assigning a AS variable to the return value of a web service myString = event.result.message; Give that a try. Jeff Founder Flex Authority http://www.flexauthority.com We are actively seeking contributors for the site. Have a sample that you want to share with the world? Send it to us! From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of gotjosh819i Sent: Thursday, June 16, 2005 10:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Assigning a AS variable to the return value of a web service thanks good info to know. However it doesnt answer my question to how I put a web service return (which happens to be only a yes or no) and assign it to a action script variable. Any ideas on that one? --- In flexcoders@yahoogroups.com, Brian Deitte [EMAIL PROTECTED] wrote: You need to put statements in functions (Waldo's article on this grabbed from google since the site isn't returning for me): http://64.233.187.104/search? q=cache:7i7Ah65NYooJ:www.waldosmeets.com/in dex.cfm%3FentryID%3D550+flex+%22not+permitted+in+a+class+definition% 22h l=en -Brian -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of gotjosh819i Sent: Thursday, June 16, 2005 12:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Assigning a AS variable to the return value of a web service help please: new at AS 2, How do I assign a return from a WS to a AS variable. Example here is what I have so far and its erroring out. 1 Error found. Error /gvs/gvsStartB.mxml:21 This statement is not permitted in a class definition. mx:WebService wsdl=http://blahblah/_cfc/gvs_reports.cfc?wsdl id=gvsJob mx:operation name=ReportJob / /mx:WebService mx:Script ![CDATA[ var JobRunning:Object = ReportJob.DataAvailable.result; ]] //Checks to see if database Jobs are running, if they are not it will //say available = yes, if they are it will say available = no if (JobRunning == No) { someactions } /mx:Script Yahoo! Groups Links Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: Serialization error with Timestamp
I meant that the timestamp might have come back originally as a string and not as a Date object. Getting it working is all that matters for now J From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Ewok Sent: Thursday, June 16, 2005 5:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Serialization error with Timestamp Thanks for your response Matt. That Date field (in my AS class) is never getting modified. I am simply passing the Pojo from my datagrid (with the 1 String field I did modify) so I don't know why the Date would get converted as a String?? For now I guess I'll change my updateIt() method to take 2 params, the unique Id and the field I'm updating. --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: It might be that it wasn't an AS Date but actually was a String that got sent across? Also if the cast to Pojo is failing maybe it didn't actually create the proper ActionScript class when it came back? Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Ewok Sent: Wednesday, June 15, 2005 3:03 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Serialization error with Timestamp List, I saw in a previous posting that a Date field in a registered AS class cannot cannot be serialized to a java.sql.Timestamp field to its' registered Java pojo. I have a datagrid where i make a cell edit, and I pass that object to my remoteObject like so: // method code called from cellEdit attribute of datagrid var selected:Pojo = datagrid.dataProvider.getItemAt (event.itemIndex); remoteObj.updateIt(selected); throws this error: 17:52:07,421 INFO [STDOUT] Info: Serializing response (Message #0 targetURI=/2/onStatus, responseURI=null) (Object #0) level = error code = Server.Processing type = flashgateway.GatewayException rootcause = (Object #1) level = error code = null type = flashgateway.translator.ASTranslationException details = flashgateway.translator.ASTranslationException: Could not set object Sun Dec 15 13:31:50 EST 2002 on class Pojo' s method setServiceDate at flashgateway.translator.decoder.JavaBeanDecoder.decodeObject (JavaBeanDecoder.java:99) at flashgateway.translator.decoder.ActionScriptDecoder.decodeObject (ActionScriptDecoder.java:22) at flashgateway.translator.ASTranslator.fromActionScript (ASTranslator.java:187) at flashgateway.adapter.java.JavaAdapter.checkAndTranslateParams (JavaAdapter.java:338) at flashgateway.adapter.java.JavaAdapter.getMethod (JavaAdapter.java:172) at flashgateway.adapter.java.JavaAdapter.invokeFunction (JavaAdapter.java:54) at flashgateway.filter.AdapterFilter.invoke (AdapterFilter.java:117) at flashgateway.filter.MessageSecurityFilter.invoke (MessageSecurityFilter.java:144) .. What I am consfused about is that my datagrid loads the data initially (and displays the date/time)!!! So obviously it has no problem serializing from a java.sql.Timestamp to an AS Date. Am I doing something wrong? I tried doing my call like this. It didn't throw an error, but all the values were null. var selected:Pojo = new Pojo(datagrid.dataProvider.getItemAt (event.itemIndex)); remoteObj.updateIt(selected); thanks. Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Setting a RadioButton from data...
You could probably get binding to work: RadioButtonGroup selectedData={myGrid.selectedItem.channel_code} / An event handler isnt horrible though either J Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jamiebadman Sent: Thursday, June 16, 2005 7:14 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Setting a RadioButton from data... Hi, I feel as though this should be obvious but I can't see it! I have a RadioButtonGroup called 'channel'. In 'channel' I have two RadioButtons - one which has a data value of 'Direct' and the other 'Indirect'. The datasource I'm using contains a field 'channel_code'. When a row in the grid associated with my datasource changes, I want to set the approproate RadioButton in the 'channel' group according to whatever the new value of 'channel_code' is. I can see I can obviously fire an AS function on rowChange to figure out which RadioButton to set - but this seems extremely clunky and I'm hoping there's a more elegant approach - perhaps using Binding ??? Anyone offer any advice on this ? Thanks, Jamie. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Validation errortip placement
Try this, I havent tried it myself though. Of course this might apply it to all ErrorTips, Im not sure how youd set it just for TextInput. mx:Style ErrorTip { borderStyle: errorTipBottom } /mx:Style Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rockmoyosa Sent: Thursday, June 16, 2005 7:28 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Validation errortip placement I want an errortip on or on bottom of my textfield, instead of on the rightside. Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Re: Assigning a AS variable to the return value of a web service
Dont call Jobs() from initialize. Instead call it from the result handler of ReportJob. mx:operation name=ReportJob result=Jobs() / Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gotjosh819i Sent: Thursday, June 16, 2005 11:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Assigning a AS variable to the return value of a web service Ya i tried that one. Here is what I have so far...(see 3 paragraphs below this) no more errors... However the flex app isnt reacting accordingly. I dont think its getting the data from the web srvc. I know the service works. i tested it with another bit of code and dropped the result into a datagrid. There has to be a way I can put the WS data (which is yes or no result) into the AS variable so I can change the enable/visible items on the flex app. Basically I have a cfc that checks the database, which has a table whith 2 columns and it fills in Yes or No depending if a certain Job is running, which makes the data unavailable in my app until the job is finished. That way users cant connect to the DB until the Job is complete or not running. mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml initialize=Jobs();gvsJob.ReportJob.send() backgroundImage=_images/gvsbackground.jpg backgroundSize=100% styleName=_css/emx_nav_left.css height=100% width=100% xmlns:comp=* pageTitle=GVS Report Generator themeColor=haloBlue mx:Script source=_as/showmenus-b.as/ mx:WebService wsdl=http://blahblah.com/_cfc/gvs_reports.cfc?wsdl id=gvsJob mx:operation name=ReportJob/ /mx:WebService mx:Script ![CDATA[ var linkData:Array = [Home, Standard Reports, Custom Reports, My Saved Reports ]; var link1Data:Array = [Needs, Solutions, Deliverables] var link2Data:Array = [Thrust Reports, Business Unit Reports, Sub-Council Reports]; ]] function Jobs() { var JobRunning:Object = gvsJob.ReportJob.result; //Checks to see if database Jobs are running, if they are not it will //say available = yes, if they are it will say available = no if (JobRunning == Yes) { Welcome.visible = false; ReportJobScreen.visible = true; HomeLink.enabled = false; StandardRLink.enabled = false; CustomRLink.enabled = false; MyReportsLink.enabled = false; } } /mx:Script --- In flexcoders@yahoogroups.com, Kent Henneuse [EMAIL PROTECTED] wrote: By the look of it you are trying to use DataAvailable and it is not valid. You might want to try this: ![CDATA[ var JobRunning:Object = gvsJob.ReportJob.result; ]] This appears to be the way the example in the Flex Samples Explorer- Dynamic Data Services does it. wsId.operation.result You may have to dig through the result for what you want but that is probably not hard. -Kent -Original Message- mx:WebService wsdl=http://blahblah/_cfc/gvs_reports.cfc?wsdl id=gvsJob mx:operation name=ReportJob / /mx:WebService mx:Script ![CDATA[ var JobRunning:Object = ReportJob.DataAvailable.result; ]] //Checks to see if database Jobs are running, if they are not it will //say available = yes, if they are it will say available = no if (JobRunning == No) { someactions } /mx:Script Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Code not executing in Popup Window
I dont see a problem but I know that others have run into issues when the RemoteObject has been contained in a popup. It seems to work better if its hung off the Application or something thats a little more permanent instead. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Anderson Sent: Thursday, June 16, 2005 4:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Code not executing in Popup Window Hello All, I have known to be working code, contained inside of a Custom Created TitleWindow component. The code handles all the RemoteObject declarations, and populates a List Control, upon the Result Event. The Popup Window is launched from a Button residing in my Main Application. After clicking the launch Button, the Window pops up perfectly and all the controls are there, but nothing happens. In fact, the function that retrieves the data, also sends a trace() message to the debug window - and nothing even happens when I do that. It's almost as if the code contained in my custom control, doesn't even exist. Is my problem, the way in which I am creating my Popup Window? There must be something simple I am doing wrong... Here is the code in my main application that launches the window: public function launchWindow() { var pop = mx.managers.PopUpManager.createPopUp(this, Categories, false, null, true); } Here is the code, inside my custom component called Categories.mxml: ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx=http://www.macromedia.com/2003/mxml title=Manage Categories closeButton=true click=deletePopUp() creationComplete=getCategoriesOnly(); mx:RemoteObject id=remoteService source=services.InfoNexus endpoint=http://www.mysite.com/flashgateway.aspx showBusyCursor=true mx:method name=getCategoriesOnly result=getCategoriesOnly_Handler(event.result) fault=getCategoriesOnly_Fault(event.fault)/ /mx:RemoteObject mx:Script ![CDATA[ //=== CATEGORIES ===// function getCategoriesOnly() { trace(getCategories just kicked off); remoteService.getCategoriesOnly(); } function getCategoriesOnly_Handler(result) { trace(getCategories_Handler just kicked off); categories_List.dataProvider = result; } function getCategoriesOnly_Fault(result) { } ]] /mx:Script mx:VBox mx:Label text=Categories:/ mx:List id=categories_List width=250 height=200/ /mx:VBox mx:ControlBar mx:Button label=Get Categories click=getCategoriesOnly()/ mx:Button label=Delete/ /mx:ControlBar /mx:TitleWindow Could you all shed some light, as to why this isn't working? Thanks in advance, Mike Yahoo! Groups Links To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: The 'lots-o-text' mx:Text Bug
Use mx:TextArea, dude. Mayby it is more suitable for 'lots-o-text' Mike --- In flexcoders@yahoogroups.com, James Ward [EMAIL PROTECTED] wrote: Hi all. I just discovered a very strange possible bug in the mx:Text component. It seems that if I create just a plain old selectable mx:Text field with lots of text (like 50k) then after simply clicking on the text field, my CPU utilization jumps to 40% (from 0%) and just sticks there. If I click again, click somewhere else, select the text, scroll with my mouse wheel, do nothing, whatever, cpu usage stays at 40%. If I scroll the text field by clicking on the up, down or drag-scroll thingy, my CPU utilization drops back down to 0%. If I set my mx:Text field to selectable=false then I don't have this problem (but that's not an option in this instance). Has anyone seen this before? Any ideas on a workaround? Thanks. -James Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/