[flexcoders] Datagrid question
Imagine a mx:DataGrid with 3 columns. The first and second columns are people's first and last names, respectively. The third column is a custom MXML component that displays a button with its 'label' property set to a random number generated within the component; this number is generated during its instantiation. My objective now is to get the value of that button's label. How can I get it? The only way I can think of is to somehow be able to get a reference to that component in the third column, then I can access the component's properties. Can someone show me how I can do this in Actionscript? Thanks.
RE: [flexcoders] Datagrid question
Almost nothing generated at instantiation: of a renderer is meaningful. Either you know what it is because you set it at design time, or it is unpredictable, depending on the vagaries of the List functioning. Remember that renderers are recycled and are just a temporary view of the underlying data. Imagine I have two windows in my house and between them is a television. How do I find out what is on the tv, when it is raining outside? What are you trying to do? Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of elevight Sent: Monday, April 20, 2009 2:15 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Datagrid question Imagine a mx:DataGrid with 3 columns. The first and second columns are people's first and last names, respectively. The third column is a custom MXML component that displays a button with its 'label' property set to a random number generated within the component; this number is generated during its instantiation. My objective now is to get the value of that button's label. How can I get it? The only way I can think of is to somehow be able to get a reference to that component in the third column, then I can access the component's properties. Can someone show me how I can do this in Actionscript? Thanks.
[flexcoders] Re: Encrypt Flash SEO for Flash
have look at http://simplifiedlogic.com/ but some company like http://www.amayeta.com/ call's it encrypting but is realy obfuscation read on http://www.preemptive.com/obfuscator.html HP have a decompiler out now for security reason HP SWFScan, a free tool developed by HP Web Security Research Group, will automatically find security vulnerabilities in applications built on the Flash platform. download here: https://h30406.www3.hp.com/campaigns/2009/wwcampaign/1-5TUVE/index.php?key=swfjumpid=go/swfscan But it have ben 12 months sinse I have ben poking in this so if someone konw of a true encrypter please replay on this :) --- In flexcoders@yahoogroups.com, Ju Aedis aed...@... wrote: Hi Now Google Yahoo search engines can index all URLs, dynamic or otherwise in flash. Other people decompile SWF movie and steal the ActionScript Code, so I want to encrypt my SWF. Is the SWF after encrypted still be indexed by search engines? Help? Thanks! :) -- Live Technology in A.J. ââââââââââââââââââââââââââ .air?air Jordan?air = atmosphere?no,no,no!air = ria = RIA = Rich Internet Applications!
RE: [flexcoders] loading swf's dynamically
Why don't you listen for the complete event. The swfloader will fire of the 'complete' event when its loaded. So you don't try to display it until it has fully loaded. At the same time you can listen to the 'progress' event to see how much has loaded and maybe inform the user that your app is loading something and give a % loaded message or similar. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jason B Sent: 20 April 2009 02:33 To: flexcoders@yahoogroups.com Subject: [flexcoders] loading swf's dynamically I'm using the below to load swf files dynamically, but the user of course must download the files fast enough for it to go from the first swf to the next without chopping. Is there a way to preload the items into the application without playing them or embeding them ? my goal is to preload the swf's while the app loads or on initial load then play them when ready using an event, any suggestions would be great mx:SWFLoader id=swf source=first.swf height=400 width=400/ Disclaimer --- This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. ---
Re: [flexcoders] Re: Encrypt Flash SEO for Flash
Is the SWF after encrypted still be indexed by search engines? -- Sorry, I talk about the seo problem after encrypted. 2009/4/20 Cato Paus ca...@brannsikring.no have look at http://simplifiedlogic.com/ but some company like http://www.amayeta.com/ call's it encrypting but is realy obfuscation read on http://www.preemptive.com/obfuscator.html HP have a decompiler out now for security reason HP SWFScan, a free tool developed by HP Web Security Research Group, will automatically find security vulnerabilities in applications built on the Flash platform. download here: https://h30406.www3.hp.com/campaigns/2009/wwcampaign/1-5TUVE/index.php?key=swfjumpid=go/swfscan But it have ben 12 months sinse I have ben poking in this so if someone konw of a true encrypter please replay on this :) --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Ju Aedis aed...@... wrote: Hi Now Google Yahoo search engines can index all URLs, dynamic or otherwise in flash. Other people decompile SWF movie and steal the ActionScript Code, so I want to encrypt my SWF. Is the SWF after encrypted still be indexed by search engines? Help? Thanks! :) -- Live Technology in A.J. â€â â•‹â â â â â â â â â â â â â â â â â â â â â•‹â †.air?air Jordan?air = atmosphere?no,no,no!air = ria = RIA = Rich Internet Applications! -- Live Technology in A.J. ─━╋╋━─ .air?air Jordan?air = atmosphere?no,no,no!air = ria = RIA = Rich Internet Applications!
Re: [flexcoders] flex2gateway and proxies
On Monday 20 Apr 2009, Seona Bellamy wrote: Can someone please give me a step-by-step on what I need to do to make the flex2gateway work from behind a proxy? I know it's got something to do with Is this a proxy the client has between them and the internet, or one you have in front of your application ? In the latter case, nothing should need to be altered, as long as the proxy is able to simply forward requests to/from the application server. -- Helping to economically develop intuitive B2B dot-com deliverables as part of the IT team of the year, '09 and '08 Tom Chiverton Developer Tel: +44 0161 618 5032 Fax: +44 0161 618 5099 tom.chiver...@halliwells.com 3 Hardman Square, Manchester, M3 3EB www.Halliwells.com 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 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. 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] chart axis renderers inside data area
On Sunday 19 Apr 2009, thomas parquier wrote: Has anyone any suggestion about how to get axis rendered inside data area, as an overlay ? with someway no outside gutters... DataDrawingCannas from http://www.quietlyscheming.com/blog/charts/easy-custom-charts/ would do the job, maybe. -- Helping to autoschediastically brand unique ubiquitous architectures as part of the IT team of the year, '09 and '08 Tom Chiverton Developer Tel: +44 0161 618 5032 Fax: +44 0161 618 5099 tom.chiver...@halliwells.com 3 Hardman Square, Manchester, M3 3EB www.Halliwells.com 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 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. 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] Help in menubar issue
Hello friends, I am developing web based flex application , which contains a menubar and few textinput controls.In the menu bar i have edit menu which includes cut,copy,paste,find,replace.The keyboard shortcut and context menu item for cut,copy,paste of the textinput are working fine.But i need to implement this funtionalties(cut,copy, paste,find,replace)in my custom menubar.How can i do this?. Also hw to send email with attachment in flex. i need the excel file generated from the datagrid to be attached as an attachment in the email?.Please suggest me some good ideas and examples.
[flexcoders] repeater binding
hi am trying to bind a text component to a selected item in a repeater but i get the following error Error: Repeater is not executing. at mx.core::Repeater/get currentItem() at custom_comps::home/creatednewzPopup() at custom_comps::home/___LinkButton1_click() this is the way am trying to bind it. story.text = newz.currentItem.story; newz being the id of the repeater. i would like that when someone clicks on an item in the repeater, the text component is bound to the repeaters selected item or for that matter currentItem just like binding a list component to a text input using selectedItem. thanks
[flexcoders] Re: Encrypt Flash SEO for Flash
ok, but wath program do you use to encrypt ? --- In flexcoders@yahoogroups.com, Ju Aedis aed...@... wrote: Is the SWF after encrypted still be indexed by search engines? -- Sorry, I talk about the seo problem after encrypted. 2009/4/20 Cato Paus ca...@... have look at http://simplifiedlogic.com/ but some company like http://www.amayeta.com/ call's it encrypting but is realy obfuscation read on http://www.preemptive.com/obfuscator.html HP have a decompiler out now for security reason HP SWFScan, a free tool developed by HP Web Security Research Group, will automatically find security vulnerabilities in applications built on the Flash platform. download here: https://h30406.www3.hp.com/campaigns/2009/wwcampaign/1-5TUVE/index.php?key=swfjumpid=go/swfscan But it have ben 12 months sinse I have ben poking in this so if someone konw of a true encrypter please replay on this :) --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Ju Aedis aediso@ wrote: Hi Now Google Yahoo search engines can index all URLs, dynamic or otherwise in flash. Other people decompile SWF movie and steal the ActionScript Code, so I want to encrypt my SWF. Is the SWF after encrypted still be indexed by search engines? Help? Thanks! :) -- Live Technology in A.J. ââ¬Ã¢ ââ¢â¹Ã¢ â â â â â â â â â â â â â â â â â â â ââ¢â¹Ã¢ â⬠.air?air Jordan?air = atmosphere?no,no,no!air = ria = RIA = Rich Internet Applications! -- Live Technology in A.J. ââââââââââââââââââââââââââ .air?air Jordan?air = atmosphere?no,no,no!air = ria = RIA = Rich Internet Applications!
[flexcoders] Re: Need Suggestions for Reporting In Flex Applications.
There are any number of ways of exporting data. In my case I use PHP extensively to generate excel spreadsheets (Google for code on how to do this. If you can't find anything, I can post the code I use). For Flex, a couple of things I know of off the top of my head... AlivePDF - http://alivepdf.bytearray.org/ as3xls - http://code.google.com/p/as3xls/ A quick google search pulled up these... http://www.php-editors.com/forums/php-programming-contests/745-write-dbf.html http://blog.fusonic.net/archives/130 --- In flexcoders@yahoogroups.com, raja_s_patil kpr.rspa...@... wrote: Thanks Dean, I have no idea about the dot matrix printers. But generally I do all my reporting using PHP. At the end of the day flex is in a browser and you are going to be limited by that. I'm sure PHP can produce a format that would work well for a dot matrix printer. If not, you could always have a TCP server written in any language to allow Flex to send data to it for reporting. This would be done using socket code in Flex. This also requires the server to accept a request for a security policy on a specific port. I will look for details on that. Well, I was bit worried about Flex's capacity to produce reports I dont mind about PHP producing reports in text format if it can write text file on server which can be fetched to client via FTP or if PHP can produce PDFs that can serve purpose of Windows graphis mode printing. The data exports to xls, dbf, ods etc. etc. still remain. I dont know what to do about. For sec of discussion how about using Birt on server to produce reports? have u given any thought to this ? But again we have to have Java at server. Can PHP send data to any program on server to produce reports then we can use delphi exe to run in wine and listen to TCP port on Linux Server and if its windows server then it can run natively. I dont know what reporting strategies are followed by ppl developing web applications. I dont have any experience in web development but there must be some way to produce reports, Since all over the world big web database applications are already running. BTW how u are doing reports I will follow your suit till we find some generous way for elegant reporting in flex. Thanks once again and best regards Raja
[flexcoders] Re: Alive PDF bytearray.org links all failing?
Probably just a glitch. bytearray.org is fine for me at this moment. --- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote: I want to use AlivePDF in an AIR app but am having trouble finding documentation because most all of the links to the bytearray.org sites fail. Can anyone confirm this or suggest what my problem is? I am also having difficulty unzipping the docs in the download because of duplicate, empty files. This is probably some source control system. I'll probably be able to figure this one out myself. Tracy Spratt, Lariat Services, development services available
[flexcoders] Re: custom flex preloader - animation bugs
maybe you're having different fps in flex (24 i think) and in your animated swc you can set fps trough AS: yourLoadedSWF.stage.frameRate = 12; bye Carlos
[flexcoders] Tweaking the H- V-Slider components
Hi FlexCoders I am working on a project in which I use the H-slider and V-slider as volume bar and progress bar and I have successfully give them a new style however my problem is as follows: The slider knob's(scrubber) position in each end of the slider is visually going out of the bounds by half of the knob´s width (this is the default of the slider component). This is not working out as intended because I want to constrain the movement of the knob to be within the bounds of the slider bar. My question is, do I need to extend the existing component and write the AS code that constrains the knob, or does the Flex Framework have any properties to fix this. What I typically would do when working with sliders in flash is to cheat with the graphics so that the slider is invisible and have some other graphic that give the illusion of the knob being constrained. Maybe this will be the way to do it in Flex as well ? Thanks for the coming response
Re: [flexcoders] Re: How to Access Microsoft Reporting Services (RS) Webservices (reportservice2005.asmx?wsdl)
This is SO microsoft trying to vendor locking by creating special auth mechanisms so much for WS* On Thu, Apr 16, 2009 at 2:57 PM, valdhor valdhorli...@embarqmail.comwrote: The thing is, a web service is a very low level thing. You post XML to it and it responds in XML. Authentication is usually done in a SOAP header or less often as parameters in the SOAP body. Generally there is no other mechanism (Except maybe HTTP Auth). I can't see how you would use a .NET service with it. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Baz thinkl...@... wrote: I have read the wsdl and imported it into my ide so that is could provide code insight on whats available. There are no problems there, the issue arises when running the code. I get an authorization denied (or similar) error. Googling about I noticed that .net has some special functions for opening an authorized connection. The phrase forms auth has been thrown about too. But there are no definitive resources on how to reproduce this with non .net environments. Baz On Thu, Apr 16, 2009 at 12:27 PM, valdhor valdhorli...@...wrote: Nope, the WSDL should show the operations and data types the service uses. It is just an XML file so you should be able to copy and paste it. Also, is there an API reference for Microsoft Reporting Services (RS) webservice? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.com, Baz thinkloop@ wrote: Valdhor, thanks for the response. Unfortunately the server is behind my corporate firewall. Is there anything I can do and send you the results for? Baz On Thu, Apr 16, 2009 at 12:18 PM, valdhor valdhorlists@wrote: Can you post the WSDL? Or location of one on the net? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders% 40yahoogroups.comflexcoders% 40yahoogroups.com, Baz thinkloop@ wrote: I would like to build a flex front-end to Microsoft Reporting Services (RS) using the provided webservice at http://mydomain/reportserver/reportservice2005.asmx?wsdl. I am able to view the wsdl when I navigate to it using a web browser. The problem is that I can't seem to authenticate against it using flex no matter what usernames/passwords I provide. I think I may need to implement some special authentication, but I'm not sure. Has anyone succesffuly connected to the Microsoft Reporting Services (RS) webservice? Thanks, Baz -- What a Great Day* http://whatagreatday.wordpress.com/
[flexcoders] Re: How to Access Microsoft Reporting Services (RS) Webservices (reportservice2005.asmx?wsdl)
Can you run SQL reports in your Flex application? That way you won't have any problems with RS Web Services. --- In flexcoders@yahoogroups.com, Baz thinkl...@... wrote: I would like to build a flex front-end to Microsoft Reporting Services (RS) using the provided webservice at http://mydomain/reportserver/reportservice2005.asmx?wsdl. I am able to view the wsdl when I navigate to it using a web browser. The problem is that I can't seem to authenticate against it using flex no matter what usernames/passwords I provide. I think I may need to implement some special authentication, but I'm not sure. Has anyone succesffuly connected to the Microsoft Reporting Services (RS) webservice? Thanks, Baz
[flexcoders] OT: TV anyone?
Yay! http://news.bbc.co.uk/1/hi/technology/8008070.stm
[flexcoders] Re: Lightweight framework
Humorous that you say PureMVC ( 21 classes )is on the heavy side, instead suggesting Nimbus ( 24 classes ) as an alternative. -=Cliff --- In flexcoders@yahoogroups.com, Aaron Hardy aaronius...@... wrote: I'd consider those still being on the heavy side. One we use is called Nimbus and can be found here: http://code.google.com/p/nimbus-as3/ Don't use the available swc since it hasn't been updated in a while. Nimbus is similar to Cairngorm but lighter and cuts out a lot of the plumbing. It also adds undo/redo history and handling of complex macro commands. For example, a parallel command runs a bunch of commands in parallel and a sequence command runs a bunch of commands in sequence. You can also have a parallel command inside of a sequence command inside of a sequence command, for example. The ASDoc inside the code is pretty thorough but there isn't additional documentation yet since the codebase has just reached a fairly stable state. I'm not saying it's for everyone, but you might want to give it a shot. Aaron Jeffry Houser wrote: Flex is a UI framework; I'd hardly consider it the answer to every one of your programming needs. I suspect that the original poster was looking for MVC alternatives. PureMVC ( http://puremvc.org/ ) and Mate ( http://mate.asfusion.com/ ) seem to be the most popular alternatives in terms of MVC frameworks for Flex. EasyMVC ( http://projects.simb.net/easyMVC ) is another one I've heard of. dnk wrote: On 18-Apr-09, at 10:07 PM, zuurl8 wrote: Flex is a lightweight framework. Do you need more then what Flex provides in interface, events, and modules? Well I think that I am talking about things more like code structure, methods of doing things, etc. There are obviously benefits from these other frameworks, otherwise people would not have written them. I do understand where you are coming from, but in my case, I am looking for something a little more than the Flex framework itself. d -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
[flexcoders] Re: Lightweight framework
PS, PureMVC is only 21 classes because there are 11 interfaces, corresponding to their implementations. There are only 11 actual classes in PureMVC. Get back to me when you get your scales fixed :) -=Cliff --- In flexcoders@yahoogroups.com, Cliff Hall cl...@... wrote: Humorous that you say PureMVC ( 21 classes )is on the heavy side, instead suggesting Nimbus ( 24 classes ) as an alternative. -=Cliff --- In flexcoders@yahoogroups.com, Aaron Hardy aaronius9er@ wrote: I'd consider those still being on the heavy side. One we use is called Nimbus and can be found here: http://code.google.com/p/nimbus-as3/ Don't use the available swc since it hasn't been updated in a while. Nimbus is similar to Cairngorm but lighter and cuts out a lot of the plumbing. It also adds undo/redo history and handling of complex macro commands. For example, a parallel command runs a bunch of commands in parallel and a sequence command runs a bunch of commands in sequence. You can also have a parallel command inside of a sequence command inside of a sequence command, for example. The ASDoc inside the code is pretty thorough but there isn't additional documentation yet since the codebase has just reached a fairly stable state. I'm not saying it's for everyone, but you might want to give it a shot. Aaron Jeffry Houser wrote: Flex is a UI framework; I'd hardly consider it the answer to every one of your programming needs. I suspect that the original poster was looking for MVC alternatives. PureMVC ( http://puremvc.org/ ) and Mate ( http://mate.asfusion.com/ ) seem to be the most popular alternatives in terms of MVC frameworks for Flex. EasyMVC ( http://projects.simb.net/easyMVC ) is another one I've heard of. dnk wrote: On 18-Apr-09, at 10:07 PM, zuurl8 wrote: Flex is a lightweight framework. Do you need more then what Flex provides in interface, events, and modules? Well I think that I am talking about things more like code structure, methods of doing things, etc. There are obviously benefits from these other frameworks, otherwise people would not have written them. I do understand where you are coming from, but in my case, I am looking for something a little more than the Flex framework itself. d -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
Re: [flexcoders] OT: TV anyone?
On Monday 20 Apr 2009, Paul Andrews wrote: http://news.bbc.co.uk/1/hi/technology/8008070.stm Read the press release - I don't see Sony, LG etc. listed, just chip fabs and a few content provision companies. I'm not sure what they are actually announcing either - have they just got Flash bytecode to be hardware accelerated ? Or exposed an API that Sony/LG/etc. could hook into if they wanted ? Or what ? -- Helping to paradigmatically strategize features as part of the IT team of the year, '09 and '08 Tom Chiverton Developer Tel: +44 0161 618 5032 Fax: +44 0161 618 5099 tom.chiver...@halliwells.com 3 Hardman Square, Manchester, M3 3EB www.Halliwells.com 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 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. 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] Flex 4, Gumbo - Could not resolve Application to a component implementation.
I am testing out Flex 4 (Gumbo) but I am receiving the error Could not resolve Application to a component implementation. I added the SDK to my project and I also pointed the source to the flex4.swc. Here, is my sample app that's generating the error, any ideas? ?xml version=1.0 encoding=utf-8? Application xmlns:mx=library:adobe/flex/halo xmlns=http://ns.adobe.com/mxml/2009; xmlns:gumbo=library:adobe/flex/gumbo !-- Flex 4 Hello World with FXG -- mx:Canvas top=0 bottom=0 left=0 right=0 Group verticalCenter=0 horizontalCenter=0 TextGraphic fontFamily=Verdana fontWeight=bold contentHello, World/content /TextGraphic /Group /mx:Canvas /Application Thanks, Baz
Re: [flexcoders] how to convert Html pages or text(html text) into a pdf document.
AlivePDF is typically the way to go. What are your desired results? -Original Message- From: Hasain Sab hasainsa...@yahoo.co.in Reply-to: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] how to convert Html pages or text(html text) into a pdf document. Date: Fri, 17 Apr 2009 18:25:00 - Hi Friends, can anybody suggest me how to convert Html pages or text(html text) into a pdf document on the fly . I have already used AlivePdf but did not got the desired results. please reply soon if any ideas. Thanks in Advance. Hasain
[flexcoders] LineChart renedering data twice
Anyone know why my linechart would be showing the data twice in my linechart? I have interpolate set to false, which should matter right? Here is my data: data usage out=0 in=110 date=2009/02/17 12:59:00 GMT-0500 / usage out=0 in=110 date=2009/02/17 12:53:12 GMT-0500 / usage out=38889600 in=38654177 date=2009/02/17 12:44:12 GMT-0500 / usage out=292333 in=77048061 date=2009/02/17 13:14:12 GMT-0500 / usage out=79713561 in=79713570 date=2009/02/17 13:03:12 GMT-0500 / usage out=80094112 in=2 date=2009/02/17 14:02:12 GMT-0500 / usage out=80094112 in=0 date=2009/02/17 14:49:12 GMT-0500 / usage out=7800944 in=78986451 date=2009/02/17 15:18:12 GMT-0500 / usage out=78998062 in=78998072 date=2009/02/17 15:47:12 GMT-0500 / usage out=808447 in=221 date=2009/02/17 16:16:12 GMT-0500 / usage out=7809003 in=20 date=2009/02/17 11:45:12 GMT-0500 / usage out=789840 in=78986448 date=2009/02/17 11:13:12 GMT-0500 / /data
Re: [flexcoders] Re: Lightweight framework
Hey, lay off your punches. I'm talking about the amount of time/code it takes to implement, not the number of classes inside the library. P.S. I'm not sure where you're getting 24 classes for Nimbus anyway. I'm counting 12 (the four files in the utils directory aren't classes.) Get back to me when you get your scales fixed. Aaron On Mon, Apr 20, 2009 at 8:36 AM, Cliff Hall cl...@futurescale.com wrote: PS, PureMVC is only 21 classes because there are 11 interfaces, corresponding to their implementations. There are only 11 actual classes in PureMVC. Get back to me when you get your scales fixed :) -=Cliff --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Cliff Hall cl...@... wrote: Humorous that you say PureMVC ( 21 classes )is on the heavy side, instead suggesting Nimbus ( 24 classes ) as an alternative. -=Cliff --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Aaron Hardy aaronius9er@ wrote: I'd consider those still being on the heavy side. One we use is called Nimbus and can be found here: http://code.google.com/p/nimbus-as3/ Don't use the available swc since it hasn't been updated in a while. Nimbus is similar to Cairngorm but lighter and cuts out a lot of the plumbing. It also adds undo/redo history and handling of complex macro commands. For example, a parallel command runs a bunch of commands in parallel and a sequence command runs a bunch of commands in sequence. You can also have a parallel command inside of a sequence command inside of a sequence command, for example. The ASDoc inside the code is pretty thorough but there isn't additional documentation yet since the codebase has just reached a fairly stable state. I'm not saying it's for everyone, but you might want to give it a shot. Aaron Jeffry Houser wrote: Flex is a UI framework; I'd hardly consider it the answer to every one of your programming needs. I suspect that the original poster was looking for MVC alternatives. PureMVC ( http://puremvc.org/ ) and Mate ( http://mate.asfusion.com/ ) seem to be the most popular alternatives in terms of MVC frameworks for Flex. EasyMVC ( http://projects.simb.net/easyMVC ) is another one I've heard of. dnk wrote: On 18-Apr-09, at 10:07 PM, zuurl8 wrote: Flex is a lightweight framework. Do you need more then what Flex provides in interface, events, and modules? Well I think that I am talking about things more like code structure, methods of doing things, etc. There are obviously benefits from these other frameworks, otherwise people would not have written them. I do understand where you are coming from, but in my case, I am looking for something a little more than the Flex framework itself. d -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
Re: [flexcoders] Re: New Adobe forums coming!
I'll look into us adding product names. Not sure if the dictionary can be customized for personal words though. Not sure about the misspellings of the common stuff, I'm checking on that though. Matt On 4/15/09 4:39 AM, Tom Chiverton tom.chiver...@halliwells.com wrote: On Thursday 09 Apr 2009, Matt Chotin wrote: I got spell check in the rich text editor to work in Firefox on the Mac, it's the checkbox in the upper right corner and you have to turn it on. It seems to run about every 20 seconds or so, not quite as instant as Firefox. It doesn't know about all the words I've added to my local dictionary (obv.). 'wayyy' doesn't count as misspelled. Neither does 'tooo'. It's not even pre-loaded with Adobe product names. We're working on updating the subject to be shorter and I'm still trying to investigate fixing the header which is more important than fixing the subject line itself. Ace news ! And the body text will be changed to have the actual message at the top too ?
Re: [flexcoders] Re: New Adobe forums coming!
Can you provide an example of that being cut off, maybe in the forum comments: http://forums.adobe.com/community/general/forum_comments Of course you may need to use html encoding or something so that the system allows things in :-) Matt On 4/15/09 7:45 PM, Paul Hastings paul.hasti...@gmail.com wrote: Matt Chotin wrote: Yeah, make sure you eliminate any repeating dashes, the system parses them and stops reading. Some other patterns too I'm sure that I don't know. i trim replies like a demon lose those but it still croaks, i think, on the quote marker or maybe something in the header/boundary bits?? it's unpleasant for old folks who can't recall what they're replying to ;-)
[flexcoders] detect the build type (debug or release)
Hello, is it possible to detect the build type (debug or release) of an Flex Application from code? -- Jhonny Everson
[flexcoders] Re: Need Suggestions for Reporting In Flex Applications.
If I generate a PDF on the server side, how do I display that within a flex canvas, is there an mx:PDFReader sort of component? If I generate an excel document on the server side, how do I display that within a flex canvas? Tony Re: Need Suggestions for Reporting In Flex Applications.http://groups.yahoo.com/group/flexcoders/message/141272;_ylc=X3oDMTJ0aHFoNGxuBF9TAzk3MzU5NzE1BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRtc2dJZAMxNDEyNzIEc2VjA2Rtc2cEc2xrA3Ztc2cEc3RpbWUDMTI0MDI0NzA5OA-- Posted by: valdhor valdhorli...@embarqmail.com valdhorli...@embarqmail.com?subject=+re%3a%20need%20suggestions%20for%20reporting%20in%20flex%20applications%2e valdhor http://profiles.yahoo.com/valdhor Mon Apr 20, 2009 5:47 am (PDT) There are any number of ways of exporting data. In my case I use PHP extensively to generate excel spreadsheets (Google for code on how to do this. If you can't find anything, I can post the code I use). For Flex, a couple of things I know of off the top of my head... AlivePDF - http://alivepdf.bytearray.org/ as3xls - http://code.google.com/p/as3xls/ A quick google search pulled up these...
[flexcoders] Re: how can I get an application to grow as its children gro (example inside)
Still stuck on this...does anyone have any ideas as to what i'm doing wrong? Thanks! --- In flexcoders@yahoogroups.com, gmoniey22 gmonie...@... wrote: I have an application which has a tabnavigator with a handful of VBoxes inside of it. Those boxes can have dynamic content (which will grow horizontally). The only problem is that I can't get the application to grow horizontally as well. My plan is to have the application grow, and then fire an event to JS with the new application size, and have the JS resize the containing div (or swfobject). Essentially, i dont want to see any horizontal scrollbars. Here is a working example: ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; width=100% height=100% layout=vertical mx:Script ![CDATA[ import mx.controls.TextArea; import mx.controls.TextInput; import mx.controls.Label; import mx.containers.FormItem; private function addComponent():void { var formItem:FormItem = new FormItem(); formItem.label = New; var input:TextArea = new TextArea(); input.height = 50; formItem.addChild(input); myForm.addChild(formItem); } ]] /mx:Script mx:VBox width=100% height=100% mx:TabNavigator width=100% height=100% mx:VBox label=Test width=100% height=100% mx:Form id=myForm mx:FormItem label=Product: width=100% mx:ComboBox width=200/ /mx:FormItem mx:FormItem label=User width=100% mx:ComboBox width=200/ /mx:FormItem mx:FormItem id=innerItem label=Expandable /mx:FormItem /mx:Form /mx:VBox /mx:TabNavigator mx:HBox horizontalAlign=right verticalAlign=middle width=100% mx:Button label=Add component click=addComponent()/ /mx:HBox /mx:VBox /mx:Application Thanks!
RE: [flexcoders] detect the build type (debug or release)
http://blogs.adobe.com/aharui/2007/10/debugging_tricks.html Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Everson Alves Sent: Monday, April 20, 2009 10:15 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] detect the build type (debug or release) Hello, is it possible to detect the build type (debug or release) of an Flex Application from code? -- Jhonny Everson
RE: [flexcoders] Re: Alive PDF bytearray.org links all failing?
Thanks, it is very strange, but I am completely unable to hit anything on the server, with any browser, from any computer in my house. And that is the only address I am having any problem with! Weird. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Monday, April 20, 2009 8:49 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Alive PDF bytearray.org links all failing? Probably just a glitch. bytearray.org is fine for me at this moment. --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Tracy Spratt tr...@... wrote: I want to use AlivePDF in an AIR app but am having trouble finding documentation because most all of the links to the bytearray.org sites fail. Can anyone confirm this or suggest what my problem is? I am also having difficulty unzipping the docs in the download because of duplicate, empty files. This is probably some source control system. I'll probably be able to figure this one out myself. Tracy Spratt, Lariat Services, development services available
[flexcoders] Re: Datagrid question
Thanks for responding, Tracy. Let's say this is an application that allows generation of license numbers. Imagine this: You have 3 columns in the datagrid. The first and second columns are the first and last names of a person. The third column is a button (which is really part of an MXML component) that has it's 'label' set as Click to generate license number. When the user clicks the button, the logic to generate the license number is within the component and will be output to the label property of the button, and the button will no longer be clickable. The application allows multiple people to be listed in the datagrid. Outside the datagrid, there is a button that says Click to print all. Given the specs I described so far, it's clear that I have to be able to iterate through each row in the datagrid, extracting the data from each column of each row. Typically, I would just get the dataProvider array collection object, and the problem would be solved. But because the license number is being output through the label property of the button (which is part of a MXML component) and is not part of the original dataProvider data, I can't go that route. I figured I now have to somehow iterate through each row, grabbing the data of each column of the row and storing it somehow. Is there a way for me to get the license number from the label property of the buttons?
Re: [flexcoders] Re: Datagrid question
It seems like the license number is not just a button label--it's actually a part of your model. Perhaps that column should render the number associated with each user (if any). If there's a number, display that. If it's NaN (or -1, or whatever invalid number you choose), display it as a 'Generate' button and on click, update the model with the number, and update the display of the renderer. -Original Message- From: Pilby i...@pilby.us Reply-to: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Datagrid question Date: Mon, 20 Apr 2009 10:59:20 -0700 Thanks for responding, Tracy. Let's say this is an application that allows generation of license numbers. Imagine this: You have 3 columns in the datagrid. The first and second columns are the first and last names of a person. The third column is a button (which is really part of an MXML component) that has it's 'label' set as Click to generate license number. When the user clicks the button, the logic to generate the license number is within the component and will be output to the label property of the button, and the button will no longer be clickable. The application allows multiple people to be listed in the datagrid. Outside the datagrid, there is a button that says Click to print all. Given the specs I described so far, it's clear that I have to be able to iterate through each row in the datagrid, extracting the data from each column of each row. Typically, I would just get the dataProvider array collection object, and the problem would be solved. But because the license number is being output through the label property of the button (which is part of a MXML component) and is not part of the original dataProvider data, I can't go that route. I figured I now have to somehow iterate through each row, grabbing the data of each column of the row and storing it somehow. Is there a way for me to get the license number from the label property of the buttons?
[flexcoders] Re: Need Suggestions for Reporting In Flex Applications.
I have no idea. I stream the resultant PDF or Excel file to the user so they can open it in the native application. --- In flexcoders@yahoogroups.com, Tony Obermeit t...@... wrote: If I generate a PDF on the server side, how do I display that within a flex canvas, is there an mx:PDFReader sort of component? If I generate an excel document on the server side, how do I display that within a flex canvas? Tony Re: Need Suggestions for Reporting In Flex Applications.http://groups.yahoo.com/group/flexcoders/message/141272;_ylc=X3oDMTJ0aHFoNGxuBF9TAzk3MzU5NzE1BGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRtc2dJZAMxNDEyNzIEc2VjA2Rtc2cEc2xrA3Ztc2cEc3RpbWUDMTI0MDI0NzA5OA-- Posted by: valdhor valdhorli...@... valdhorli...@...?subject=+re%3a%20need%20suggestions%20for%20reporting%20in%20flex%20applications%2e valdhor http://profiles.yahoo.com/valdhor Mon Apr 20, 2009 5:47 am (PDT) There are any number of ways of exporting data. In my case I use PHP extensively to generate excel spreadsheets (Google for code on how to do this. If you can't find anything, I can post the code I use). For Flex, a couple of things I know of off the top of my head... AlivePDF - http://alivepdf.bytearray.org/ as3xls - http://code.google.com/p/as3xls/ A quick google search pulled up these...
[flexcoders] Re: Alive PDF bytearray.org links all failing?
Just tried it again and it is fine. Is your service provider blocking it? Maybe a firewall somewhere? --- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote: Thanks, it is very strange, but I am completely unable to hit anything on the server, with any browser, from any computer in my house. And that is the only address I am having any problem with! Weird. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Monday, April 20, 2009 8:49 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Alive PDF bytearray.org links all failing? Probably just a glitch. bytearray.org is fine for me at this moment. --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Tracy Spratt tracy@ wrote: I want to use AlivePDF in an AIR app but am having trouble finding documentation because most all of the links to the bytearray.org sites fail. Can anyone confirm this or suggest what my problem is? I am also having difficulty unzipping the docs in the download because of duplicate, empty files. This is probably some source control system. I'll probably be able to figure this one out myself. Tracy Spratt, Lariat Services, development services available
[flexcoders] Re: Datagrid question
If it were me, I would create an item renderer for that column and extend button. Add the click handler in the renderer to generate the license number. --- In flexcoders@yahoogroups.com, Pilby i...@... wrote: Thanks for responding, Tracy. Let's say this is an application that allows generation of license numbers. Imagine this: You have 3 columns in the datagrid. The first and second columns are the first and last names of a person. The third column is a button (which is really part of an MXML component) that has it's 'label' set as Click to generate license number. When the user clicks the button, the logic to generate the license number is within the component and will be output to the label property of the button, and the button will no longer be clickable. The application allows multiple people to be listed in the datagrid. Outside the datagrid, there is a button that says Click to print all. Given the specs I described so far, it's clear that I have to be able to iterate through each row in the datagrid, extracting the data from each column of each row. Typically, I would just get the dataProvider array collection object, and the problem would be solved. But because the license number is being output through the label property of the button (which is part of a MXML component) and is not part of the original dataProvider data, I can't go that route. I figured I now have to somehow iterate through each row, grabbing the data of each column of the row and storing it somehow. Is there a way for me to get the license number from the label property of the buttons?
RE: [flexcoders] Re: Datagrid question
.iterate through each row. You absolutely *cannot* do that, because all the DG rows do not exist, only the rows currently visible exist. You need to have your renderer update the dataProvider with the generated value, then iterate through the dataProvider. This should not be difficult. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Pilby Sent: Monday, April 20, 2009 1:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Datagrid question Thanks for responding, Tracy. Let's say this is an application that allows generation of license numbers. Imagine this: You have 3 columns in the datagrid. The first and second columns are the first and last names of a person. The third column is a button (which is really part of an MXML component) that has it's 'label' set as Click to generate license number. When the user clicks the button, the logic to generate the license number is within the component and will be output to the label property of the button, and the button will no longer be clickable. The application allows multiple people to be listed in the datagrid. Outside the datagrid, there is a button that says Click to print all. Given the specs I described so far, it's clear that I have to be able to iterate through each row in the datagrid, extracting the data from each column of each row. Typically, I would just get the dataProvider array collection object, and the problem would be solved. But because the license number is being output through the label property of the button (which is part of a MXML component) and is not part of the original dataProvider data, I can't go that route. I figured I now have to somehow iterate through each row, grabbing the data of each column of the row and storing it somehow. Is there a way for me to get the license number from the label property of the buttons?
[flexcoders] inter module communication
Hi Flexcoders,I am working on a projecthaving two module where i want to send message from first module to second module. The working of project is like say module 1 and module 2 are loaded into another Flex project, where I have inherited the Event class to a custom event class say TextCopyEvent. I want to send message from first module to the Second module but did not get success. I have done this by dispatching event TextCopyEvent at the parentApplication from module 1,on the other hand I have added an event listenerer at parentApplication in module 2 for the same event. My problem is that when I dispatch this event from module 1, class name of the event TextCopyEvent catched in module 2 issomething like com.events.textcopyev...@4bd24a1 and thus I got Type coercion error which say com.events.textcopyev...@4bd24a1 cannot be converted to com.events.TextCopyEvent.My question is there any other way of solving the problem or where I am making mistake. Any help will be thankful .Thanking you in advance. Vikash kumar
[flexcoders] Re: Reoading a view from a viewstack
I have a series of tabs and I use the show event in the individual components. Then I keep a needsReloading boolean value that is based upon event data from a controller. If the tab is selected, the show event kicks in and the data is reloaded based upon the needsReloading boolean. Not sure if that is what you are looking for but I hope it helps. Geoff. --- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote: My application uses a ToggleButtonBar with a viewstack as it's dataprovider. When the app is first loaded and each component is called in the stack, it loads the component and runs it's initApp() on the creationComplete. However when you go back it's already loaded and doesn't run the initApp() and pull new external data. Is there a way to automatically reload the component each time a generated button is pushed in the ToggleButtonBar?
[flexcoders] Flash Player 10 device font anti-aliasing with Flex
I've been hankering to try Flash Player 10's new anti-alias support for device fonts, and finally got around to it today. Unfortunately, I can't seem to get it to work from Flex. I've compiled a simple test app with both Flex SDK 3.3 and the preview of Gumbo 4.0.0.4904 both targetted for Flash Player 10 (as per the instructions here: http://opensource.adobe.com/wiki/display/flexsdk/Targeting+Flash+Player+\ 10 http://opensource.adobe.com/wiki/display/flexsdk/Targeting+Flash+Player\ +10 ) and got identical results for both. Anti-aliasing embedded fonts works as normal, but device fonts appear with their normal blockiness. I've tried on XP, Vista and Windows 7 with FF and IE all with the latest FP 10 install. With Windows native ClearType enabled, the device fonts look a little better (as the OS is doing the anti-aliasing) but still nowhere near as good as the embedded font. With Windows ClearType disabled, the device fonts look as blocky as ever and the embedded font looks grea. I'm really interested to see if anyone else has tried this. A test app (with View Source enabled) is here: http://dev.nx.sg/lab/flex3fp10/LongTextTest.html http://dev.nx.sg/lab/flex3fp10/LongTextTest.html To try it out, make sure you have Flash Player 10 installed and: 1. If on Windows, turn off ClearType to prevent Windows from doing any anti-aliasing for you and confusing the issue (via Control Panel - Display) 2. Open the link above and choose a sans-serif device font from the dropdown list (if you have Myriad Pro installed locally - choose it) and size the font around 10pt to see the difference clearly. 3. Compare the first and second blocks of text. Both are in the device font selected but the first has fonAntiAliasType=advanced and the second doesn't. You'll see that they are identical in all respects. 3. Compare the first two blocks to the third block which is the embedded font - the anti-aliasing is clearly present on the third block and absent from the others (or of less quality on the others if you have ClearType still enabled) 4. Just to prove that the app is targetted correctly to Flash Player 10, click on each block of text and watch it rotate in 3D space. As an aside, note that after rotating, the device fonts become anti-aliased but VERY badly, and inconsistently across the width of the text. Anyone else played with this? I'd really like to get it working so that I can go back to using deving fonts for my applications... Thanks, Toby.
Re: [flexcoders] inter module communication
Does your top-level Application declare a TextCopyEvent type? If these are only defined in modules, you'll have problems because only one module will own that type. See the modules presentation on Alex's blog. -Maciek -Original Message- From: vikash kumar vikash.kuma...@in.com Reply-to: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] inter module communication Date: Mon, 20 Apr 2009 19:23:10 +0530 Hi Flexcoders, I am working on a project having two module where i want to send message from first module to second module. The working of project is like say module 1 and module 2 are loaded into another Flex project, where I have inherited the Event class to a custom event class say TextCopyEvent. I want to send message from first module to the Second module but did not get success. I have done this by dispatching event TextCopyEvent at the parentApplication from module 1, on the other hand I have added an event listenerer at parentApplication in module 2 for the same event. My problem is that when I dispatch this event from module 1, class name of t he event TextCopyEvent catched in module 2 is something like com.events.textcopyev...@4bd24a1 and thus I got Type coercion error which say com.events.textcopyev...@4bd24a1 cannot be converted to com.events.TextCopyEvent. My question is there any other way of solving the problem or where I am making mistake. Any help will be thankful. Thanking you in advance. - Vikash kumar
[flexcoders] Re: Tweaking the H- V-Slider components
Yes, the easiest way is to just adjust the image size for the thumb; with some transparent padding. -TH --- In flexcoders@yahoogroups.com, morten.wang m...@... wrote: Hi FlexCoders I am working on a project in which I use the H-slider and V-slider as volume bar and progress bar and I have successfully give them a new style however my problem is as follows: The slider knob's(scrubber) position in each end of the slider is visually going out of the bounds by half of the knob´s width (this is the default of the slider component). This is not working out as intended because I want to constrain the movement of the knob to be within the bounds of the slider bar. My question is, do I need to extend the existing component and write the AS code that constrains the knob, or does the Flex Framework have any properties to fix this. What I typically would do when working with sliders in flash is to cheat with the graphics so that the slider is invisible and have some other graphic that give the illusion of the knob being constrained. Maybe this will be the way to do it in Flex as well ? Thanks for the coming response
[flexcoders] Re: Tweaking the H- V-Slider components
Yes, the easiest way is to just adjust the image size for the thumb; with some transparent padding. -TH --- In flexcoders@yahoogroups.com, morten.wang m...@... wrote: Hi FlexCoders I am working on a project in which I use the H-slider and V-slider as volume bar and progress bar and I have successfully give them a new style however my problem is as follows: The slider knob's(scrubber) position in each end of the slider is visually going out of the bounds by half of the knob´s width (this is the default of the slider component). This is not working out as intended because I want to constrain the movement of the knob to be within the bounds of the slider bar. My question is, do I need to extend the existing component and write the AS code that constrains the knob, or does the Flex Framework have any properties to fix this. What I typically would do when working with sliders in flash is to cheat with the graphics so that the slider is invisible and have some other graphic that give the illusion of the knob being constrained. Maybe this will be the way to do it in Flex as well ? Thanks for the coming response
[flexcoders] Stack overflow
I am getting the following: Error: Error #1023: Stack overflow occurred. at flash.xml::XMLNode() at flash.xml::XMLDocument/createElement() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() In this function after the 4th line: public function objectToXML(obj:Object):XML { var qName:QName = new QName(root); var xmlDocument:XMLDocument = new XMLDocument(); var simpleXMLEncoder:SimpleXMLEncoder = new SimpleXMLEncoder(xmlDocument); var xmlNode:XMLNode = simpleXMLEncoder.encodeValue(obj, qName, xmlDocument); var xml:XML = new XML(xmlDocument.toString()); return xml; } Interesting that it works once, but second call to this function generates the error. Thanks for help.
[flexcoders] Re: Flex 4, Gumbo - Could not resolve Application to a component implementation.
Is it possible that it the problem is linux related? What paths are supposed to be in xmlns:mx=library:adobe/flex/halo or xmlns:gumbo=library:adobe/flex/gumbo? Cheers. On Mon, Apr 20, 2009 at 8:08 AM, Baz thinkl...@gmail.com wrote: I am testing out Flex 4 (Gumbo) but I am receiving the error Could not resolve Application to a component implementation. I added the SDK to my project and I also pointed the source to the flex4.swc. Here, is my sample app that's generating the error, any ideas? ?xml version=1.0 encoding=utf-8? Application xmlns:mx=library:adobe/flex/halo xmlns=http://ns.adobe.com/mxml/2009; xmlns:gumbo=library:adobe/flex/gumbo !-- Flex 4 Hello World with FXG -- mx:Canvas top=0 bottom=0 left=0 right=0 Group verticalCenter=0 horizontalCenter=0 TextGraphic fontFamily=Verdana fontWeight=bold contentHello, World/content /TextGraphic /Group /mx:Canvas /Application Thanks, Baz
RE: [flexcoders] Stack overflow
You are mixing up the XML implementation versions. XMLDocument and simpleDecoder are legacy AS2 classes, included in AS3 only for backwards compatibility. You cannot use them with XML() which is an e4x implementation. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of markgoldin_2000 Sent: Monday, April 20, 2009 4:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Stack overflow I am getting the following: Error: Error #1023: Stack overflow occurred. at flash.xml::XMLNode() at flash.xml::XMLDocument/createElement() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() In this function after the 4th line: public function objectToXML(obj:Object):XML { var qName:QName = new QName(root); var xmlDocument:XMLDocument = new XMLDocument(); var simpleXMLEncoder:SimpleXMLEncoder = new SimpleXMLEncoder(xmlDocument); var xmlNode:XMLNode = simpleXMLEncoder.encodeValue(obj, qName, xmlDocument); var xml:XML = new XML(xmlDocument.toString()); return xml; } Interesting that it works once, but second call to this function generates the error. Thanks for help.
[flexcoders] Re: Stack overflow
Well, this crashes too: public function objectToXML(obj:Object):XMLNode { var qName:QName = new QName(root); var xmlDocument:XMLDocument = new XMLDocument(); var simpleXMLEncoder:SimpleXMLEncoder = new SimpleXMLEncoder(xmlDocument); var xmlNode:XMLNode = simpleXMLEncoder.encodeValue(obj, qName, xmlDocument); return xmlNode; } --- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote: You are mixing up the XML implementation versions. XMLDocument and simpleDecoder are legacy AS2 classes, included in AS3 only for backwards compatibility. You cannot use them with XML() which is an e4x implementation. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of markgoldin_2000 Sent: Monday, April 20, 2009 4:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Stack overflow I am getting the following: Error: Error #1023: Stack overflow occurred. at flash.xml::XMLNode() at flash.xml::XMLDocument/createElement() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() In this function after the 4th line: public function objectToXML(obj:Object):XML { var qName:QName = new QName(root); var xmlDocument:XMLDocument = new XMLDocument(); var simpleXMLEncoder:SimpleXMLEncoder = new SimpleXMLEncoder(xmlDocument); var xmlNode:XMLNode = simpleXMLEncoder.encodeValue(obj, qName, xmlDocument); var xml:XML = new XML(xmlDocument.toString()); return xml; } Interesting that it works once, but second call to this function generates the error. Thanks for help.
RE: [flexcoders] Re: Stack overflow
Look up XMLNode in the docs, you will understand why. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of markgoldin_2000 Sent: Monday, April 20, 2009 5:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Stack overflow Well, this crashes too: public function objectToXML(obj:Object):XMLNode { var qName:QName = new QName(root); var xmlDocument:XMLDocument = new XMLDocument(); var simpleXMLEncoder:SimpleXMLEncoder = new SimpleXMLEncoder(xmlDocument); var xmlNode:XMLNode = simpleXMLEncoder.encodeValue(obj, qName, xmlDocument); return xmlNode; } --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Tracy Spratt tr...@... wrote: You are mixing up the XML implementation versions. XMLDocument and simpleDecoder are legacy AS2 classes, included in AS3 only for backwards compatibility. You cannot use them with XML() which is an e4x implementation. Tracy Spratt, Lariat Services, development services available _ From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com [mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com] On Behalf Of markgoldin_2000 Sent: Monday, April 20, 2009 4:21 PM To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com Subject: [flexcoders] Stack overflow I am getting the following: Error: Error #1023: Stack overflow occurred. at flash.xml::XMLNode() at flash.xml::XMLDocument/createElement() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() In this function after the 4th line: public function objectToXML(obj:Object):XML { var qName:QName = new QName(root); var xmlDocument:XMLDocument = new XMLDocument(); var simpleXMLEncoder:SimpleXMLEncoder = new SimpleXMLEncoder(xmlDocument); var xmlNode:XMLNode = simpleXMLEncoder.encodeValue(obj, qName, xmlDocument); var xml:XML = new XML(xmlDocument.toString()); return xml; } Interesting that it works once, but second call to this function generates the error. Thanks for help.
RE: [flexcoders] Re: Stack overflow
QName and SimpleXMLEncoder are e4x also. Why are you using that old stuff anyway? Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of markgoldin_2000 Sent: Monday, April 20, 2009 5:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Stack overflow Well, this crashes too: public function objectToXML(obj:Object):XMLNode { var qName:QName = new QName(root); var xmlDocument:XMLDocument = new XMLDocument(); var simpleXMLEncoder:SimpleXMLEncoder = new SimpleXMLEncoder(xmlDocument); var xmlNode:XMLNode = simpleXMLEncoder.encodeValue(obj, qName, xmlDocument); return xmlNode; } --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Tracy Spratt tr...@... wrote: You are mixing up the XML implementation versions. XMLDocument and simpleDecoder are legacy AS2 classes, included in AS3 only for backwards compatibility. You cannot use them with XML() which is an e4x implementation. Tracy Spratt, Lariat Services, development services available _ From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com [mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com] On Behalf Of markgoldin_2000 Sent: Monday, April 20, 2009 4:21 PM To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com Subject: [flexcoders] Stack overflow I am getting the following: Error: Error #1023: Stack overflow occurred. at flash.xml::XMLNode() at flash.xml::XMLDocument/createElement() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() In this function after the 4th line: public function objectToXML(obj:Object):XML { var qName:QName = new QName(root); var xmlDocument:XMLDocument = new XMLDocument(); var simpleXMLEncoder:SimpleXMLEncoder = new SimpleXMLEncoder(xmlDocument); var xmlNode:XMLNode = simpleXMLEncoder.encodeValue(obj, qName, xmlDocument); var xml:XML = new XML(xmlDocument.toString()); return xml; } Interesting that it works once, but second call to this function generates
[flexcoders] Re: Stack overflow
I need to convert a AS object into an XML. --- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote: QName and SimpleXMLEncoder are e4x also. Why are you using that old stuff anyway? Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of markgoldin_2000 Sent: Monday, April 20, 2009 5:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Stack overflow Well, this crashes too: public function objectToXML(obj:Object):XMLNode { var qName:QName = new QName(root); var xmlDocument:XMLDocument = new XMLDocument(); var simpleXMLEncoder:SimpleXMLEncoder = new SimpleXMLEncoder(xmlDocument); var xmlNode:XMLNode = simpleXMLEncoder.encodeValue(obj, qName, xmlDocument); return xmlNode; } --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Tracy Spratt tracy@ wrote: You are mixing up the XML implementation versions. XMLDocument and simpleDecoder are legacy AS2 classes, included in AS3 only for backwards compatibility. You cannot use them with XML() which is an e4x implementation. Tracy Spratt, Lariat Services, development services available _ From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com [mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com] On Behalf Of markgoldin_2000 Sent: Monday, April 20, 2009 4:21 PM To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com Subject: [flexcoders] Stack overflow I am getting the following: Error: Error #1023: Stack overflow occurred. at flash.xml::XMLNode() at flash.xml::XMLDocument/createElement() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() In this function after the 4th line: public function objectToXML(obj:Object):XML { var qName:QName = new QName(root); var xmlDocument:XMLDocument = new XMLDocument(); var simpleXMLEncoder:SimpleXMLEncoder = new
[flexcoders] Using the fork ant task
Anyone know a work around to this bug?? I guess I could move all my projects over to my C drive but I have everything on my D drive for a reason :( http://bugs.adobe.com/jira/browse/SDK-20666
[flexcoders] WindowShade container / Multi-Accordion
I may have asked this before, but it's come up again. I'm looking for an Accordion alternative that allows multiple tabs to be open at once, but never scrolls - rather it would close tabs as needed. I believe some of the Adobe Creative Suite applications have this behaviour for palettes. A VBox of WindowShades doesn't do the trick because the VBox grows in size. Any suggestions? Thanks.
RE: [flexcoders] Re: Stack overflow
Ok, but don't use the legacy classes, use the AS3 e4x classes. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of markgoldin_2000 Sent: Monday, April 20, 2009 6:08 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Stack overflow I need to convert a AS object into an XML. --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Tracy Spratt tr...@... wrote: QName and SimpleXMLEncoder are e4x also. Why are you using that old stuff anyway? Tracy Spratt, Lariat Services, development services available _ From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com [mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com] On Behalf Of markgoldin_2000 Sent: Monday, April 20, 2009 5:50 PM To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com Subject: [flexcoders] Re: Stack overflow Well, this crashes too: public function objectToXML(obj:Object):XMLNode { var qName:QName = new QName(root); var xmlDocument:XMLDocument = new XMLDocument(); var simpleXMLEncoder:SimpleXMLEncoder = new SimpleXMLEncoder(xmlDocument); var xmlNode:XMLNode = simpleXMLEncoder.encodeValue(obj, qName, xmlDocument); return xmlNode; } --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Tracy Spratt tracy@ wrote: You are mixing up the XML implementation versions. XMLDocument and simpleDecoder are legacy AS2 classes, included in AS3 only for backwards compatibility. You cannot use them with XML() which is an e4x implementation. Tracy Spratt, Lariat Services, development services available _ From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com [mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com] On Behalf Of markgoldin_2000 Sent: Monday, April 20, 2009 4:21 PM To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com Subject: [flexcoders] Stack overflow I am getting the following: Error: Error #1023: Stack overflow occurred. at flash.xml::XMLNode() at flash.xml::XMLDocument/createElement() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at
[flexcoders] Re: Datagrid question
.iterate through each row. You absolutely *cannot* do that, because all the DG rows do not exist, only the rows currently visible exist. You need to have your renderer update the dataProvider with the generated value, then iterate through the dataProvider. This should not be difficult. Tracy Spratt, I guess I would have to add an additional license field in my dataProvider, and I will just have my component itemrenderer put the data into that field, and I'd be able to iterate through my dataProvider to access the data. Okay, thank you for your advise on this, and this is all great and dandy. But please allow me to pick your brain a little more. Let's say my application still contained the same data format as described so far. But this time, my application is limited to a fixed 3 row x 3 column grid where everything is visible (and such, all are existent), is there a way to access the data without using the dataProvider? In other words, is there a way I can get a reference to each row, which presumably will be an array of columns, and then access the data similar to the way you would a two-dimensional array, keeping in mind that some of the cells can contain MXML components, and hence, require obtaining the reference of that MXML component in order to access its properties?
RE: [flexcoders] WindowShade container / Multi-Accordion
.the VBox grows in size. only if you do not set the height. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Richard Rodseth Sent: Monday, April 20, 2009 6:18 PM To: flex...@googlegroups.com; flexcoders@yahoogroups.com Subject: [flexcoders] WindowShade container / Multi-Accordion I may have asked this before, but it's come up again. I'm looking for an Accordion alternative that allows multiple tabs to be open at once, but never scrolls - rather it would close tabs as needed. I believe some of the Adobe Creative Suite applications have this behaviour for palettes. A VBox of WindowShades doesn't do the trick because the VBox grows in size. Any suggestions? Thanks.
[flexcoders] Datagrid cell event
I realize a datagrid can have a change event which triggers when the user selects a row. But if one or more of the columns are editable, is there a way to define a change event on a CELL basis without resorting to making that column into an MXML component itemrenderer? Thanks.
[flexcoders] How do I detect 'enter' key on a textInput control?
How can I detect the enter key when I'm on a textinput control?
Re: [flexcoders] How do I detect 'enter' key on a textInput control?
The TextInput control has an Enter event that you can catch. Example: ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.events.FlexEvent; private function onEnter(event:FlexEvent):void { trace(woot); } ]] /mx:Script mx:TextInput enter=onEnter(event) / /mx:WindowedApplication HTH, Nate On Mon, Apr 20, 2009 at 4:31 PM, luvfotography ygro...@all-digital-links.com wrote: How can I detect the enter key when I'm on a textinput control? -- Cheers, Nate http://blog.natebeck.net
RE: [flexcoders] Datagrid cell event
Some folks cheat by capturing the ITEM_EDIT_END event early (using higher priority) and changing the .reason from NEW_COLUMN to NEW_ROW Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of elevight Sent: Monday, April 20, 2009 4:21 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Datagrid cell event I realize a datagrid can have a change event which triggers when the user selects a row. But if one or more of the columns are editable, is there a way to define a change event on a CELL basis without resorting to making that column into an MXML component itemrenderer? Thanks.
Re: [flexcoders] detect the build type (debug or release)
Thank you Alex, the trick worked. On Mon, Apr 20, 2009 at 2:43 PM, Alex Harui aha...@adobe.com wrote: http://blogs.adobe.com/aharui/2007/10/debugging_tricks.html Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Everson Alves *Sent:* Monday, April 20, 2009 10:15 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] detect the build type (debug or release) Hello, is it possible to detect the build type (debug or release) of an Flex Application from code? -- Jhonny Everson -- Jhonny Everson
Re: [flexcoders] WindowShade container / Multi-Accordion
Yes, I misspoke. The point remains though - with the height of the VBox set, you will still end up with scrollbars. This is not a knock against WindowShade. On Mon, Apr 20, 2009 at 3:56 PM, Tracy Spratt tr...@nts3rd.com wrote: “…the VBox grows in size…” only if you do not set the height. Tracy Spratt, Lariat Services, development services available -- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Richard Rodseth *Sent:* Monday, April 20, 2009 6:18 PM *To:* flex...@googlegroups.com; flexcoders@yahoogroups.com *Subject:* [flexcoders] WindowShade container / Multi-Accordion I may have asked this before, but it's come up again. I'm looking for an Accordion alternative that allows multiple tabs to be open at once, but never scrolls - rather it would close tabs as needed. I believe some of the Adobe Creative Suite applications have this behaviour for palettes. A VBox of WindowShades doesn't do the trick because the VBox grows in size. Any suggestions? Thanks.
RE: [flexcoders] Re: Datagrid question
Yes, if every row is visible, then you could probably make this work. I think you need to use the DOM properties and methods, like DataGrid.numChildren() and getChildAt(). Sounds like a mess to me though. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Pilby Sent: Monday, April 20, 2009 6:55 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Datagrid question .iterate through each row. You absolutely *cannot* do that, because all the DG rows do not exist, only the rows currently visible exist. You need to have your renderer update the dataProvider with the generated value, then iterate through the dataProvider. This should not be difficult. Tracy Spratt, I guess I would have to add an additional license field in my dataProvider, and I will just have my component itemrenderer put the data into that field, and I'd be able to iterate through my dataProvider to access the data. Okay, thank you for your advise on this, and this is all great and dandy. But please allow me to pick your brain a little more. Let's say my application still contained the same data format as described so far. But this time, my application is limited to a fixed 3 row x 3 column grid where everything is visible (and such, all are existent), is there a way to access the data without using the dataProvider? In other words, is there a way I can get a reference to each row, which presumably will be an array of columns, and then access the data similar to the way you would a two-dimensional array, keeping in mind that some of the cells can contain MXML components, and hence, require obtaining the reference of that MXML component in order to access its properties?
[flexcoders] Re: Reoading a view from a viewstack
geoff is dead on. There are a probably 100 ways to do what you want done. states/transitions, event listeners, adding and removing the children via actionscript and leaving in your initApp(). But, yeah, the least amnt of code (depending on the framework you're using) would probably be adding this to your mxml: show=initApp() --- In flexcoders@yahoogroups.com, gedavies gedav...@... wrote: I have a series of tabs and I use the show event in the individual components. Then I keep a needsReloading boolean value that is based upon event data from a controller. If the tab is selected, the show event kicks in and the data is reloaded based upon the needsReloading boolean. Not sure if that is what you are looking for but I hope it helps. Geoff. --- In flexcoders@yahoogroups.com, Wally Kolcz wkolcz@ wrote: My application uses a ToggleButtonBar with a viewstack as it's dataprovider. When the app is first loaded and each component is called in the stack, it loads the component and runs it's initApp() on the creationComplete. However when you go back it's already loaded and doesn't run the initApp() and pull new external data. Is there a way to automatically reload the component each time a generated button is pushed in the ToggleButtonBar?
[flexcoders] Re: Datagrid question
There are a few ways to do this but the easiest is to add a value to your object that will be updated in the item renderer, perhaps in the set data function. You could also use an event and a public property in your item renderer. var myObject = new myClass(); override public function set data(value:Object):void { //value is the object from your list myObject = value as MyClass; } private function buttonClick() { myObject.randomNumber = MyRandomNumberGen(); } You should now be able to access randomNumber in your application. This will require you to parse your ArrayCollection into an object. --- In flexcoders@yahoogroups.com, Pilby i...@... wrote: Thanks for responding, Tracy. Let's say this is an application that allows generation of license numbers. Imagine this: You have 3 columns in the datagrid. The first and second columns are the first and last names of a person. The third column is a button (which is really part of an MXML component) that has it's 'label' set as Click to generate license number. When the user clicks the button, the logic to generate the license number is within the component and will be output to the label property of the button, and the button will no longer be clickable. The application allows multiple people to be listed in the datagrid. Outside the datagrid, there is a button that says Click to print all. Given the specs I described so far, it's clear that I have to be able to iterate through each row in the datagrid, extracting the data from each column of each row. Typically, I would just get the dataProvider array collection object, and the problem would be solved. But because the license number is being output through the label property of the button (which is part of a MXML component) and is not part of the original dataProvider data, I can't go that route. I figured I now have to somehow iterate through each row, grabbing the data of each column of the row and storing it somehow. Is there a way for me to get the license number from the label property of the buttons?
[flexcoders] Looking for graphic designers for partnership
I'm a flex/actionscript developer who do not know anything about graphic design. Sure I know what looks good but I have no idea how to get them. I'm looking for someone with graphic design skills to team up with me. Basically someone who will do the User Interface and I do the back end. If you are a graphic designer and you are tired of working alone contact me. You have something I do not have I have something you do not have mutual partnership My location: Indiana USA
[flexcoders] multiple/seperate stages; mx:HTML and mx:SWFLoader
Random question: Does anyone know of a component (air or otherwise), aside from htmlLoader or html (or anything that extends/uses flash.html stuff that uses webkit), that would render a swf on a seperate Stage? The HTML component is almost perfect, but known bugs are the real annoyance... using the html component failed our user testing -- I pretty much need the domWindow object out of my way. I'm thinking of going down the road of creating a component that implements ISWFLoader. But after looking through the SWFLoader code, I can't help but think that I'll be in the same place I am now... fighting with one stage and needing to edit thousands of lines of our three library classes, checking in hundreds of changes, some of which include a change to our security model (which will piss off SOX auditors, and will in-turn piss off my boss). Thank you very much for your time. --j
[flexcoders] Re: WindowShade container / Multi-Accordion
If I wanted to try to solve this one in a hurry (and quickly is always best, right?), I'd write a class that extended container, or maybe even Canvas or VBox, depending on... and use WindowShade components as children. Listen for the resize event in your children (which will be in your WindowShade components, non-bubbling, mx.events.ResizeEvent.RESIZE). And do calculations on child heights and numChildrenExpanded, holding variables where needed. I don't think I'd do anything with the override of updateDisplayList in this case... just an event listener that is constantly firing and calculating heights, evaluating who is opened, keeping track of who was opened and in what order, and only turning on my scroll bar policy when opened children == 1 the height of the children is greater than the multi-accordian height -- or something like that. Hope that helps. Best of luck, Jeremy --- In flexcoders@yahoogroups.com, Richard Rodseth rrods...@... wrote: I may have asked this before, but it's come up again. I'm looking for an Accordion alternative that allows multiple tabs to be open at once, but never scrolls - rather it would close tabs as needed. I believe some of the Adobe Creative Suite applications have this behaviour for palettes. A VBox of WindowShades doesn't do the trick because the VBox grows in size. Any suggestions? Thanks.
[flexcoders] Re: Stack overflow
Your method works fine for me. The problem is most likely that you're passing in an XMLNode in to objectToXML and you're getting into a loop inside of encodeValue. Debug and start hitting f5 and f6 down the chain of the framework if you really want to understand it. Otherwise just say if(obj is XMLNode) return obj; --- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote: Look up XMLNode in the docs, you will understand why. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of markgoldin_2000 Sent: Monday, April 20, 2009 5:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Stack overflow Well, this crashes too: public function objectToXML(obj:Object):XMLNode { var qName:QName = new QName(root); var xmlDocument:XMLDocument = new XMLDocument(); var simpleXMLEncoder:SimpleXMLEncoder = new SimpleXMLEncoder(xmlDocument); var xmlNode:XMLNode = simpleXMLEncoder.encodeValue(obj, qName, xmlDocument); return xmlNode; } --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Tracy Spratt tracy@ wrote: You are mixing up the XML implementation versions. XMLDocument and simpleDecoder are legacy AS2 classes, included in AS3 only for backwards compatibility. You cannot use them with XML() which is an e4x implementation. Tracy Spratt, Lariat Services, development services available _ From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com [mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com] On Behalf Of markgoldin_2000 Sent: Monday, April 20, 2009 4:21 PM To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com Subject: [flexcoders] Stack overflow I am getting the following: Error: Error #1023: Stack overflow occurred. at flash.xml::XMLNode() at flash.xml::XMLDocument/createElement() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at
[flexcoders] Re: Problem using sdk version 3.3
Anyone know why this is happening when i try to expand the data visualization source code? java -jar DMV-source.jar C:\Documents and Settings\All Users\Application Data\Adobe\Flex Exception in thread main java.lang.NoClassDefFoundError: flex/license/Logger Caused by: java.lang.ClassNotFoundException: flex.license.Logger at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) Could not find the main class: flex.charts.Extractor. Program will exit. --- In flexcoders@yahoogroups.com, Matt Chotin mcho...@... wrote: Ah, yeah the quotes for the arg. Sorry bout that, I'll look and see if we can get that updated in the release notes. On 3/4/09 2:09 PM, markgoldin_2000 markgoldin_2...@... wrote: Ok, this finally created the fbpro folder: D:\Program Files\Adobe\Flex Builder 3\sdks\3.3.0\libjava -jar DMV-source.jar C:\Documents and Settings\All Users\Application Data\Adobe\Flex --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , markgoldin_2000 markgoldin_2000@ wrote: Actually this command triggers execution: java -jar D:\Program Files\Adobe\Flex Builder 3\sdks\3.3.0\lib\DMV-source.jar C:\Documents and Settings\All Users\Application Data\Adobe\Flex Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\Documents and Settings\mgoldinjava -jar D:\Program Files\Adobe\Flex Buil r 3\sdks\3.3.0\lib\DMV-source.jar C:\Documents and Settings\All Users\Applic ion Data\Adobe\Flex using license {flexbuilder3.displayedFirstLaunchMessage=true, flexbuilder3.dis ayed20DaysLeftMessage=true, flexbuilder3=***}, outputing directory .. license is valid, extracting datavisualisation and automation files to .. C:\Documents and Settings\mgoldin but fbpro is not there. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , markgoldin_2000 markgoldin_2000@ wrote: Right, and this is my command line: java -jar D:\Program Files\Adobe\Flex Builder 3\sdks\3.3.0\lib\DMV-source.jar C:\Documents and Settings\All Users\Application Data\Adobe\Flex Still no fbpro is created. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Matt Chotin mchotin@ wrote: Java -jar will actually run the executable code that's included within that JAR. It requires the license key found in your license.properties which should be located in the location we specified. Look in that folder and see if license.properties is there. If it isn't, find your license.properties and use that location. Matt On 3/4/09 12:22 PM, markgoldin_2000 markgoldin_2000@ wrote: I am having problem with: .. Extract the sources for the data visualization components from DMV-source.jar If I open DMV-source.jar with winrar I see folders named Flex and META-INF so java -jar DMV-source.jar C:\Documents and Settings\All Users\Application Data\Adobe\Flex does not create the fbpro folder. AM I doing something wrong? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Matt Chotin mchotin@ wrote: Download from: http://www.adobe.com/products/flex/flexdownloads/ Instructions: http://www.adobe.com/support/documentation/en/flex/3/releasenotes_flex3_sdk.html#Datavisualization On 3/4/09 11:51 AM, markgoldin_2000 markgoldin_2000@ wrote: Not sure I uderstand how to download and install it. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Matt Chotin mchotin@ wrote: Make sure to download the DMV components. On 3/4/09 11:35 AM, markgoldin_2000 markgoldin_2000@ wrote: After pointing Builder to sdk 3.3 I am getting an error: 1172: Definition mx.collections:HierarchicalData could not be found. Please help.
[flexcoders] StageAlign and StageScaleMode
Why do I have to use this (below) to ensure that my web browser layout is perfectly synced with my stage? I would think that my browser window IS the stage. Why is this not true? What am I failing to understand and where can I read more to understand whats going on here. stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT; thanks for your time! brad
Re: [flexcoders] Re: New Adobe forums coming!
Matt Chotin wrote: Can you provide an example of that being cut off, maybe in the forum comments: http://forums.adobe.com/community/general/forum_comments ah i was wondering where i could post bugs. thanks http://forums.adobe.com/message/1906289#1906289
[flexcoders] Best way to defer sub-component initialization?
Not sure if the subject makes complete sense but what would be the best way to defer setting properties on a sub component when writing custom Flex components without getting a null reference? Let's say I create a custom component that wraps another component, for example a button ... package { class Foo extends Panel { protected var _closeButton:Button; protected var _hasCloseButton:Boolean; public function Foo() { super(); } public function set hasCloseButtton(v:Boolean):void { _hasCloseButton = v; } override protected function createChildren():void { super.createChildren(); if (_hasCloseButton) { _closeButton = new Button(); addChild(_closeButton); } } } } There are two ways that I know how to get the close button, either in an extending class in the overriding createChildren method set _hasCloseButton = true _and then_ call super.createChildren() or the other way by listening for a creationComplete event and defer/handle the instantiation of the close button from there on. But I think these two ways are sub-optimal so I was wondering how others solve this problem and what works best in every situation? Thanks for any advice! Sascha
RE: [flexcoders] Best way to defer sub-component initialization?
What is your issue with using createChildren()? Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Sascha Sent: Monday, April 20, 2009 10:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Best way to defer sub-component initialization? Not sure if the subject makes complete sense but what would be the best way to defer setting properties on a sub component when writing custom Flex components without getting a null reference? Let's say I create a custom component that wraps another component, for example a button ... package { class Foo extends Panel { protected var _closeButton:Button; protected var _hasCloseButton:Boolean; public function Foo() { super(); } public function set hasCloseButtton(v:Boolean):void { _hasCloseButton = v; } override protected function createChildren():void { super.createChildren(); if (_hasCloseButton) { _closeButton = new Button(); addChild(_closeButton); } } } } There are two ways that I know how to get the close button, either in an extending class in the overriding createChildren method set _hasCloseButton = true _and then_ call super.createChildren() or the other way by listening for a creationComplete event and defer/handle the instantiation of the close button from there on. But I think these two ways are sub-optimal so I was wondering how others solve this problem and what works best in every situation? Thanks for any advice! Sascha
[flexcoders] Why is my preloader slow and jumpy?
So I'm trying to do a simple preloader for my application. I'm going the implements IPreloaderDisplay route. I have an intro animation for my preloader (it simply tweens onto the stage usinging TweenLite). After the intro animation completes, the progress bar does it's job and then shows the app. The problem I run into is when the intro animation is playing it is real jumpy. Sometimes all I end up seeing is two key frames of the animation. It is supposed to play for 1 sec. Here is my base preloader class: http://pastie.org/453038 And here is the main preloader class that handles the animation and such: http://pastie.org/453041 I'm assuming that the memory Flash/Flex is using is bogging down the machine, so the tween does not render smoothly. Is there a way to delay the start of the rest of the application loading until the intro animation has finished? Best, Adam Duro
RE: [flexcoders] StageAlign and StageScaleMode
The url you hit is usually an HTML page with an HTML tag in the BODY that determines the size and position of the Flash Player and thus the stage. Look at the .html file and see how it works. If you set your application's width/height to 100% then it browser window and stage should match. See the doc on scaleMode and align defaults to understand how they behave. In a Flex app, you shouldn't need to do that since we call that for you. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Brad Bueche Sent: Monday, April 20, 2009 7:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] StageAlign and StageScaleMode Why do I have to use this (below) to ensure that my web browser layout is perfectly synced with my stage? I would think that my browser window IS the stage. Why is this not true? What am I failing to understand and where can I read more to understand whats going on here. stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT; thanks for your time! brad
RE: [flexcoders] Why is my preloader slow and jumpy?
There is no API for forcing the user to watch a preloader animation. You might be able to do it by blocking certain events and dispatching them later, but IMHO, a good preloader doesn't need to be watched to completion. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of adam.duro Sent: Monday, April 20, 2009 7:13 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Why is my preloader slow and jumpy? So I'm trying to do a simple preloader for my application. I'm going the implements IPreloaderDisplay route. I have an intro animation for my preloader (it simply tweens onto the stage usinging TweenLite). After the intro animation completes, the progress bar does it's job and then shows the app. The problem I run into is when the intro animation is playing it is real jumpy. Sometimes all I end up seeing is two key frames of the animation. It is supposed to play for 1 sec. Here is my base preloader class: http://pastie.org/453038 And here is the main preloader class that handles the animation and such: http://pastie.org/453041 I'm assuming that the memory Flash/Flex is using is bogging down the machine, so the tween does not render smoothly. Is there a way to delay the start of the rest of the application loading until the intro animation has finished? Best, Adam Duro
[flexcoders] Re: Stack overflow
I like how I responded two hours before Tracy and it just now appeared Whatever. The other thing is that you could have a memory reference loop. How are you calling the function? --- In flexcoders@yahoogroups.com, zyzzx00_99 jer...@... wrote: Your method works fine for me. The problem is most likely that you're passing in an XMLNode in to objectToXML and you're getting into a loop inside of encodeValue. Debug and start hitting f5 and f6 down the chain of the framework if you really want to understand it. Otherwise just say if(obj is XMLNode) return obj; --- In flexcoders@yahoogroups.com, Tracy Spratt tracy@ wrote: Look up XMLNode in the docs, you will understand why. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of markgoldin_2000 Sent: Monday, April 20, 2009 5:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Stack overflow Well, this crashes too: public function objectToXML(obj:Object):XMLNode { var qName:QName = new QName(root); var xmlDocument:XMLDocument = new XMLDocument(); var simpleXMLEncoder:SimpleXMLEncoder = new SimpleXMLEncoder(xmlDocument); var xmlNode:XMLNode = simpleXMLEncoder.encodeValue(obj, qName, xmlDocument); return xmlNode; } --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Tracy Spratt tracy@ wrote: You are mixing up the XML implementation versions. XMLDocument and simpleDecoder are legacy AS2 classes, included in AS3 only for backwards compatibility. You cannot use them with XML() which is an e4x implementation. Tracy Spratt, Lariat Services, development services available _ From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com [mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com] On Behalf Of markgoldin_2000 Sent: Monday, April 20, 2009 4:21 PM To: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com Subject: [flexcoders] Stack overflow I am getting the following: Error: Error #1023: Stack overflow occurred. at flash.xml::XMLNode() at flash.xml::XMLDocument/createElement() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at mx.rpc.xml::SimpleXMLEncoder/encodeValue() at
RE: [flexcoders] Best way to defer sub-component initialization?
There's no issue with createChildren but with the way how and when to decide to set properties on sub-components. If you want the component in my example to have a close button, you usually set the hasClosebutton to true in a overriden createChildren method. The problem is that normally the children are created first and then you set properties like the hasCloseButton, i.e. you call super.createChildren() first and then set properties. But that will run into null refs sooner or later, hence the use of listening to a creationComplete event but as I said that can't be the best way to archieve this. Sascha From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Tuesday, April 21, 2009 11:48 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Best way to defer sub-component initialization? What is your issue with using createChildren()? Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Sascha Sent: Monday, April 20, 2009 10:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Best way to defer sub-component initialization? Not sure if the subject makes complete sense but what would be the best way to defer setting properties on a sub component when writing custom Flex components without getting a null reference? Let's say I create a custom component that wraps another component, for example a button ... package { class Foo extends Panel { protected var _closeButton:Button; protected var _hasCloseButton:Boolean; public function Foo() { super(); } public function set hasCloseButtton(v:Boolean):void { _hasCloseButton = v; } override protected function createChildren():void { super.createChildren(); if (_hasCloseButton) { _closeButton = new Button(); addChild(_closeButton); } } } } There are two ways that I know how to get the close button, either in an extending class in the overriding createChildren method set _hasCloseButton = true _and then_ call super.createChildren() or the other way by listening for a creationComplete event and defer/handle the instantiation of the close button from there on. But I think these two ways are sub-optimal so I was wondering how others solve this problem and what works best in every situation? Thanks for any advice! Sascha _._,___
[flexcoders] Re: Need Suggestions for Reporting In Flex Applications.
I have no idea. I stream the resultant PDF or Excel file to the user so they can open it in the native application. Well purpose of xls sheets is for further analysis so help of native application is necessary, And as far as pdf are concerned Firefox can show them in another tab I dont have any idea about IE bcoz i stopped using it long ago. Anyways I am getting feeling that Flex is bit weak as far as reporting is concerned. The other features as really fascinating the most important feature I liked is its easy to learn and adopt. I am finding it comfortable in evaluation phase itself I have not enough experience in flex except working part time that to for evaluation. Anyways I have to find out some good Serverside reporting tool and make Flex to communicate with it. It seems that cakePHP can Integrate with BIRT but I have to investigate it in Detail. I will post about that when we makeup our mind on something similar. Thanks and best regards Raja
[flexcoders] Re:How do I detect 'enter' key on a textInput control?
Here is one way to do it. Let's say this is your mxml: mx:TextInput id=txt width=200 keyDown=txtKeyDownHandler(event)/ Then your keydown handler would be: // Waiting for return key private function txtKeyDownHandler(event:KeyboardEvent):void { if (event.keyCode == 13) { // do something } }
[flexcoders] stopping a sevice call mid request
I've tried combinations of stop() and disconnect() on HTTPService and nothing seems to do the trick. If a user a series of quick requests to a listing service I want to stop those that aren't the most recent. How can this be done? Thanks
Re: [flexcoders] OT: TV anyone?
When I found out that Flash Player 9 included H.264 playback... It was pretty obvious that they (Adobe) were moving heavily into the entertainment delivery market. There are still some pretty big obstacles to navigate but I think it¹s safe to say that if you have stock in Blockbuster, Netflix, or Direct TV it¹s time to refresh your portfolio. Rick Winscot ³He who dies with the most toys wins.² On 4/20/09 10:27 AM, Paul Andrews p...@ipauland.com wrote: Yay! http://news.bbc.co.uk/1/hi/technology/8008070.stm
RE: [flexcoders] stopping a sevice call mid request
I am not sure that you can. After all, the call is asynchronous, you have sent it off to some place for handling. What would such a stop do? Go the server processing the request and tell it to stop? I can imagine it would be possible to code such a behavior into the server process, but the long running server process would have to continually check for a stop order. Why are you wanting this behavior? Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of djepyon Sent: Tuesday, April 21, 2009 12:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] stopping a sevice call mid request I've tried combinations of stop() and disconnect() on HTTPService and nothing seems to do the trick. If a user a series of quick requests to a listing service I want to stop those that aren't the most recent. How can this be done? Thanks
RE: [flexcoders] stopping a sevice call mid request
Probably best to code this functionality on server side in your own proxy which will in turn make the call to the listing service. This proxy can check for multiple calls and handle that anyway you wish. -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]on Behalf Of Tracy Spratt Sent: Tuesday, 21 April 2009 4:28 p.m. To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] stopping a sevice call mid request I am not sure that you can. After all, the call is asynchronous, you have sent it off to some place for handling. What would such a “stop” do? Go the server processing the request and tell it to stop? I can imagine it would be possible to code such a behavior into the server process, but the long running server process would have to continually check for a stop order. Why are you wanting this behavior? Tracy Spratt, Lariat Services, development services available -- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of djepyon Sent: Tuesday, April 21, 2009 12:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] stopping a sevice call mid request I've tried combinations of stop() and disconnect() on HTTPService and nothing seems to do the trick. If a user a series of quick requests to a listing service I want to stop those that aren't the most recent. How can this be done? Thanks
[flexcoders] Maximize Minimize
hi all, i want to implement maximization minimization in layout like window. Any layout have this option? or any othe way to implement??? Thanks, S.Senthilkumar
RE: [flexcoders] Maximize Minimize
Someone has done this, google it. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of senthilkumarirtt Sent: Tuesday, April 21, 2009 12:43 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Maximize Minimize hi all, i want to implement maximization minimization in layout like window. Any layout have this option? or any othe way to implement??? Thanks, S.Senthilkumar
RE: [flexcoders] Maximize Minimize
Thanks for your reply...But i cant get answer through google...send some link if you have that.. --- On Tue, 21/4/09, Tracy Spratt tr...@nts3rd.com wrote: From: Tracy Spratt tr...@nts3rd.com Subject: RE: [flexcoders] Maximize Minimize To: flexcoders@yahoogroups.com Date: Tuesday, 21 April, 2009, 10:49 AM Someone has done this, google it. Tracy Spratt, Lariat Services, development services available From: flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On Behalf Of senthilkumarirtt Sent: Tuesday, April 21, 2009 12:43 AM To: flexcod...@yahoogro ups.com Subject: [flexcoders] Maximize Minimize hi all, i want to implement maximization minimization in layout like window. Any layout have this option? or any othe way to implement??? Thanks, S.Senthilkumar Share files, take polls, and make new friends - all under one roof. Go to http://in.promos.yahoo.com/groups/
RE: [flexcoders] Maximize Minimize
Google this: flex maximize minimize Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of senthil kumar Sent: Tuesday, April 21, 2009 1:42 AM To: flexcoders@yahoogroups.com Cc: tr...@nts3rd.com Subject: RE: [flexcoders] Maximize Minimize Thanks for your reply...But i cant get answer through google...send some link if you have that.. --- On Tue, 21/4/09, Tracy Spratt tr...@nts3rd.com wrote: From: Tracy Spratt tr...@nts3rd.com Subject: RE: [flexcoders] Maximize Minimize To: flexcoders@yahoogroups.com Date: Tuesday, 21 April, 2009, 10:49 AM Someone has done this, google it. Tracy Spratt, Lariat Services, development services available _ From: flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On Behalf Of senthilkumarirtt Sent: Tuesday, April 21, 2009 12:43 AM To: flexcod...@yahoogro ups..com Subject: [flexcoders] Maximize Minimize hi all, i want to implement maximization minimization in layout like window. Any layout have this option? or any othe way to implement??? Thanks, S.Senthilkumar _ Now surf faster and smarter ! Check out the new Firefox 3 - Yahoo! Edition * Click http://in.rd.yahoo.com/tagline_firefox_1/*http:/downloads.yahoo.com/in/fire fox/ here!