[flexcoders] How does Panel work in designer / layout?
Hi, how does the Panel class work in the designer? i.e. when I drag a button on, the designer knows to place the button inside the white area in the centre of the panel. All coordinates are in relation to that white area. I have a container class which is similar in layout to the panel (but different enough to require a separate class) and I want to be able to add it to another container and then add controls to it. I hope that makes sense. Maybe this ascii drawing will help :-) |---| || ||--| | || || ||--| | || |---| If I drop a button onto this control, I want all coordinates to be in relation to the centre container. Thanks, Mark
[flexcoders] Re: Flex 3 : : showDataTips in AdvancedDataGrid does not work any more after groupin
This is not working for the tree column due to a bug. You can track the issue here http://bugs.adobe.com/jira/browse/FLEXDMV-1467 --- In flexcoders@yahoogroups.com, tungchau81 [EMAIL PROTECTED] wrote: Hi, I set showDataTips = true in one of an AdvancedDataGridColumn and it works without grouping. As long as I use grouping and call refresh() function on a GroupingCollection instance, showDataTips does not work any more. I tried to set showDataTips = true after calling refresh() on a GroupingCollection instance, but this does not work. I really need to use showDataTips since my Name column' values are too long to be fully displayed in the table. Any help is greatly appreciated. Tung Chau
Re: [flexcoders] Re: How to improve BitmapData processing speed?
No clue how that relates to PS.. I only use PS once a year and only if I really have to ;-) I suggest you start getting your hands dirty ;-) Here's some more ColorMatrix stuff from the Adobe site: http://www.adobe.com/devnet/flash/articles/matrix_transformations_print.html http://www.adobe.com/devnet/flash/articles/varicose_g.html As you can see, it's all AS2/Flash 8, but should be easy to transform into AS3. regards, Muzak - Original Message - From: larryzzl [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, December 05, 2007 8:19 AM Subject: [flexcoders] Re: How to improve BitmapData processing speed? Thanks, the demo makes sense. It seems very simple to change the exposure and some simple properties of bitmap. But does it make the same result as what the Photoshop make? I mean, if I change the exposure to 20 in the flash client, does that mean I set the brightness to 20 in Photoshop? --- In flexcoders@yahoogroups.com, Muzak [EMAIL PROTECTED] wrote: Flash 8 ColorMatrix stuff: http://www.gskinner.com/blog/archives/2005/09/flash_8_source.html There's an article on the Adobe site somewhere as well. Just google ;-) regards, Muzak - Original Message - From: Ralf Bokelberg [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, December 04, 2007 10:53 AM Subject: Re: [flexcoders] Re: How to improve BitmapData processing speed? None of the effects at picnik is done with pixel level manipulations. They are using Bitmap operations. I don't know, how exactly the exposure effect can be achieved. I would try googling for Flash/Flex experiments. I'm sure you can find somebody explaining/showing it. Cheers Ralf. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] ASDoc tool and packages
Hi Jobe, you need to specify them as arguments when invoking asdoc.exe: -package com.domain.a the a package -package com.domain.b the b package regards, Christophe --- http://www.herrodius.com http://www.pranaframework.org 2007/12/5, Jobe Makar [EMAIL PROTECTED]: Hi, I have been using ASDoc for a while now with great success. However, I cannot seem to find information on how to get documentation to show up for packages. My guess would be putting the docs outside of the package syntax in any class in that package, or by having a text file with a special name. If you know then please fill me in. I appreciate the assistance! ps - I tried this with no noticeable results. /** * blah blah */ package com.electrotank.whatever { Jobe Makar http://www.electrotank.com 252-627-8026 919-609-0408 (mobile) -- Christophe Herreman http://www.herrodius.com
Re: [flexcoders] How does Panel work in designer / layout?
- Original Message - From: Paul Andrews [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, December 05, 2007 11:12 AM Subject: Re: [flexcoders] How does Panel work in designer / layout? Flex completely ignores the x,y position inside my TestPanel. LOL - adding layout=absolute might be a good idea! Hmm. Paul
Re: [flexcoders] How does Panel work in designer / layout?
Actually Mark, I take your point. When I tried it using a Panel, it wasn't so good. Unfortunately these days I tend not to use the designer. Certainly the designer has some issues! Paul - Original Message - From: Paul Andrews To: flexcoders@yahoogroups.com Sent: Wednesday, December 05, 2007 10:37 AM Subject: Re: [flexcoders] How does Panel work in designer / layout? - Original Message - From: Mark Ingram To: flexcoders@yahoogroups.com Sent: Wednesday, December 05, 2007 10:01 AM Subject: RE: [flexcoders] How does Panel work in designer / layout? Hi, if the container is made as a separate class, then I add it to my main application, I can't position buttons inside an internal container - it doesn't recognise my new control as an actual container (even though it is a series of canvases and vboxes). The following is OK for me: package com.ipauland.view { import mx.containers.Canvas; public class TestContainer extends Canvas { public function TestContainer() { super(); } } } ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:cont=com.ipauland.view.* height=404 cont:TestContainer x=10 y=10 mx:Button label=myButton x=185 y=117/ /cont:TestContainer /mx:Application Though I confess I rarely use design view these days. The container is there in design view. Hope that helps? Paul From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Andrews Sent: 05 December 2007 09:57 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How does Panel work in designer / layout? - Original Message - From: Mark Ingram To: flexcoders@yahoogroups.com Sent: Wednesday, December 05, 2007 9:48 AM Subject: [flexcoders] How does Panel work in designer / layout? Hi, how does the Panel class work in the designer? i.e. when I drag a button on, the designer knows to place the button inside the white area in the centre of the panel. All coordinates are in relation to that white area. I have a container class which is similar in layout to the panel (but different enough to require a separate class) and I want to be able to add it to another container and then add controls to it. I hope that makes sense. Maybe this ascii drawing will help J |---| || ||--| | || || ||--| | || |---| If I drop a button onto this control, I want all coordinates to be in relation to the centre container. If the button is inside the container, it's coordinates will be relative to the container. Thanks, Mark
Re: [flexcoders] How does Panel work in designer / layout?
- Original Message - From: Mark Ingram To: flexcoders@yahoogroups.com Sent: Wednesday, December 05, 2007 10:54 AM Subject: RE: [flexcoders] How does Panel work in designer / layout? Hi Paul, thanks for that - what if you had another container inside TestContainer? With say a 20 pixel border around all sides. How could you add a button to the child container (not the parent container). Thanks, Mark Interesting question: package com.ipauland.view { import mx.containers.Panel; public class TestPanel extends Panel { public function TestPanel() { super(); } } } package com.ipauland.view { import mx.containers.VBox; public class TestVBox extends VBox { public function TestVBox() { super(); } } } ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:cont=com.ipauland.view.* height=404 xmlns:comp=comp.* cont:TestPanel x=20 y=10 width=250 height=268 cont:TestVBox borderColor=0xFF borderThickness=20 borderStyle=solid x=10 y=20 mx:Button label=button1 / mx:Button label=button2 / /cont:TestVBox /cont:TestPanel mx:Panel x=296 y=10 width=250 height=268 layout=absolute cont:TestVBox borderColor=0xFF borderThickness=20 borderStyle=solid x=38 y=31 mx:Button label=button1 / mx:Button label=button2 / /cont:TestVBox /mx:Panel /mx:Application Flex completely ignores the x,y position inside my TestPanel. Hmm. Paul
[flexcoders] Re: Which architecture to follow
tyeps of projects we are working on are simple DB applications, e-commerce applications, project management tools with multiple modules etc. Currently we are using Cairngorm but if PureMVC is better we are planning to move to that as we are already using MVC on .Net applications. --- In flexcoders@yahoogroups.com, yigit [EMAIL PROTECTED] wrote: you should first provide what kind of an application you want to develop. in other case, comments will be too general and useless.. so , what kind of an application you want to develop? Anzer wrote On 12/05/2007 07:34 AM: Cairngorm or PureMVC? I have read some where PureMVC is the best choice. Please give your inputs. Thanks Anz
Re: [flexcoders] Height Problems of List component using itemrenderer with different row height
Hi, I also already tried this workaround, but still getting from time to time during resizing the same bug. I´ve added a bug in the adobe bug base for this: *SDK-13813 https://bugs.adobe.com/jira/browse/SDK-13813 *Hopefully there will be a bug fix in the next release or at least a workaround which works all the time. cheers, Christoph* * On Nov 30, 2007 7:55 PM, Alex Harui [EMAIL PROTECTED] wrote: Not sure when I'll get time to look. The basic trick to getting multiline to work is to set the explicitWidth/width of the text widget so it can define its height correctly. The explicitWidth of the renderer is set by the list class before the renderer's measure() is called. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Christoph Atteneder *Sent:* Friday, November 30, 2007 9:00 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Height Problems of List component using itemrenderer with different row height With the default renderer with wordWrap = true and variableRowHeight= true it works if I´m setting the height of the list after calling measureHeightOfItems(). But it is not working if you are using more sophisticated ItemRenderers( e.g. with VBox and multiple TextFields, Buttons,...) I´ve already uploaded a simple Example under www.cubeworx.net/ripcurlx/ResizeBug.zip br, Christoph On Nov 30, 2007 5:47 PM, Alex Harui [EMAIL PROTECTED] wrote: does it work with the default renderers with wordWrap=true and variableRowHeight=true? -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Christoph Atteneder *Sent:* Friday, November 30, 2007 7:43 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Height Problems of List component using itemrenderer with different row height Hi, My problem is following: I have a List component which is filled with a list of properties and I want to know how much space it needs to display all of its items. This only works with single label renderer or renderer with a fixed height, but not with renderer with different row height with Text component. I really have big problems with all releases of the flex 3 framework so far regarding this issue. I´ve uploaded a flex builder project for testing. www.cubeworx.net/ripcurlx/ResizeBug.zip This text wrap size problem is critical for my application, so I hope there is at least a workaround for this issue. thx for any hints in advance br, Christoph
Re: [flexcoders] How does Panel work in designer / layout?
- Original Message - From: Mark Ingram To: flexcoders@yahoogroups.com Sent: Wednesday, December 05, 2007 10:01 AM Subject: RE: [flexcoders] How does Panel work in designer / layout? Hi, if the container is made as a separate class, then I add it to my main application, I can't position buttons inside an internal container - it doesn't recognise my new control as an actual container (even though it is a series of canvases and vboxes). The following is OK for me: package com.ipauland.view { import mx.containers.Canvas; public class TestContainer extends Canvas { public function TestContainer() { super(); } } } ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:cont=com.ipauland.view.* height=404 cont:TestContainer x=10 y=10 mx:Button label=myButton x=185 y=117/ /cont:TestContainer /mx:Application Though I confess I rarely use design view these days. The container is there in design view. Hope that helps? Paul -- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Andrews Sent: 05 December 2007 09:57 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How does Panel work in designer / layout? - Original Message - From: Mark Ingram To: flexcoders@yahoogroups.com Sent: Wednesday, December 05, 2007 9:48 AM Subject: [flexcoders] How does Panel work in designer / layout? Hi, how does the Panel class work in the designer? i.e. when I drag a button on, the designer knows to place the button inside the white area in the centre of the panel. All coordinates are in relation to that white area. I have a container class which is similar in layout to the panel (but different enough to require a separate class) and I want to be able to add it to another container and then add controls to it. I hope that makes sense. Maybe this ascii drawing will help J |---| || ||--| | || || ||--| | || |---| If I drop a button onto this control, I want all coordinates to be in relation to the centre container. If the button is inside the container, it's coordinates will be relative to the container. Thanks, Mark
Re: [flexcoders] customizing flex download progress bar.
thanks man. I found a decent example in the programming flex 2 book. On Dec 4, 2007 12:19 PM, Jason Szeto [EMAIL PROTECTED] wrote: Aaron, Take a look at the Flex 2 Developer Guide. In chapter 14 (Using the Application Container), there is a subchapter called Showing the download progress of an application. That should give you a good starting point. Jason -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *aaron smith *Sent:* Monday, December 03, 2007 12:39 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] customizing flex download progress bar. Anyone have any good resources / examples of how you can completely overhaul what the download progress bar looks like / functions. I'm able to hook into some of the progress events but haven't found a good example of how to change what it actually looks like.. ?? Thanks ..
[flexcoders] Re: Adding custom events to the pre-loading sequence
I'm just trying to do the same thing for our app today and there must be a way, surely it's quite a common requirement. All I want to do is load the runtime styles a quick check to the backend, but the loading the styles is the most important thing.
[flexcoders] Re: How to have no MenuBar No ToolBar in Browser
--- In flexcoders@yahoogroups.com, Jack @ Zingit [EMAIL PROTECTED] wrote: If you dont wnat any of your generate code to be affected then using a separate html page is wise. In the use a Javascriot function like script function open(){ window.open(index.template.html,); } /script body onload=open()/body Use the following link for the javascript window.open() method code to remove all the menu bar and tool bars http://www.javascript-coder.com/window-popup/javascript-window- open.phtml I think this will work. Hara Allan: You are right it does not affect coding, at this time, but I wanted to be able to know the screen real estate that was available. In the near future, it will be needed, so I was asking for help now. Yes I would like an example, if you would be so kind. I appreciate everyone's responses. Thanks, Jack _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of DreamCode Sent: Tuesday, December 04, 2007 1:04 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: How to have no MenuBar No ToolBar in Browser I think that you should just keep inside the regular template until you're further along in the process. Opening a window without the title and menu is not something which should affect the coding, and your designer shouldn't need the actual window to design a window with next to no chrome on it. If you need an example of window.open let me know --A On Dec 3, 2007 10:50 PM, haravallabhan haravallabhan@ mailto:[EMAIL PROTECTED] gmail.com wrote: I think you need to use another html page and in that you need to have a javascript function and call the window.open pointing to the html embeded with the flex. You can modify all the properties of a window using the window.open. Call the window.open in the onload function of the body tag of the html page. Cheers Hara --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com , jwc_wensan jwcaldwell@ wrote: Good Morning: I am using FlexBuilder 2.01. When I run my app, I want the app to display in the browser without the menu bar and toolbar. Like when JamJar and other apps display it just has the Title bar. I am using IE 6 as my browser. I think I need to change the index.template.html file located in the html-template folder. I have searched but have been unable to find info on what code and where it goes to achieve this. Again, I think it is menubar=no and toolbar=no, but not sure of the syntax and if index.template.html is the right file. Can anyone tell me what needs to be changed and where does it go? Thanks, Jack
[flexcoders] Strange behaviour with singleton's and modules?
I've made a simple testcase with a singleton and three Flex projects: 1. MainApp 2. ModuleOne 3. ModuleTwo MainApp loads ModuleOne which loads ModuleTwo (it could also load both modules, the behaviour I describe below seems to be the same in both cases). I have created a TestSingleton.as which implements the Singleton pattern (as far as it can be tanken in AS anyway ..) Here's TestSingleton.as's getInstance() method: /** * Get the only instance of the TestSingleton * @return TestSingleton instance **/ public static function getInstance():TestSingleton { if (instance == null) { instance = new TestSingleton(); trace(TestSingleton - instance was null, so created new instance); } else { trace(TestSingleton already instanciated, so returning instance..); } return instance; } If I put the singleton in MainApp, and then getInstance() it from ModuleOne and ModuleTwo I'll get this in my trace: [SWF] C:\dev\FlexWorkspace\ModuleTestMainApp\bin\ModuleTestModuleOne- debug.swf - 450,372 bytes after decompression TestSingleton - instance was null, so created new instance [SWF] C:\dev\FlexWorkspace\ModuleTestMainApp\bin\ModuleTestModuleTwo- debug.swf - 446,193 bytes after decompression TestSingleton already instanciated, so returning instance.. .. which is the expected behaviour. However, if I put TestSingleton.as in ModuleTwo, I get this: [SWF] C:\dev\FlexWorkspace\ModuleTestMainApp\bin\ModuleTestModuleOne- debug.swf - 450,372 bytes after decompression TestSingleton - instance was null, so created new instance [SWF] C:\dev\FlexWorkspace\ModuleTestMainApp\bin\ModuleTestModuleTwo- debug.swf - 446,193 bytes after decompression TestSingleton - instance was null, so created new instance .. it doesn't behave as a singleton anymore .. Can anyone explain why? :-) -- http://www.juicability.com - flex blog http://www.43min.com - funny movies
[flexcoders] PrintDataGrid variablerowheight issue
Hi everyone, I've done my thorough 5 days of documentation research, trial and error, and forum perusing on this subject, but have come to you as a frustrated, nearly broken developer. My printdatagrid will not print correctly, no matter what I try. I am getting rows cut off at the end of pages and extra empty rows added at the end of the printdatagrid. I have followed the sample code for the printdatagrid, using the validatenow and validnextpage methods, i've created my printdatagrid dynamically in actionscript and in mxml, I've tried adding extra line breaks to my data in an effort to force full rows...but nothing seems to work. I believe the culprit to be the variablerowheight attribute of my printdatagrid which seems to be throwing off the printing. Has anyone figured out a way to print to a printdatagrid effectively??? Thanks in advance. Joe
Re: [flexcoders] Re: Local storage of password
- Original Message - From: Jeffry Houser [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, December 05, 2007 2:22 PM Subject: Re: [flexcoders] Re: Local storage of password That'd be too easy. He stated that he needs to prevent the user from re-entering the password upon their next use of the application. And it would. User logs in with password. Server passes back hashed version of user logon+password as a key. Server remembers this key. Client saves this key locally and passes it through on future accesses. Server looks up this key to check it's one it handed out previously. Still open to abuse though, even if username/password values are still secret. Paul Tom Chiverton wrote: On Tuesday 04 Dec 2007, rmarples wrote: requirement that I can't store the encryption key in the source code as a string literal. I'm wondering if you or anybody else has ideas on how to handle this? Sorry to jump in mid-thread, but if you just need to check a password is the same as one entered in the past, just store and compare against a hash. -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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: cfc do not understand cairngorm VO?
Please let me know where I can download the latest version CF extensions .Please help me. Mark --- In flexcoders@yahoogroups.com, Muzak [EMAIL PROTECTED] wrote: If you're using FlexBuilder, install the ColdFusion Extensions for Flex Builder (they're in the Flex Builder install dir). I've mentioned this yesterday. With the CF extensions installed, all you have to do is right click a cfc or as VO and you're done. Your cfc is missing some required stuff by the way.. Just use the CF wizards.. saves time and hair ;-) regards, Muzak - Original Message - From: Mark Shen [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, December 05, 2007 3:08 PM Subject: [flexcoders] cfc do not understand cairngorm VO? I have built a cfc vo class and flex vo class PersonVO.as package com.abc.CESF.Bursary.vo { import com.adobe.cairngorm.vo.IValueObject; [RemoteClass(alias=Bursary.cfcs.PersonVO)] public class PersonVO implements IValueObject { public var firstname:String = ; public var lastname:String = ; public var sid:String= ; public function PersonVO(){ this.firstname = ; this.lastname = ; this.sid = ; } } } PersonVO.cfc cfcomponent displayname=PersonVO hint=Login VO For CairngormTest output=false cfset this.firstname = / cfset this.lastname = / cfset this.sid = / /cfcomponent I have a function in cfc.it is here cffunction name=addPerson displayname=addPerson access=remote output=false returntype=boolean cfargument name=personVO type=PersonVO required=true / cfquery name=insertPerson datasource=bursary INSERT INTO person_info (fname, lname, sid) VALUES('#personVO.firstname#', '#tpersonVO.lastname#', '#personVO.sid#') /cfquery cfreturn true / /cffunction but I get the error when I pass flex vo to the cfc function.I am not sure how to make flex vo and cfc vo match.the error message is here RPC Fault faultString=The argument PERSONVO passed to function addPerson() is not of type PersonVO. faultCode=Server.Processing faultDetail=If the component name is specified as a type of this argument, the reason for this error might be that a definition file for such component cannot be found or is not accessible.] Please help me.Thanks Mark
Re: [flexcoders] xml and dataprovider for simple chart
Try... dataProvider ={xmlData.entry[0].One} or dataProvider ={xmlData.*.One} On 5 Dec 2007, at 15:52, y.mauron wrote: Dear all, I have a problem which certainly be very easy. I have a xml varialbe like the following : var test:String = rootentry id=123Oney813/yx270/x/One/entryentry id=123Oney890/yx280/x/One/entry/root; var xmlData = new XML(test); and would like to use this as dataprovider for my chart. Each entry represent a series. (Rem: the number of entry entry is not known at the beninig). I then code that : mx:ColumnChart id=columnChart height=100% width=100% paddingLeft=0 paddingRight=0 showDataTips=true columnWidthRatio=1 maxColumnWidth=1 dataProvider ={xmlData.entry.One} But cannot see the two lines... and even not one...
[flexcoders] Re: Strange behaviour with singleton's and modules?
I've found using Darron Schall's singleton implementation seems to work great for my projects. http://www.darronschall.com/weblog/archives/000274.cfm Short of that can you post your singleton implementation code (or at least the constructor) ? --- In flexcoders@yahoogroups.com, bjorn - [EMAIL PROTECTED] wrote: I've made a simple testcase with a singleton and three Flex projects: 1. MainApp 2. ModuleOne 3. ModuleTwo MainApp loads ModuleOne which loads ModuleTwo (it could also load both modules, the behaviour I describe below seems to be the same in both cases). I have created a TestSingleton.as which implements the Singleton pattern (as far as it can be tanken in AS anyway ..) Here's TestSingleton.as's getInstance() method: /** * Get the only instance of the TestSingleton * @return TestSingleton instance **/ public static function getInstance():TestSingleton { if (instance == null) { instance = new TestSingleton(); trace(TestSingleton - instance was null, so created new instance); } else { trace(TestSingleton already instanciated, so returning instance..); } return instance; } If I put the singleton in MainApp, and then getInstance() it from ModuleOne and ModuleTwo I'll get this in my trace: [SWF] C:\dev\FlexWorkspace\ModuleTestMainApp\bin\ModuleTestModuleOne- debug.swf - 450,372 bytes after decompression TestSingleton - instance was null, so created new instance [SWF] C:\dev\FlexWorkspace\ModuleTestMainApp\bin\ModuleTestModuleTwo- debug.swf - 446,193 bytes after decompression TestSingleton already instanciated, so returning instance.. .. which is the expected behaviour. However, if I put TestSingleton.as in ModuleTwo, I get this: [SWF] C:\dev\FlexWorkspace\ModuleTestMainApp\bin\ModuleTestModuleOne- debug.swf - 450,372 bytes after decompression TestSingleton - instance was null, so created new instance [SWF] C:\dev\FlexWorkspace\ModuleTestMainApp\bin\ModuleTestModuleTwo- debug.swf - 446,193 bytes after decompression TestSingleton - instance was null, so created new instance .. it doesn't behave as a singleton anymore .. Can anyone explain why? :-) -- http://www.juicability.com - flex blog http://www.43min.com - funny movies
RE: [flexcoders] Re: Local storage of password
You could store an access key (hashed, encrypted, etc) that you use to lookup the data's encryption key from a database or off the server and have the server end handle the security. _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rmarples Sent: Tuesday, December 04, 2007 5:39 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Local storage of password Hi Jeff - Thanks for the response. By the way, great podcast :) I will look into the encryption libraries that both you and William mentioned but I'm wondering how they handle the encryption key. I have a requirement that I can't store the encryption key in the source code as a string literal. I'm wondering if you or anybody else has ideas on how to handle this? Ryan --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, Jeffry Houser [EMAIL PROTECTED] wrote: Yes, MD5 is a hashing algorithm and it is unlikely you'd be able to take a hash and get the original text (in a timely / efficient manner). There are a few AS3 encryption projects. ASCrypt3: ascrypt3.riaforge.com and Crypto http://crypto. http://crypto.hurlant.com/ hurlant.com/ Both of them have 2-way encryption algorithms you could use. AES perhaps? That said, I worry about the security implications of storing this type of authentication between application uses. rmarples wrote: Tracy - Isn't MD5 a hashing algorithm? Meaning I can only encrypt, not decrypt? I don't think this would work for this scenario would it? Ryan --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com mailto:flexcoders%40yahoogroups.com, Tracy Spratt tspratt@ wrote: There is an MD5 library available for AS3 that I have used. Tracy From: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com mailto:flexcoders%40yahoogroups.com [mailto:[EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of rmarples Sent: Monday, December 03, 2007 4:59 PM To: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Local storage of password I have a requirement to take credentials used for an external web service and cache them locally so that the user need not re-type their password each time they run the app. I can easily store these credentials in a SharedObject (cookie) but I don't want to store the password in plain-text here. Does anybody have any recommendations on an ecrypt/decrypt mechanism I can use for this? Also I have a requirement that any key used to encrypt can not be stored in the source code as a string literal. Ryan -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot- http://www.dot-com-it.com com-it.com My Podcast: http://www.theflexs http://www.theflexshow.com how.com My Blog: http://www.jeffryho http://www.jeffryhouser.com user.com
Re: [flexcoders] cfc do not understand cairngorm VO?
If you're using FlexBuilder, install the ColdFusion Extensions for Flex Builder (they're in the Flex Builder install dir). I've mentioned this yesterday. With the CF extensions installed, all you have to do is right click a cfc or as VO and you're done. Your cfc is missing some required stuff by the way.. Just use the CF wizards.. saves time and hair ;-) regards, Muzak - Original Message - From: Mark Shen [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, December 05, 2007 3:08 PM Subject: [flexcoders] cfc do not understand cairngorm VO? I have built a cfc vo class and flex vo class PersonVO.as package com.abc.CESF.Bursary.vo { import com.adobe.cairngorm.vo.IValueObject; [RemoteClass(alias=Bursary.cfcs.PersonVO)] public class PersonVO implements IValueObject { public var firstname:String = ; public var lastname:String = ; public var sid:String= ; public function PersonVO(){ this.firstname = ; this.lastname = ; this.sid = ; } } } PersonVO.cfc cfcomponent displayname=PersonVO hint=Login VO For CairngormTest output=false cfset this.firstname = / cfset this.lastname = / cfset this.sid = / /cfcomponent I have a function in cfc.it is here cffunction name=addPerson displayname=addPerson access=remote output=false returntype=boolean cfargument name=personVO type=PersonVO required=true / cfquery name=insertPerson datasource=bursary INSERT INTO person_info (fname, lname, sid) VALUES('#personVO.firstname#', '#tpersonVO.lastname#', '#personVO.sid#') /cfquery cfreturn true / /cffunction but I get the error when I pass flex vo to the cfc function.I am not sure how to make flex vo and cfc vo match.the error message is here RPC Fault faultString=The argument PERSONVO passed to function addPerson() is not of type PersonVO. faultCode=Server.Processing faultDetail=If the component name is specified as a type of this argument, the reason for this error might be that a definition file for such component cannot be found or is not accessible.] Please help me.Thanks Mark -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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: compc swc generation, no flash cs3?
How was the UIMovieClip.swc created so that it would work for the flash CS3 (show up in the components panel)? On Dec 4, 2007 6:11 PM, aaron smith [EMAIL PROTECTED] wrote: Hey all, i'm doing some experimenting with swc files.. Does generating a swc with compc not work in in Flash CS3? How can I generate a SWC to that will Work in Flash CS3 without going through the library option? Or is that the only way?
[flexcoders] Call to Web Service in WebSphere
I'm playing around with Flex and want to call a custom made Web Service in WebSphere. When I run my application, It seems that a lot of requests are done to the Web Service repeatably requesting the same XSD's (complex types). It looks like the application is in an infinite loop, constantly doing the same requests.. No call the the web service is made yet at this point. If I call the requested XSD manually in my browser, it is resolved without problems. And if I call another very simple web service, everything is working as expected. My Web Service definition looks like this: mx:WebService id=CALS wsdl=http://localhost:9080/CustomerModuleWeb/sca/CustomerDataServiceExp\ ort/wsdl/CustomerDataServiceExport_CustomerDataServiceHttp_Service.wsdl http://localhost:9080/CustomerModuleWeb/sca/CustomerDataServiceExport/w\ sdl/CustomerDataServiceExport_CustomerDataServiceHttp_Service.wsdl endpointURI=http://localhost:9080/CustomerModuleWeb/sca/CustomerDataSer\ viceExport http://localhost:9080/CustomerModuleWeb/sca/CustomerDataServiceExport service=CustomerDataServiceExport_CustomerDataServiceHttpService port=CustomerDataServiceExport_CustomerDataServiceHttpPort useProxy=false showBusyCursor=true fault=Alert.show(event.fault.faultString), 'Error' mx:operation name=findAll mx:request customerRequest Customer CustNo16/CustNo Group/Group /Customer /customerRequest /mx:request /mx:operation /mx:WebService What am I doing wrong here??
Re: [flexcoders] Re: Local storage of password
That'd be too easy. He stated that he needs to prevent the user from re-entering the password upon their next use of the application. Tom Chiverton wrote: On Tuesday 04 Dec 2007, rmarples wrote: requirement that I can't store the encryption key in the source code as a string literal. I'm wondering if you or anybody else has ideas on how to handle this? Sorry to jump in mid-thread, but if you just need to check a password is the same as one entered in the past, just store and compare against a hash. -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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: Binding to a ViewStack Child Container Property
Jeez, what happened? I've never been cutoff when posting to a newsgroup before! I'm trying to bind a label's text to a viewStack's selected VBox toolTip. I have specified each toolTip within VBox components themselves. Anyways, the following binding does not work for me: mx:Label id=titleText text={vs_articles.selectedChild.toolTip} However, i am able to get the following binding work: mx:Label id=titleText text={vs_articles.selectedChild.name} So i guess you could say that i am flummoxed by this. thanks, Ted --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Tuesday 04 Dec 2007, tedgies wrote: I'm trying to bind a label's text to the selected VBox's toolTip text. I'm trying: mx:Label id=titleText text={vs_articles.selectedChild.toolTip} And ? -- Tom Chiverton Helping to preemptively supply vertical users on: http://thefalken.livejournal.com Please note, as of 10th December 2007 the registered office address of Halliwells LLP will be at 3 Hardman Square, Spinningfields, Manchester, M3 3EB This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] How to access .net dll's in FLEX 3.0
HI.. I am Praveen. I joined this group newly. I recently joined in job as fresher in hyderabad. My company is product devleopment company and it developed its product in FLEX 1.5 and .Net. Presently we design our interface in FLEX and interact with .Net dll's using REMOTEOBJECT tag. Presetly the dll's are placed in bin folder of JRUN server. Now our company wants to recode the entire product FLEX 3.0(presently beta) and formed some of us team to study FLEX 3.0. Now I cant understantd how to call(access) the dll's which are previously in the bin folder of JRUN SERVER in the FLEX 3.0. and cant understand the 'destination' property in the REMOTEOBJECT tag and its purpose as we dont use it in our present code(FLEX1.5). Please give me some reply which any of you know..
RE: [flexcoders] getChildByName returning NULL
Any thoughts??? Post your code. Please note, as of 10th December 2007 the registered office address of Halliwells LLP will be at 3 Hardman Square, Spinningfields, Manchester, M3 3EB This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] LINUX BLANK PAGE
yourName wrote: dear all i have created a sample flex apllication and try to access it from mozila my operating system is *linux 3 with flash player *9.0.115.0 release i386.rpm. the problem is url is accessed but the page is blank. plz help me out . {I also tried to acces sample flex application form adobe web site but the problem is same url accessed but page is blank} Thanks in advaance This is most likely related to the Flesh Detection in the .html wrapper for the Flex .swf file. Try replacing the .html in the url with .swf and see if that loads the app. I've had some issues testing Flex applications on Linux. Specifically, Express Installer doesn't work because it's not supported on the Linux Platform. The Linux Flash Detection seems to be spotty in generally. It seems to work best on Linux if you change the Flex Compiler options to generate an html wrapper without the detection code in it. -d
[flexcoders] Sequence Diagram for Cairngorm
Hi, Just wondering if anyone has a sequence diagram for Cairngorm? If so, I'd be ever so grateful if you could post it... Thanks, Lawrie
[flexcoders] Change Height of Track Highlight?
Greetings - I've increased the height of my slider tracks but can't for the life of me figure how to change the height of the track highlight to match. ?? cheers, ethan
[flexcoders] Any additional details on NativeDrag to OS?
Hello all, What I would like to do is allow users to drag files off my AIR app onto their OS. I believe I can tell reliably when a drag gesture ends outside the AIR app but I have not figured out how to tell whether the drag gesture ended at a filesystem location (like an open folder) or another open application (like notepad). If the drag gesture ended on a filesystem location, how do I resolve the location to a path? Also, is there a way to replicate the mouse pointer feedback available in the DragManager when using the NativeDragManager for drag operations within app? Thanks, - Ivo
[flexcoders] Re: Question about Astro text capabilities
Yeah I saw the left hand page type layout. I'm really interested in the right page, which is much more complex. I haven't been able to find any good detailed spec information on Astro that would help me determine if it's possible, know of any? Andy --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Tuesday 04 Dec 2007, tudsy wrote: http://www.templesanjose.org/JudaismInfo/Torah/Talmud_Spread-thumb.jpg The left hand page was certainly demo'd at MAX. -- Tom Chiverton Helping to conveniently revolutionize revolutionary patterns on: http://thefalken.livejournal.com Please note, as of 10th December 2007 the registered office address of Halliwells LLP will be at 3 Hardman Square, Spinningfields, Manchester, M3 3EB This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Re: PrintDataGrid variablerowheight issue
Default --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Custom or default renderers? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jf317820 Sent: Wednesday, December 05, 2007 7:28 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] PrintDataGrid variablerowheight issue Hi everyone, I've done my thorough 5 days of documentation research, trial and error, and forum perusing on this subject, but have come to you as a frustrated, nearly broken developer. My printdatagrid will not print correctly, no matter what I try. I am getting rows cut off at the end of pages and extra empty rows added at the end of the printdatagrid. I have followed the sample code for the printdatagrid, using the validatenow and validnextpage methods, i've created my printdatagrid dynamically in actionscript and in mxml, I've tried adding extra line breaks to my data in an effort to force full rows...but nothing seems to work. I believe the culprit to be the variablerowheight attribute of my printdatagrid which seems to be throwing off the printing. Has anyone figured out a way to print to a printdatagrid effectively??? Thanks in advance. Joe
Re: [flexcoders] Re: Local storage of password
I can't claim to have invented the technique. It's even better if a new hash is passed back every time and replaces the old one (it means that any copies of the old hash will no longer work). Paul - Original Message - From: Jeffry Houser [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, December 05, 2007 4:40 PM Subject: Re: [flexcoders] Re: Local storage of password I think that's a simple (yet elegant) solution. I wish I thought of it. Paul Andrews wrote: - Original Message - From: Jeffry Houser [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, December 05, 2007 2:22 PM Subject: Re: [flexcoders] Re: Local storage of password That'd be too easy. He stated that he needs to prevent the user from re-entering the password upon their next use of the application. And it would. User logs in with password. Server passes back hashed version of user logon+password as a key. Server remembers this key. Client saves this key locally and passes it through on future accesses. Server looks up this key to check it's one it handed out previously. Still open to abuse though, even if username/password values are still secret. Paul -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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: Triggering a .htrml page inside a html frame from Flex.
sorry for the typo in the title...its 'triggering a .html...'.
[flexcoders] Triggering a .htrml page inside a html frame from Flex.
Hi Friends, I am trying to work on a situation but not any close yet, and thought that I could find some help here. I am trying to trigger a html page from my flex .swf, but open it inside a html frame. ie., from my app.swf, i click a button and must open page1.html inside a frame existing in page2.html The following function can just trigger/open the page1.html: private function openMainWindow(event:Event):void{ var str1:String=page1.html; var jscommand:String = window.open('+str1+');; var url1:URLRequest = new URLRequest(javascript: + jscommand + void (0);); navigateToURL(url1, _self); but how is that I can open this page1.html inside page2.html's frame (say 'frame1'). Thank you. Regards, K:)
[flexcoders] How to disble double click in ComboBo?
Hi, I am working on ComboBox components and like to disable double click event once click the little scrub( arrow icons ) The code doesn't work for me. Is there any way to reach that? Thanks = ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute width=305 height=231 mx:ComboBox x=90 y=81 doubleClickEnabled=false mouseEnabled=true/mx:ComboBox /mx:Application
RE: [flexcoders] DataGrid - Swap columns and rows
I would convert the object to an array of tag/value objects From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Vladimir Stankovic Sent: Wednesday, December 05, 2007 7:07 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataGrid - Swap columns and rows Hello everybody! I have an XML file containing data of only one student sth like: ?xml version=1.0 encoding=utf-8? catalog student studentId=1 imeVlada Stankovic/ime datumRodjenja24.09.1984./datumRodjenja ispita5+/ispita fakultetFON/fakultet ... ... ... /student /catalog I would like to show data in the grid view but instead of columns I would like rows to take the names of the student tags and to have 2 columns (one with tags and the other with data). How can I do this in flex? Thx in advance! Vlada From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of da FoX Sent: 5. decembar 2007 13:49 To: flexcoders@yahoogroups.com Subject: [flexcoders] Call to Web Service in WebSphere I'm playing around with Flex and want to call a custom made Web Service in WebSphere. When I run my application, It seems that a lot of requests are done to the Web Service repeatably requesting the same XSD's (complex types). It looks like the application is in an infinite loop, constantly doing the same requests.. No call the the web service is made yet at this point. If I call the requested XSD manually in my browser, it is resolved without problems. And if I call another very simple web service, everything is working as expected. My Web Service definition looks like this: mx:WebService id=CALS wsdl=http://localhost:9080/CustomerModuleWeb/sca/CustomerDataServiceExp ort/wsdl/CustomerDataServiceExport_CustomerDataServiceHttp_Service.wsdl http://localhost:9080/CustomerModuleWeb/sca/CustomerDataServiceExport/w sdl/CustomerDataServiceExport_CustomerDataServiceHttp_Service.wsdl endpointURI=http://localhost:9080/CustomerModuleWeb/sca/CustomerDataSer viceExport http://localhost:9080/CustomerModuleWeb/sca/CustomerDataServiceExport service=CustomerDataServiceExport_CustomerDataServiceHttpService port=CustomerDataServiceExport_CustomerDataServiceHttpPort useProxy=false showBusyCursor=true fault=Alert.show(event.fault.faultString), 'Error' mx:operation name=findAll mx:request customerRequest Customer CustNo16/CustNo Group/Group /Customer /customerRequest /mx:request /mx:operation /mx:WebService What am I doing wrong here?? __ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping http://tools.search.yahoo.com/newsearch/category.php?category=shopping
RE: [flexcoders] PrintDataGrid variablerowheight issue
Custom or default renderers? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jf317820 Sent: Wednesday, December 05, 2007 7:28 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] PrintDataGrid variablerowheight issue Hi everyone, I've done my thorough 5 days of documentation research, trial and error, and forum perusing on this subject, but have come to you as a frustrated, nearly broken developer. My printdatagrid will not print correctly, no matter what I try. I am getting rows cut off at the end of pages and extra empty rows added at the end of the printdatagrid. I have followed the sample code for the printdatagrid, using the validatenow and validnextpage methods, i've created my printdatagrid dynamically in actionscript and in mxml, I've tried adding extra line breaks to my data in an effort to force full rows...but nothing seems to work. I believe the culprit to be the variablerowheight attribute of my printdatagrid which seems to be throwing off the printing. Has anyone figured out a way to print to a printdatagrid effectively??? Thanks in advance. Joe
[flexcoders] styling Flex - able to use multiple stylenames - styleName=styleA styleB ?
In HTML, one can have multiple CSS Rules/classnames in one class declaration like: p class=ruleA ruleBexample/p From my testing, it seems this is not available in Flex. Is there any way to apply two separate CSS Rules to an element ? So this does not seem to work: mx:VBox styleName=styleA styleBexample/mx:VBox Thanks in advance for any tips
[flexcoders] xml and dataprovider for simple chart
Dear all, I have a problem which certainly be very easy. I have a xml varialbe like the following : var test:String = rootentry id=123Oney813/yx270/x/One/entryentry id=123Oney890/yx280/x/One/entry/root; var xmlData = new XML(test); and would like to use this as dataprovider for my chart. Each entry represent a series. (Rem: the number of entry entry is not known at the beninig). I then code that : mx:ColumnChart id=columnChart height=100% width=100% paddingLeft=0 paddingRight=0 showDataTips=true columnWidthRatio=1 maxColumnWidth=1 dataProvider ={xmlData.entry.One} But cannot see the two lines... and even not one...
[flexcoders] Tree - Open all child layers when open branch
Hi, I have this tree structure: Branch1 ChildA Child1 Child1.1 Child1.2 Child1.2.1 Child2 Child2.1 Child2.1.1 Child2.1.2 Child2.2 Child2.2.1 How can I open all the child layers at once when I click on the folder icon of Branch1? Thanks!
[flexcoders] ValueObject Factories?
Hi all, I was wondering how you guys deal with model objects and their corresponding value objects. We have a pretty big domain model with complex nested classes and we need to create value objects from them before sending them to the server. Right now we create a factory for each model, that can create a vo from a model and a model from a vo. This works, but it is obviously a lot of work and error prone, so it requires more work to write testcases for them. Does anyone have this problem too? Are you only sending VO's to the server or do you only do that for complex types and otherwise send the object itself? Input, comments and ideas are welcome. regards, Christophe -- Christophe Herreman http://www.herrodius.com http://www.pranaframework.org
[flexcoders] Getting local connection info from Socket
Okay I'm working on an app that integrates with Novell's Groupwise Messenger and I'm having an issue. When sending login info you have to send your IP and PORT you are using for the connection. Not what I am connecting to but the random port I was assigned locally. Is there any way to get this info from the Socket, I was looking through the documentation for Socket and couldn't find anything. If this isn't possible I'm going ot have to use PHP as a go between unfortunately because I have successfully connected with it's sockets because I can get that info. I was hoping to just handle this all in Flex so I could later turn this into an AIR app that would be independent from any web server. Thanks, RipSUp
[flexcoders] Re: Adding custom events to the pre-loading sequence
Now I have a possible solution: CustomPreloader: private function onFlexInitComplete(event:Event):void { //now we can access the Application.application Application.application.addEventListener(AppReadyEvent.READY, onAppReadyEvent); } private function onAppReadyEvent(event:AppReadyEvent):void { dispatchEvent(new Event(Event.COMPLETE)); } Application: //dispatch AppReadyEvent if you want remove the preloader Application.application.dispatchEvent(new AppReadyEvent(AppReadyEvent.READY)); What do you think about it? --- In flexcoders@yahoogroups.com, dave_defusion [EMAIL PROTECTED] wrote: I'm just trying to do the same thing for our app today and there must be a way, surely it's quite a common requirement. All I want to do is load the runtime styles a quick check to the backend, but the loading the styles is the most important thing.
[flexcoders] html wrapper
I am trying to extend the height of the html wrapper such that it would get a scroll instead of the swf. Here is what I am trying to achieve: In my html wrapper I have Header (some html content) Object tag that includes my varying height flex swf Footer (some html content) What I am trying to achieve is that the swf application should not display a scrollbar and should extend its height based on the content. I managed to make the application height variable by setting the tabNavigator that it include with resizeToContent as true. However when I run the application inside the html wrapper my SWF content gets clipped. I would like the object tag to increase or decrease its height and not clip the content. Any help here would be appreciated.
Re: [flexcoders] Re: cfc do not understand cairngorm VO?
try to set the Alias attribute in your component. something like alias=path.to.my.cfc.PersonVO Also, be sure that the AS3 class maps to the same path defined in the alias attribute. -- João Fernandes http://www.onflexwithcf.org http://www.riapt.org
RE: [flexcoders] Missing classes when using RSL cache
Because TweenEffect is not in the app? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Wednesday, December 05, 2007 4:38 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Missing classes when using RSL cache Why would I get startup RTEs along the lines of 'VerifyError: Error #1014: Class mx.effects.TweenEffect could not be found when setting datavis to be a RSL in Flex 3 beta 2 ? -- Tom Chiverton Helping to vitalistically cultivate cross-media networks on: http://thefalken.livejournal.com http://thefalken.livejournal.com Please note, as of 10th December 2007 the registered office address of Halliwells LLP will be at 3 Hardman Square, Spinningfields, Manchester, M3 3EB This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Custom ItemEditor too big for container
I've built a custom Tree ItemEditor that consists of a VBox with a Form in it. It works just fine (besides the CheckBox which is too picky about true vs. true in the XML data...) except when I try to edit an item near the bottom of the container, the editor gets cut off. Because I wanted it to only occupy the smallest necessary space, I set the following properties on the Tree control: editorHeightOffset=150 editorWidthOffset=-650, and there is no width or height set for the ItemEditor. What's the best way to ensure that my custom editor won't occupy a huge amount of space, but will stay on-screen as well? I tried setting verticalScrollPolicy to on but it doesn't register as an increase in the control's height, so the bars don't activate when the editor is off the screen.
Re: [flexcoders] Re: Triggering a .htrml page inside a html frame from Flex.
one option is to have the function to load a specific url in javascript, which would be easy to find a tutorial/example on. You'd then use the external interface to call js from flex. Only the first argument is required for the call() method, everything else is added to the function call ExternalInterface.call(jsFunctionName, frameName, urlToLoad); On Dec 5, 2007 9:13 AM, kalyancce [EMAIL PROTECTED] wrote: sorry for the typo in the title...its 'triggering a .html...'.
Re: [flexcoders] cairngorm value object type and cfc type do not match,why?
Yes I change the cfc function code like cffunction name=addPerson displayname=addPerson access=remote output=false returntype=boolean cfargument name=personVO type=Bursary.cfcs.PersonVO required=true / cfquery name=insertPerson datasource=bursary INSERT INTO person_info (fname, lname, sid) VALUES('#personVO.firstname#', '#tpersonVO.lastname#', '#personVO.sid#') /cfquery cfreturn true / /cffunction But I still have same error. Thanks for your hit Mark - Original Message From: Jeffry Houser [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, December 5, 2007 9:20:41 AM Subject: Re: [flexcoders] cairngorm value object type and cfc type do not match,why? Make sure you add properties to the CFC VO using the cfproperty tag. Properties case and order must match what is in the AS3 VO. Additionally, use the full path with dot notation as the argument type. Basically, Flex+CF is not smart enough to know that PersonVO is equal to Bursary.cfcs. PersonVO . markflex2007 wrote: I have built a cfc vo class and flex vo class PersonVO.as package com.abc.CESF. Bursary.vo { import com.adobe.cairngorm .vo.IValueObject ; [RemoteClass( alias=Bursary. cfcs.PersonVO )] public class PersonVO implements IValueObject { public var firstname:String = ; public var lastname:String = ; public var sid:String= ; public function PersonVO(){ this.firstname = ; this.lastname = ; this.sid = ; } } } PersonVO.cfc cfcomponent displayname= PersonVO hint=Login VO For CairngormTest output=false cfset this.firstname = / cfset this.lastname = / cfset this.sid = / /cfcomponent I have a function in cfc.it is here cffunction name=addPerson displayname= addPerson access=remote output=false returntype= boolean cfargument name=personVO type=PersonVO required=true / cfquery name=insertPerson datasource= bursary INSERT INTO person_info (fname, lname, sid) VALUES('#personVO. firstname# ', '#tpersonVO. lastname# ', '#personVO.sid# ') /cfquery cfreturn true / /cffunction but I get the error when I pass flex vo to the cfc function.I am not sure how to make flex vo and cfc vo match.the error message is here RPC Fault faultString= The argument PERSONVO passed to function addPerson() is not of type PersonVO. faultCode=Server. Processing faultDetail= If the component name is specified as a type of this argument, the reason for this error might be that a definition file for such component cannot be found or is not accessible. ] Please help me.Thanks Mark -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot- com-it.com My Podcast: http://www.theflexs how.com My Blog: http://www.jeffryho user.com Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
Re: [flexcoders] How to access .net dll's in FLEX 3.0
I had no idea Flex 1.5 allowed you to call .NET dlls using RemoteObject. Pretty sweet. If Flex 1. Server could access .NET DLLs, then I Bet that this funcionality would be present in the current rendition of LiveCycle Data Services. You could also look into WebORB for .NET, although if your company can afford Flex 1.5 licenses, I'd suspect that LDS is probably also within your budget. Destinations refer to a remoting configuration file. I believe it tells 'you' where to find the remoting gateway. Praveen wrote: HI.. I am Praveen. I joined this group newly. I recently joined in job as fresher in hyderabad. My company is product devleopment company and it developed its product in FLEX 1.5 and .Net. Presently we design our interface in FLEX and interact with .Net dll's using REMOTEOBJECT tag. Presetly the dll's are placed in bin folder of JRUN server. Now our company wants to recode the entire product FLEX 3.0(presently beta) and formed some of us team to study FLEX 3.0. Now I cant understantd how to call(access) the dll's which are previously in the bin folder of JRUN SERVER in the FLEX 3.0. and cant understand the 'destination' property in the REMOTEOBJECT tag and its purpose as we dont use it in our present code(FLEX1.5). Please give me some reply which any of you know.. -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
[flexcoders] Datagrid ItemEditor - multiple data edits?
Is it possible for an ItemEditor in a datagrid (or some other way) to allow you to edit 2 or more things at once? Like say instead of a combo box dropdown for a cell in a datagrid, could you have an item editor that is like a mini form update multiple data objects in that row's data that may not be displayed in the datagrids view Or Flex3 advanced datagrid something I should look into? Or this will have to be completely custom and kinda 'fake' this behavior
[flexcoders] Mutliple alert copies
I have a wizard which ends with the following alert: alert = Alert.show(The message has been sent. Would you like to send another?, , Alert.YES | Alert.NO, null, handleClose); If the user chooses YES the alert disappears from view, but next time there are two of them. Any obvious mistakes?
[flexcoders] Re: getChildByName returning NULL SOLVED - kinda
Using callLater() seems to have fixed this behavior. I dynamically created var f:Object = new form1(); I then call a recusive function on f, f.GetData() o is found a 1-2 levels of recursion (a canvas that's in an accordion that' in the canvs, f) So perhaps the call to updateDisplayList,etc had't yet worked their magic and created all of the nested components (namely o's childern). The debugger, however had. Calling callLater() before the recursive call, f.GetData() seems to have fixed this problem. Interesting. --- In flexcoders@yahoogroups.com, riaengineer [EMAIL PROTECTED] wrote: o.getChildByName(foo) returns NULL. However, I *can* drill down to the childDescriptors of o in the debug window. I do see foo therein. The call to o.getChildByName() was working until o's parent became a AS3 variable. Prior to this, o's parent was an MXML tag everything worked. Any thoughts???
[flexcoders] DataGrid - Swap columns and rows
Hello everybody! I have an XML file containing data of only one student sth like: ?xml version=1.0 encoding=utf-8? catalog student studentId=1 imeVlada Stankovic/ime datumRodjenja24.09.1984./datumRodjenja ispita5+/ispita fakultetFON/fakultet . . . /student /catalog I would like to show data in the grid view but instead of columns I would like rows to take the names of the student tags and to have 2 columns (one with tags and the other with data). How can I do this in flex? Thx in advance! Vlada From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of da FoX Sent: 5. decembar 2007 13:49 To: flexcoders@yahoogroups.com Subject: [flexcoders] Call to Web Service in WebSphere I'm playing around with Flex and want to call a custom made Web Service in WebSphere. When I run my application, It seems that a lot of requests are done to the Web Service repeatably requesting the same XSD's (complex types). It looks like the application is in an infinite loop, constantly doing the same requests.. No call the the web service is made yet at this point. If I call the requested XSD manually in my browser, it is resolved without problems. And if I call another very simple web service, everything is working as expected. My Web Service definition looks like this: mx:WebService id=CALS wsdl=http://localhost:9080/CustomerModuleWeb/sca/CustomerDataServiceExport/ wsdl/CustomerDataServiceExport_CustomerDataServiceHttp_Service.wsdl endpointURI=http://localhost:9080/CustomerModuleWeb/sca/CustomerDataService Export service=CustomerDataServiceExport_CustomerDataServiceHttpService port=CustomerDataServiceExport_CustomerDataServiceHttpPort useProxy=false showBusyCursor=true fault=Alert.show(event.fault.faultString), 'Error' mx:operation name=findAll mx:request customerRequest Customer CustNo16/CustNo Group/Group /Customer /customerRequest /mx:request /mx:operation /mx:WebService What am I doing wrong here?? __ Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
[flexcoders] cfc can not get cairngorm VO data?
Hi I am using cairngorm with cfc now. I make some progress and the error like this: Services.mxml ?xml version=1.0 encoding=utf-8? cairngorm:ServiceLocator xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:cairngorm=com.adobe.cairngorm.business.* !-- Bursary Service -- mx:RemoteObject id=BursaryService destination=ColdFusion source=Bursary.cfcs.BursaryProcess mx:method name=addPerson result=hresult() fault=hfault(event)/ mx:method name=showPerson result=hresult() fault=hfault(event)/ /mx:RemoteObject mx:Script ![CDATA[ import mx.controls.Alert; import mx.rpc.events.FaultEvent private function hresult():void{ Alert.show(add ok) } private function hfault(event:FaultEvent):void { Alert.show(event.fault.toString()) } ]] /mx:Script /cairngorm:ServiceLocator formDelegate.as package ca.sb.CESF.Bursary.business { import com.adobe.cairngorm.business.ServiceLocator; import mx.rpc.IResponder; import ca.sb.CESF.Bursary.vo.PersonVO; import mx.controls.Alert; public class Form3Delegate { private var responder:IResponder; private var service:Object; public function Form3Delegate( responder:IResponder ) { Alert.show(login delegate begine); this.responder = responder; this.service = ServiceLocator.getInstance ().getRemoteObject(BursaryService); Alert.show(login delegate done); } public function AddPersonData(personVO:PersonVO):void { Alert.show(DELEGATE + personVO.firstname); var call:Object = this.service.addPerson (personVO); call.addResponder(responder); } } } I output data with Alert.show(DELEGATE + personVO.firstname) in function AddPersonData.I can get output data. but I get error when I pass data by call:Object = this.service.addPerson(personVO); The Error message like following [RPC Fault faultString=Element FIRSTNAME is undefined in PERSONVO. faultCode=Server.Processing faultDetail=] How ro fix this?How to output with mx:RemoteObject to show which data is passed to cfc?
[flexcoders] Re: Line Segment over Item Renderer in Line Series
I forgot to mention that this in Flex 2 w/ Hot Fix 3, using the standard charts package. --- In flexcoders@yahoogroups.com, adtrantravis [EMAIL PROTECTED] wrote: I am using a simple Line Chart and Line Series. My array of data has yField values that are off the chart. Data points after the off the chart point are rendered incorrectly. The line segment is drawn over the item renderer. Anyone have a similar experience?
[flexcoders] Line Segment over Item Renderer in Line Series
I am using a simple Line Chart and Line Series. My array of data has yField values that are off the chart. Data points after the off the chart point are rendered incorrectly. The line segment is drawn over the item renderer. Anyone have a similar experience?
RE: [flexcoders] DataGrid tab order (again)
If you're cheating on how tabbing works, you'll have this problem in IE. In IE, if you aren't in the tab order from the FocusManager's perspective you could end up having focus leave to the browser. There might be a bug related to that as well where we don't handle all cases. I won't have time to investigate this week. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Roy J. Tang Sent: Wednesday, December 05, 2007 5:00 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataGrid tab order (again) Hi! Thanks to Alex's help I got the datagrid tab order functionality I needed mostly working (including avoiding the datagrid remembering the last edited cell). Just one minor issue now, which I *might* be able to just ignore, but I'm curious about it because it works correctly on Firefox, but not on IE. Specifically, when I reverse-tab (shift+tab) out of my DataGrid, the focus seems to be going to the wrong control. But it only happens in IE. Check my sample here: http://roytang.net/sandbox/DataGridTabOrder.swf http://roytang.net/sandbox/DataGridTabOrder.swf Source: http://roytang.net/sandbox/DataGridTabOrder.mxml http://roytang.net/sandbox/DataGridTabOrder.mxml Is it a bug in the SDK? or is there something I can do to work around it? Thanks! Roy
[flexcoders] chart computed max value
Hello, Is it possible to get the computed max value for a chart ??? Thank you in advance...
[flexcoders] Re: Probleme Upload File de flex vers PHP
--- In flexcoders@yahoogroups.com, exuperok [EMAIL PROTECTED] wrote: Hello How should understand this trace when uploading file to php application: what does eventPase = 2 means? same thing for bubbles=false? bubbles = false means the event doesn't 'bubble' eventPhase = 2 means the event is in the target-phase Both properties can be found in the language reference of Event http://livedocs.adobe.com/flex/2/langref/flash/events/Event.html To actually get a grasp of what they mean, check this chapter of the livedocs: http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm?href=0462.html --Johan
[flexcoders] Re: xml and dataprovider for simple chart
It doesn't work :-( If I use a xml like that : rootentryOney813/yx270/x/OnePeak/entryentryOney890/yx280/x/OnePeak/entry/root and the following provider : {xmlData.entry.One} I cann display all the points, but as if it was one series and note two. Alternativly, I can specify entry[0] or 1 to display one or the other series but one more time not both...
[flexcoders] Re: cfc do not understand cairngorm VO?
I create the PersonVO with the cfc wizard,the error still same. PersonVO.cfc cfcomponent displayname=PersonVO hint=Login VO For CairngormTest output=false cfproperty name=firstname type=string default= cfproperty name=lastname type=string default= cfproperty name=sid type=string default= cfscript //Initialize the CFC with the default properties values. variables.firstname = ; variables.lastname = ; variables.sid = ; /cfscript cffunction name=init output=false returntype=PersonVO cfreturn this /cffunction cffunction name=getFirstname output=false access=public returntype=any cfreturn variables.Firstname /cffunction cffunction name=setFirstname output=false access=public returntype=void cfargument name=val required=true cfset variables.Firstname = arguments.val /cffunction cffunction name=getLastname output=false access=public returntype=any cfreturn variables.Lastname /cffunction cffunction name=setLastname output=false access=public returntype=void cfargument name=val required=true cfset variables.Lastname = arguments.val /cffunction cffunction name=getSid output=false access=public returntype=any cfreturn variables.Sid /cffunction cffunction name=setSid output=false access=public returntype=void cfargument name=val required=true cfset variables.Sid = arguments.val /cffunction /cfcomponent Thanks.Please give me a hit Mark --- In flexcoders@yahoogroups.com, Muzak [EMAIL PROTECTED] wrote: If you're using FlexBuilder, install the ColdFusion Extensions for Flex Builder (they're in the Flex Builder install dir). I've mentioned this yesterday. With the CF extensions installed, all you have to do is right click a cfc or as VO and you're done. Your cfc is missing some required stuff by the way.. Just use the CF wizards.. saves time and hair ;-) regards, Muzak - Original Message - From: Mark Shen [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, December 05, 2007 3:08 PM Subject: [flexcoders] cfc do not understand cairngorm VO? I have built a cfc vo class and flex vo class PersonVO.as package com.abc.CESF.Bursary.vo { import com.adobe.cairngorm.vo.IValueObject; [RemoteClass(alias=Bursary.cfcs.PersonVO)] public class PersonVO implements IValueObject { public var firstname:String = ; public var lastname:String = ; public var sid:String= ; public function PersonVO(){ this.firstname = ; this.lastname = ; this.sid = ; } } } PersonVO.cfc cfcomponent displayname=PersonVO hint=Login VO For CairngormTest output=false cfset this.firstname = / cfset this.lastname = / cfset this.sid = / /cfcomponent I have a function in cfc.it is here cffunction name=addPerson displayname=addPerson access=remote output=false returntype=boolean cfargument name=personVO type=PersonVO required=true / cfquery name=insertPerson datasource=bursary INSERT INTO person_info (fname, lname, sid) VALUES('#personVO.firstname#', '#tpersonVO.lastname#', '#personVO.sid#') /cfquery cfreturn true / /cffunction but I get the error when I pass flex vo to the cfc function.I am not sure how to make flex vo and cfc vo match.the error message is here RPC Fault faultString=The argument PERSONVO passed to function addPerson() is not of type PersonVO. faultCode=Server.Processing faultDetail=If the component name is specified as a type of this argument, the reason for this error might be that a definition file for such component cannot be found or is not accessible.] Please help me.Thanks Mark
[flexcoders] Menubar Render
Hi folks, I had create a MenuBar (copy from LiveDoc's exemple) and set a custom menuBarItemRenderer. But when I tried to run I got a runtime error, every time I put the cursor over the render. Error: TypeError: Error #1034: Type Coercion failed: cannot convert mx.core::[EMAIL PROTECTED] to mx.controls.menuClasses.IMenuBarItemRenderer. at mx.controls::MenuBar/mouseOverHandler ()[E:\dev\flex_201_borneo\sdk\frameworks\mx\controls\MenuBar.as:1670] Menubar (MenuBarLiveDocsExample.mxml): ?xml version=1.0 encoding=utf-8? !-- Simple example to demonstrate the MenuBar control. -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=initCollections(); mx:Script ![CDATA[ import mx.events.MenuEvent; import mx.controls.Alert; import mx.collections.*; [Bindable] public var menuBarCollection:XMLListCollection; private var menubarXML:XMLList = menuitem label=Menu1 data=top menuitem label=MenuItem 1-A data=1A/ menuitem label=MenuItem 1-B data=1B/ /menuitem menuitem label=Menu2 data=top menuitem label=MenuItem 2-A type=check data=2A/ menuitem type=separator/ menuitem label=MenuItem 2-B menuitem label=SubMenuItem 3-A type=radio groupName=one data=3A/ menuitem label=SubMenuItem 3-B type=radio groupName=one data=3B/ /menuitem /menuitem /; // Event handler to initialize the MenuBar control. private function initCollections():void { menuBarCollection = new XMLListCollection(menubarXML); } // Event handler for the MenuBar control's itemClick event. private function menuHandler(event:MenuEvent):void { // Don't open the Alert for a menu bar item that // opens a popup submenu. if ([EMAIL PROTECTED] != top) { Alert.show(Label: + [EMAIL PROTECTED] + \n + Data: + [EMAIL PROTECTED], Clicked menu item); } } ]] /mx:Script mx:Panel title=MenuBar Control Example height=75% width=75% paddingTop=10 paddingLeft=10 mx:Label width=100% color=blue text=Select a menu item./ mx:MenuBar labelField=@label itemClick=menuHandler(event); dataProvider={menuBarCollection} menuBarItemRenderer=MyCustomRender/ /mx:Panel /mx:Application Item Render (MyCustomRender.mxml): ?xml version=1.0 encoding=utf-8? mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; implements=mx.controls.menuClasses.IMenuBarItemRenderer mx:Script ![CDATA[ import mx.controls.MenuBar; private var _menuBar:MenuBar; private var _menuBarIndex:int; private var _menuBarItemState:String; public function get menuBar():MenuBar { return _menuBar; } public function set menuBar(value:MenuBar):void { _menuBar = value; } public function get menuBarItemIndex():int { return _menuBarIndex; } public function set menuBarItemIndex(value:int):void { _menuBarIndex = value; } public function get menuBarItemState():String { return _menuBarItemState; } public function set menuBarItemState(value:String):void { _menuBarItemState = value; } ]] /mx:Script mx:Label text=[EMAIL PROTECTED] / mx:Spacer width=100% / mx:Image source=/anything.png height=100% width=30 / /mx:HBox Any one knows how to solve this? VELO
[flexcoders] Re: Design support for template components (my wish)
Any updates on this?? it's my wish too... hehehe --- In flexcoders@yahoogroups.com, borekbe [EMAIL PROTECTED] wrote: Hi, I've just downloaded Flex Builder 3 beta and was curious if template components are supported in the design view this time - unfortunately, they still aren't. How hard would be to implement this feature? To be honest, without the design view support, template components are much less attractive. Just a little wish... Thanks, Borek
RE: [flexcoders] Tree - Open all child layers when open branch
The method you need is in the help file under Tree, as it happens. I guess a mix of the change event and selectedItem (off the top of my head and without checking) would probably do what you want. hth Jim. expandChildrenOf () method public function expandChildrenOf(item:Object, open:Boolean):void Opens or closes all the tree items below the specified item. -Original Message- From: flexcoders@yahoogroups.com on behalf of nhid Sent: Wed 05/12/2007 18:52 To: flexcoders@yahoogroups.com Subject: [flexcoders] Tree - Open all child layers when open branch Hi, I have this tree structure: Branch1 ChildA Child1 Child1.1 Child1.2 Child1.2.1 Child2 Child2.1 Child2.1.1 Child2.1.2 Child2.2 Child2.2.1 How can I open all the child layers at once when I click on the folder icon of Branch1? Thanks! __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __winmail.dat
Re: [flexcoders] Sequence Diagram for Cairngorm
cairngormdocs.org On 06/12/2007, at 5:30 AM, lawriegallardo wrote: Hi, Just wondering if anyone has a sequence diagram for Cairngorm? If so, I'd be ever so grateful if you could post it... Thanks, Lawrie
RE: [flexcoders] Re: getChildByName returning NULL SOLVED - kinda
There are several things that may be confusing you... 1. A child descriptor is not an actual child. The descriptor simply stores the information specified for the MXML tag; it is used to create an actual child DisplayObject. So a component can have a descriptor for a child without yet having that child. 2. Components do not (or at least should not) create their children at constructor time. In other words, after executing var f:Object = new form1(); the child DisplayObjects do not exist. They are created later, when you put f onto the display list by doing someParent.addChild(f). 3. Due to the Flex feature known as deferred instantiation, all descendants do not necessarily get created when a component is put onto the display list. For example, an Accordion creates grandchildren only for its initially visible pane. The grandchildren on other panes get created as you navigate to those panes. You should structure your code to pull data into children as they get created. I also recommend using strong typing: var f:form1 = new form1(); Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of riaengineer Sent: Wednesday, December 05, 2007 8:11 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: getChildByName returning NULL SOLVED - kinda Using callLater() seems to have fixed this behavior. I dynamically created var f:Object = new form1(); I then call a recusive function on f, f.GetData() o is found a 1-2 levels of recursion (a canvas that's in an accordion that' in the canvs, f) So perhaps the call to updateDisplayList,etc had't yet worked their magic and created all of the nested components (namely o's childern). The debugger, however had. Calling callLater() before the recursive call, f.GetData() seems to have fixed this problem. Interesting. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , riaengineer [EMAIL PROTECTED] wrote: o.getChildByName(foo) returns NULL. However, I *can* drill down to the childDescriptors of o in the debug window. I do see foo therein. The call to o.getChildByName() was working until o's parent became a AS3 variable. Prior to this, o's parent was an MXML tag everything worked. Any thoughts???
Re: [flexcoders] How to access .net dll's in FLEX 3.0
yeah, news to me too. Must have had some secret edition of Flex 1.5 for that. Praveen, maybe your Flex 1.5 app was actually calling a Java POJO that did some magic to use a .NET dll? Jumping the globe to travel to the neighbourhood coffee shopanyhoo, with Flex 2 and 3, you could possibly expose this .NET code as web services and consume with no added server expense. DK On Dec 5, 2007 2:45 PM, Jeffry Houser [EMAIL PROTECTED] wrote: I had no idea Flex 1.5 allowed you to call .NET dlls using RemoteObject. Pretty sweet. If Flex 1. Server could access .NET DLLs, then I Bet that this funcionality would be present in the current rendition of LiveCycle Data Services. You could also look into WebORB for .NET, although if your company can afford Flex 1.5 licenses, I'd suspect that LDS is probably also within your budget. Destinations refer to a remoting configuration file. I believe it tells 'you' where to find the remoting gateway. Praveen wrote: HI.. I am Praveen. I joined this group newly. I recently joined in job as fresher in hyderabad. My company is product devleopment company and it developed its product in FLEX 1.5 and .Net. Presently we design our interface in FLEX and interact with .Net dll's using REMOTEOBJECT tag. Presetly the dll's are placed in bin folder of JRUN server. Now our company wants to recode the entire product FLEX 3.0(presently beta) and formed some of us team to study FLEX 3.0. Now I cant understantd how to call(access) the dll's which are previously in the bin folder of JRUN SERVER in the FLEX 3.0. and cant understand the 'destination' property in the REMOTEOBJECT tag and its purpose as we dont use it in our present code(FLEX1.5). Please give me some reply which any of you know.. -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it?
[flexcoders] Re: Problem with setting initial sort of AdvancedDataGrid via data provider.
--- In flexcoders@yahoogroups.com, Ian M. Jones [EMAIL PROTECTED] wrote: Hi there, hope someone has come across my problem and can point out my mistake... I have an ArrayCollection acting as the data provider for an AdvancedDataGrid, and am saving out the data provider's sort fields array to a SharedObject between sessions and refreshes of the data. When I retrieve new data I grab the array of sort fields and stuff them into the ArrayCollection's sort property like so: private function getDefaultColumnsSort():void { var prefs:SharedObject = SharedObject.getLocal(FogBugzModule); // Look for a saved sort order. if (defaultColumnsSort in prefs.data) { var sort:Sort = new Sort(); sort.compareFunction = customCompare; sort.fields = new Array(); for (var y:int = 0; y prefs.data.defaultColumnsSort.length; y++) { if (prefs.data.defaultColumnsSort[y] != null) { if (name in prefs.data.defaultColumnsSort[y]) { if (prefs.data.defaultColumnsSort[y].name != null) { var sortField:SortField = new SortField (prefs.data.defaultColumnsSort[y].name, true, Boolean (prefs.data.defaultColumnsSort[y].descending)); sort.fields.push(sortField); } } } } // Add sort criteria to data provider. casesArray.sort = sort; // Sort data in data provider. casesArray.refresh(); } } The problem is, the ADG does sort the data by the right columns, but... * it's always in ascending order, even though the column headers show the sort arrow correctly pointing down if the saved sort was descending. * if you click on the column header to re-sort it nothing happens, the sort arrow will flip-flop between pointing up and down as many times as you like, but sort order is always ascending. * The sorted column will not sort properly until I sort another column by clicking it's header first, then it'll properly sort ascending and descending when clicked. The Sort object I'm assigning to the casesArray ArrayCollection above looks OK, it just seems there is something not quite right in the way the ADG uses it. If anyone has any advice, I'd be very grateful. Thanks, Ian Fixed it. I got close to solving the problem by removing the compareFunction from the Sort I was constructing at startup, but that meant numeric, date and compound columns were always sorted alphabetically instead of numerically, by date or through the two or more data fields that made up the column respectively. But at least it was sorting in the right direction and the direction could be changed correctly. This was definitely my fault, I shouldn't have used the custom compareFunction because I dynamically add a sortCompareFunction to any AdvancedDataGridColumn that needs it when adding the user's preferred columns to the AdvancedDataGrid, so I didn't need to reference another custom compare function on the data provider. But why wasn't the AdvancedDataGrid using it's column's sortCompareFunction definitions? When I created the SortFields for the initial sort I was setting the ignore case property to true just as a means of getting to the descending parameter that I was truly interested in, when I set that to false, suddenly the AdvancedDataGrid was using the correct sortCompareFunctions for it's columns. Very strange. On reflection, it could be that the framework is assuming that if the SortField has it's ignore case property set to true then it must need to do an alphabetic sort, regardless of whether there's a custom compare function on the column or not. Hey ho, it's fixed now. Cheers, Ian
Re: [flexcoders] Re: AdvancedDataGrid::toolTip formatting
I just wrote this post http://blog.fastlanesw.com/?p=31 on my blog this morning that shows how to do HTML tooltips in Flex. It is very simple. hth Scott tungchau81 wrote: The full code is : private function myDataTip(data:Object):String { return BTung Chau/B; } controls:AdvancedDataGrid id=reportTable groupIconFunction=reportArchiveGroupingIcon defaultLeafIcon={Icons.ReportArchiveIcon} dataTipFunction=myDataTip initialize=gc.refresh(); width=100% height=100% controls:columns mx:AdvancedDataGridColumn id=nameCol dataField=name headerText={getString('label.reportName')} showDataTips=true minWidth=300/ mx:AdvancedDataGridColumn id=sDateCol dataField=startDate labelFunction=formatStartDate headerText={getString ('label.reportStartDate')} showDataTips=true width=100/ mx:AdvancedDataGridColumn id=eDateCol dataField=endDate labelFunction=formatEndDate headerText={getString ('label.reportEndDate')} showDataTips=true width=100/ mx:AdvancedDataGridColumn id=createdOnCol dataField=createdOn labelFunction=formatCreatedOnDate headerText={getString ('label.createdOn')} showDataTips=true width=100/ /controls:columns /controls:AdvancedDataGrid Please help. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, tungchau81 [EMAIL PROTECTED] wrote: Hi, I wrote my own custom dataTipFunction that return an HTML formatted text, but it does not work. Please help! private function myDataTip(data:Object):String { return BTung Chau/B; } The result I saw was a raw BTung Chau/B instead of the bold text format I want. Please help. Tung Chau
Re: SPAM-LOW: [flexcoders] Encryption in Flex and Decryption in ColdFusion.
Which library? I've been able to successfully pass data back and forth between Flex and Crypto using AES. There are settings you need to specify (128 bit something?), but w/o pulling the code, I don't remember them. ivansebastiansurya wrote: Hi there, Has anyone attempted to encode some string in Flex and decode it in COldFusion? I've attempted to encode the string using the library in http://crypto.hurlant.com/ http://crypto.hurlant.com/ as follows: var key:ByteArray = Hex.toArray(model.hashKey); // some key var cipher:ICipher = Crypto.getCipher(aes, key); var rawData:ByteArray = Hex.toArray(dataToEncrypt); I then send the encrypted data as a string (Hex.fromArray (encryptedByteArray). I then try to decrypt it in ColdFusion, using: decrypted=decrypt(arguments.xmlString, application.hashkey, AES, Hex); , but it doesn't seem to work. If anyone can help me out, that would be greatly appreciated. Thanks, Ivan. -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
[flexcoders] Re: Series Effects do not dispatch start events (bug?)
I'm having trouble with SeriesInterpolate and the effectEnd event. This seems to continually dispatch so my callback function is continually being called. I know that this effect should only dispatch an event for each target. Has anyone else ran into this before? --- In flexcoders@yahoogroups.com, g_odds [EMAIL PROTECTED] wrote: Oops, drop the playCount++ line. --- In flexcoders@yahoogroups.com, g_odds g_odds@ wrote: Righto. So it would appear that the reason for this is that the play() function of the SeriesInterpolateInstance, SeriesSlideInstance and SeriesZoomInstance classes are missing the call to super.play() which would result in the effectStart event being dispatched. If you need this event dispatched then you have to extend the factory and instance class along the lines of this: package { import mx.charts.effects.SeriesInterpolate; public class TSFSeriesInterpolate extends SeriesInterpolate { public function TSFSeriesInterpolate(target:Object = null) { super(target); instanceClass = TSFSeriesInterpolateInstance; } } } import mx.charts.effects.effectClasses.SeriesInterpolateInstance; import mx.events.EffectEvent; class TSFSeriesInterpolateInstance extends SeriesInterpolateInstance { public function TSFSeriesInterpolateInstance(target:Object) { super(target); } override public function play():void { // The next six lines are what occurs in the EffectInstance's // play() function, so because the hierarchy of play() functions // is broken we must do these ourselves. playCount++; dispatchEvent(new EffectEvent(EffectEvent.EFFECT_START, false,false,this)); if (target) target.dispatchEvent(new EffectEvent(EffectEvent.EFFECT_START, false, false, this)); super.play(); } } Cheers, Graham --- In flexcoders@yahoogroups.com, g_odds g_odds@ wrote: It would appear that from SeriesEffect downwards in the object hierarchy, none dispatch an effectStart event when played. I have checked this by using exactly the same code except for changing the effect type and only series effects appear to exhibit this behaviour. I'm sifting through the source to find out why but so far I haven't spotted anything. Thanks in advance for any help. Graham
Re: SPAM-LOW: [flexcoders] Encryption in Flex and Decryption in ColdFusion.
Crypto? You mean ColdFusion? Seems like I can't decode the encoded string. Thanks. I use the library at http://crypto.hurlant.com/ Thanks, Ivan. --- In flexcoders@yahoogroups.com, Jeffry Houser [EMAIL PROTECTED] wrote: Which library? I've been able to successfully pass data back and forth between Flex and Crypto using AES. There are settings you need to specify (128 bit something?), but w/o pulling the code, I don't remember them. ivansebastiansurya wrote: Hi there, Has anyone attempted to encode some string in Flex and decode it in COldFusion? I've attempted to encode the string using the library in http://crypto.hurlant.com/ http://crypto.hurlant.com/ as follows: var key:ByteArray = Hex.toArray(model.hashKey); // some key var cipher:ICipher = Crypto.getCipher(aes, key); var rawData:ByteArray = Hex.toArray(dataToEncrypt); I then send the encrypted data as a string (Hex.fromArray (encryptedByteArray). I then try to decrypt it in ColdFusion, using: decrypted=decrypt(arguments.xmlString, application.hashkey, AES, Hex); , but it doesn't seem to work. If anyone can help me out, that would be greatly appreciated. Thanks, Ivan. -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
Re: [flexcoders] Mutliple alert copies
Did you put some tracing code in to prove that that code isn't actually executed twice the second time around? Event-driven software can be a tricky business. Maybe you neglected to remove an old event listener from some object that is dispatching the event that ultimately executes that code, and it's still lurking in memory, receiving that event and showing your Alert. Richard Rodseth [EMAIL PROTECTED] wrote: I have a wizard which ends with the following alert: alert = Alert.show(The message has been sent. Would you like to send another?, , Alert.YES | Alert.NO, null, handleClose); If the user chooses YES the alert disappears from view, but next time there are two of them. Any obvious mistakes?
RE: [flexcoders] Datagrid ItemEditor - multiple data edits?
Sure, this should not be difficult. Have your renderer do its own updating of the dataProvider item, and don't attempt to use the renderIsEditor or other built in item editor functionality. The renderer gets a reference to the entire item, so it can manipulate that data however you want. I also recall a document topic about returning multiple values from a renderer, that might be useful. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rick Schmitty Sent: Wednesday, December 05, 2007 2:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Datagrid ItemEditor - multiple data edits? Is it possible for an ItemEditor in a datagrid (or some other way) to allow you to edit 2 or more things at once? Like say instead of a combo box dropdown for a cell in a datagrid, could you have an item editor that is like a mini form update multiple data objects in that row's data that may not be displayed in the datagrids view Or Flex3 advanced datagrid something I should look into? Or this will have to be completely custom and kinda 'fake' this behavior
RE: [flexcoders] howto save image from flex app to local disk - any tips / ideas?
absolutely spot on, navigateToURL( request,_self) did exactly what I wanted (displaying the download prompt rather than the image itself). The only bad thing being that I didn't think of it before asking the question :) Thanks for the tip Ben, very much appreciated even if I do feel like a bit of a fool now! Jim. (Actually, I had tried something similar as part of the remoting call, but it failed due to something I didn't understand, probably the response was going straight back to flex as a remoting result - I didn't check it any further because it was about 1.30 in the morning at the time...) -Original Message- From: flexcoders@yahoogroups.com on behalf of ben Sent: Wed 05/12/2007 21:42 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] howto save image from flex app to local disk - any tips / ideas? The attachment in Content-Disposition would force the browser to download the image (rather than display it), if that's what you want you probably don't need to open in a _blank window, the blank window is useless since the browser will just download the image. Otherwise if you want to display it in a new window, you do need the _blank, but not the attachement. Ben Jim Hayes wrote: Greetings flexcoders, I have a need for my flex application to have a saveimage button that enables the user to save an image of part of the application. I've been able to get this to work without too much trouble, but it still needs a bit of polish so I thought I'd ask if anyone has any insights or tips they'd like to share. Currently I encode the image as a jpeg in flex, then send that bytearray to the server via remoting (I'm using flourine), where it is saved to an image file in a temp directory. The remoting call returns the url of an asp script and the name of the temp file in the querystring. On receiving that url the flex app does a simple flash.net.navigateToURL( request,_blank), whereupon the server serves up the temp file with some suitable headers , e.g. something like this. resp.ContentType = application/octet-stream; resp.AddHeader(Content-Disposition, attachment; filename= + \ + suggestedFileName + \); resp.Cache.SetCacheability(HttpCacheability.NoCache); resp.WriteFile(filePathToRead); resp.Flush(); All of which is great, the user gets an open/save prompt for the jpeg file as I hoped. The only rather ugly thing about it is that in IE a new window is opened that then displays some rubbish about cancelled actions (???), in firefox it's handled rather more elegantly by a new tab that opens very briefly then closes itself down (Though I noticed my colleagues copy of firefox raises a bizarre sequence of open popup? warnings, which surprised me). All of which is to be expected from the way I've done it, but is there a better way (that will work cross browser at least for the most part) ? I'd really like for the user just to see the save/download prompt without any extra windows/tabs, if at all possible. I'm mulling over whether loading the filesave url into a hidden Iframe might work, but It's all rather out of my experience at the moment and googling has thus far failed to reveal any obvious ways to go. If anyone can point me in the right direction then it would be most helpful and much appreciated! tia, Jim. __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __ __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System.
Re: [flexcoders] Mutliple alert copies
You're right, it was getting shown twice. Thanks. I was re-using the same HTTPService instance, and I'm not sure why I got two completion events. I'm now instantiating a new instance of the service. On Dec 5, 2007 1:08 PM, Dave Glasser [EMAIL PROTECTED] wrote: Did you put some tracing code in to prove that that code isn't actually executed twice the second time around? Event-driven software can be a tricky business. Maybe you neglected to remove an old event listener from some object that is dispatching the event that ultimately executes that code, and it's still lurking in memory, receiving that event and showing your Alert. *Richard Rodseth [EMAIL PROTECTED]* wrote: I have a wizard which ends with the following alert: alert = Alert.show(The message has been sent. Would you like to send another?, , Alert.YES | Alert.NO, null, handleClose); If the user chooses YES the alert disappears from view, but next time there are two of them. Any obvious mistakes?
[flexcoders] getVisibleBounds()? clipped component with scrollbars in accordion
I've got a problem where I'm trying to detect a MouseOut on a component so that I can revert it back to its original state. The scenario is I've got an accordion component with VBoxes as the children. The VBoxes contain several custom components each, enough that I've got scroll bars on the accordion children VBoxes. The custom components have states that are supposed to be triggered on MouseOver and MouseOut. I use getBounds on these components to see if they contain the MouseOut event's point. If it doesn't, then I revert back to the original state. Everything is working fine, except for when the lowest visible component in one VBox is clipped by the header of the next accordion's child. When I move the mouse from inside the component, down out the bottom and over the next accordion header, the coordinates of the MouseOut event still fall within the local and content coordinate system of the component, even though it is clipped on the bottom by the header. I've read through the coordinate system docs and tried various permutations of local, global, and content positioning. I would've thought that the local coordinate system would reflect what is visible, but it isn't acting like that is the case. I've looked for a method like 'getVisibleBounds' but haven't found anything like it. Any ideas on how I'd do this? What am I missing?
[flexcoders] How to restore automatic height calculation (after an explicit value was set)
Hi flexcoders out there, I'm facing a simple problem. In Flex, containers such as Panel usually layout themself looking at their children(automatically choosing an appropriate width and height). Is there any way to restore this behaviour after setting an explicit height in ActionScript? Example: Think about a Panel that could resize itself to a fixed size (minimize) and then restore the original value. In the restore phase I'm currently setting the height property to the measuredMinHeight property value, but from this moment onward the height will not reflect the panel contents anymore, as it did by default. Thanks for any hint Cosma
Re: [flexcoders] How to restore automatic height calculation (after an explicit value was set)
To set the height of a component without setting the explicitHeight use setActualSize() or to reset the explicitHeight, set it equal to NaN. - Dan Freiman On Dec 5, 2007 11:38 AM, Cosma [EMAIL PROTECTED] wrote: Hi flexcoders out there, I'm facing a simple problem. In Flex, containers such as Panel usually layout themself looking at their children(automatically choosing an appropriate width and height). Is there any way to restore this behaviour after setting an explicit height in ActionScript? Example: Think about a Panel that could resize itself to a fixed size (minimize) and then restore the original value. In the restore phase I'm currently setting the height property to the measuredMinHeight property value, but from this moment onward the height will not reflect the panel contents anymore, as it did by default. Thanks for any hint Cosma
[flexcoders] cairngorm value object type and cfc type do not match,why?
I have built a cfc vo class and flex vo class PersonVO.as package com.abc.CESF.Bursary.vo { import com.adobe.cairngorm.vo.IValueObject; [RemoteClass(alias=Bursary.cfcs.PersonVO)] public class PersonVO implements IValueObject { public var firstname:String = ; public var lastname:String = ; public var sid:String= ; public function PersonVO(){ this.firstname = ; this.lastname = ; this.sid = ; } } } PersonVO.cfc cfcomponent displayname=PersonVO hint=Login VO For CairngormTest output=false cfset this.firstname = / cfset this.lastname = / cfset this.sid = / /cfcomponent I have a function in cfc.it is here cffunction name=addPerson displayname=addPerson access=remote output=false returntype=boolean cfargument name=personVO type=PersonVO required=true / cfquery name=insertPerson datasource=bursary INSERT INTO person_info (fname, lname, sid) VALUES('#personVO.firstname#', '#tpersonVO.lastname#', '#personVO.sid#') /cfquery cfreturn true / /cffunction but I get the error when I pass flex vo to the cfc function.I am not sure how to make flex vo and cfc vo match.the error message is here RPC Fault faultString=The argument PERSONVO passed to function addPerson() is not of type PersonVO. faultCode=Server.Processing faultDetail=If the component name is specified as a type of this argument, the reason for this error might be that a definition file for such component cannot be found or is not accessible.] Please help me.Thanks Mark
[flexcoders] Probleme Upload File de flex vers PHP
Hello How should understand this trace when uploading file to php application: what does eventPase = 2 means? same thing for bubbles=false? [CODE] progressHandler: name=4-nov-2007.gpx bytesLoaded=32768 bytesTotal=169869 progressHandler: name=4-nov-2007.gpx bytesLoaded=65536 bytesTotal=169869 progressHandler: name=4-nov-2007.gpx bytesLoaded=98304 bytesTotal=169869 progressHandler: name=4-nov-2007.gpx bytesLoaded=131072 bytesTotal=169869 progressHandler: name=4-nov-2007.gpx bytesLoaded=163840 bytesTotal=169869 progressHandler: name=4-nov-2007.gpx bytesLoaded=169869 bytesTotal=169869 completeHandler: [Event type=complete bubbles=false cancelable=false eventPhase=2] [DataEvent type=uploadCompleteData bubbles=false cancelable=false eventPhase=2 data=0][/CODE] Print this message Report this to a Moderator OptimusFlex User is online Junior Member Posts:4 Joined: 11/16/2007 Send Private Message 12/05/2007 10:59:01 AM New Messages Reply | Quote | Top | Bottom | Edit first code is flex, the second one is php, i would ike to know if they do the same thing: upload a file to http://server.com/plateform/ul/index.php? [CODE]?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=400 height=300 initialize=init() mx:Script ![CDATA[ import com.project.community.model.CommunityModel; import com.project.community.model.EditorModel; import mx.controls.Alert; import mx.controls.ProgressBar; import mx.utils.ObjectUtil; import flash.events.*; import flash.net.FileReference; import flash.net.URLRequest; /** * */ private const UPLOAD_URL : String = http://server.com/plateform/ul/index.php;; private var _progressBar: ProgressBar = new ProgressBar(); private var _fileRef : FileReference = new FileReference(); private var _gpsTypes : FileFilter = new FileFilter(Text Files (*.gpx), *.gpx); public function init() : void { initListener(); } public function initListener() : void { submit.addEventListener(MouseEvent.CLICK, submitClickHandler); back.addEventListener(MouseEvent.CLICK, backClickHandler); _fileRef.addEventListener(Event.SELECT, fileSelectedHandler); _fileRef.addEventListener(ProgressEvent.PROGRESS, progressEventHandler); _fileRef.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler); _fileRef.addEventListener(Event.COMPLETE, uploadCompletedHandler); _fileRef.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler); _fileRef.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA, serverResponseHandler); } public function httpStatusHandler(event:HTTPStatusEvent): void { trace(httpStatusHandler: + event); } /*public function httpStatusHandler(event:HTTPStatusEvent):void { if (event.status != 200) { if (event.status == 500){ mx.controls.Alert.show(Probleme d'écriture,Error); return; } if (event.status == 404){ mx.controls.Alert.show(Fichier non trouvé,Error); return; } if (event.status == 415){ mx.controls.Alert.show(Type de media interdit,Error); return; } if (event.status == 401){ mx.controls.Alert.show(Acces refusé,Error); return; } mx.controls.Alert.show(Erreur +event.status,Error); } } */ /** * function that handles the event: click on browse button */ public function fileSelectedHandler(event : Event) : void { selectedfile.text = _fileRef.name; progressBar.setProgress(0, 100); //progressBar.label = Loading 0%; enabled = true; //trace(selectedfile.text); } /** * function that handle the event: click on back button. */ public function submitClickHandler(event : MouseEvent) : void { var params : URLVariables = new URLVariables(); var uploadRequest : URLRequest = new URLRequest(UPLOAD_URL); params.filename = _fileRef.name; params.sk = CommunityModel.getInstance().serverSessionKey; // 9b166dc3b1a6bf702dfd87b825627b6a; params.dk = 7ffcd213ac5e00a88a2968c6f3530aeb; params.type = track; //affichage de l'erreur exact retournée par Icelio //params.view_error = true; uploadRequest.method = URLRequestMethod.POST; uploadRequest.data = params; trace(uploadRequest.url); trace(uploadRequest.data); trace(params.filename); _fileRef.upload(uploadRequest); // progressBar.label = Uploading...; // EditorModel.getInstance().changeEditor(EditorModel.C_NAVIGATOR_NUMBER); } public function progressEventHandler(event : ProgressEvent): void { var file:FileReference = FileReference(event.target); trace(progressHandler: name= + _fileRef.name + bytesLoaded= + event.bytesLoaded + bytesTotal= + event.bytesTotal); _progressBar.setProgress(event.bytesLoaded, event.bytesTotal); } public function uploadCompletedHandler(event : Event):void { trace(completeHandler: + event); } public function serverResponseHandler( event:DataEvent ) :void { trace(event); var response : XML = XML( event.data ); trace(response); } /** * function that handle the event: click on back button */ public function backClickHandler(e : MouseEvent) : void { EditorModel.getInstance().changeEditor(EditorModel.C_NAVIGATOR_NUMBER); } public function ioErrorHandler
[flexcoders] Call to Web Service in WebSphere
I'm playing around with Flex and want to call a custom made Web Service in WebSphere. When I run my application, It seems that a lot of requests are done to the Web Service repeatably requesting the same XSD's (complex types). It looks like the application is in an infinite loop, constantly doing the same requests.. No call the the web service is made yet at this point. If I call the requested XSD manually in my browser, it is resolved without problems. And if I call another very simple web service, everything is working as expected. My Web Service definition looks like this: mx:WebService id=CALS wsdl=http://localhost:9080/CustomerModuleWeb/sca/CustomerDataServiceExport/wsdl/CustomerDataServiceExport_CustomerDataServiceHttp_Service.wsdl; endpointURI=http://localhost:9080/CustomerModuleWeb/sca/CustomerDataServiceExport; service=CustomerDataServiceExport_CustomerDataServiceHttpService port=CustomerDataServiceExport_CustomerDataServiceHttpPort useProxy=false showBusyCursor=true fault=Alert.show(event.fault.faultString), 'Error' mx:operation name=findAll mx:request customerRequest Customer CustNo16/CustNo Group/Group /Customer /customerRequest /mx:request /mx:operation /mx:WebService What am I doing wrong here?? Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
Re: [flexcoders] cairngorm value object type and cfc type do not match,why?
Make sure you add properties to the CFC VO using the cfproperty tag. Properties case and order must match what is in the AS3 VO. Additionally, use the full path with dot notation as the argument type. Basically, Flex+CF is not smart enough to know that PersonVO is equal to Bursary.cfcs.PersonVO. markflex2007 wrote: I have built a cfc vo class and flex vo class PersonVO.as package com.abc.CESF.Bursary.vo { import com.adobe.cairngorm.vo.IValueObject; [RemoteClass(alias=Bursary.cfcs.PersonVO)] public class PersonVO implements IValueObject { public var firstname:String = ; public var lastname:String = ; public var sid:String= ; public function PersonVO(){ this.firstname = ; this.lastname = ; this.sid = ; } } } PersonVO.cfc cfcomponent displayname=PersonVO hint=Login VO For CairngormTest output=false cfset this.firstname = / cfset this.lastname = / cfset this.sid = / /cfcomponent I have a function in cfc.it is here cffunction name=addPerson displayname=addPerson access=remote output=false returntype=boolean cfargument name=personVO type=PersonVO required=true / cfquery name=insertPerson datasource=bursary INSERT INTO person_info (fname, lname, sid) VALUES('#personVO.firstname#', '#tpersonVO.lastname#', '#personVO.sid#') /cfquery cfreturn true / /cffunction but I get the error when I pass flex vo to the cfc function.I am not sure how to make flex vo and cfc vo match.the error message is here RPC Fault faultString=The argument PERSONVO passed to function addPerson() is not of type PersonVO. faultCode=Server.Processing faultDetail=If the component name is specified as a type of this argument, the reason for this error might be that a definition file for such component cannot be found or is not accessible.] Please help me.Thanks Mark -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
[flexcoders] Re: Which architecture to follow
I started with Cairngorm, but I switched to pureMVC. I have a separate tool that we use to take simple configuration statements and generate Flex apps, and it just made things a tad easier for us. PureMVC doesn't neccessarily speak of delegates, but I still use them instead of just using the proxy to provide another layer of abstraction (so in effect, I kept one part of Cairngorm...) I got excited when I read about Cairngorm. I got more excited when I started using it. Then, I was told by a colleague about PureMVC. I switched and never looked back, but the designers of Cairngorm were the more brilliant, as the road was already paved for the designer of PureMVC. l,u a0,('regards') lxi,u a0,0102 erprint$
Re: [flexcoders] Binding to a ViewStack Child Container Property
On Tuesday 04 Dec 2007, tedgies wrote: I'm trying to bind a label's text to the selected VBox's toolTip text. I'm trying: mx:Label id=titleText text={vs_articles.selectedChild.toolTip} And ? -- Tom Chiverton Helping to preemptively supply vertical users on: http://thefalken.livejournal.com Please note, as of 10th December 2007 the registered office address of Halliwells LLP will be at 3 Hardman Square, Spinningfields, Manchester, M3 3EB This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Missing classes when using RSL cache
Why would I get startup RTEs along the lines of 'VerifyError: Error #1014: Class mx.effects.TweenEffect could not be found when setting datavis to be a RSL in Flex 3 beta 2 ? -- Tom Chiverton Helping to vitalistically cultivate cross-media networks on: http://thefalken.livejournal.com Please note, as of 10th December 2007 the registered office address of Halliwells LLP will be at 3 Hardman Square, Spinningfields, Manchester, M3 3EB This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Re: Local storage of password
Well the thing about this application is, I don't own the server. I'm using a 3rd party Internet web service (salesforce.com in this case). So I can't change the way the server authenticates people - actually it does so in a very rational way anyway. The requirement was simply to save the user the pain of having to type in their username and password every single time they hit my app since the browser auto-fill feature doesn't work for Flex apps. It's easy to store the username because I can throw it into a SharedObject because it's not sensitive, but for the password the salesforce.com security requirements are such that you can only store local passwords if you encrypt them and you can't store the encryption key in the code. Anyway, thanks for everybody's input but it looking like this requirement just isn't going to make sense, so I think I will push to just have the username saved but not the password. Ryan --- In flexcoders@yahoogroups.com, Paul Andrews [EMAIL PROTECTED] wrote: It's effectively wanting to have a browser cookie that remembers your session. It's clearly open to all kinds of abuse, encrypted or not. I'd make darn sure that whoever raised this as a requirement was well aware of the dangers - if only to cover my own back. Even with this requirement not to have to log on between sessions, there's no need to keep the username or password locally. When the user logs on, the user provides a login name and password to the webservice - as per normal. The webservice passes back a session key. This key should be encrypted but should not have the username or password in it. I would suggest a session identifier of some kind (that is mapped on the server back to the username), a sequence id(that changes on every exchange with the server - it could be a timestamp), plus anything else you can think of - checksum, etc.. This key cannot be interpreted by a third party as belonging to a particular user, nor does it hold password information. Whenever the client requests something of the server it passes the key, but no login information (as well as other perameters relating to the request). The server decodes the key and looks up the session information. It can associate the key with a specific user, it also expects the key to have the same key sequence id that was sent the last time around. If the key sequence is invalid (perhaps the client died before the key could be saved on the client, or perhaps the message was lost), the server can request that the client re-submits login information. It will expect the same user to re-login, or the session will be invalidated. Once the session is verified, the server can return the information requested to the client. it also passes back a new (different) session key to replace the old one. The whole thing repeats. The server can time out keys that aren't used and it prevents 'stolen' keys from having any value once the genuine client has initiated a new transfer. The user is at liberty to login on another machine at any time - it either invalidates the session key associated with the other machine, or continues in that session context. You can also time-out sessions across any period you like. If a user logs out on the client, the local session key should be removed on both client and server. I hope that explains the idea - it's baton passing between client and server and the baton changes on every exchange. The server knows what baton to expect for the next exchange and if anything gets out of kilter, it just rerequests that the client logs in again. The username and password are never stored permamently on the client. Hope that helps. Don't store the password! Paul - Original Message - From: Jeffry Houser [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, December 05, 2007 2:31 AM Subject: Re: SPAM-LOW: [flexcoders] Re: Local storage of password ( Thanks for listening; glad you enjoy ) You are working on an application with very odd security requirements. I almost think you'd be better off with a completely open web service. You might store the encryption key in a database or server side / non web accessible XML and use some form of remoting (or at least SSL) to pass it back and forth to the Flex client. rmarples wrote: Hi Jeff - Thanks for the response. By the way, great podcast :) I will look into the encryption libraries that both you and William mentioned but I'm wondering how they handle the encryption key. I have a requirement that I can't store the encryption key in the source code as a string literal. I'm wondering if you or anybody else has ideas on how to handle this? Ryan --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Jeffry Houser jeff@ wrote: Yes, MD5 is a hashing algorithm and it is unlikely you'd be able
[flexcoders] Re: How to disble double click in ComboBo?
any suggestions? thanks --- In flexcoders@yahoogroups.com, flexawesome [EMAIL PROTECTED] wrote: Hi, I am working on ComboBox components and like to disable double click event once click the little scrub( arrow icons ) The code doesn't work for me. Is there any way to reach that? Thanks = ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute width=305 height=231 mx:ComboBox x=90 y=81 doubleClickEnabled=false mouseEnabled=true/mx:ComboBox /mx:Application
Re: [flexcoders] Populate one Datagrid from another
On Tuesday 04 Dec 2007, fusioninteractive wrote: a plant on my site. I want the other grid to show the average ratings of the plants people from a specific state have voted on. I am using ColdFusion 8 and Remote Objects. So the question is how do I bind the second datagrid to the state selected on the first? Use the itemClick event on the first to set the dataProvider of the 2nd. -- Tom Chiverton Helping to preemptively conquer integrated clusters on: http://thefalken.livejournal.com Please note, as of 10th December 2007 the registered office address of Halliwells LLP will be at 3 Hardman Square, Spinningfields, Manchester, M3 3EB This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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] Styling extended Flex Components... simple misunderstanding?
I think I'm not understanding something... My app has a bunch of .mxml classes that extend TitleWindow (singletons in a UI). I want them all to be styled the same EXCEPT for I want each one to have a custom background color. Here's how I'm attempting this... -begin external css file--- TitleWindow { borderAlpha: 0.9; borderThicknessLeft: 4; borderThicknessTop: 0; borderThicknessBottom: 16; borderThicknessRight: 4; roundedBottomCorners: false; headerHeight: 20; backgroundAlpha: 0.33; highlightAlphas: 0.29, 0.02; headerColors: #ff, #cc; footerColors: #e7e7e7, #c7c7c7; dropShadowEnabled: true; backgroundColor: #ff; } ExtendedTitleWindowA { backgroundColor: #ff; } ExtendedTitleWindowB { backgroundColor: #00ff00; } -end external css file--- So... this doesn't work. What is happening is that everything that extends TitleWindow looks the same and the custom backgroundColors are not taking. The css is linked via the top level application. Can someone set me straight? -b
[flexcoders] howto save image from flex app to local disk - any tips / ideas?
Greetings flexcoders, I have a need for my flex application to have a saveimage button that enables the user to save an image of part of the application. I've been able to get this to work without too much trouble, but it still needs a bit of polish so I thought I'd ask if anyone has any insights or tips they'd like to share. Currently I encode the image as a jpeg in flex, then send that bytearray to the server via remoting (I'm using flourine), where it is saved to an image file in a temp directory. The remoting call returns the url of an asp script and the name of the temp file in the querystring. On receiving that url the flex app does a simple flash.net.navigateToURL( request,_blank), whereupon the server serves up the temp file with some suitable headers , e.g. something like this. resp.ContentType = application/octet-stream; resp.AddHeader(Content-Disposition, attachment; filename= + \ + suggestedFileName + \); resp.Cache.SetCacheability(HttpCacheability.NoCache); resp.WriteFile(filePathToRead); resp.Flush(); All of which is great, the user gets an open/save prompt for the jpeg file as I hoped. The only rather ugly thing about it is that in IE a new window is opened that then displays some rubbish about cancelled actions (???), in firefox it's handled rather more elegantly by a new tab that opens very briefly then closes itself down (Though I noticed my colleagues copy of firefox raises a bizarre sequence of open popup? warnings, which surprised me). All of which is to be expected from the way I've done it, but is there a better way (that will work cross browser at least for the most part) ? I'd really like for the user just to see the save/download prompt without any extra windows/tabs, if at all possible. I'm mulling over whether loading the filesave url into a hidden Iframe might work, but It's all rather out of my experience at the moment and googling has thus far failed to reveal any obvious ways to go. If anyone can point me in the right direction then it would be most helpful and much appreciated! tia, Jim. __ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. __
Re: [flexcoders] Re: Local storage of password
I think that's a simple (yet elegant) solution. I wish I thought of it. Paul Andrews wrote: - Original Message - From: Jeffry Houser [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, December 05, 2007 2:22 PM Subject: Re: [flexcoders] Re: Local storage of password That'd be too easy. He stated that he needs to prevent the user from re-entering the password upon their next use of the application. And it would. User logs in with password. Server passes back hashed version of user logon+password as a key. Server remembers this key. Client saves this key locally and passes it through on future accesses. Server looks up this key to check it's one it handed out previously. Still open to abuse though, even if username/password values are still secret. Paul -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * 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: AdvancedDataGrid::toolTip formatting
The full code is : private function myDataTip(data:Object):String { return BTung Chau/B; } controls:AdvancedDataGrid id=reportTable groupIconFunction=reportArchiveGroupingIcon defaultLeafIcon={Icons.ReportArchiveIcon} dataTipFunction=myDataTip initialize=gc.refresh(); width=100% height=100% controls:columns mx:AdvancedDataGridColumn id=nameCol dataField=name headerText={getString('label.reportName')} showDataTips=true minWidth=300/ mx:AdvancedDataGridColumn id=sDateCol dataField=startDate labelFunction=formatStartDate headerText={getString ('label.reportStartDate')} showDataTips=true width=100/ mx:AdvancedDataGridColumn id=eDateCol dataField=endDate labelFunction=formatEndDate headerText={getString ('label.reportEndDate')} showDataTips=true width=100/ mx:AdvancedDataGridColumn id=createdOnCol dataField=createdOn labelFunction=formatCreatedOnDate headerText={getString ('label.createdOn')} showDataTips=true width=100/ /controls:columns /controls:AdvancedDataGrid Please help. --- In flexcoders@yahoogroups.com, tungchau81 [EMAIL PROTECTED] wrote: Hi, I wrote my own custom dataTipFunction that return an HTML formatted text, but it does not work. Please help! private function myDataTip(data:Object):String { return BTung Chau/B; } The result I saw was a raw BTung Chau/B instead of the bold text format I want. Please help. Tung Chau
[flexcoders] cfc do not understand cairngorm VO?
I have built a cfc vo class and flex vo class PersonVO.as package com.abc.CESF.Bursary.vo { import com.adobe.cairngorm.vo.IValueObject; [RemoteClass(alias=Bursary.cfcs.PersonVO)] public class PersonVO implements IValueObject { public var firstname:String = ; public var lastname:String = ; public var sid:String= ; public function PersonVO(){ this.firstname = ; this.lastname = ; this.sid = ; } } } PersonVO.cfc cfcomponent displayname=PersonVO hint=Login VO For CairngormTest output=false cfset this.firstname = / cfset this.lastname = / cfset this.sid = / /cfcomponent I have a function in cfc.it is here cffunction name=addPerson displayname=addPerson access=remote output=false returntype=boolean cfargument name=personVO type=PersonVO required=true / cfquery name=insertPerson datasource=bursary INSERT INTO person_info (fname, lname, sid) VALUES('#personVO.firstname#', '#tpersonVO.lastname#', '#personVO.sid#') /cfquery cfreturn true / /cffunction but I get the error when I pass flex vo to the cfc function.I am not sure how to make flex vo and cfc vo match.the error message is here RPC Fault faultString=The argument PERSONVO passed to function addPerson() is not of type PersonVO. faultCode=Server.Processing faultDetail=If the component name is specified as a type of this argument, the reason for this error might be that a definition file for such component cannot be found or is not accessible.] Please help me.Thanks Mark Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
[flexcoders] Re: Strange behaviour with singleton's and modules?
gah, of course, I meant to say singletons and modules in the subject! Sorry about that :-| On 05/12/2007, bjorn - [EMAIL PROTECTED] wrote: I've made a simple testcase with a singleton and three Flex projects: 1. MainApp 2. ModuleOne 3. ModuleTwo MainApp loads ModuleOne which loads ModuleTwo (it could also load both modules, the behaviour I describe below seems to be the same in both cases). I have created a TestSingleton.as which implements the Singleton pattern (as far as it can be tanken in AS anyway ..) Here's TestSingleton.as's getInstance() method: /** * Get the only instance of the TestSingleton * @return TestSingleton instance **/ public static function getInstance():TestSingleton { if (instance == null) { instance = new TestSingleton(); trace(TestSingleton - instance was null, so created new instance); } else { trace(TestSingleton already instanciated, so returning instance..); } return instance; } If I put the singleton in MainApp, and then getInstance() it from ModuleOne and ModuleTwo I'll get this in my trace: [SWF] C:\dev\FlexWorkspace\ModuleTestMainApp\bin\ModuleTestModuleOne- debug.swf - 450,372 bytes after decompression TestSingleton - instance was null, so created new instance [SWF] C:\dev\FlexWorkspace\ModuleTestMainApp\bin\ModuleTestModuleTwo- debug.swf - 446,193 bytes after decompression TestSingleton already instanciated, so returning instance.. .. which is the expected behaviour. However, if I put TestSingleton.as in ModuleTwo, I get this: [SWF] C:\dev\FlexWorkspace\ModuleTestMainApp\bin\ModuleTestModuleOne- debug.swf - 450,372 bytes after decompression TestSingleton - instance was null, so created new instance [SWF] C:\dev\FlexWorkspace\ModuleTestMainApp\bin\ModuleTestModuleTwo- debug.swf - 446,193 bytes after decompression TestSingleton - instance was null, so created new instance .. it doesn't behave as a singleton anymore .. Can anyone explain why? :-) -- http://www.juicability.com - flex blog http://www.43min.com - funny movies -- http://www.juicability.com - flex blog http://www.43min.com - funny movies
[flexcoders] Re: Adding custom events to the pre-loading sequence
Hello, I posted an answer this morning but I dont see it so let me try again (first time posting :) All you need to do is extend mx.preloader.Download progressbar then override the FlexEvent.INIT_COMPLETE you can then control when your preloader will end ...see here (sorry ...I am paraphrasing my code dont have it with me but you will get the idea) public class Preloader extends DownloadProgressBar { public var splash:SplashScreen; public function CustomPreloader() { super(); splash = new splashScreen(); this.addChild(splash) ; } override public function set preloader( preloader:Sprite ):void { preloader.addEventListener( FlexEvent.INIT_COMPLETE , FlexInitComplete ); } private function FlexInitComplete( event:Event ):void { splash.comp= true; // When this is true I know that the swf has finished downloading dispatchEvent( new Event( Event.COMPLETE ) ); } } so over riding and binding a var to true I can use another event (like a database query result event to call another function inside of my splash sprite .as file to remove itself like this: public function startupComplete( event:ResultEvent):void { if( this.comp) closeSplash() ; } public function closeSplash( ):void { if( this.alpha 0){ this.alpha = this.alpha - fadeOutRate; this.parent.removeChild(this); } } if this sounds like what you want I can send you all my code to do this . Rudmonster :) --- In flexcoders@yahoogroups.com, hannes.stockner [EMAIL PROTECTED] wrote: Now I have a possible solution: CustomPreloader: private function onFlexInitComplete(event:Event):void { //now we can access the Application.application Application.application.addEventListener(AppReadyEvent.READY, onAppReadyEvent); } private function onAppReadyEvent(event:AppReadyEvent):void { dispatchEvent(new Event(Event.COMPLETE)); } Application: //dispatch AppReadyEvent if you want remove the preloader Application.application.dispatchEvent(new AppReadyEvent(AppReadyEvent.READY)); What do you think about it? --- In flexcoders@yahoogroups.com, dave_defusion david.spurr@ wrote: I'm just trying to do the same thing for our app today and there must be a way, surely it's quite a common requirement. All I want to do is load the runtime styles a quick check to the backend, but the loading the styles is the most important thing.
Re: [flexcoders] Which architecture to follow
I still need to find the time to look at PureMVC, but I'm quite pleased with the architecture described here: http://www.joeberkovitz.com/blog/2007/10/18/max-2007-in-barcelona-talk-materials-online/ On Dec 4, 2007 9:34 PM, Anzer [EMAIL PROTECTED] wrote: Cairngorm or PureMVC? I have read some where PureMVC is the best choice. Please give your inputs. Thanks Anz