[flexcoders] local file access thru HTTPService fails
Hi all this seems like such a simple thing, and yet ... my project currently lives in the directory My Documents/Flex Builder 2/xmlshow and works fine. If I take the entire directory and copy it to my desktop, and then open xmlshow_app.html it no longer works. Specifically it doesn't load my file (voucherXML.xml) thru HTTPService. I repeat, this works fine UNTIL I copy the doirectory elsewhere. Is this a crossdomain issue? I've tried, experimentally, adding a crossdomain.xml file in the dame directory as the swf and it doesn't work. Thanks for any help John This email and any files transmitted with it may be confidential and are intended solely for the use of the individual or entity to whom they are addressed. This email may contain personal information of individuals, and be subject to Commonwealth and/or State privacy laws in Australia. This email is also subject to copyright. If you are not the intended recipient, you must not read, print, store, copy, forward or use this email for any reason, in accordance with privacy and copyright laws. If you have received this email in error, please notify the sender by return email, and delete this email from your inbox.
[flexcoders] Never mind
Please ignore my last post. I just lost my job, so I don't really care what the answer my last query is anymore. Regards This email and any files transmitted with it may be confidential and are intended solely for the use of the individual or entity to whom they are addressed. This email may contain personal information of individuals, and be subject to Commonwealth and/or State privacy laws in Australia. This email is also subject to copyright. If you are not the intended recipient, you must not read, print, store, copy, forward or use this email for any reason, in accordance with privacy and copyright laws. If you have received this email in error, please notify the sender by return email, and delete this email from your inbox.
RE: [flexcoders] Class-based model as a dataprovider
Hi, I didn't receive Lachlan's reply earlier (I'm obviously not receiving everything from the group :/) So I'll reply to both of you here, ok? Tracy: I realise that the XML class is a dom, but that doesn't allow me to have TYPED entities, does it? Also with classes I can include validation code, etc. in the getters/setters. I can't do this with the XML class, can I? --- Lachlan: Yes, I am trying to unmarshal the XML into custom classes as you say. A bit of background wouldn't hurt ... The XML describes a document where each line is EITHER some text, OR (up to 3) graphics, OR a barcode, or a couple of other entities. It's all XML, nodes and attributes, but not very regular. A line/node could look like: text alignment=centred font=A charheight=2 emphasis=bName: field key=fullname//text OR graphics valign=middle image alignment=leftvicdpi.jpg/image image alignment=rightsunset.jpg/image /graphics OR barcode type=code128 alignment=centred height=16field key=pin//barcode So that each line needs a different customItemRenderer. Since the document is discretely line-based in structure, I thought a 1-column datagrid suited it well. I tried dynamically rendering elements (in form structures) thru AS, but that proved to be pretty messy ... I could go back to it, but I'd rather not. Yeah, I figured ICollectionView but I'm not actually sure how to assign it ... I've discovered Aral Balkan's notes on Designing Data Models, that might clear it up for me. Cheers John -Original Message- From: Tracy Spratt [mailto:[EMAIL PROTECTED] Sent: Tuesday, 5 December 2006 8:12 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Class-based model as a dataprovider John, can you use the XML class? It already IS a dom. Tracy _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Lachlan Cotter Sent: Sunday, December 03, 2006 11:08 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Class-based model as a dataprovider Hi John, Sorry if I missed the point but I'm not entirely clear on what you're trying to do here. Do you want to unmarshal your XML into an object graph of custom classes? I don't understand how the multiple renderers comes into it. What is the XML describing? Is it a result set or something less regular? With regard to point 2, I think anything can be a dataProvider if it implements one of the accepted interfaces. IList, ICollectionView etc. Cheers, Lach On 04/12/2006, at 11:57 AM, John Mazzocchi wrote: Hi, I need a hand here ... I have an app which reads an XML file, shoves everything into an XMLListCollection and then renders the collection to a one-column datagrid. Each row of the datagrid uses a (state-based) customItemRenderer [don't get me started on the problems I've had with ViewStack-based approach]. Anyway, it seems to work fairly well ... but I've now been asked to take a slightly different approach. The XML needs to be shoved into an Object Model (a custom DOM), so that the same data can have multiple renderers/converters created in the future (not just renderToScreen)... renderToPDF, renderToCSV, etc. Now there are notes in the PDF docs on creating a Class-based model ... I figure I'm gonna create an array of Objects, each one typed as they need to be, you know Bool, Text, Graphics, customSetOfAttribs, whatever ... custom addItem and removeItem functions which use templates for each Object type. 1. Any comments on my methodology? 2. How do I assign an ActionScript class as a dataprovider (for a datagrid)? Thanks. Cheers John This email and any files transmitted with it may be confidential and are intended solely for the use of the individual or entity to whom they are addressed. This email may contain personal information of individuals, and be subject to Commonwealth and/or State privacy laws in Australia. This email is also subject to copyright. If you are not the intended recipient, you must not read, print, store, copy, forward or use this email for any reason, in accordance with privacy and copyright laws. If you have received this email in error, please notify the sender by return email, and delete this email from your inbox.
[flexcoders] Class-based model as a dataprovider
Hi, I need a hand here ... I have an app which reads an XML file, shoves everything into an XMLListCollection and then renders the collection to a one-column datagrid. Each row of the datagrid uses a (state-based) customItemRenderer [don't get me started on the problems I've had with ViewStack-based approach]. Anyway, it seems to work fairly well ... but I've now been asked to take a slightly different approach. The XML needs to be shoved into an Object Model (a custom DOM), so that the same data can have multiple renderers/converters created in the future (not just renderToScreen)... renderToPDF, renderToCSV, etc. Now there are notes in the PDF docs on creating a Class-based model ... I figure I'm gonna create an array of Objects, each one typed as they need to be, you know Bool, Text, Graphics, customSetOfAttribs, whatever ... custom addItem and removeItem functions which use templates for each Object type. 1. Any comments on my methodology? 2. How do I assign an ActionScript class as a dataprovider (for a datagrid)? Thanks. Cheers John This email and any files transmitted with it may be confidential and are intended solely for the use of the individual or entity to whom they are addressed. This email may contain personal information of individuals, and be subject to Commonwealth and/or State privacy laws in Australia. This email is also subject to copyright. If you are not the intended recipient, you must not read, print, store, copy, forward or use this email for any reason, in accordance with privacy and copyright laws. If you have received this email in error, please notify the sender by return email, and delete this email from your inbox.
RE: [flexcoders] Removing underlineButton from RichTextEditor
Try e.g. myRichTextEditor.toolBar2.removeChildAt(2); pretty sure that'll work ... NOTE: toolBar2, NOT toolbar Cheers John -Original Message- From: Paul Whitelock [mailto:[EMAIL PROTECTED] Sent: Wednesday, 29 November 2006 9:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Removing underlineButton from RichTextEditor I'm trying to customize the RichTextEditor by removing some controls. I've been able to successfully remove a number of them (alignButtons, colorPicker, etc.) but when I do a toolbar.removeChild(underlineButton) I get the following error: ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller. I don't see any notes in the documentation indicating that this button is removed any differently than the other controls. Am I missing something? TIA for any help! This email and any files transmitted with it may be confidential and are intended solely for the use of the individual or entity to whom they are addressed. This email may contain personal information of individuals, and be subject to Commonwealth and/or State privacy laws in Australia. This email is also subject to copyright. If you are not the intended recipient, you must not read, print, store, copy, forward or use this email for any reason, in accordance with privacy and copyright laws. If you have received this email in error, please notify the sender by return email, and delete this email from your inbox.
RE: [flexcoders] Re: Tamarin, Adobe open source the Flash player ?
If I get it,it means I'll be able to juggle both DOM objects and Flash objects from the *same* language ...? I say it's cool :D John -Original Message-From: Gordon Smith [mailto:[EMAIL PROTECTED]Sent: Wednesday, 8 November 2006 6:19 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: Tamarin, Adobe open source the Flash player ? blushingThanks!/blushing Now that ya'll understand what Adobe is doing, what are your reactions? - Gordoon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeardSent: Tuesday, November 07, 2006 10:37 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: Tamarin, Adobe open source the Flash player ? Once again, Gordon takes the cake for the best clear and conciseexplanation of a topic. I have read at least 20 descriptions of thisstuff today and this is the first one that has made complete sense.(The others ranged from 'almost getting it' to 'no clue what the hellthat means'.) Thanks Gordon!Ben--- In [EMAIL PROTECTED]ups.com, "Gordon Smith" [EMAIL PROTECTED] wrote: This is a major contribution from Adobe to the open-source community, but let me try to clarify what it is and what is isn't. The code being open-sourced is for the core AS3 language, not for anything specific to Flash. The contributed engine is able to execute a program that uses core classes of the language like Array, Date, RegExp, and XML. It is not be able to execute a program that use Flash-specific classes like Sprite, TextField, SharedObject, or URLLoader. In particular it supports no Flash graphics. Mozilla will use this engine by adding browser-DOM classes such as Window, Document, Form, Anchor, etc., which are the "domain objects" that a browser manipulates, in the same way that Flash uses this engine by adding classes for its domain objects such as Sprites. Once this is done, webapp developers will be able to use AS3/ES4 as a fast, type-checked, object-oriented "_javascript_" if they want to. So this has nothing to do with putting Flash into Firefox. Firefox users will still require the Flash plugin to run SWFs. But contributing a high-performance virtual machine for a type-checked, object-oriented language is still a big deal! - Gordon From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of jrunrandy Sent: Tuesday, November 07, 2006 5:28 AM To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] Re: Tamarin, Adobe open source the Flash player ?Here is my understanding: Adobe is not open sourcing the Flash Player. Adobe *is* contributing source code for the ActionScript Virtual Machine, the scripting language engine component within Flash Player. ActionScript 3.0 runs on the Tamarin virtual machine in Flash Player 9. I'm sure there are others who can clarify this further. Randy Nielsen Flex Documentation Manager This email and any files transmitted with it may be confidential and are intended solely for the use of the individual or entity to whom they are addressed. This email may contain personal information of individuals, and be subject to Commonwealth and/or State privacy laws in Australia. This email is also subject to copyright. If you are not the intended recipient, you must not read, print, store, copy, forward or use this email for any reason, in accordance with privacy and copyright laws. If you have received this email in error, please notify the sender by return email, and delete this email from your inbox. __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] Re: Tamarin, Adobe open source the Flash player ?
I think that Gordon stated that you *will* still need the Flash Player plugin... the Flash-specific classes (like Sprite) will still live there. J -Original Message-From: Bjorn Schultheiss [mailto:[EMAIL PROTECTED]Sent: Wednesday, 8 November 2006 11:14 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: Tamarin, Adobe open source the Flash player ? Does this mean in the future there will be no need for the Firefox Flash Plugin? Regards, Bjorn Schultheiss Senior Flash Developer QDC Technologies From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David MendelsSent: Wednesday, 8 November 2006 9:19 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: Tamarin, Adobe open source the Flash player ? Hello,"Dorkie dork" wrote "What it means is that the Browser (mozilla in thiscase) will be able to use ActionScript 3 to manipulate the dom inaddition to existing _javascript_"This is incorrect.What it means is that the next generation of _javascript_ will be poweredby the Tamarin VM and that "_javascript_" and "ActionScript" will convergeinto a single implementation used by both the Flash Player and theFirefox browser/SpiderMonkey.-David-Original Message- This email and any files transmitted with it may be confidential and are intended solely for the use of the individual or entity to whom they are addressed. This email may contain personal information of individuals, and be subject to Commonwealth and/or State privacy laws in Australia. This email is also subject to copyright. If you are not the intended recipient, you must not read, print, store, copy, forward or use this email for any reason, in accordance with privacy and copyright laws. If you have received this email in error, please notify the sender by return email, and delete this email from your inbox. __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] Distortion Effects
Thank you. This roXXors! I can see I'm gonna have to find a way to use it now ... Cheers John -Original Message-From: Alex Uhlmann [mailto:[EMAIL PROTECTED]Sent: Saturday, 4 November 2006 1:57 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Distortion Effects Here's something for ya: http://weblogs.macromedia.com/auhlmann/archives/2006/11/download_distor.cfm ;) Alex Alex Uhlmann Consultant (Rich Internet Applications)Adobe ConsultingWestpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 6969m: +44 (0) 7917 428 951[EMAIL PROTECTED]http://weblogs.macromedia.com/auhlmann This email and any files transmitted with it may be confidential and are intended solely for the use of the individual or entity to whom they are addressed. This email may contain personal information of individuals, and be subject to Commonwealth and/or State privacy laws in Australia. This email is also subject to copyright. If you are not the intended recipient, you must not read, print, store, copy, forward or use this email for any reason, in accordance with privacy and copyright laws. If you have received this email in error, please notify the sender by return email, and delete this email from your inbox. __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
RE: [flexcoders] Flex2 Docs font in Mac
I'm guessing that the PDFs look ok because the fonts are embedded. Could be that help files don't have the necessary font embedded and that it's a non-standard Mac font? Or it could be a (Windows) TrueType versus (Mac) TrueType issue? Cheers John -Original Message- From: Bjorn Schultheiss [mailto:[EMAIL PROTECTED] Sent: Monday, 6 November 2006 2:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex2 Docs font in Mac Hey, When viewing the help docs in FB2 Beta for Mac, the small font used for the code examples renders terrible. Anyway to manually change this on the Mac Regards, Bjorn Schultheiss -- 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 This email and any files transmitted with it may be confidential and are intended solely for the use of the individual or entity to whom they are addressed. This email may contain personal information of individuals, and be subject to Commonwealth and/or State privacy laws in Australia. This email is also subject to copyright. If you are not the intended recipient, you must not read, print, store, copy, forward or use this email for any reason, in accordance with privacy and copyright laws. If you have received this email in error, please notify the sender by return email, and delete this email from your inbox. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Datagrid Style issues
I still haven't found solutions to the following problems, so I thought I'd ask again: 1. Is there an equivalent of colspan for datagrids? Do I need to play with headerRenderer perhaps? I just want to place a heading sitting over two others. Something that looks like this: - | | | Business| | Name | Value | Amount | Percent | - | John | 4.5 | 32.55 |20.5| I'd like Business sitting over the Amount and Percent columns. 2. Is there a way to draw (thicker) vertical lines between two columns. In the diagram above that would mean a thicker separator line between say, the Value and Amount columns. I noticed a function drawVerticalLine() in the help files, but I'm not ssure how to use it. Any examples would be greatly appreciated. Cheers John -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Equivalent of colspan for datagrid?
Thanks, interesting... I'm not sure it solves my problem though. John -Original Message-From: Douglas Knudsen [mailto:[EMAIL PROTECTED]Sent: Thursday, 19 October 2006 12:48 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Equivalent of colspan for datagrid?http://www.cynergysystems.com/blogs/page/andrewtrice?entry=changing_the_header_separator_onjust ran across this today, could help. DK On 10/18/06, John Mazzocchi [EMAIL PROTECTED] wrote: Hiactually I have two questions:1. Is there an equivalent of colspan for datagrids? Do I need to play with headerRenderer perhaps? I just want to place a heading sitting over two others.2. Is there a way to draw (thicker) vertical lines between two columns. I noticed a function drawVerticalLine() in the help files, but I'm not ssure how to use it. Any examples would be greatly appreciated. CheersJohn--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* Your email settings:Individual Email | Traditional* To change settings online go to: http://groups.yahoo.com/group/flexcoders/join(Yahoo! ID required)* To change settings via email:mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/-- Douglas Knudsenhttp://www.cubicleman.comthis is my signature, like 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Equivalent of colspan for datagrid?
Hi actually I have two questions: 1. Is there an equivalent of colspan for datagrids? Do I need to play with headerRenderer perhaps? I just want to place a heading sitting over two others. 2. Is there a way to draw (thicker) vertical lines between two columns. I noticed a function drawVerticalLine() in the help files, but I'm not ssure how to use it. Any examples would be greatly appreciated. Cheers John -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Data binding issue
Has anyone had this warning come up? What did you do about it? Data binding will not be able to detect changes when using square bracket operator. For Array, please use ArrayCollection.getItemAt() instead. I don't have an Array but an XMLList(Collection) ... in my MXML, I tried replacing [EMAIL PROTECTED] AND data.image[0] WITH data.image.getItemAt(0)[EMAIL PROTECTED] AND data.image.getItemAt(0) No errors, but it doesn't work either. Cheers John -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] custom RichTextEditor - Half Solved
Well, I solved my first problem, still stuck on the second ... I've reset fontFamilyArray to [Large, Small, Fixed] ... I don't want the default set to show up. This works (kinda) except that Verdana still shows up until you select something. Then it disappears forever. I've tried initialising e.g. myRTE.fontFamilyCombo.selectedItem = 0; and also myRTE.fontFamilyCombo.text = ; but nothing seems to work. Cheers John P.S. Solution is myRTE.alignButtons.removeChildAt(3); -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] custom RichTextEditor ... fontFamilyCombo, alignButtons
Well, I've been working on a custom RichTextEditor, and have come across a couple of issues ... 1. I'd like to remove the full justification alignButton, but it seems that you can only remove all of them at once. 2. I've reset fontFamilyArray to [Large, Small, Fixed] ... I don't want the default set to show up. This works (kinda) except that Verdana still shows up until you select something. Then it disappears forever. I've tried initialising e.g. myRTE.fontFamilyCombo.selectedItem = 0; and also myRTE.fontFamilyCombo.text = ; but nothing seems to work. Any clues? I mean, other than, removing the subcontrols and implementing my own to replace them completely. Cheers John Mazzocchi -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] custom RichTextEditor - SOLVED
Finally solved it ... public function crippleMe():void { myRTE.toolbar.removeChild(myRTE.colorPicker); myRTE.toolbar.removeChild(myRTE.linkTextInput); myRTE.toolbar.removeChild(myRTE.bulletButton); myRTE.alignButtons.removeChildAt(3); myRTE.toolbar.removeChild(myRTE.fontSizeCombo); // myRTE.fontFamilyCombo.dataProvider = [Large, Small, Fixed]; this is an alternative to the line immediately below // myRTE.fontFamilyArray = [Large, Small, Fixed]; . it doesn't work here myRTE.fontFamilyCombo.width = 100; myRTE.fontFamilyCombo.selectedIndex = 0; } public function crippleMeMore():void{ myRTE.fontFamilyArray = [Large, Small, Fixed]; // but it does here } mx:RichTextEditor id=myRTE width=240 height=228 headerHeight=9 roundedBottomCorners=true initialize=crippleMe() creationComplete=crippleMeMore() / Cheers John -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: XML editor (contd)
Tim, hi. Ta. Now just to figure out how to do that ... :) J -Original Message- From: Tim Hoff [mailto:[EMAIL PROTECTED] Sent: Friday, 25 August 2006 3:22 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: XML editor (contd) Hi John, Sure, the data object contains all of the individual column elements. You would have to conditionally change states or control types by checking the dataField name and binding the appropriate field. -TH --- In flexcoders@yahoogroups.com, John Mazzocchi [EMAIL PROTECTED] wrote: Never mind about my 2nd question, I've solved it :) Buty I'd still like an answer to my first one ... Can each row of a DataGrid have a separate and different custom ItemRenderer/Editor? Ta. J -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] XML editor (contd)
Never mind about my 2nd question, I've solved it :) Buty I'd still like an answer to my first one ... Can each row of a DataGrid have a separate and different custom ItemRenderer/Editor? Ta. J -- 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] writing an XML editor ... or trying to
Ok, I'm trying to write an XML editor to edit stuff like this ... public var myXML:XML = document key=fish label_1=p1 label_2=p3 p4 graphics valign=middle image alignment=left filename=dpi/ /graphics line width=3/ text alignment=centred font=A charheight=2 emphasis=bFishing/text line width=3/ text/ text alignment=centred font=A charheight=2 charwidth=2field key=knob/ twiddle/text document; - Now, I like the idea of using a DataGrid (the alternating colour rows make the XML easy to compartmentlise and read, so that you're editing each one as a separate entity. My first question is, can each row of a DataGrid have a separate and different custom ItemRenderer/Editor? My second question is with the following component, which is the custom itemRenderer that I've been working on ... (The text field is currently set to debugging values, rather than the final string it will hold.) mx:Component id=textEditorRenderer mx:VBox width=100% height=100% horizontalAlign=center mx:TextInput id=textEdCustRend width=100% height=100% fontStyle={([EMAIL PROTECTED] == 'i') ? 'italic' : 'normal'} fontWeight={([EMAIL PROTECTED] == 'b') ? 'bold' : 'normal'} textDecoration={([EMAIL PROTECTED] == 'u') ? 'underline' : 'none'} textAlign={([EMAIL PROTECTED] == 'left') ? 'left' : (([EMAIL PROTECTED] == 'centred') ? 'center' : 'right')} text=[EMAIL PROTECTED], [EMAIL PROTECTED]/ /mx:VBox /mx:Component Now while the ternary operators used for fontStyle, fontWeight, textDecoration, and textAlign work fine - the following ones in the scaleX and scaleY fields don't work when @charwidth or @charheight is empty. scaleX={([EMAIL PROTECTED] == '') ? Number(1.0) : Number([EMAIL PROTECTED])} scaleY={([EMAIL PROTECTED] == '') ? Number(1.0) : Number([EMAIL PROTECTED])} Any clues? Ta. John -- 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] Can Flex handle mixed-content XML?
Thanks. -Original Message-From: Michael Schmalle [mailto:[EMAIL PROTECTED]Sent: Monday, 21 August 2006 1:02 PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Can Flex handle mixed-content XML?Hi,That is an XMLList(), I don't know what you are doing but, you could load it asvar list:XMLList = new XMLList('nodeI like to drink beer everyfield key="frequency"/ day(s)./node'); Peace, Mike On 8/20/06, John Mazzocchi [EMAIL PROTECTED] wrote: Just a quickie here ... can Flex handle mixed-content XML? As in where we have something like ...nodeI like to drink beer everyfield key="frequency"/ day(s)./nodeIt doesn't seem to ... any clues?Thanks for any help.John-- What goes up, does come down. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Can Flex handle mixed-content XML?
Just a quickie here ... can Flex handle mixed-content XML? As in where we have something like ... nodeI like to drink beer everyfield key=frequency/ day(s)./node It doesn't seem to ... any clues? Thanks for any help. John -- 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] Flex doesn't like well-formed XML
This chokes Flex ... mx:XML id=blah document key=whatever line width=3/ text alignment=middle font=ARecreation/text line width=3/ text/ text alignment=left font=Afield key=credits/ Licence/text /document /mx:XML while this doesn't ... public var blah:XML = document key=whatever line width=3/ text alignment=middle font=ARecreation/text line width=3/ text/ text alignment=left font=Afield key=credits/ Licence/text /document; Can anyone tell me why? Thanks John -- 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] Tree-to-tree drag drop
Title: Re: [flexcoders] Tree-to-tree drag & drop Thanks, in the meantime I've written some drag-n-drop functions (not that they work completely yet ;) John -Original Message-From: Joan Tan [mailto:[EMAIL PROTECTED]Sent: Friday, 11 August 2006 6:55 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Tree-to-tree drag dropThis should work. I believe it is a bug and I will log it in our internal database.JoanOn 8/9/06 10:47 PM, "John Mazzocchi" [EMAIL PROTECTED] wrote: This seems like such a simple thing, and yet ...I'd like to be able to drag drop nodes between 2 trees ... both to copy and to move.Now both trees have:dragEnabled="true" dropEnabled="true".Scenario (a): they both have dragMoveEnabled="true" ... so while they *will* MOVE nodes between each other, they *won't* COPY them when holding down CTRL-key (as they're supposed to).Scenario (b): they both have dragMoveEnabled="false" ... by default, the nodes should COPY across, but it doesn't allow this, as if dropEnabled were *false*.In short, you can't COPY nodes between them ... do I really need to write my own drag drop functions? :/ThanksJohn __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Re: Tree-to-tree drag drop
Kinda, yeah. Thanks. I'll keep working on my DND methods. John -Original Message- From: Michael Montagna [mailto:[EMAIL PROTECTED] Sent: Friday, 11 August 2006 3:20 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Tree-to-tree drag drop COPY operations arent supported in the Tree by default because the framework cant guarantee deep copies of your objects. You'll need to implement your own COPY logic in the DND methods (MOVE can stay the same) including your own object copy. HTH, -Michael On 8/9/06 10:47 PM, John Mazzocchi [EMAIL PROTECTED] wrote: This seems like such a simple thing, and yet ... I'd like to be able to drag drop nodes between 2 trees ... both to copy and to move. Now both trees have: dragEnabled=true dropEnabled=true. Scenario (a): they both have dragMoveEnabled=true ... so while they *will* MOVE nodes between each other, they *won't* COPY them when holding down CTRL-key (as they're supposed to). Scenario (b): they both have dragMoveEnabled=false ... by default, the nodes should COPY across, but it doesn't allow this, as if dropEnabled were *false*. In short, you can't COPY nodes between them ... do I really need to write my own drag drop functions? :/ Thanks John -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Tree-to-tree drag drop
This seems like such a simple thing, and yet ... I'd like to be able to drag drop nodes between 2 trees ... both to copy and to move. Now both trees have: dragEnabled=true dropEnabled=true. Scenario (a): they both have dragMoveEnabled=true ... so while they *will* MOVE nodes between each other, they *won't* COPY them when holding down CTRL-key (as they're supposed to). Scenario (b): they both have dragMoveEnabled=false ... by default, the nodes should COPY across, but it doesn't allow this, as if dropEnabled were *false*. In short, you can't COPY nodes between them ... do I really need to write my own drag drop functions? :/ Thanks John -- 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] Can a Tree node/leaf have a customItemRenderer?
The subject says it all - can a tree node, especially a leaf, have a customItemRenderer? What I'd like to do is have a tree for navigating an xml structure and then populate leaves (say) by using a combobox or some other renderer ... if anyone's ever used the Magnolia CMS ... you'll understand the paradigm that I'm considering (even though Magnolia doesn't use ComboBoxes, per se). Cheers John -- 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: RadioButtons as customItemRenderers/Editors in DataGrids
Tim, thanks ... yeah I did discover that. My RadioButtons have: groupName="{(data.parent())[EMAIL PROTECTED]" My only issue now is that there are *multiple* RadioButtonGroups in my app, and I need to set the id of each one from the XML I've read in. It seems that the id can only be of type text? I'd like it to be of the form as above, i.e. id="{(data.parent())[EMAIL PROTECTED]" , but it doesn't seem to work. Cheers J -Original Message-From: Tim Hoff [mailto:[EMAIL PROTECTED]Sent: Saturday, 5 August 2006 8:06 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Re: RadioButtons as customItemRenderers/Editors in DataGrids Hi John, To get the RadioButtons inside an itemRenderer to work together, you need to associate them with a common RadioButtonGroup. Place this tag right above theDataGrid in your application: mx:RadioButtonGroup id="myRadioButtonGroup"/ Then,use code like this inyouritemRenderer: mx:RadioButton id="myRadioButton" group="{parentApplication.myRadioButtonGroup}"/ -TH--- In flexcoders@yahoogroups.com, "John Mazzocchi" [EMAIL PROTECTED] wrote: The subject line pretty much says it all ... has anyone had any experience with this? The problem being that the RadioButtons, each one created by a customItemEditor/Renderer and appearing one per row in a DataGrid, seem to act independently of each other ... Ta. John __._,_.___ -- 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] RadioButtons as customItemRenderers/Editors in DataGrids
The subject line pretty much says it all ... has anyone had any experience with this? The problem being that the RadioButtons, each one created by a customItemEditor/Renderer and appearing one per row in a DataGrid, seem to act independently of each other ... Ta. John -- 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] Populating Tree from XML thru HTTPService - agony
Man, I've spent hours on this ... and the documentation seems no help. I'm trying to populate a Tree from the following XML file: ?xml version=1.0? node label=Mail date=27-06-2006 node label=Inbox date=28-06-2006 isBranch=true/ node label=Personal Folder date=29-06-2006 node label=Demo date=30-06-2006 filetype=msword_file/ node label=Personal date=31-06-2006 filetype=msword_file/ node label=Saved Mail date=01-07-2006 filetype=msword_file/ node label=Spam date=02-07-2006 filetype=msword_file/ /node node label=Business Folder date=29-06-2006 node label=Instructions date=30-06-2006 filetype=pdf_file/ node label=Personnel Database date=31-06-2006 filetype=msaccess_file/ node label=Quarterly Spreadsheet date=01-07-2006 filetype=msexcel_file/ node label=Company Logo date=02-07-2006 filetype=jpg_file/ /node node label=Calendar date=03-07-2006/ node label=Sent date=04-07-2006/ node label=Trash date=05-07-2006/ /node can anyone explain why the following code works (pretty much): mx:XML source=treexmldatastruct.xml id=myMenuStruct format=e4x/ mx:XMLListCollection id=myMenuStructListColl source={myMenuStruct.*}/ mx:Tree id=firstList showRoot=false dataProvider={myMenuStructListColl} labelField=@label / while the following does *not*: mx:HTTPService id=treeModel url=treexmldatastruct.xml resultFormat=e4x showBusyCursor=true fault=mx.controls.Alert.show('Could not get xml Info!!!') / also using: result=firstList.dataProvider=treeModel.lastResult.* in the HTTPService doesn't help, instead of the decalring the dataProvider in the Tree doesn't seem to change anything. In fact, I'm kinda fuzzy about the whole lastResult / event.result methods anyway ... any pointers here? Or best practices? Is using URLLoader instead an option? Thanks John -- 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] IconFunction issue
Ok, here goes: I'm trying to implement a Windows File Explorer-like interface to a data repository. For the time being I'm assuming that I receive XML from some API. So I'm using a static XML file for now, it's called treexmldatastruct.xml. The problem I'm having is this ... I'd like the icons in my explorer interface (which is implemented as a Tree) to be indicative of the filetype. I've created icon files and written an IconFunction to do this and it works fine. Except that branches of the Tree also wind up having their icons changed ... in spite of the fact that I've defined a folderOpenIcon and a folderClosedIcon. The docs claim that an IconFunction can't override these, but in fact it does seem to be. Here's the relevant code: mx:Script ![CDATA[ [Embed(icon_jpeg.png)] public var jpegSymbol:Class; [Embed(icon_gif.png)] public var gifSymbol:Class; // etc, etc ... more image embeds here private function myIconFunction(item:Object):Class { var filetype:String = [EMAIL PROTECTED]; switch (filetype) { case jpg: return jpegSymbol; break; case gif: return gifSymbol; break; // etc, etc ... more cases here case normal: return normalSymbol; break; default: return normalSymbol; } return normalSymbol; } ]] /mx:Script mx:XML source=treexmldatastruct.xml id=myMenuStruct format=e4x/ mx:Tree id=firstList height=300 width=230 x=20 y=70 showRoot=true dataProvider={myMenuStruct} labelField=@label dragEnabled=true dropEnabled=true dragMoveEnabled=true allowMultipleSelection=true folderOpenIcon=@Embed(source='icon_open.png') folderClosedIcon=@Embed(source='icon_closed.png') iconFunction=myIconFunction/ The XML file treexmldatastruct.xml is: ?xml version=1.0? node label=Mail date=27-06-2006 node label=Inbox date=28-06-2006/ node label=Personal Folder date=29-06-2006 filetype= node label=Demo date=30-06-2006 filetype=msword/ node label=Personal date=31-06-2006 filetype=msword/ node label=Saved Mail date=01-07-2006 filetype=msword/ node label=Spam date=02-07-2006 filetype=msword/ /node node label=Business Folder date=29-06-2006 node label=Instructions date=30-06-2006 filetype=pdf/ node label=Personnel Database date=31-06-2006 filetype=msaccess/ node label=Quarterly Spreadsheet date=01-07-2006 filetype=msexcel/ node label=Company Logo date=02-07-2006 filetype=jpg/ /node node label=Calendar date=03-07-2006/ node label=Sent date=04-07-2006/ node label=Trash date=05-07-2006/ /node Thanks for any help. Cheers John This email and any files transmitted with it may be confidential and are intended solely for the use of the individual or entity to whom they are addressed. This email may contain personal information of individuals, and be subject to Commonwealth and/or State privacy laws in Australia. This email is also subject to copyright. If you are not the intended recipient, you must not read, print, store, copy, forward or use this email for any reason, in accordance with privacy and copyright laws. If you have received this email in error, please notify the sender by return email, and delete this email from your inbox. -- 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: Populating ComboBox from Model/XML
Thank you. Much appreciated. John -Original Message- From: ericonanson [mailto:[EMAIL PROTECTED] Sent: Saturday, 22 July 2006 12:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Populating ComboBox from Model/XML Hi, here is something that works, if you know cold fusion then create a cfc that has the data you want and call it from a webservice, other wise populate an xml file and call that. Step one; Create xml file - name it mydata.xml ?xml version=1.0 encoding=UTF-8? obj item labelAL/label dataMontgomery/data /item item labelAK/label dataJuneau/data /item item labelAR/label dataLittle Rock/data /item /obj Step two; copy and paste this code into flex builder ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:XML id=xmlData source=myData.xml format=e4x / mx:Panel layout=absolute title=States left=5 top=5 bottom=5 right=5 mx:ComboBox dataProvider={xmlData.item.label} left=5 top=20/ mx:ComboBox dataProvider={xmlData.item.data} left=150 top=20 / /mx:Panel /mx:Application The file myData.xml is used to populate the combo boxes From one newbie to another. Hope this helps Eric --- In flexcoders@yahoogroups.com, John Mazzocchi [EMAIL PROTECTED] wrote: Hi, newbie question here ... just learning. I'm using Flex 2. There seem to be numerous errors and typos in the Adobe Flex Help files/PDFs and I'm hitting a snag here ... What I'd like to do, to begin with, is to populate a ComboBox from an external XML file. The section in the help files called Populating a ComboBox control using variables and models seems pertinent, but the second part of example doesn't work. The relevant code is this ... mx:Model id=myDP obj item label=AL data=Montgomery/ item labelAK/label dataJuneau/data /item item labelAR/label dataLittle Rock/data /item /obj /mx:Model mx:ArrayCollection id=stateAC source={myDP.obj.item}/ mx:ComboBox dataProvider={stateAC}/ Should I be using XML or XMLList instead? Later I'd like to have the dataProvider be from an external source (HTTPService or WebService), but I can't even get this simpler code to work. Any help appreciated. Thanks. This email and any files transmitted with it may be confidential and are intended solely for the use of the individual or entity to whom they are addressed. This email may contain personal information of individuals, and be subject to Commonwealth and/or State privacy laws in Australia. This email is also subject to copyright. If you are not the intended recipient, you must not read, print, store, copy, forward or use this email for any reason, in accordance with privacy and copyright laws. If you have received this email in error, please notify the sender by return email, and delete this email from your inbox. -- 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 ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/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] Populating ComboBox from Model/XML
Hi, newbie question here ... just learning. I'm using Flex 2. There seem to be numerous errors and typos in the Adobe Flex Help files/PDFs and I'm hitting a snag here ... What I'd like to do, to begin with, is to populate a ComboBox from an external XML file. The section in the help files called Populating a ComboBox control using variables and models seems pertinent, but the second part of example doesn't work. The relevant code is this ... mx:Model id=myDP obj item label=AL data=Montgomery/ item labelAK/label dataJuneau/data /item item labelAR/label dataLittle Rock/data /item /obj /mx:Model mx:ArrayCollection id=stateAC source={myDP.obj.item}/ mx:ComboBox dataProvider={stateAC}/ Should I be using XML or XMLList instead? Later I'd like to have the dataProvider be from an external source (HTTPService or WebService), but I can't even get this simpler code to work. Any help appreciated. Thanks. This email and any files transmitted with it may be confidential and are intended solely for the use of the individual or entity to whom they are addressed. This email may contain personal information of individuals, and be subject to Commonwealth and/or State privacy laws in Australia. This email is also subject to copyright. If you are not the intended recipient, you must not read, print, store, copy, forward or use this email for any reason, in accordance with privacy and copyright laws. If you have received this email in error, please notify the sender by return email, and delete this email from your inbox. Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/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/