Re: REPOST: [flexcoders] PrintJob cutting text on datagrid
On 12/21/05, Mika Kiljunen [EMAIL PROTECTED] wrote: Here comes a small sample. It has a datagrid on a popup and it needs to get printed. It seems to lose the bottom tails of g,y,p,q letters. Hi, Mika. I just confirmed that this is a known problem and has been logged as a bug. I am currently not aware of any workarounds. Manish Yahoo! Groups Sponsor ~-- 1.2 million kids a year are victims of human trafficking. Stop slavery. http://us.click.yahoo.com/WpTY2A/izNLAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: PopupWindow's MenuBar can't handle event if ...
On 12/21/05, sn197412 [EMAIL PROTECTED] wrote: Here is a sample source of a component. [snip] hm I guess that TitleWindow has many bugs about events. Thanks, Shigeru - that's very helpful. I think the core issue is that clicking on a TitleWindow does not make it the topmost window on the screen, which it should. I have logged a bug for the same. Either it should work automatically or there should be a simple API for bringing a window to the highest depth. Once the issue is fixed, you shouldn't have to write your own setTopMost method. Manish Yahoo! Groups Sponsor ~-- Most low income homes are not online. Make a difference this holiday season! http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Flex 2.0 Tree control dataprovider problem.
On 12/25/05, Jonas Windey [EMAIL PROTECTED] wrote: I'm experimenting a bit with flex 2.0 alpha, and I'm trying to use a webservice to provide the datasource of my tree control. I took the xml structure that can be found in the examples explorer, and made a webservice that is giving exactly the same result: ?xml version=1.0 encoding=utf-8? node node label=Technology ... /node node label=Utilities ... Now comes the problem, when I give my treeview this result as datasource, the output isn't what it should be, as can be seen on this url: http://www.narcisten.be/pl_treeProblem.jpg I've tried setting the dataprovide as event.result.childNodes[0], but no luck. Shouldn't that be event.result.node.node? Manish Yahoo! Groups Sponsor ~-- 1.2 million kids a year are victims of human trafficking. Stop slavery. http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] How to embed XML in AS3?
On 12/24/05, flexhtoo [EMAIL PROTECTED] wrote: I want to konw how to embed XML in AS2? Is xml MIME type? I don't think there's a way to embed XML in ActionScript. You'll have to use the XML element in MXML. Manish Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Error executing database querry
Can any body just tell me why Error executing database querry . Im new to flex and just trying to connect my db2 database with flex using coldfusion. I dont find any error in the sql querry im using. cfquery datasource=DSFORCF INSERT INTO SPFLEX.M_BRAND_DETAILS (brand_id,brand_name,created_by,modified_by) VALUES ('#arguments.brandToAdd.brand_id#','#arguments.brandToAdd.brand_name#', '#arguments.brandToAdd.created_by#','#arguments.brandToAdd.modified_by# ') /cfquery Is it some thing related to the datasource settings..? Yahoo! Groups Sponsor ~-- Most low income homes are not online. Make a difference this holiday season! http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Flex 2.0 Tree control dataprovider problem.
No luck, if I use event.result.node.node, I get a flash player 8.5 warning stating: TypeError: Error #1010: undefined has no properties. at PixcoLabs/__catWS_result() at flash.events::EventDispatcher/dispatchEvent() -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Manish Jethani Sent: maandag 26 december 2005 11:35 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex 2.0 Tree control dataprovider problem. On 12/25/05, Jonas Windey [EMAIL PROTECTED] wrote: I'm experimenting a bit with flex 2.0 alpha, and I'm trying to use a webservice to provide the datasource of my tree control. I took the xml structure that can be found in the examples explorer, and made a webservice that is giving exactly the same result: ?xml version=1.0 encoding=utf-8? node node label=Technology /node node label=Utilities Now comes the problem, when I give my treeview this result as datasource, the output isn't what it should be, as can be seen on this url: http://www.narcisten.be/pl_treeProblem.jpg I've tried setting the dataprovide as event.result.childNodes[0], but no luck. Shouldn't that be event.result.node.node? Manish -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- 1.2 million kids a year are victims of human trafficking. Stop slavery. http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Would this make a program secure
Do you use an http:service tag to store a password? Is this in all of your opinions the best way to do it? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Would this make a program secure
The mx:HTTPService tag is simply a way to establish a connection with some server-based data. You cant store anything in it. You could use the middle tier to store a list of the valid user/password combinations, then use HTTPService to send what the user enters to the middle tier, which would then compare it to the list. The middle tier would then return the result of that validation to Flex in the HTTPService result. Tracy From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED] Sent: Monday, December 26, 2005 12:42 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Would this make a program secure Do you use an http:service tag to store a password? Is this in all of your opinions the best way to do it? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Flex 2.0 Tree control dataprovider problem.
In 1.5, there were issues with whitespace in the xml causing unexpected nodes to display in the tree. The 1.5 fix is to tell the parser to ignore whitespace. Can you remove the linefeeds from the xml for testing? Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonas Windey Sent: Saturday, December 24, 2005 4:47 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex 2.0 Tree control dataprovider problem. Hi all, I'm experimenting a bit with flex 2.0 alpha, and I'm trying to use a webservice to provide the datasource of my tree control. I took the xml structure that can be found in the examples explorer, and made a webservice that is giving exactly the same result: ?xml version=1.0 encoding=utf-8? node node label=Technology node label=ASP.NET / node label=HTML/CSS / node label=Javascript / node label=SQL / node label=Tech Experiments / /node node label=Utilities node label=Client tools / node label=Server tools / /node node label=Design node label=Cool layouts / node label=Design experiments / /node node label=Usability /node node label=Off-topic /node /node Now comes the problem, when I give my treeview this result as datasource, the output isn't what it should be, as can be seen on this url: http://www.narcisten.be/pl_treeProblem.jpg I've tried setting the dataprovide as event.result.childNodes[0], but no luck. Here's my code (without the markup) mx:Application xmlns:mx=http://www.macromedia.com/2005/mxml; creationComplete=catWS.getCategories.send(); fontSize=11 ... mx:WebService result=catTree.dataProvider=event.result id=catWS wsdl=http://localhost:1200/pixcoID/pixcoThoughts.asmx?WSDL; showBusyCursor=true fault=Alert.show(event.fault.faultstring) mx:operation name=getCategories mx:request intAccountID 1 /intAccountID /mx:request /mx:operation /mx:WebService In the code example, the tree control uses a httpservice, and there you can use event.result.node, which looks inside the xml to loop through the correct nodes. Any suggestions? Thanks in advance. Jonas -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- 1.2 million kids a year are victims of human trafficking. Stop slavery. http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Error executing database querry
I don't do CF, but that error does not sound like it is related to flex. Can you get your cfquery to display in a normal browser page? Or a cf generated test page? Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of vmlr123 Sent: Monday, December 26, 2005 8:05 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Error executing database querry Can any body just tell me why Error executing database querry . Im new to flex and just trying to connect my db2 database with flex using coldfusion. I dont find any error in the sql querry im using. cfquery datasource=DSFORCF INSERT INTO SPFLEX.M_BRAND_DETAILS (brand_id,brand_name,created_by,modified_by) VALUES ('#arguments.brandToAdd.brand_id#','#arguments.brandToAdd.brand_name#', '#arguments.brandToAdd.created_by#','#arguments.brandToAdd.modified_by# ') /cfquery Is it some thing related to the datasource settings..? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- 1.2 million kids a year are victims of human trafficking. Stop slavery. http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] How to embed XML in AS3?
I want to konw how to embed XML in AS2? Is xml MIME type? Let's try the next thing: create XML element in mxml and before this set in flex-config.xml file keep-generated-astrue/keep-generated-as. and then compile mxml. Then open generated *.as file and see what is there. From there we can take this script: var myXML:XMLNode; function createXML() { myXML = mx.utils.XMLUtil.createXML(document\ndata/\n/document); } By this way we can manually embed XML file via ActionScript. Or I'm not right? On 12/26/05, Manish Jethani [EMAIL PROTECTED] wrote: On 12/24/05, flexhtoo [EMAIL PROTECTED] wrote: I want to konw how to embed XML in AS2? Is xml MIME type? I don't think there's a way to embed XML in ActionScript. You'll have to use the XML element in MXML. Manish -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Most low income homes are not online. Make a difference this holiday season! http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Would this make a program secure
Ok so what your saying is I use the tag to connect to the server. What I do is I store the information on a database on the server. I know you do not store a password with the HTTPService tag but what I want to know is do you use it to make information secure? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Nested faceless components. keeping IDs and DataBinding
Hi all, It would be great to have IDs and databinding available to faceless data structures. Unfortunately, there are some restrictions that apply to faceless components. Is there any (hacky) way to declare a nested faceless component in an MXML document and assign a document scoped ID to it ?? This is not legal as there are IDs in the nested components. c:Person id=foo c:children mx:Array c:Person id=barbie/ c:Person id=birbie/ /mx:Array /c:children /c:Person One ugly way would be to extend a container and do something like the following c:Person id=foo c:Person id=barbie/ c:Person id=birbie/ /c:Person Now, this limits me to assigning all children to one array... not to mention the overhead and component-lifecycle-related trouble. For now the only legal solution is the following I guess... c:Person id=foo/ c:Person id=barbie parent={foo}/ c:Person id=birbie parent={foo}/ Evidently the benefit of using XML is lost. Any ideas? -- : Aldo Bucchi : mobile (56) 8 429 8300 Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Error executing database querry
One of the practices I've been using in Flex development using CF is to build a function test page that can be used to test functions in the CFC's that your Flex app will be calling. This makes it easier when debugging to verify if everything on the CF side is good and get the detailed CF diagnostics when the function fails. Though SQL wise there could be a lot of things that could cause the stuff below to bomb. Eg if brand_id is an integer field the '#arguments.brandToAdd.brand_id#' is trying to pass a string to that field. Likewise with created_by, and modified_by. Tracy Spratt wrote: I don't do CF, but that error does not sound like it is related to flex. Can you get your cfquery to display in a normal browser page? Or a cf generated test page? Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of vmlr123 Sent: Monday, December 26, 2005 8:05 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Error executing database querry Can any body just tell me why Error executing database querry . Im new to flex and just trying to connect my db2 database with flex using coldfusion. I dont find any error in the sql querry im using. cfquery datasource=DSFORCF INSERT INTO SPFLEX.M_BRAND_DETAILS (brand_id,brand_name,created_by,modified_by) VALUES ('#arguments.brandToAdd.brand_id#','#arguments.brandToAdd.brand_name#', '#arguments.brandToAdd.created_by#','#arguments.brandToAdd.modified_by# ') /cfquery Is it some thing related to the datasource settings..? Yahoo! Groups Sponsor ~-- 1.2 million kids a year are victims of human trafficking. Stop slavery. http://us.click.yahoo.com/WpTY2A/izNLAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] DataGrid with colspans
Hi, I am trying to create a DataGrid with the following structure Colspaned Grid | Col B | Col A | Col B1 | Col B2 | Col B3 | Clicking on the bottom columns (Col A, Col B1 etc.) should sort the data as well. Its pretty simple to create such grid with mx:Grid tag, but I need all other functionality provided by a DataGrid. This I believe would need both Header CellRenderer and Column CellRenderer. I am trying to do this at my end but I am spending too much time to create one without success. Can you share your thoughts on how to create such grid? Thanks, Mohan __ Yahoo! DSL Something to write home about. Just $16.99/mo. or less. dsl.yahoo.com Yahoo! Groups Sponsor ~-- AIDS in India: A lurking bomb. Click and help stop AIDS now. http://us.click.yahoo.com/9QUssC/lzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Error executing database querry
Yeah, if you can get CF to display or trace or log the final, evaluated SQL string, you can copy that and try it directly against the database using Query Analyzer or some other database query tool. Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tariq Ahmed Sent: Monday, December 26, 2005 3:32 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Error executing database querry One of the practices I've been using in Flex development using CF is to build a function test page that can be used to test functions in the CFC's that your Flex app will be calling. This makes it easier when debugging to verify if everything on the CF side is good and get the detailed CF diagnostics when the function fails. Though SQL wise there could be a lot of things that could cause the stuff below to bomb. Eg if brand_id is an integer field the '#arguments.brandToAdd.brand_id#' is trying to pass a string to that field. Likewise with created_by, and modified_by. Tracy Spratt wrote: I don't do CF, but that error does not sound like it is related to flex. Can you get your cfquery to display in a normal browser page? Or a cf generated test page? Tracy -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of vmlr123 Sent: Monday, December 26, 2005 8:05 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Error executing database querry Can any body just tell me why Error executing database querry . Im new to flex and just trying to connect my db2 database with flex using coldfusion. I dont find any error in the sql querry im using. cfquery datasource=DSFORCF INSERT INTO SPFLEX.M_BRAND_DETAILS (brand_id,brand_name,created_by,modified_by) VALUES ('#arguments.brandToAdd.brand_id#','#arguments.brandToAdd.brand_name#', '#arguments.brandToAdd.created_by#','#arguments.brandToAdd.modified_by# ') /cfquery Is it some thing related to the datasource settings..? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- Most low income homes are not online. Make a difference this holiday season! http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] How to embed XML in AS3?
E4X in AS3 allows true embedded XML, like so: var some_xml:XML = somexml/some; AS2 doesn't support that format, so you could do: var some_xml:XML = new XML(somexml/some); or: var some_xml:XML = new XML(); some_xml.parseXML(somexml/some); or use the MXML mx:XML tag which will embed XML. - Original Message - From: Stanislav Zayarsky [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, December 26, 2005 1:24 PM Subject: Re: [flexcoders] How to embed XML in AS3? I want to konw how to embed XML in AS2? Is xml MIME type? Let's try the next thing: create XML element in mxml and before this set in flex-config.xml file keep-generated-astrue/keep-generated-as. and then compile mxml. Then open generated *.as file and see what is there. From there we can take this script: var myXML:XMLNode; function createXML() { myXML = mx.utils.XMLUtil.createXML(document\n data/\n/document); } By this way we can manually embed XML file via ActionScript. Or I'm not right? On 12/26/05, Manish Jethani [EMAIL PROTECTED] wrote: On 12/24/05, flexhtoo [EMAIL PROTECTED] wrote: I want to konw how to embed XML in AS2? Is xml MIME type? I don't think there's a way to embed XML in ActionScript. You'll have to use the XML element in MXML. Manish -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links Yahoo! Groups Sponsor ~-- 1.2 million kids a year are victims of human trafficking. Stop slavery. http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Would this make a program secure
Here is a little mini review of how authetication works in a J2EE container. Authentication: Authentication is the act of supplying credentials to the server to establish your identity. In the J2EE world authentication is initiated by a challenge from which the client provides a response. A challenge is initiated when a protected resource is requested from the server. Protected resources are configured in the web applications WEB-INF/web.xml file. For example: web-resource-collection web-resource-nameProtected Area/web-resource-name !-- Define the context-relative URL(s) to be protected -- url-pattern/secure/*/url-pattern !-- If you list http methods, only those methods are protected -- http-methodDELETE/http-method http-methodGET/http-method http-methodPOST/http-method http-methodPUT/http-method /web-resource-collection In the example above, all resources in the web application under the directory /secure are protected. When any client requests these resources, the server would challenge the user for their credentials. There are two kinds of challenges in J2EE. 1) BASIC. When configured to use BASIC the container will cause the browser to pop up the simple built in username/password dialog box. BASIC auth then stores a UUENCODED version of the password in the HTTP headers sent to the server. If sent through SSL, this is then protected from prying eyes. login-config auth-methodBASIC/auth-method realm-nameExample BASIC-Based Authentication Area/realm-name /login-config 2) FORM. When configured for FORM the container will redirect the browser to a specific URI, or page. That page when must contain a form which sends two parameters (j_username and j_password) to a specific URI (/j_security_check) via a HTTP POST. Traditionally people used a HTML form for this, although it works just dandy from a Flex based form too. Once authenticated via form a specific cookie value is set by the container. That cookie (jsessionid) contains a unique opaque value. At each http request, the jsessionid is read and recoupled to a secure http session in the container. login-config auth-methodFORM/auth-method form-login-config form-login-page/login.jsp/form-login-page form-error-page/failed_login.jsp/form-error-page /form-login-config /login-config Ta da, authorization in J2EE. Now, you may ask (as I think you did) where is the user added to the system? Where is the username and password stored on the system? Well, the answer is It depends. Every J2EE container is different. For instance in Tomcat there is a users xml file that contains the user and their password. That said, most every container supports a plug-in called a JAAS module. Via JAAS you can pick and choose exactly how you container persists credentials and the logic used during a login. So for instance, in many applications we develop we use a JAAS plugin which points to a database where we store users, passwords, roles, attributes, etc. We store the passwords in a relational database hashed using a well known , broadly published and accepted one-way hashing algorithm. (Thus preventing any prying eyes from having any use for the stored hash. There is no known way to undo the hash and get the actual password). Writing a JAAS plug in may not be for the faint of heart, but I do know a consulting few world-class Java security consultants wink. That is how authorization works. You can seamlessly and transparantly use J2EE security inside a Flex application. That means you do not have to do *anything* in terms of developing a security framework in Flex, littering your application with security code, etc. The container can do this all for you. When the above is done under SSL encryption you will find you can develop a serious enterprise-class security infrastructure. Access control is a seperate discussion and related to the above authentication. If you or others are interested I can do a follow on post on that as well. It also sounds like it might be a good idea to add security to the Flex whitepapers we already have in our Flex Resources site? You can register for the site at https://www.cynergysystems.com/pages/how/technologies/flex/index.html -- Dave Wolf Cynergy Systems, Inc. Macromedia Flex Alliance Partner http://www.cynergysystems.com Email: [EMAIL PROTECTED] Office: 866-CYNERGY --- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote: Do you use an http:service tag to store a password? Is this in all of your opinions the best way to do it? Yahoo! Groups Sponsor ~-- 1.2 million kids a year are victims of human trafficking. Stop slavery. http://us.click.yahoo.com/WpTY2A/izNLAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups