Re: [flexcoders] E4X: Parsing XML with xml-stylesheet PI
Interesting! I didn't know about xml:id. It appears that for processors that support it, the xml namespace is bound implicitly to http://www.w3.org/XML/1998/namespace, and id is an attribute scoped to this namespace. AS3 seems to support this. Hurray! Here are some ways you could extract the id attribute. This shows how you can use namespaced attributes as well. trace([EMAIL PROTECTED]); //null trace([EMAIL PROTECTED]::id); //wtf namespace xml=http://www.w3.org/XML/1998/namespace;; trace([EMAIL PROTECTED]::id); //wtf On 3/22/07, Claus Wahlers [EMAIL PROTECTED] wrote: var a:XMLList = new XMLList( '?xml-stylesheet href=my.css type=text/css?' + 'root xmlns=http://example.com/; xmlns:id=wtf /'); var b:XML = a[1]; trace(b.namespaceDeclarations()); //wtf trace(b.namespace()); //http://example.com/ namespaceDeclarations() gets the namespaces the node defines, and namespace() gets the namespace the node is in. You can see that the processing instruction has no impact on whether this works. Shouldn't b.namespaceDeclarations() also include the default namespace declaration (xmlns=http://example.com/;), or does that get stripped out because it's already accessible via b.namespace()? XML.ignoreProcessingInstructions = false; var a:XML = new XML( '?xml-stylesheet href=my.css type=text/css?' + 'root xmlns=http://example.com/; xml:id=wtf /'); trace(a.namespaceDeclarations()); When i use XML, namespaceDeclarations() contains the default declaration. When i use XMLList as in the example above, it doesn't. Cheers, Claus. -- claus wahlers côdeazur brasil http://codeazur.com.br/ http://wahlers.com.br/claus/blog/ -- 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] Flex 2 Diagramming Component Released
Hi, Just want to announce that today, yWorks http://www.yworks.com/ has officially released a beta version of a diagramming component http://www.yworks.com/en/products_yfilesflex_about.htm for flex 2 applications. The mxml component comes with a comprehensive graph drawing ActionScript 3 library. With the component and the accompanying API, it's easy to integrate sophisticated diagramming functionality into your web application. Check out the live demo applications on the yWorks website http://www.yworks.com/en/products_yfilesflex_about.htm . Michael
[flexcoders] Re: Module issue
Alex, thank you once again. I know the swc is a sort of zip file, i've opened it and i've read the catalog.xml. Modules and moduleLoader tag were there. I've changed the order of libraries, putting framework.swc at first position, before fds swc. I've also put the source attachement in the right way. Everytime the same problem! Are you sure that the moduleloader component is compatible with project that are not recognizes as flex project by FlexBuilder? I've created this project as fds project, and eclipse read it as a j2ee project. I can't explain the reason that allow me to load modules within a classic flex project and don't allow me to do the same thing with fds or j2ee project. Thank you very very much Fabio --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: The framework.swc is really a zip file. In it is a catalog.xml that lists the classes known to it. Make sure ModuleLoader is in there. It might be an order problem too. Make sure the framework.swc is going to be found before the FDS swcs. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of fabio_sebastiano Sent: Thursday, March 22, 2007 1:02 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Module issue Hi, thanks for the reply. I checked the lib-path and i found that it's the right one, the one that flexBuilder automatically put when i create a project. I've also tried to change the path and point the 2.0.1 one, recompile the application and deploy it to the server...but it still give the same error. I really don't know what to do, and the others flex projects still works...this thing is making me loose a lot of time!!! Thanks, Fabio --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: Check your lib-path to make sure the framework.swc is the right one. If you end up with a 2.0 instead of 2.0.1 it won't know about moduleloader. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of fabio_sebastiano Sent: Wednesday, March 21, 2007 7:50 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Module issue Hi everybody, i'm facing a real funny problem with modules and moduleLoader, i hope it's not my fault anyway... If i create a normal flex project with fBuilder, i'm able to use modules in a lot of different ways (as mxml, as as in a function etc..)... but if i try to use them in my fds application (created with fds eclipse plugin) i can't use modules. The compile-time error message is always the same: Could not resolve mx:ModuleLoader to a component implementation I tried a lot of solutions, paying attention to import all the classes etc...but nothing change. I will appreciate everykind of help. TIA Fabio
RE: [flexcoders] ChangeWatcher question
Shaun, I had not considered it but it certainly looks a far better approach than what I was trying. I guess there are too many options to consider for a newbie flex user (and not enough time to study them all). Thanks, your help is appreciated! Peter _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of shaun etherton Sent: Friday, March 23, 2007 2:40 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] ChangeWatcher question Peter wrote: Perhaps if I am a bit less verbose. 1. is having a few thousand watch listeners active on a few hundred object realistic? Have you considered using the PropertyChangeEvent? regards, shaun
[flexcoders] DataGrid header paddingTop
Hi All, In my flex screen, there is a dataGrid with rendered headers. To make my header looking good I have given paddingTop=-2... but If I specify paddingTop=-2, vertical alignment of my Data/other rows shifts towards top in other words, which is not vertically in middle.. How can I make the paddingTop=0 for all rows except header? Please do let me knw the solution... Thanks in Advance Sanjay Sharma
[flexcoders] Line inbetween comboItems
Hi All, I have a combo box in my application and there a lots of items all are related to 4-5 categories.. Wht I wanted to do here I want a seperator sort of line once a category Items are finished I have tried it but didnt get success. Pls suggest, How can i do the same? Thanks in Advance, Sanjay Sharma
Re: [flexcoders] Re: Load Tree Icon at Runtime
On Thursday 22 Mar 2007, Shaun wrote: Thanks for the suggestion Tom. Quick question: Would that cause the image to be cached twice by the browser - once in my website, and once in my flex app when I load it via runtime css. This is what I'm actually trying to avoid. I would *expect* the browser hosting the image would cache it when it saw it on the HTML web site, and when it later saw it again in a SWF stylesheet's url() reference just serve it up from the cache. -- Tom Chiverton Helping to enormously revolutionize web-enabled m-commerce On: http://thefalken.livejournal.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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] States and transitions
Sure, this is possible, Im doing it right now you just have to use Sequence in your transition here is mine mx:Transition fromState={fromLobbyState} toState=gameLayout mx:Sequence id=gameTransition duration=300 effectStart=trace('\n\n GANGE STATE: from lobbyLayout to gameLayout \n\n') mx:Pause duration=5000 effectStart=trace('PAUSE 1')/ mx:Parallel id=lobbyOut effectStart=trace('parallel 1') mx:AnimateProperty target={titleBar} property=alpha fromValue=1 toValue=0 startDelay={initDelay}/ mx:AnimateProperty target={asistantBar} property=alpha fromValue=1 toValue=0 startDelay={initDelay + 1 * animInterval}/ /mx:Parallel mx:Pause duration=5000 effectStart=trace('PAUSE 1')/ mx:Parallel effectStart=trace('parallel 2') mx:RemoveChildAction target={titleBar}/ mx:RemoveChildAction target={asistantBar}/ /mx:Parallel mx:Parallel duration=300 effectStart=trace('parallel 3') effectEnd=gameContent.loadGame() mx:AddChildAction target={titleBar2} startDelay={initDelay}/ mx:AnimateProperty target={titleBar2} property=alpha fromValue=0 toValue=1 startDelay={initDelay}/ mx:AddChildAction target={asistantBar2} startDelay={initDelay + 1 * animInterval}/ mx:AnimateProperty target={asistantBar2} property=alpha fromValue=0 toValue=1 startDelay={initDelay + 1 * animInterval}/ /mx:Parallel /mx:Sequence /mx:Transition Hope this helps... BUT I HAVE ANOTHER PROBLEM as you said transition are played after changing state, because on screen all seems ok, if I add at the start 5 sec PAUSE, it just waits 5 sec and then all is playing. But Im listening at FlexEvent.ADD, and FlexEvent.REMOVEof this components which are changing...and they dispatch ADD + REMOVE before transition (as if state was done) and there after PAUSE they dispatch once more REMOVE event (just now component goes out of screen). So visually all is correct, but I have to do something on ADD, REMOVE events, and this is bugged or Im missing something... Can someone help me? -- .:Franto:. http://blog.franto.com http://www.flashcoders.sk http://www.carcassonne.sk On 15/03/07, Troy Gilbert [EMAIL PROTECTED] wrote: I'm dabbling with states and transitions for the first time, so pardon the inexperienced question... My UI is logically divided into pages like a traditional wizard interface. Visually, I'd like my pages to slide in and out of view as I transition to them. Specifically, you can think of it like all of the pages are in a horizontal scroll box, so when I go from page 1 to page 3 I want to scroll page 1 to the left, page 2 to the left and scroll page 3 into view from the right. And then if I want to go from page 3 back to page 1, I want to do the reverse: scroll page 3 out of view to the right, scroll page 2 from left to right into and outof the view, and finally scroll page 1 from the left into the view. This would all be continously of course. The big thing that's tripping me up is the order in which state changes occur. The impression I'm getting is that the actions for a state (like AddChild, RemoveChild, SetPropertyValue) are executed *then* the transition is applied. The problem is that I can't figure out how to apply transition effects to my outgoing objects. For example, consider two pages, #1 and #2. My base state has both pages hidden. I then have two states each with one of the pages visible. If I have a transition from state 1 to state 2, page #1 is hidden, then the transition plays. But I want the transition to include page 1 (sliding it out of view). My question: is it possible to execute a transition on the current state*before* the new state becomes active, then play a transition on the new state... and better yet, is it possible to apply the settings for the new state, perform the transitions, then remove the previous states changes? Part of me thinks I really need some generalized scroller control to contain my pages, but my gut tells me that states/transitions/effects should give me all the tools I need to accomplish this. And since I only have 5-6 states total, I'm cool with having to hardcode a certain number of transitions (left to right, right to left, etc.). Thanks, Troy.
[flexcoders] Re: Module issue
Hi, i'm going forward with this problem...today i downloaded flexLib components and i've tried to implements them in my webapp. My editor recognize them and suggest me all the properties...but when i run the app, i've got the same error as with moduleLoader. If i use the lib within another project...it works fine Help me --- In flexcoders@yahoogroups.com, fabio_sebastiano [EMAIL PROTECTED] wrote: Alex, thank you once again. I know the swc is a sort of zip file, i've opened it and i've read the catalog.xml. Modules and moduleLoader tag were there. I've changed the order of libraries, putting framework.swc at first position, before fds swc. I've also put the source attachement in the right way. Everytime the same problem! Are you sure that the moduleloader component is compatible with project that are not recognizes as flex project by FlexBuilder? I've created this project as fds project, and eclipse read it as a j2ee project. I can't explain the reason that allow me to load modules within a classic flex project and don't allow me to do the same thing with fds or j2ee project. Thank you very very much Fabio --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: The framework.swc is really a zip file. In it is a catalog.xml that lists the classes known to it. Make sure ModuleLoader is in there. It might be an order problem too. Make sure the framework.swc is going to be found before the FDS swcs. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of fabio_sebastiano Sent: Thursday, March 22, 2007 1:02 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Module issue Hi, thanks for the reply. I checked the lib-path and i found that it's the right one, the one that flexBuilder automatically put when i create a project. I've also tried to change the path and point the 2.0.1 one, recompile the application and deploy it to the server...but it still give the same error. I really don't know what to do, and the others flex projects still works...this thing is making me loose a lot of time!!! Thanks, Fabio --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: Check your lib-path to make sure the framework.swc is the right one. If you end up with a 2.0 instead of 2.0.1 it won't know about moduleloader. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of fabio_sebastiano Sent: Wednesday, March 21, 2007 7:50 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Module issue Hi everybody, i'm facing a real funny problem with modules and moduleLoader, i hope it's not my fault anyway... If i create a normal flex project with fBuilder, i'm able to use modules in a lot of different ways (as mxml, as as in a function etc..)... but if i try to use them in my fds application (created with fds eclipse plugin) i can't use modules. The compile-time error message is always the same: Could not resolve mx:ModuleLoader to a component implementation I tried a lot of solutions, paying attention to import all the classes etc...but nothing change. I will appreciate everykind of help. TIA Fabio
Re: [flexcoders] Re: Data Binding Issue
On Friday 23 Mar 2007, madhukiranm wrote: Thanks for the replyI tried the one you suggested, but binding doesn't seem to work. Guess you'll have to post your code then :-) -- Tom Chiverton Helping to administratively entrench interactive convergence On: http://thefalken.livejournal.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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Fancy floating hint
I quess that it is just a skinned ToolTip control. 2007/3/23, Mikhail Shevchuk [EMAIL PROTECTED]: How can I embed a hint like in validation demo here http://www.adobe.com/devnet/flex/quickstart/validating_data/ in my application? -- A vivid and creative mind characterizes you. -- A vivid and creative mind characterizes you.
Re: [flexcoders] Re: Yahoo map API
Im trying using YahooMap.swc, but I got internalbuild error: SeverityDescriptionResourceIn FolderLocationCreation TimeId 2unable to load SWC YahooMap.swcFastAndSimpleMarch 23, 2007 10:43:15 AM135449 I've browsed for SWC, so it should be ok. Does anyone know what is the problem? Im using Flex 2.0.1 Thanks Franto On 22 Mar 2007 08:36:42 -0700, ashifsayani [EMAIL PROTECTED] wrote: What's the error? One thing to check is to make sure you set private const SWFDOMID value to your actual swf file name Ashif --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, jd_lingwai [EMAIL PROTECTED] wrote: Hey, I've been working with the new yahoo API for AS3, but I'm getting an error when working with the Map Communication Kit. When I load the page on my server it never connects to the API and never loads. I have a developer key and using the correct domain Anyone else having similar problems??? JoSh -- .:Franto:. http://blog.franto.com http://www.flashcoders.sk http://www.carcassonne.sk
Re: [flexcoders] Re: Yahoo map API
ok, i know, it's just for Flex 1.5 :) On 23/03/07, franto [EMAIL PROTECTED] wrote: Im trying using YahooMap.swc, but I got internalbuild error: SeverityDescriptionResourceIn FolderLocationCreation TimeId 2unable to load SWC YahooMap.swcFastAndSimpleMarch 23, 2007 10:43:15 AM135449 I've browsed for SWC, so it should be ok. Does anyone know what is the problem? Im using Flex 2.0.1 Thanks Franto On 22 Mar 2007 08:36:42 -0700, ashifsayani [EMAIL PROTECTED] wrote: What's the error? One thing to check is to make sure you set private const SWFDOMID value to your actual swf file name Ashif --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, jd_lingwai [EMAIL PROTECTED] wrote: Hey, I've been working with the new yahoo API for AS3, but I'm getting an error when working with the Map Communication Kit. When I load the page on my server it never connects to the API and never loads. I have a developer key and using the correct domain Anyone else having similar problems??? JoSh -- .:Franto:. http://blog.franto.com http://www.flashcoders.sk http://www.carcassonne.sk -- .:Franto:. http://blog.franto.com http://www.flashcoders.sk http://www.carcassonne.sk
Re: [flexcoders] Re: Flex coldfusion simple question
Hi Clint, I tried to reply to your blog, but I never got the conformation e-mail. Thanks for the tutorial one this! I might be wrong, but on line 27 of the mxml file I think that it should say: mx:Label text={cfcResponse} width=100% /mx:Label Anyway, this is what I had to do for flex not too throw an error. It was saying it needed a closing tag. I was not able to get it to work in the end(the above is the only change that I made to the code) I get the errorCouldn't establish a connection to ColdFusion I have a screen shot of the error message here: http://johnbarrett.net/flex_error.jpg I am running ColdFusion 7.02 on the Mac. Any thoughts? Thanks, John - Original Message From: Clint Tredway [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, March 22, 2007 7:40:25 AM Subject: Re: [flexcoders] Re: Flex coldfusion simple question http://grumpee. instantspot. com/blog On 3/22/07, cardinalflexjeremy [EMAIL PROTECTED] net wrote: Are there any code examples or tutorials on this? That is, any samples using coldfusion (not webservices or httpRequest) to access CFCs? thanks. --- In [EMAIL PROTECTED] ups.com, Tom Chiverton tom.chiverton@ ... wrote: On Thursday 22 Mar 2007, cardinalflexjeremy wrote: If I want to make a flex app to tie to a Database, and I want to use Coldfusion components to access the Database stuff, and connect Flex and coldfusion, do I need FDS to use the coldfusion adapter pieces? No. You can use Flex's RemoteObject straight to a CFC, no FDS (now called LCDS btw) required. Please let me know if a company would require FDS in order to use coldfusion with flex? Again with the no :-) -- Tom Chiverton Helping to continually morph slick appliances On: http://thefalken. livejournal. 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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells. com. -- http://indeegrumpee .spaces.live. com/ !-- #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0;} #ygrp-tpmsgs{ font-family:Arial; clear:both;} #ygrp-vitnav{ padding-top:10px;font-family:Verdana;font-size:77%;margin:0;} #ygrp-vitnav a{ padding:0 1px;} #ygrp-actbar{ clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;} #ygrp-actbar .left{ float:left;white-space:nowrap;} .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana;font-size:77%;padding:15px 0;} #ygrp-ft{ font-family:verdana;font-size:77%;border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px;} #ygrp-vital{ background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;} #ygrp-vital #vithd{ font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;} #ygrp-vital ul{ padding:0;margin:2px 0;} #ygrp-vital ul li{ list-style-type:none;clear:both;border:1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;} #ygrp-vital ul li .cat{ font-weight:bold;} #ygrp-vital a { text-decoration:none;} #ygrp-vital a:hover{ text-decoration:underline;} #ygrp-sponsor #hd{ color:#999;font-size:77%;} #ygrp-sponsor #ov{ padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;} #ygrp-sponsor #ov ul{ padding:0 0 0 8px;margin:0;} #ygrp-sponsor #ov li{ list-style-type:square;padding:6px 0;font-size:77%;} #ygrp-sponsor #ov li a{ text-decoration:none;font-size:130%;} #ygrp-sponsor #nc { background-color:#eee;margin-bottom:20px;padding:0 8px;} #ygrp-sponsor .ad{ padding:8px 0;} #ygrp-sponsor .ad #hd1{
RE: [flexcoders] LiveCycle Data Services 2.5 - Using dynamically referenced queue destinations
Hi Brian, We have some code that will make what you are trying to do easier, but it is currently available in our private beta program. Can you email me off-list ([EMAIL PROTECTED]) and I'll get you set up in the beta where you can get access to this? Thanks Eric Flex, Product Management From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of klumikaze Sent: Wednesday, March 21, 2007 8:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] LiveCycle Data Services 2.5 - Using dynamically referenced queue destinations Our application currently uses a large number of queue destinations. We create the destinations in the messaging-config.xml file and compile our app against the FDS configuration files (and then upload to the J2EE container). There are 100+ queue destinations defined in messaging-config.xml currently. Our Java backend creates these queues in ActiveMQ or JBoss (using the same queue destinations as configured in messaging-config.xml) and pumps data in to them. I've read through the beta documentation and there is a section on Configuring components with a bootstrap service. Do we need to create a class that creates/exposes these queue destinations to the Flex app, or can we just attach Flex consumers to queue destinations and the new LCDS libraries will do the work for us? Any input you might have would be appreciated. Thanks, Brian
Re: [flexcoders] Re: Flex coldfusion simple question
I can send you the zip of the code as I know that works. On 23 Mar 2007 03:15:01 -0700, John Barrett [EMAIL PROTECTED] wrote: Hi Clint, I tried to reply to your blog, but I never got the conformation e-mail. Thanks for the tutorial one this! I might be wrong, but on line 27 of the mxml file I think that it should say: mx:Label text={cfcResponse} width=100% /mx:Label Anyway, this is what I had to do for flex not too throw an error. It was saying it needed a closing tag. I was not able to get it to work in the end(the above is the only change that I made to the code) I get the errorCouldn't establish a connection to ColdFusion I have a screen shot of the error message here: http://johnbarrett.net/flex_error.jpg I am running ColdFusion 7.02 on the Mac. Any thoughts? Thanks, John - Original Message From: Clint Tredway [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, March 22, 2007 7:40:25 AM Subject: Re: [flexcoders] Re: Flex coldfusion simple question http://grumpee. instantspot. com/bloghttp://grumpee.instantspot.com/blog On 3/22/07, cardinalflexjeremy [EMAIL PROTECTED] net [EMAIL PROTECTED] wrote: Are there any code examples or tutorials on this? That is, any samples using coldfusion (not webservices or httpRequest) to access CFCs? thanks. --- In [EMAIL PROTECTED] ups.com flexcoders%40yahoogroups.com, Tom Chiverton tom.chiverton@ ... wrote: On Thursday 22 Mar 2007, cardinalflexjeremy wrote: If I want to make a flex app to tie to a Database, and I want to use Coldfusion components to access the Database stuff, and connect Flex and coldfusion, do I need FDS to use the coldfusion adapter pieces? No. You can use Flex's RemoteObject straight to a CFC, no FDS (now called LCDS btw) required. Please let me know if a company would require FDS in order to use coldfusion with flex? Again with the no :-) -- Tom Chiverton Helping to continually morph slick appliances On: http://thefalken. livejournal. comhttp://thefalken.livejournal.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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells. comhttp://www.halliwells.com . -- http://indeegrumpee .spaces.live. com/http://indeegrumpee.spaces.live.com/ -- It's here! Your new message! Get new email alertshttp://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/with the free Yahoo! Toolbar. -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Re: Flex coldfusion simple question
Hi Clint, Thanks so much I am looking forward to seeing the zip so I can finally get CF Flex to communicate`-` Thanks, John - Original Message From: Clint Tredway [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, March 23, 2007 2:01:13 AM Subject: Re: [flexcoders] Re: Flex coldfusion simple question I can send you the zip of the code as I know that works. On 23 Mar 2007 03:15:01 -0700, John Barrett [EMAIL PROTECTED] com wrote: Hi Clint, I tried to reply to your blog, but I never got the conformation e-mail. Thanks for the tutorial one this! I might be wrong, but on line 27 of the mxml file I think that it should say: mx:Label text={cfcResponse} width=100% /mx:Label Anyway, this is what I had to do for flex not too throw an error. It was saying it needed a closing tag. I was not able to get it to work in the end(the above is the only change that I made to the code) I get the errorCouldn't establish a connection to ColdFusion I have a screen shot of the error message here: http://johnbarrett. net/flex_ error.jpg I am running ColdFusion 7.02 on the Mac. Any thoughts? Thanks, John - Original Message From: Clint Tredway [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com Sent: Thursday, March 22, 2007 7:40:25 AM Subject: Re: [flexcoders] Re: Flex coldfusion simple question http://grumpee. instantspot. com/blog On 3/22/07, cardinalflexjeremy [EMAIL PROTECTED] net wrote: Are there any code examples or tutorials on this? That is, any samples using coldfusion (not webservices or httpRequest) to access CFCs? thanks. --- In [EMAIL PROTECTED] ups.com, Tom Chiverton tom.chiverton@ ... wrote: On Thursday 22 Mar 2007, cardinalflexjeremy wrote: If I want to make a flex app to tie to a Database, and I want to use Coldfusion components to access the Database stuff, and connect Flex and coldfusion, do I need FDS to use the coldfusion adapter pieces? No. You can use Flex's RemoteObject straight to a CFC, no FDS (now called LCDS btw) required. Please let me know if a company would require FDS in order to use coldfusion with flex? Again with the no :-) -- Tom Chiverton Helping to continually morph slick appliances On: http://thefalken. livejournal. 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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells. com. -- http://indeegrumpee .spaces.live. com/ It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. -- http://indeegrumpee .spaces.live. com/ !-- #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0;} #ygrp-tpmsgs{ font-family:Arial; clear:both;} #ygrp-vitnav{ padding-top:10px;font-family:Verdana;font-size:77%;margin:0;} #ygrp-vitnav a{ padding:0 1px;} #ygrp-actbar{ clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;} #ygrp-actbar .left{ float:left;white-space:nowrap;} .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana;font-size:77%;padding:15px 0;} #ygrp-ft{ font-family:verdana;font-size:77%;border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px;} #ygrp-vital{ background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;} #ygrp-vital #vithd{ font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;} #ygrp-vital ul{ padding:0;margin:2px 0;} #ygrp-vital ul li{ list-style-type:none;clear:both;border:1px solid #e0ecee; } #ygrp-vital ul li .ct{
[flexcoders] Re: Advanced DataGrid / Destination Aware intros tight coupling?
Anatole, I just ordered my copy yesterday and downloaded the PDF version but I haven't had time to do much reading yet. I'll be sure to pay close attention to that part of the book. I'm always looking for ways to improve my class libraries and coding techniques. It's refreshing to see someone else has at least considered this approach. Thanks, Maury --- In flexcoders@yahoogroups.com, anatolet [EMAIL PROTECTED] wrote: Maury, Please take a look @ the subchapter on resources (somewhere close to the end of chapter 8 - did not get my copy of the book with real page numbers yet). Basically it talks about moving destination part along with key columns and some other properties into separate class - there you can provide caching and notifications a la runtime styles - only on the properties/model level. Regards, Anatole Tartakovsky --- In flexcoders@yahoogroups.com, maury.sword maury.sword@ wrote: --- In flexcoders@yahoogroups.com, lostinrecursion k.silans@ wrote: Evening folks, I finished reading a chapter in the new book, RIAs with Flex and Java. Specifically, I was reading Chapter 11: Advanced Datagrid which introduces the concept of a destination aware component which contains calls to a remote object embedded in the extended component's MXML code. Although the destination and method are passed to the component in compile time attributes, this smells of not only tight coupling of components - but totally ignoring good OOP practice and mixing the business and presentation tiers. Add to that the fact that now the dataProvider can only have the one view, the actual grid to which it is set. Can someone point out what I am missing here or make any points why my thoughts are incorrect? So far, it's a great book but that chapter really threw me off. -Kenny/LIR I'm not sure that's that's ignoring good OOP practice but it certainly does mix the business and presentation tiers. I have been doing this since Flex 1.5 for the ComboBox, List, DataGrid and Tree components. I first extended each these to create generic components that implement Flash Remoting, some standard contextmenus, drag and drop, security/privilege checking and dispatch events when remoting calls return. Then I extend these and point the RemoteObject source to the specific CFC that retrieves the data from the database. For instance I have a RemotingComboBase class that extends the ComboBox class and I have an EmployeeComboBox class that extends the RemotingComboBase. I have several applications that need to use an EmployeeComboBox, so when I need one I just have to drag it onto the form and go on to the next component. I also have an EmployeeList class when I want to display a list of employees. Both of these components have their RemoteObject source pointed at the same CFC. Obviously if I'm using both of these components on the same form I am retrieving and storing this information twice but it's worth it to me for the ease and speed of development that I've gained. Also I don't normally have the need to display the same data in different views within the same application. I don't view this as much different than the Flex example of a StateComboBox that always displays a list of hardcoded US states. Maury
[flexcoders] Re: Flex coldfusion simple question
John, Here's a link to an article that I found helpful in getting this to work: http://www.adobe.com/devnet/flex/articles/helloworld.html Maury --- In flexcoders@yahoogroups.com, John Barrett [EMAIL PROTECTED] wrote: Hi Clint, Thanks so much I am looking forward to seeing the zip so I can finally get CF Flex to communicate`-` Thanks, John - Original Message From: Clint Tredway [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, March 23, 2007 2:01:13 AM Subject: Re: [flexcoders] Re: Flex coldfusion simple question I can send you the zip of the code as I know that works. On 23 Mar 2007 03:15:01 -0700, John Barrett [EMAIL PROTECTED] com wrote: Hi Clint, I tried to reply to your blog, but I never got the conformation e- mail. Thanks for the tutorial one this! I might be wrong, but on line 27 of the mxml file I think that it should say: mx:Label text={cfcResponse} width=100% /mx:Label Anyway, this is what I had to do for flex not too throw an error. It was saying it needed a closing tag. I was not able to get it to work in the end(the above is the only change that I made to the code) I get the errorCouldn't establish a connection to ColdFusion I have a screen shot of the error message here: http://johnbarrett. net/flex_ error.jpg I am running ColdFusion 7.02 on the Mac. Any thoughts? Thanks, John - Original Message From: Clint Tredway [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com Sent: Thursday, March 22, 2007 7:40:25 AM Subject: Re: [flexcoders] Re: Flex coldfusion simple question http://grumpee. instantspot. com/blog On 3/22/07, cardinalflexjeremy [EMAIL PROTECTED] net wrote: Are there any code examples or tutorials on this? That is, any samples using coldfusion (not webservices or httpRequest) to access CFCs? thanks. --- In [EMAIL PROTECTED] ups.com, Tom Chiverton tom.chiverton@ ... wrote: On Thursday 22 Mar 2007, cardinalflexjeremy wrote: If I want to make a flex app to tie to a Database, and I want to use Coldfusion components to access the Database stuff, and connect Flex and coldfusion, do I need FDS to use the coldfusion adapter pieces? No. You can use Flex's RemoteObject straight to a CFC, no FDS (now called LCDS btw) required. Please let me know if a company would require FDS in order to use coldfusion with flex? Again with the no :-) -- Tom Chiverton Helping to continually morph slick appliances On: http://thefalken. livejournal. 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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells. com. -- http://indeegrumpee .spaces.live. com/ It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. -- http://indeegrumpee .spaces.live. com/ !-- #ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0;} #ygrp-tpmsgs{ font-family:Arial; clear:both;} #ygrp-vitnav{ padding-top:10px;font-family:Verdana;font-size:77%;margin:0;} #ygrp-vitnav a{ padding:0 1px;} #ygrp-actbar{ clear:both;margin:25px 0;white-space:nowrap;color:#666;text- align:right;} #ygrp-actbar .left{
[flexcoders] VERY interesting title button behaviour! (??)
I have decorated the TitleWindow CloseButton with custom CSS: close-button-up-skin: Embed (../images/resizable_window/window_close_up.png); close-button-over-skin: Embed (../images/resizable_window/window_close_over.png); close-button-down-skin: Embed (../images/resizable_window/window_close_down.png); close-button-disabled-skin: Embed (../images/resizable_window/window_close_disabled.png); So, now it looks like this: http://www.dkozar.com/images/bugs/title_window_close_button_1.gif When I roll over it, it looks like: http://www.dkozar.com/images/bugs/title_window_close_button_2.gif OK for now... But the problem is: When I move a mouse way below the button: http://www.dkozar.com/images/bugs/title_window_close_button_3.gif There is a tiny invisible strip 1px wide which seems to ba a part of the button. When I rollOver it, this is what happens: http://www.dkozar.com/images/bugs/title_window_close_button_4.gif So, can anyone tell me what's this strip anyway and how to get rid of it: http://www.dkozar.com/images/bugs/title_window_close_button_5.gif ??? ps. I'm sure that my PNGs are 16x16px. Thanks!
Re: [flexcoders] Relative paths in CSS embeds?
Ah, You are using a compiled theme? That is what it looks like. So what I am getting at is, are you trying to access a gif inside an swc? If you are trying to access embedded content inside an swc you need the theme compiler arg in your apps config. either in the flex buider compiler args; -theme src/lib/theme.swc or you could create a config xml file that does the same thing. Sounds to me like I am confused as to what you are actually doing. Where are you compiling the theme.swc? and is the contents of the swc located in the theme.css? Give me a bit more info and I can help. I struggled with this for months getting the right set up. I use ant to build my components now. Much more control. Peace, Mike On 3/22/07, Brett Levine [EMAIL PROTECTED] wrote: Hi Mike, I'm curious about your project structure, because I've been trying this but to no avail. I have: Theme src theme.css App src app.mxml lib theme.swc So if app.mxml contains the mx:style tag, I would think the path you wrote should work. On the other hand if the embeds are actually contained in the theme swc, then I would guess the path would be relative to the css location. Maybe if I follow your example mine will work too. brett On Mar 22, 2007, at 11:25 AM, Michael Schmalle wrote: Hi, Use a url like; source = ../../MyThemProject/images/bg_main.gif)'. I do this for css outside of my current project and works fine. Peace, Mike On 3/22/07, Brett Levine [EMAIL PROTECTED] wrote: Yes, of course. If the .css file and the .mxml file using it are in the same project that works great. However, since my css file is in my theme project, it doesn't work. I get these errors: Invalid Embed directive in stylesheet - can't resolve source 'Embed (source = /images/bg_main.gif)'. brett On Mar 22, 2007, at 8:52 AM, Tom Chiverton wrote: On Wednesday 21 Mar 2007, Brett Levine wrote: I've built a theme swc in a library project using Flex Builder 2.0.1. But I just can't figure out how to get Embeds in my theme's CSS file to use relative paths. This is a problem since my team is mixed between PC and Mac users. Here's an example: From application.css at Theme project's src folder: .main { backgroundImage: Embed(source=/Users/brett/Documents/dev/ repository/projects/flex/BlueTheme/src/images/bg_main.gif); } You should use a path here relative to the source code root, not the file system root. I'd suggest '/images/bg_main.gif' -- Tom Chiverton Helping to assertively maintain eigth-generation content On: http://thefalken. http://thefalken.livejournal.comlivejournal. 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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.http://www.halliwells.com com. -- Flexcoders Mailing List FAQ: http://groups.http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-http://www.mail-archive.com/flexcoders%25 archive.com/flexcoders% 40yahoogroups. http://40yahoogroups.comcom Yahoo! Groups Links -- Teoti Graphix http://www.teotigra http://www.teotigraphix.comphix.com Blog - Flex2Components http://www.flex2com http://www.flex2components.components.com You can find more by solving the problem then by 'asking the question'. -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
Re: [flexcoders] Flex coldfusion simple question
Here is a sample using ColdFusion that I just gave at our Indy user group. http://blog.everythingflex.com/2007/03/21/indyflex-photobrowser-code/ On 22 Mar 2007 09:47:41 -0700, cardinalflexjeremy [EMAIL PROTECTED] wrote: Simple question here for the group. If I want to make a flex app to tie to a Database, and I want to use Coldfusion components to access the Database stuff, and connect Flex and coldfusion, do I need FDS to use the coldfusion adapter pieces? Please let me know if a company would require FDS in order to use coldfusion with flex? Thanks. -- Rich Tretola mx:EverythingFlex/ http://www.EverythingFlex.com
[flexcoders] Adding Flash Library items to a Flex App
Ok, this should be simple but like all things critical to my flash projects they end up being hacks or major work-arounds. Essentially, I need to add a Flash Library item (set to export as a default class in Flash 9 Preview) - to my Flex application. I won't go into why but just consider the need for Flash interface for graphics creation a requirement for now. Seeing as this was no big deal (attachMovieClip in as2) before how would i go about this in as3/Flex? Please provide example - not just theory, if you can as I've almost read every theory/method out there but no up to date examples and nothing my designer brain can grasp. Here's what im doing so far. - Created a flash movie with a graphic movieclip set to export on first frame / class name as default of name of movieclip - this object doesn not live on stage but in the library (unless the workflow needs to change but i'd rather it not as there will be other objects to load in as well) - Using the Image class to load in swf. All is good so far. - So how do actualy add a child of this swf (one of the classes compiled in this swf) to a member of my Application? Heres what i was thinking i could do - var myLibObject:Image = new Image(); myLibObject.source = packages/MyLibrary.swf; myCanvas.addChild(myLibObject.Circle); // Circle is a library item/class in the flash library / Obviously this doesn't work but not sure how classes within the flash document class are referenced
Re: [flexcoders] How to write Flex proxy without data server access and FDS
use your own webserver to relay the request On 22 Mar 2007 12:39:21 -0700, rzilist [EMAIL PROTECTED] wrote: Hi folks, I'm consuming a webservice from secured domain which has no crossdomain.xml file found at server root. It works locally, but I get the Security error accessing url message when swf file gets deployed to IIS server. As far as I know I either need a proxy process on the server hosting a webservice (which I have no access to), or have the proxy-config.xml on FDS (which I also don't have). Is there a way around it? Please help. Thanks, Roman -- j:pn http://www.lennel.org
[flexcoders] Compiling themes / modules / CSS using Flex Builder?
Hi All, I have been able to use the command-line compilers to compile themes, modules, etc. But, I was wondering if there's a way to do this within Flex Builder? I've read through the Flex documentation, but I can't seem to find any detailed information on how to do this. Am I missing something? Is it even possible? If so, can anyone point me to a step-by-step example? Thanks in advance, =BC=
RE: [flexcoders] Project Build
Hi, In order for your script to be noticed by the syntax checker, you have to reference it from the main MXML / AS file. If your AS file is nested deep in packages with no reference, there is no way to force the check. Cheers, Petro From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of solracinfl Sent: Thursday, March 22, 2007 11:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Project Build I have a question. I am faily new to flex, my background is in .net (yes please stop drowing things at me, damit) :) I am working on a project in flex and I am using actionscript 3.0. I have notice that I can make a syntax error and it doesn't appear in my problem window. This just seems wrong!!! How can I have a syntax error but the compiler doesn't catch it or tell me about it. I ended up deleting my bin folder, then try to rebuild. If it doesn't then I know I have an error somewhere. This seems pretty weird, and am pretty sure am doing something. Can anybody please advice?
[flexcoders] ActiveMQ with JBoss and Flex Data Service
Hi, I'm trying deploy activemq in jboss. All it's allright, I launch a java app that send messages to topic destination, but when I want to connect from flex consumer to that destination, no messages are received. I have follow all steps in the activemq with jboss integration tutorial: http://devzone.logicblaze.com/site/integrating-apache-activemq-with-jbos\ s.html In the messaging-config.xml file of flex I have written: destination id=chat-jms properties server durablefalse/durable durable-store-managerflex.messaging.durability.FileStoreManager/durab\ le-store-manager /server jms message-typejavax.jms.ObjectMessage/message-type connection-factoryjava:comp/env/JmsConnectionFactory/connection-facto\ ry destination-jndi-namejava:activemq/topic/inbound/destination-jndi-nam\ e destination-nameflexChat/destination-name delivery-modeNON_PERSISTENT/delivery-mode message-priorityDEFAULT_PRIORITY/message-priority acknowledge-modeAUTO_ACKNOWLEDGE/acknowledge-mode transacted-sessionsfalse/transacted-sessions /jms /properties channels channel ref=my-rtmp/ /channels adapter ref=jms/ /destination In the java app I connect to activemq/topic/inbound, and I send messages. In the flex app I create a consumer, with destination chat-jms, but I don't receive messages :( Any suggestion? Thanks!
[flexcoders] support for IFrames and cross domain images
Is there an extended support for IFrame and cross domain images in flex 2.0.1, As per my knowledge Iframe can only be used via Javascript, but my requirement is to create Iframes dynamically .i.e i dont know exactly how many Iframes i may eventually need, and also need to get images dynamically from different domains. Please post if you have come across any tweaks for the above.
[flexcoders] charting problem
is dataToLocal method of cartesian chart give exact coordinate values? i want to display crosshair on mychart. u can refer the link http://finance.yahoo.com/charts#chart1:symbol=^ixic;range=1y; charttype=line;crosshair=cross;logscale=off;source=undefined move mouse over the chart. u will be able to see the crosshair. i am able to draw the cross hair on my chart but it is not perfect. the y coordinate value is wrong. i want to do same thing. please help me.
[flexcoders] Re: Event Dispatching through more than one component
Argh! It worked! So all I had to do actually was set useCapture in the systemManager.addEventListener to true, and it worked right away. Is bubbling then set to true by default? Also, should I be in the habit of removing the listener when popups are removed? I've been noticing that in other code I've looked at online. Thanks Alex! Makes a whole lot more sense now! - Chris --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: The top of the display list is the stage. The stage always has one child (the root) which in Flex apps is a SystemManager. The app and all popups are children of the systemManager. Stage - SystemManager - Application PopUp1 PopUp2 The event model in Flash/Flex is based on the DOM event model http://www.w3.org/TR/DOM-Level-3-Events/events.html If you search for bubbling and capture in our docs you'll find easier to read descriptions. But basically, when PopUp2 dispatches an non-bubbling event, the stage first dispatches the event in capture phase, then the SystemManager in capture phase, then PopUp2 as a regular event. If the event was a bubbling event, the same would happen, but then SystemManager would dispatch it again in bubbling phase and finally the Stage in bubbling phase. addEventListener has a parameter as to whether you want to listen in capture phase or not. Events have a constructor parameter as to whether the event bubbles or not. Capture phase basically allows containers to supervise and block events going to their children. Bubble phase serves as notification that the child dispatched an event. In theory this makes the Popups even more loosely coupled from each other than the other suggestions. Each Popup simply dispatches events. Other code can capture all events coming from popups (yes, it has to know what the event name is). Popups can listen to other popups without having to watch for their creation and destruction since you are going to addEventListener on systemManager instead of the actual popups. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of qnotemedia Sent: Wednesday, March 21, 2007 4:44 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Event Dispatching through more than one component OK, I understood the other responses, but not this one. Agreed that I tried setting bubbles to true in my customEvent, and then each event instance, and the dispatched event did not pass through embedded windows. But I've never used systemManager, nor do I entirely understand bubbling. Can you forward me to an example or doc explaining this? And does this somewhat move away from loosely-coupled components (which I'm trying real hard to achieve!). Thanks, - Chris --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Alex Harui aharui@ wrote: Each popup is parented by the systemManager so it won't bubble from one popup to the next. However, each popup can listen to the systemManager for the event to bubble to it, or listen in capture phase so you don't have to use bubbling.
Re: [flexcoders] Re: Advanced DataGrid / Destination Aware intros tight coupling?
Anatole, In my case I needed a 100% ColdFusion based back-end solution, so couldn't really use DAOFlex. I did sit in on your session at MAX2006 though, quite a tool you have there! DK On 22 Mar 2007 23:17:44 -0700, anatolet [EMAIL PROTECTED] wrote: Douglas, If I remember it correctly, in daoFlex you can specify customization method/class. It causes 2 things: 1. Adds optional String parameter to the signature - usually xml or pipe separated information for query by example type of modifications to your employee query. 2. Transfers original sql + additional param to your method along with the rest of the parameters. Makes very comfortable way to generalize query on any field[s]. Also, make sure you look at dao.xsl in the templates - that also might give you some ideas. Sincerely, Anatole --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Douglas Knudsen [EMAIL PROTECTED] wrote: me2. Built a employee search component to search through our DB of 20,000+ employees. I wanted this component to be a 'drop in and work' component existing on it on, thus the RO calls and such are inside it. DK On 3/22/07, maury.sword [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com, lostinrecursion k.silans@ wrote: Evening folks, I finished reading a chapter in the new book, RIAs with Flex and Java. Specifically, I was reading Chapter 11: Advanced Datagrid which introduces the concept of a destination aware component which contains calls to a remote object embedded in the extended component's MXML code. Although the destination and method are passed to the component in compile time attributes, this smells of not only tight coupling of components - but totally ignoring good OOP practice and mixing the business and presentation tiers. Add to that the fact that now the dataProvider can only have the one view, the actual grid to which it is set. Can someone point out what I am missing here or make any points why my thoughts are incorrect? So far, it's a great book but that chapter really threw me off. -Kenny/LIR I'm not sure that's that's ignoring good OOP practice but it certainly does mix the business and presentation tiers. I have been doing this since Flex 1.5 for the ComboBox, List, DataGrid and Tree components. I first extended each these to create generic components that implement Flash Remoting, some standard contextmenus, drag and drop, security/privilege checking and dispatch events when remoting calls return. Then I extend these and point the RemoteObject source to the specific CFC that retrieves the data from the database. For instance I have a RemotingComboBase class that extends the ComboBox class and I have an EmployeeComboBox class that extends the RemotingComboBase. I have several applications that need to use an EmployeeComboBox, so when I need one I just have to drag it onto the form and go on to the next component. I also have an EmployeeList class when I want to display a list of employees. Both of these components have their RemoteObject source pointed at the same CFC. Obviously if I'm using both of these components on the same form I am retrieving and storing this information twice but it's worth it to me for the ease and speed of development that I've gained. Also I don't normally have the need to display the same data in different views within the same application. I don't view this as much different than the Flex example of a StateComboBox that always displays a list of hardcoded US states. Maury -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it?
[flexcoders] How to asynchronously dispatch an event
Hello, I am designing an api that manages a data model. Some of the methods on the data model will trigger a server service (HTTPService), and will therefore be handled asynchronously (no choice there). Other actions, not going to the server, would be synchronous. I would like to give the user of the api a consistent (asynchronous) view of the api but I can not seem to create asynchronous behavior. dispatchEvent seems to always synchronously invoke registered event handlers. Is there a way to have a class method trigger an asynchronous event? Thanks in advance, Peter
Re: [flexcoders] support for IFrames and cross domain images
On Friday 23 Mar 2007, vippanso wrote: Is there an extended support for IFrame and cross domain images in flex 2.0.1, As per my knowledge Iframe can only be used via Javascript, but my requirement is to create Iframes dynamically You can do so from JS, and you can call JS from AS. -- Tom Chiverton Helping to carefully synergize next-generation initiatives On: http://thefalken.livejournal.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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Can Ely's Flexbook open by default on a given page?
I haven't looked at the code, but could you set visible to false, then move to page 3, and then set visible to true? - Dan On 22 Mar 2007 19:22:10 -0700, João [EMAIL PROTECTED] wrote: I am trying the impressive Flexbook that Ely made, and i wasn't able to make it open by default on a given page (3, for example). I can make the component to go to page 3 using the book.turnToPage(3), but it shows up the animation. I tried book.animatePagesOnTurn=false; book.animateCurrentPageIndex=false; book.turnToPage(3); without success, the animation is shown anyway. I just need to start the FlexBook automatically on page 3. Any ideas? Thanks, João Saleiro
[flexcoders] Disabling items in a DataGrid
There may be a better way to achieve what I'm trying to do, I'm open to any suggestions. I have a DataGrid with a few columns showing basic information. When an item in the DataGrid is clicked, I would like a panel to drop down so that users have access to more detailed information that they can view modify. I would basically like selected item in the DataGrid to appear as a header for this panel, and all other items to be disabled so that the user can not select more than one item at a time. I have tried to achieve this by displaying the panel when an item is clicked and then disabling the entire DataGrid. However, I can find no way to change the style of the selected row when the DataGrid is disabled. It shows with a gray background and white text which does not achieve the effect I'm going for. Any suggestions on a better way to handle this or a way to skin the selected item for a disabled DataGrid?
Re: [flexcoders] Project Build
On Friday 23 Mar 2007, Petro Bochan wrote: In order for your script to be noticed by the syntax checker, you have to reference it from the main MXML / AS file. If your AS file is nested deep in packages with no reference, there is no way to force the check. Does saving the file not work (maybe you need auto-recompile on ?) ? -- Tom Chiverton Helping to continuously target open-source deliverables On: http://thefalken.livejournal.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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] WG: Problems with scaleX and scaleY
Hi, Is there anybody out there who could help me? Please excuse my English, Harald _ Von: Harald Dehn Gesendet: Mittwoch, 21. März 2007 23:36 An: flexcoders@yahoogroups.com Betreff: Problems with scaleX and scaleY I try to improve my flex application for visually impaired users. I changed the scaleX and scaleY properties of the application: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=* minWidth=500 minHeight=400 layout=absolute scaleX=1.2 scaleY=1.2 Everything works fine except DisplayObjects which are Using the PopUpManger. For example: Tooltips are displayed at the wrong place and not scaled and dropdowns form ComboBoxes arent scaled. Any ideas? Harald
Re: [flexcoders] Re: Flex coldfusion simple question
http://www.acfug.org/index.cfm?fa=meetings.meetingdetailEventID=177 I did a CFUG presentation on all three . Example code is there too. DK On 3/22/07, cardinalflexjeremy [EMAIL PROTECTED] wrote: Are there any code examples or tutorials on this? That is, any samples using coldfusion (not webservices or httpRequest) to access CFCs? thanks. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Thursday 22 Mar 2007, cardinalflexjeremy wrote: If I want to make a flex app to tie to a Database, and I want to use Coldfusion components to access the Database stuff, and connect Flex and coldfusion, do I need FDS to use the coldfusion adapter pieces? No. You can use Flex's RemoteObject straight to a CFC, no FDS (now called LCDS btw) required. Please let me know if a company would require FDS in order to use coldfusion with flex? Again with the no :-) -- Tom Chiverton Helping to continually morph slick appliances On: http://thefalken.livejournal.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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it?
Re: [flexcoders] Disabling items in a DataGrid
I had a similar design issue. The way I solved my problem was: 1. Allow for multiple-selects/edits, so I can edit more than one row at once. This involved some code to compare the data between the selectedIndices. I have checkboxes next to each input control which have their visibility determined by the number of selectedIndices. 2. If the user starts to edit some data in the bottom inputs, then selects a different row, a popup box is show which confirms the selection change (and loss of edited data). I wish I could show my app as an example but unfortunately it's not yet ready for public consumption. Cheers, Adam - Original Message - From: not_a_coop To: flexcoders@yahoogroups.com Sent: Friday, March 23, 2007 11:34 PM Subject: [flexcoders] Disabling items in a DataGrid There may be a better way to achieve what I'm trying to do, I'm open to any suggestions. I have a DataGrid with a few columns showing basic information. When an item in the DataGrid is clicked, I would like a panel to drop down so that users have access to more detailed information that they can view modify. I would basically like selected item in the DataGrid to appear as a header for this panel, and all other items to be disabled so that the user can not select more than one item at a time. I have tried to achieve this by displaying the panel when an item is clicked and then disabling the entire DataGrid. However, I can find no way to change the style of the selected row when the DataGrid is disabled. It shows with a gray background and white text which does not achieve the effect I'm going for. Any suggestions on a better way to handle this or a way to skin the selected item for a disabled DataGrid?
[flexcoders] sharedObject
Hi, Does anyone know the way to access a flash8 (html page) sharedObject from Apollo? Thanks in advance.
Re: [flexcoders] WG: Problems with scaleX and scaleY
On Friday 23 Mar 2007, Harald Dehn wrote: I try to improve my flex application for visually impaired users. I changed the scaleX and scaleY properties of the application: Why not load a runtime style sheet to adjust font size / borders ? That way the same app can function well for both normal and impaired people. -- Tom Chiverton Helping to preemptively exploit out-of-the-box partnerships On: http://thefalken.livejournal.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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: How to write Flex proxy without data server access and FDS
Mark, Thank you for your suggestion. The only feasible option for me would be to write the Proxy script and put it on the same server that hosts swf file (I do have access to that). I'll have to check whether client's IIS server has Cold Fusion or PHP support ... otherwise, my options would be Microsoft scripts (C#, .NET). Btw, do you know of any Proxy script examples on the web? Thanks, Roman --- In flexcoders@yahoogroups.com, Mark Shepherd [EMAIL PROTECTED] wrote: Your choices are: 1. put a crossdomain file on the server that provides the webservice 2. put a proxy script on the server that is hosting the SWF 3. put a proxy script on ANY server ANYWHERE, provided it has a crossdomain file 4. use FDS proxying on the server that is hosting the SWF From your comments, #1 and #4 are not available options. It's not clear from your comments whether #2 is possible. So do #2 if you have access to the server hosting the SWF, or #3 otherwise. By Proxy Script, I mean a very simple webservice (REST is OK) that receives requests from Flash and relays them on to the desired target webservice. This is something you can easily create in Cold Fusion, PHP, or most any server-side scripting language. This is a very basic analysis; if you have security, performance, or capacity issues then my suggestions might not be suitable. There may be other options as well, anyone have any other ideas? Mark Shepherd http://mark-shepherd.com --- In flexcoders@yahoogroups.com, rzilist rzilist@ wrote: Hi folks, I'm consuming a webservice from secured domain which has no crossdomain.xml file found at server root. It works locally, but I get the Security error accessing url message when swf file gets deployed to IIS server. As far as I know I either need a proxy process on the server hosting a webservice (which I have no access to), or have the proxy-config.xml on FDS (which I also don't have). Is there a way around it? Please help. Thanks, Roman
[flexcoders] Re: sharedObject
or from a projector ? --- In flexcoders@yahoogroups.com, gdoucen [EMAIL PROTECTED] wrote: Hi, Does anyone know the way to access a flash8 (html page) sharedObject from Apollo? Thanks in advance.
Re: [flexcoders] VERY interesting title button behaviour! (??)
Probably your button png has some unnneded regions filled with pixels. Check it with some image editor 2007/3/23, Danko Kozar [EMAIL PROTECTED]: I have decorated the TitleWindow CloseButton with custom CSS: close-button-up-skin: Embed (../images/resizable_window/window_close_up.png); close-button-over-skin: Embed (../images/resizable_window/window_close_over.png); close-button-down-skin: Embed (../images/resizable_window/window_close_down.png); close-button-disabled-skin: Embed (../images/resizable_window/window_close_disabled.png); So, now it looks like this: http://www.dkozar.com/images/bugs/title_window_close_button_1.gif When I roll over it, it looks like: http://www.dkozar.com/images/bugs/title_window_close_button_2.gif OK for now... But the problem is: When I move a mouse way below the button: http://www.dkozar.com/images/bugs/title_window_close_button_3.gif There is a tiny invisible strip 1px wide which seems to ba a part of the button. When I rollOver it, this is what happens: http://www.dkozar.com/images/bugs/title_window_close_button_4.gif So, can anyone tell me what's this strip anyway and how to get rid of it: http://www.dkozar.com/images/bugs/title_window_close_button_5.gif ??? ps. I'm sure that my PNGs are 16x16px. Thanks!
[flexcoders] Apollo isn't loading my modules
Is there something special I need to do to make Apollo load my modules? Flex builder is showing them just fine, but when I run the app, they don't show up in the view. The debugger is showing that the SWF is being loaded, but then after clicking around on the app for a bit, the debugger says [Unload SWF] and it unloads the module SWF. Any ideas on this one? Mark
[flexcoders] CF/Flex Wizard for CRUD CFCs - any tutorials out there?
Hi Guys, I'm using the CF/Flex Wizard at this stage to build my database queries, and while it does a great job, if you massage it a bit, it still has a major problem in that it, if you are running multiple queries, and something goes wrong with one, you have to redo the entire Wizard, and I've had problems moving locations, with errors thereafter generated in the .as areas of the generated files. The best answer seems to be a decent understanding of the CRUD CFC wizard, but the Adobe documentation, for all it's positive values, just doesn't have anything on using the CRUD wizard...nothing that goes from point A to point Z and shows you how to build a simple CRUD-Wizard-driven app in Flex. As in, create the CRUD CFC, use this code in your flex app, make a table with these attributes, point this to that...tag this TextArea or DataGrid with this data provider, use this method in a button when you click it to fire the whole thing off...that sort of thing. Of course I mean only at a simple level for all 4 actions (read, write, edit, delete). Does anyone know of such an offering anywhere? I've looked as much as I can, not found anything yet. If I can find a simple version that works front-to-back, I can learn the more advanced stuff from there, but trying to learn it all from scratch is always a very hard thing for me... Shawn
RE: [flexcoders] CF/Flex Wizard for CRUD CFCs - any tutorials out there?
Squidhead works well for building the CFC's automatically. http://squidhead.riaforge.org/ It introspects the DB and creates all your CFC to do single record manipulation and also creates CFC's for any procedures you create. john ** John R. Piotrowski Programmer Analyst Wharton Computing Email: [EMAIL PROTECTED] ** From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of shawn.gibson Sent: Friday, March 23, 2007 10:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] CF/Flex Wizard for CRUD CFCs - any tutorials out there? Hi Guys, I'm using the CF/Flex Wizard at this stage to build my database queries, and while it does a great job, if you massage it a bit, it still has a major problem in that it, if you are running multiple queries, and something goes wrong with one, you have to redo the entire Wizard, and I've had problems moving locations, with errors thereafter generated in the .as areas of the generated files. The best answer seems to be a decent understanding of the CRUD CFC wizard, but the Adobe documentation, for all it's positive values, just doesn't have anything on using the CRUD wizard...nothing that goes from point A to point Z and shows you how to build a simple CRUD-Wizard-driven app in Flex. As in, create the CRUD CFC, use this code in your flex app, make a table with these attributes, point this to that...tag this TextArea or DataGrid with this data provider, use this method in a button when you click it to fire the whole thing off...that sort of thing. Of course I mean only at a simple level for all 4 actions (read, write, edit, delete). Does anyone know of such an offering anywhere? I've looked as much as I can, not found anything yet. If I can find a simple version that works front-to-back, I can learn the more advanced stuff from there, but trying to learn it all from scratch is always a very hard thing for me... Shawn
[flexcoders] Re: Caching problem
Much better approach! Now, my question is, what do people do to prevent caching of swf files themselves? Here's the setup: I'm deploying a business app, and want all users to see the update to the SWF. However, I don't want to tell everyone to clear their cache. Should I just pass a version number to the swf request, to update to that point, ie - point to: $vers = 1.0.2; $path = /flash/myMovie.swf?vers= . $vers; object file=$path...etc. Is there a best practice for this kind of thing? I'm also curious how this will apply to Module development in Flex. How do I make sure that people have current modules, without blasting their cache, every time? Thanks, -Scott On 3/14/07, Thomas Fowler [EMAIL PROTECTED] wrote: I'm sure someone has already mentioned this but you could always append the date in milliseconds to the query string as well. Like so: var date : Date = new Date(); url:String = resource + ?d= + date.UTC(); - Original Message - From: slangeberg [EMAIL PROTECTED] To: flexcoders@yahoogroups.com; Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, March 14, 2007 10:52 AM Subject: [Flashcoders] Re: [flexcoders] Re: Caching problem That'll work with any cache-busting you need to do. I use it in testing, to un-cache the swf file itself, when viewed on server. Ie: send rand var in url and if it's present, pass it in to swf call (swfobject + php, here): var so = new SWFObject( ProductBuilder.swf?rand=?=$rand?, product_builder, 100%, 100%, 9, #FF); Saves me the 'pain' of going through some menu to clear browser's cache, not to mention losing your browser's cache, in order to update one element! -Scott On 14 Mar 2007 08:44:42 -0700, Alex [EMAIL PROTECTED] wrote: Wow! O_O' Works flawlessly!! :-D Many thanks for that trick dude! --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, slangeberg [EMAIL PROTECTED] wrote: With Flash, I've learned to do the lo-tech method of attaching random numbers to the path. Simple, but it's been effective!: url:String = resource + ?rand= + Math.floor(Math.random() * 10); -Scott On 14 Mar 2007 08:07:52 -0700, Alex [EMAIL PROTECTED] wrote: Hi there! I have an xml file that needs to be loaded eventually using a URLRequest. I'm trying to avoid loading a cached file using these headers: urlRequest.requestHeaders.push(new URLRequestHeader(Cache- Control, no-cache, no-store, max-age=0, must-revalidate)); urlRequest.requestHeaders.push(new URLRequestHeader (Expires, Fri, 30 Oct 1998 14:19:41 GMT)); urlRequest.requestHeaders.push(new URLRequestHeader (Pragma, no-cache)); It works ok in firefox and IE6.0.2900 , but I still obtain a cached file in IE6.0.3790+ and IE7. Do I need to add any more headers? or what's the problem here? Thanks in advance -- : : ) Scott -- : : ) Scott ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- : : ) Scott -- : : ) Scott
Re: [flexcoders] CF/Flex Wizard for CRUD CFCs - any tutorials out there?
Shawn, I did a review of the RDS Plugins not long after FB was released. While it is a handy tool to get you 85%-90% of the way, it is limited in that it doesn't handle on the fly changes to db architecture, requiring you to re-run the wizard. Some people place their independent logic, additional queries, etc. in separate CFCs, extending those created by the wizard. In doing this you keep all of your code whenever you re-run the wizard. Others don't use the wizards at all, but will use an ORM framework, like Reactor, that will automatically rebuild objects on the fly whenever the architecture has changed (within development mode), in conjunction with ColdSpring's AOP capabilities for generating remote facade components for the remoting calls. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com shawn.gibson wrote: Hi Guys, I'm using the CF/Flex Wizard at this stage to build my database queries, and while it does a great job, if you massage it a bit, it still has a major problem in that it, if you are running multiple queries, and something goes wrong with one, you have to redo the entire Wizard, and I've had problems moving locations, with errors thereafter generated in the .as areas of the generated files. The best answer seems to be a decent understanding of the CRUD CFC wizard, but the Adobe documentation, for all it's positive values, just doesn't have anything on using the CRUD wizard...nothing that goes from point A to point Z and shows you how to build a simple CRUD-Wizard-driven app in Flex. As in, create the CRUD CFC, use this code in your flex app, make a table with these attributes, point this to that...tag this TextArea or DataGrid with this data provider, use this method in a button when you click it to fire the whole thing off...that sort of thing. Of course I mean only at a simple level for all 4 actions (read, write, edit, delete). Does anyone know of such an offering anywhere? I've looked as much as I can, not found anything yet. If I can find a simple version that works front-to-back, I can learn the more advanced stuff from there, but trying to learn it all from scratch is always a very hard thing for me... Shawn
[flexcoders] Re: CF/Flex Wizard for CRUD CFCs - any tutorials out there?
Thanks John, that looks very promising. But it still leaves me in the same place as running the Flex/CF CRUD wizard - it doesn't really give me any instructions on how to get it to communicate with Flex, all the fancy stuff I need to learn for getting the 2 apps to talk with each other. In other words, something like the Flex 2 equivalent of this tutorial (albeit with a bit more text!) would be very beneficial I think: http://www.adobe.com/devnet/coldfusion/articles/guestbook_print.html I'll probably end up using Squidhead over the Wizard though:) Thanks very much for the link. Shawn --- In flexcoders@yahoogroups.com, Piotrowski, John [EMAIL PROTECTED] wrote: Squidhead works well for building the CFC's automatically. http://squidhead.riaforge.org/ It introspects the DB and creates all your CFC to do single record manipulation and also creates CFC's for any procedures you create. john ** John R. Piotrowski Programmer Analyst Wharton Computing Email: [EMAIL PROTECTED] ** From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of shawn.gibson Sent: Friday, March 23, 2007 10:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] CF/Flex Wizard for CRUD CFCs - any tutorials out there? Hi Guys, I'm using the CF/Flex Wizard at this stage to build my database queries, and while it does a great job, if you massage it a bit, it still has a major problem in that it, if you are running multiple queries, and something goes wrong with one, you have to redo the entire Wizard, and I've had problems moving locations, with errors thereafter generated in the .as areas of the generated files. The best answer seems to be a decent understanding of the CRUD CFC wizard, but the Adobe documentation, for all it's positive values, just doesn't have anything on using the CRUD wizard...nothing that goes from point A to point Z and shows you how to build a simple CRUD-Wizard-driven app in Flex. As in, create the CRUD CFC, use this code in your flex app, make a table with these attributes, point this to that...tag this TextArea or DataGrid with this data provider, use this method in a button when you click it to fire the whole thing off...that sort of thing. Of course I mean only at a simple level for all 4 actions (read, write, edit, delete). Does anyone know of such an offering anywhere? I've looked as much as I can, not found anything yet. If I can find a simple version that works front-to-back, I can learn the more advanced stuff from there, but trying to learn it all from scratch is always a very hard thing for me... Shawn
Re: [flexcoders] How to asynchronously dispatch an event
Why would it matter for the API whether or not event dispatching was asynchronous? Clients still listen for events and hear them; the only difference would be that the stack would get taller on the sync calls. If you *really* needed to make ape async behavior, you could have the sync methods use a doLater() method to wait a frame before broadcasting an event. -Mark Hawley From: pgp.coppens [EMAIL PROTECTED] Date: 2007/03/23 Fri AM 07:30:48 CST To: flexcoders@yahoogroups.com Subject: [flexcoders] How to asynchronously dispatch an event Hello, I am designing an api that manages a data model. Some of the methods on the data model will trigger a server service (HTTPService), and will therefore be handled asynchronously (no choice there). Other actions, not going to the server, would be synchronous. I would like to give the user of the api a consistent (asynchronous) view of the api but I can not seem to create asynchronous behavior. dispatchEvent seems to always synchronously invoke registered event handlers. Is there a way to have a class method trigger an asynchronous event? Thanks in advance, Peter -- John Mark Hawley The Nilbog Group 773.968.4980 (cell) -- 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] SWF is not a loadable module
I've compiled a mx:Module which I'm able to load fine if I place it in the same directory as my main application and load it with ModuleLoader.url = mymodule.swf. However, if I place it on my local webserver and try to load it using ModuleLoader.url = http://localhost/mymodule.swf; - I get this error: SWF is not a loadable module .. I tried searching google and found some info that it might have something to do with security, so I tried adding a crossdomain.xml to my webserver and following the steps outlined in the livedocs without success. (here: http://livedocs.adobe.com/flex/201/html/wwhelp/ wwhimpl/common/html/ wwhelp.htm?context=LiveDocs_Book_Partsfile=modular_083_1.html) Anyone know what the problem might be? Best regards, Bjørn -- http://www.juicability.com - soon a flex blog http://www.43min.com - funny movies
[flexcoders] Re: How to change DataGridCell font color based on the cell value
Iko, Thanks a lot for your help. Works like a charm. Roman --- In flexcoders@yahoogroups.com, iko_knyphausen [EMAIL PROTECTED] wrote: small correction: the initial canvas tag should be without the forward slash...like mx:canvas ... --- In flexcoders@yahoogroups.com, iko_knyphausen iko@ wrote: You could do a cutom itemRenderer that is based on a canvas, put a label for your text (cell value) and overwrite the set data method. mx:canvas/ mx:Label id=myLabel text=/ mx:Script ![CDATA[ import mx.core.*; override public function set data(data:Object) : void { if (data != null) { super.data = data; if ( Number(data.YOURDATAFIELD) 0 ) myLabel.setStyle(color,#ff); else myLabel.clearStyle(color); myLabel.text = data.YOURDATAFIELD; } } ]] /mx:Script /mx:Canvas } --- In flexcoders@yahoogroups.com, rzilist rzilist@ wrote: Hi folks, I need to change the font color on my last DataGridColumn (not the ColumnHeader, just the cells) based on the cell value, i.e. if value in the cell is negative, change the cell font color to red. I've tried various HTMLRenderer classes, but to no avail. Please help! Thanks, Roman
[flexcoders] Re: Fancy floating hint
That is build into the Validator code. the property requiredFieldError will display in the hint if the field is invalid. --- In flexcoders@yahoogroups.com, Mikhail Shevchuk [EMAIL PROTECTED] wrote: How can I embed a hint like in validation demo here http://www.adobe.com/devnet/flex/quickstart/validating_data/ in my application? -- A vivid and creative mind characterizes you.
Re: [flexcoders] Re: Caching problem
On Friday 23 Mar 2007, slangeberg wrote: Now, my question is, what do people do to prevent caching of swf files themselves? We use a web server / accelerator that isn't broken :-) Seriously - if you change a file on disk, and your web server serves up the now non-existant file, you have big problems. -- Tom Chiverton Helping to dramatically consolidate out-of-the-box platforms On: http://thefalken.livejournal.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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Can't add objects to a new Apollo window
I have an Apollo app that I want to make open another window and load a module into it. I'm following the instructions from this page... http://labs.adobe.com/wiki/index.php/Apollo:Documentation:Working_with_windows#Creating_windows I can make the new window appear, but nothing ever shows up in it. I then used the createNewWindow() method from the page above and that worked fine. It created a new window and showed a nice graphic in it. I then tried just adding a Label to that window by doing the following bit of code: var label:Label = new Label(); label.text = Test Label; label.x = 10; label.y = 10; newWindow.stage.addChild(label); However, that didn't add the Label to the window. I had previously tried adding a new ModuleLoader to the new window. I added event listeners to the ModuleLoader and it seemed to be loading the module, and then added the module to the child property of the ModuleLoader. However, just like the label, nothing appeared in the new Apollo window. Any help on this would be GREATLY appreciated. Cheers, Mark
[flexcoders] Re: Apollo isn't loading my modules
I am having a similar problem, app works fine in flex and works fine from apollo if I build it and run, but when I try exporting and running it will not load the module. I got it to work once or twice initially and that was it. Any ideas? --- In flexcoders@yahoogroups.com, Mark Doberenz [EMAIL PROTECTED] wrote: Is there something special I need to do to make Apollo load my modules? Flex builder is showing them just fine, but when I run the app, they don't show up in the view. The debugger is showing that the SWF is being loaded, but then after clicking around on the app for a bit, the debugger says [Unload SWF] and it unloads the module SWF. Any ideas on this one? Mark
[flexcoders] Preloading a tilelist of images?
What would be the preferred method of preloading a tilelist of thumbnails (could contain many thumbs) When I receive the list of thumb urls, should I create background image components to load them into and then access their bmp data for the actual tilelist display? Or is there a way in the tilelist to prefetch stuff?
Re: [flexcoders] Flex compiler API
Hi Matt, Thank you for this information, Vadim. - Original Message - From: Matt Chotin To: flexcoders@yahoogroups.com Sent: Friday, March 23, 2007 6:11 AM Subject: RE: [flexcoders] Flex compiler API Hi, the compiler API and OEM kit are essentially the same thing, they allow you to embed the compiler into your own application. You need an OEM license to do this though. If you're interested in learning more about an OEM license you can contact me offlist. Matt -- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Vadim Melnik Sent: Thursday, March 22, 2007 3:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex compiler API Does anyone know what is Flex OEM Kit, and where is Flex Compiler API location? Flex 2.0.1 documentation provides flex2_compiler_api_ug.pdf document, mentioning flex-compiler-oem.jar. I am looking for standard way for run-time in-memory compilation (to produce dynamic modules from the generated MXML/AS code on the fly). -- Thanks, Vadim.
Re: [flexcoders] Can't add objects to a new Apollo window
Hi, If you read the docs, they say you cannot do this in the Alpha version of Apollo. It will be in a beta or for sure the final. Peace, Mike On 23 Mar 2007 08:50:22 -0700, Mark Doberenz [EMAIL PROTECTED] wrote: I have an Apollo app that I want to make open another window and load a module into it. I'm following the instructions from this page... http://labs.adobe.com/wiki/index.php/Apollo:Documentation:Working_with_windows#Creating_windows I can make the new window appear, but nothing ever shows up in it. I then used the createNewWindow() method from the page above and that worked fine. It created a new window and showed a nice graphic in it. I then tried just adding a Label to that window by doing the following bit of code: var label:Label = new Label(); label.text = Test Label; label.x = 10; label.y = 10; newWindow.stage.addChild (label); However, that didn't add the Label to the window. I had previously tried adding a new ModuleLoader to the new window. I added event listeners to the ModuleLoader and it seemed to be loading the module, and then added the module to the child property of the ModuleLoader. However, just like the label, nothing appeared in the new Apollo window. Any help on this would be GREATLY appreciated. Cheers, Mark -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
[flexcoders] OS X Dock implemented in Flex
Hey everyone, my coworker created an OS X dock in Flex for our use in our application. He just posted it on his web site. If enough people dig it, he's going to post the code so everyone can partake. Check it out. http://www.timothyhuertas.com http://www.timothyhuertas.com/ Allen Riddle Sofware Development x3217
RE: [flexcoders] Re: Event Dispatching through more than one component
Is bubbling then set to true by default? As Alex said, Events have a constructor parameter as to whether the event bubbles or not. In other words it is up to the code that creates the event to decide whether it bubbles or not. For each event dispatched by the Player or Flex Framework classes, the Adobe(r) Flex(tm) 2 Language Reference documents whether it bubbles or not. For example, look at the doc for the (inherited) 'click' event of Button. It has The event has thefollowing properties: Properties Values --- -- bubbles true ... - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of qnotemedia Sent: Friday, March 23, 2007 5:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Event Dispatching through more than one component Argh! It worked! So all I had to do actually was set useCapture in the systemManager.addEventListener to true, and it worked right away. Is bubbling then set to true by default? Also, should I be in the habit of removing the listener when popups are removed? I've been noticing that in other code I've looked at online. Thanks Alex! Makes a whole lot more sense now! - Chris --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: The top of the display list is the stage. The stage always has one child (the root) which in Flex apps is a SystemManager. The app and all popups are children of the systemManager. Stage - SystemManager - Application PopUp1 PopUp2 The event model in Flash/Flex is based on the DOM event model http://www.w3.org/TR/DOM-Level-3-Events/events.html http://www.w3.org/TR/DOM-Level-3-Events/events.html If you search for bubbling and capture in our docs you'll find easier to read descriptions. But basically, when PopUp2 dispatches an non-bubbling event, the stage first dispatches the event in capture phase, then the SystemManager in capture phase, then PopUp2 as a regular event. If the event was a bubbling event, the same would happen, but then SystemManager would dispatch it again in bubbling phase and finally the Stage in bubbling phase. addEventListener has a parameter as to whether you want to listen in capture phase or not. Events have a constructor parameter as to whether the event bubbles or not. Capture phase basically allows containers to supervise and block events going to their children. Bubble phase serves as notification that the child dispatched an event. In theory this makes the Popups even more loosely coupled from each other than the other suggestions. Each Popup simply dispatches events. Other code can capture all events coming from popups (yes, it has to know what the event name is). Popups can listen to other popups without having to watch for their creation and destruction since you are going to addEventListener on systemManager instead of the actual popups. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of qnotemedia Sent: Wednesday, March 21, 2007 4:44 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Event Dispatching through more than one component OK, I understood the other responses, but not this one. Agreed that I tried setting bubbles to true in my customEvent, and then each event instance, and the dispatched event did not pass through embedded windows. But I've never used systemManager, nor do I entirely understand bubbling. Can you forward me to an example or doc explaining this? And does this somewhat move away from loosely-coupled components (which I'm trying real hard to achieve!). Thanks, - Chris --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Alex Harui aharui@ wrote: Each popup is parented by the systemManager so it won't bubble from one popup to the next. However, each popup can listen to the systemManager for the event to bubble to it, or listen in capture phase so you don't have to use bubbling.
RE: [flexcoders] OS X Dock implemented in Flex
Cool - yeah, tell him to post the code. Been done lots in Flash/Actionscript before over the years - not Mac OS flavor necessarily, but menus that scale when the mouse gets closer. Regardless, I'd love to see the source as his implementation is quite nice. Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Allen Riddle Sent: Friday, March 23, 2007 12:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] OS X Dock implemented in Flex Hey everyone, my coworker created an OS X dock in Flex for our use in our application. He just posted it on his web site. If enough people dig it, he's going to post the code so everyone can partake. Check it out. http://www.timothyhuertas.com http://www.timothyhuertas.com/ Allen Riddle Sofware Development x3217
Re: [flexcoders] OS X Dock implemented in Flex
Please do post the code. This would be nice to have the source for. Mike On 3/23/07, Allen Riddle [EMAIL PROTECTED] wrote: Hey everyone, my coworker created an OS X dock in Flex for our use in our application. He just posted it on his web site. If enough people dig it, he's going to post the code so everyone can partake. Check it out. http://www.timothyhuertas.com *Allen Riddle* Sofware Development x3217
[flexcoders] The last Date I'll ever go on
I'm having trouble encoding a date for use in a WebService. If I take the date out, the webservice call works. When I put it in, it breaks. Has anybody had a similar experience? I'm assuming this is a formatting problem, and have tried formatting it a hundred different ways. The actual service call doesn't happen with the date because the error happens within flex. The actual error is the one of my personal favs: Input string was not in a correct format I've tried it typed as a string, and I get a null reference. The type on the wsdl definition is dateTime Any Friday Date tips are welcome! Thanks, b.. *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. ***
RE: [flexcoders] Apollo - multi-window communication
Are you saying that you want to dispatch an event from one Application to another Application? You can't do that as far as I know. You would have to use LocalConnection for this. You can dispatch an event from one NativeWindow in an Application to another NativeWindow in the same Application. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ju Aedis Sent: Thursday, March 22, 2007 10:50 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Apollo - multi-window communication Gordon: if dispatchEvent() in a.mxml(Application), and listener in b.mxml(Application), is it useful like as localConnection between two Applications? if it's useful ,can you give me an example? thanks. 2007/3/23, Gordon Smith [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] : Any listener can use event.target to get a reference to the object which called dispatchEvent(), and thereby access its properties and methods. - Gordon From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com http://yahoogroups.com ] On Behalf Of Ju Aedis Sent: Thursday, March 22, 2007 6:33 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Apollo - multi-window communication how can the broadcast trasfer the info to listener? use event.xxx = xxx? 2007/3/23, Mike Chambers [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] : Windows are all in scope, so you dont have to use LocalConnection. Just have one window broadcast an event, and have the other listen for it. mike chambers [EMAIL PROTECTED] mailto:mesh%40adobe.com Michael Schmalle wrote: I would go out on a limb and say yes. Not in alpha but, if we are going to be able to addChild() on a newly created window, I don't see why you could communicate with a window that you created from the main app. Peace, Mike On 22 Mar 2007 14:32:13 -0700, *Mark Doberenz* [EMAIL PROTECTED] mailto:dobieag01%40gmail.com mailto:[EMAIL PROTECTED] mailto:dobieag01%40gmail.com wrote: Oh yeah, I remember playing with those a long time ago... not the nicest stuff to deal with from what I can remember. Thanks On 22 Mar 2007 14:28:43 -0700, * Carlos Rovira* [EMAIL PROTECTED] mailto:carlos.rovira%40gmail.com mailto: [EMAIL PROTECTED] mailto:carlos.rovira%40gmail.com wrote: You should read about LocalConnection. It's an old Flash API to communicate between different flash movies 2007/3/22, Mark Doberenz [EMAIL PROTECTED] mailto:dobieag01%40gmail.com mailto: [EMAIL PROTECTED] mailto:dobieag01%40gmail.com : I've been thinking about using Apollo for an extension to an app I've been working on in Flex. The current issue with the Flex app is that it's locked to a web browser and really only runs on one screen. I know you can stretch the web browser across multiple screens, but that's not quite what I want. I know Apollo has windowing capabilities and it seems to be quite nice as far as transparent / custom windows goes, which is pretty cool. However, one thing I'd need to be able to do is have one window communicate with another window by passing certain bits of information back and forth. So, here's the $64,000 question Does Apollo allow for communication between different app windows? Any info on this would be GREATLY appreciated!!! Mark -- ::| Carlos Rovira ::| http://www.carlosrovira.com http://www.carlosrovira.com/ http://www.carlosrovira.com http://www.carlosrovira.com/ ::| http://www.madeinflex.com http://www.madeinflex.com/ http://www.madeinflex.com http://www.madeinflex.com/ -- Teoti Graphix
[flexcoders] Re: How to asynchronously dispatch an event
Thanks for your reply Mark Why would it matter for the API whether or not event dispatching was asynchronous? Clients still listen for events and hear them; the only difference would be that the stack would get taller on the sync calls. The main reason is that I want to give the user of the api the ability to add some custom information to the return value of the data model call and make that available in the callback (much like one can add 'stuff' to the AsyncToken returned from e.g. an HTTPService invocation). If you *really* needed to make ape async behavior, you could have the sync methods use a doLater() method to wait a frame before broadcasting an event. Thanks for the doLater() pointer. I can only find info on UIModel.doLater() in the 1.5 docs of flex. Has something changed in 2.0 in that context. Again, I appreciate people taking the time to get be bootstrapped with flex. Peter
Re: [flexcoders] OS X Dock implemented in Flex
Thats funny, I just created my version of the very same thing :) http://www.mediaverk.lv/trash/macMv0.5 2007/3/23, Allen Riddle [EMAIL PROTECTED]: Hey everyone, my coworker created an OS X dock in Flex for our use in our application. He just posted it on his web site. If enough people dig it, he's going to post the code so everyone can partake. Check it out. http://www.timothyhuertas.com *Allen Riddle* Sofware Development x3217
Re: [flexcoders] OS X Dock implemented in Flex
Nice work! I was going to do the same thing. If you post your code I might add to it. The only main difference was mine was going to have bouncy icons to indicate loading. If you enable bitmap smoothing on your icons they'll look a lot sweeter at those small sizes and as they zoom. Doug On 23 Mar 2007 09:54:20 -0700, Mike Collins [EMAIL PROTECTED] wrote: Please do post the code. This would be nice to have the source for. Mike On 3/23/07, Allen Riddle [EMAIL PROTECTED] wrote: Hey everyone, my coworker created an OS X dock in Flex for our use in our application. He just posted it on his web site. If enough people dig it, he's going to post the code so everyone can partake. Check it out. http://www.timothyhuertas.com *Allen Riddle* Sofware Development x3217
Re: [flexcoders] Re: Apollo isn't loading my modules
In ended up figuring this one out. It seems that Flex wants the full path to the modules, but apollo wants the relative path. Once I changed this, it worked just fine. Hope that helps. On 23 Mar 2007 09:20:05 -0700, mthielman11 [EMAIL PROTECTED] wrote: I am having a similar problem, app works fine in flex and works fine from apollo if I build it and run, but when I try exporting and running it will not load the module. I got it to work once or twice initially and that was it. Any ideas? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Mark Doberenz [EMAIL PROTECTED] wrote: Is there something special I need to do to make Apollo load my modules? Flex builder is showing them just fine, but when I run the app, they don't show up in the view. The debugger is showing that the SWF is being loaded, but then after clicking around on the app for a bit, the debugger says [Unload SWF] and it unloads the module SWF. Any ideas on this one? Mark
[flexcoders] Re: How to asynchronously dispatch an event
You can do this with a timer. There is also an undocumented unsupported class in the rpc package that does this as well, but, *use it at your own risk* import mx.rpc.AsyncDispatcher; new AsyncDispatcher(myEventDispatchMethod, [myEvent], 10); It basically takes a method closure and a list of arguments to pass to that method along with the delay in milliseconds before calling the closure. --- In flexcoders@yahoogroups.com, pgp.coppens [EMAIL PROTECTED] wrote: Thanks for your reply Mark Why would it matter for the API whether or not event dispatching was asynchronous? Clients still listen for events and hear them; the only difference would be that the stack would get taller on the sync calls. The main reason is that I want to give the user of the api the ability to add some custom information to the return value of the data model call and make that available in the callback (much like one can add 'stuff' to the AsyncToken returned from e.g. an HTTPService invocation). If you *really* needed to make ape async behavior, you could have the sync methods use a doLater() method to wait a frame before broadcasting an event. Thanks for the doLater() pointer. I can only find info on UIModel.doLater() in the 1.5 docs of flex. Has something changed in 2.0 in that context. Again, I appreciate people taking the time to get be bootstrapped with flex. Peter
Re: [flexcoders] Can't add objects to a new Apollo window
Thanks Michael, Guess I missed that one in the docs. On 3/23/07, Michael Schmalle [EMAIL PROTECTED] wrote: Hi, If you read the docs, they say you cannot do this in the Alpha version of Apollo. It will be in a beta or for sure the final. Peace, Mike On 23 Mar 2007 08:50:22 -0700, Mark Doberenz [EMAIL PROTECTED] wrote: I have an Apollo app that I want to make open another window and load a module into it. I'm following the instructions from this page... http://labs.adobe.com/wiki/index.php/Apollo:Documentation:Working_with_windows#Creating_windows I can make the new window appear, but nothing ever shows up in it. I then used the createNewWindow() method from the page above and that worked fine. It created a new window and showed a nice graphic in it. I then tried just adding a Label to that window by doing the following bit of code: var label:Label = new Label(); label.text = Test Label; label.x = 10; label.y = 10; newWindow.stage.addChild (label); However, that didn't add the Label to the window. I had previously tried adding a new ModuleLoader to the new window. I added event listeners to the ModuleLoader and it seemed to be loading the module, and then added the module to the child property of the ModuleLoader. However, just like the label, nothing appeared in the new Apollo window. Any help on this would be GREATLY appreciated. Cheers, Mark -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
[flexcoders] Re: Compiling themes / modules / CSS using Flex Builder?
I know for CSS you just right-click on the file and select compile css to swf. Is that what you mean? --- In flexcoders@yahoogroups.com, Bryan Clover [EMAIL PROTECTED] wrote: Hi All, I have been able to use the command-line compilers to compile themes, modules, etc. But, I was wondering if there's a way to do this within Flex Builder? I've read through the Flex documentation, but I can't seem to find any detailed information on how to do this. Am I missing something? Is it even possible? If so, can anyone point me to a step-by-step example? Thanks in advance, =BC=
[flexcoders] Re: Data Binding Issue
Hi Tom, Here is the code for the custom component. It contains two arraylists. dataItems and selectedItems. dataItems is the complete set of list for which the check boxes should be generated. selectedItems is the list which has the items (checkboxes) to be selected. The user will send a list of completeList of items (dataItems) and a selected list of items from the main MXML. //Code for the Custom Component ?xml version=1.0 encoding=utf-8? mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml width=100% autoLayout=false horizontalScrollPolicy=off verticalScrollPolicy=off creationComplete=initComp() mx:Script ![CDATA[ import mx.collections.ArrayCollection= new ArrayCollection(); [Bindable] public var dataItems:ArrayCollection = new ArrayCollection(); [Bindable] public var selectedItems:ArrayCollection; ]] /mx:Script mx:Tile id=chkTile mx:Repeater id=chkRepeater dataProvider={dataItems} mx:CheckBox id=chkCheckBox selected=selectedItems.contains(chkRepeater.currentItem) label={chkRepeater.currentItem.label} styleName=glass uid={chkRepeater.currentItem.value} / /mx:Repeater /mx:Tile /mx:Canvas //Code for the Main MXML ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=initComp() xmlns:view=view.* mx:Script ![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var completeList:ArrayCollection = new ArrayCollection(); [Bindable] private var selectedList:ArrayCollection; private function initComp(){ //Assume that I will get a list of Items (checkBoxes in this case) to be created completeList = .. } ]] /mx:Script view:MultipleOptionsCheckBoxView dataItems={completeList} selectedItems={selectedList}/ /mx:Application I am binding completeList to dataItems and selectedList to selectedItems. My ultimate goal is, if the developer passes a list of selectedList then the checkboxes should be selected (after creation) based on the items the developer passed. If the developer doesn't pass anything, then when ever a user selects a list of items, they should be available to the developer in the local variable selectedList (as there is a binding). I think you understoood my requirement. Everything works fine for me except when the selectedList (local variable in the Main.mxml) is not initialized. If I initialize this local variable, then the binding works fine (both sides). If I have a list of selectedList, then also the binding works. The only problem is when the selectedList is null. If I initialize the variable in the custom component (when it is null) the binding fails. I dont want to use mx:Binding tag (which also works fine in all situations)... Let me know if I miss anythingor confused you a lot.. Once again, thanks for your help Madhu --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Friday 23 Mar 2007, madhukiranm wrote: Thanks for the replyI tried the one you suggested, but binding doesn't seem to work. Guess you'll have to post your code then :-) -- Tom Chiverton Helping to administratively entrench interactive convergence On: http://thefalken.livejournal.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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. 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 8008. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] Re: How to asynchronously dispatch an event
I think doLater is called callLater in AS3 (at least, I see that func occasionally in other people's code). Troy. On 3/23/07, jason_williams_mm [EMAIL PROTECTED] wrote: You can do this with a timer. There is also an undocumented unsupported class in the rpc package that does this as well, but, *use it at your own risk* import mx.rpc.AsyncDispatcher; new AsyncDispatcher(myEventDispatchMethod, [myEvent], 10); It basically takes a method closure and a list of arguments to pass to that method along with the delay in milliseconds before calling the closure. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, pgp.coppens [EMAIL PROTECTED] wrote: Thanks for your reply Mark Why would it matter for the API whether or not event dispatching was asynchronous? Clients still listen for events and hear them; the only difference would be that the stack would get taller on the sync calls. The main reason is that I want to give the user of the api the ability to add some custom information to the return value of the data model call and make that available in the callback (much like one can add 'stuff' to the AsyncToken returned from e.g. an HTTPService invocation). If you *really* needed to make ape async behavior, you could have the sync methods use a doLater() method to wait a frame before broadcasting an event. Thanks for the doLater() pointer. I can only find info on UIModel.doLater() in the 1.5 docs of flex. Has something changed in 2.0 in that context. Again, I appreciate people taking the time to get be bootstrapped with flex. Peter
[flexcoders] An easy one
I have seen [binding] in the source code but I am unable to find any references to it? Can some one help please? Cheers, Adam
[flexcoders] Apollo HTMLControl capabilities
This is more of a general question regarding capabilities of this class. What kind of things in an HTML file will be displayable using this class? What if an HTML file has an object definition in it, like for an ActiveX control. Will it display the ActiveX control like Internet Explorer does? I work for a company that has a 3D viewer, and I'd like to place an instance of the 3D view in an Apollo window in some way shape or form. Any ideas on whether this would be possible or not using the HTMLControl? Mark
Re: [flexcoders] An easy one
Search your help docs (or google) for binding metadata tag. Troy. On 3/23/07, adam.gavin [EMAIL PROTECTED] wrote: I have seen [binding] in the source code but I am unable to find any references to it? Can some one help please? Cheers, Adam
Re: [flexcoders] OS X Dock implemented in Flex
Doug used Ely Greenfield's(?) fish-eye to great effect: http://dougmccune.com/blog/2007/03/02/ -Scott On 3/23/07, Janis Radins [EMAIL PROTECTED] wrote: Thats funny, I just created my version of the very same thing :) http://www.mediaverk.lv/trash/macMv0.5 2007/3/23, Allen Riddle [EMAIL PROTECTED]: Hey everyone, my coworker created an OS X dock in Flex for our use in our application. He just posted it on his web site. If enough people dig it, he's going to post the code so everyone can partake. Check it out. http://www.timothyhuertas.com *Allen Riddle* Sofware Development x3217 -- : : ) Scott
RE: [flexcoders] Re: Event Dispatching through more than one component
Yes, if you don't remove listeners on systemManager you will probably leak memory. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Friday, March 23, 2007 9:51 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Event Dispatching through more than one component Is bubbling then set to true by default? As Alex said, Events have a constructor parameter as to whether the event bubbles or not. In other words it is up to the code that creates the event to decide whether it bubbles or not. For each event dispatched by the Player or Flex Framework classes, the Adobe(r) Flex(tm) 2 Language Reference documents whether it bubbles or not. For example, look at the doc for the (inherited) 'click' event of Button. It has The event has thefollowing properties: Properties Values --- -- bubbles true ... - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of qnotemedia Sent: Friday, March 23, 2007 5:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Event Dispatching through more than one component Argh! It worked! So all I had to do actually was set useCapture in the systemManager.addEventListener to true, and it worked right away. Is bubbling then set to true by default? Also, should I be in the habit of removing the listener when popups are removed? I've been noticing that in other code I've looked at online. Thanks Alex! Makes a whole lot more sense now! - Chris --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: The top of the display list is the stage. The stage always has one child (the root) which in Flex apps is a SystemManager. The app and all popups are children of the systemManager. Stage - SystemManager - Application PopUp1 PopUp2 The event model in Flash/Flex is based on the DOM event model http://www.w3.org/TR/DOM-Level-3-Events/events.html http://www.w3.org/TR/DOM-Level-3-Events/events.html If you search for bubbling and capture in our docs you'll find easier to read descriptions. But basically, when PopUp2 dispatches an non-bubbling event, the stage first dispatches the event in capture phase, then the SystemManager in capture phase, then PopUp2 as a regular event. If the event was a bubbling event, the same would happen, but then SystemManager would dispatch it again in bubbling phase and finally the Stage in bubbling phase. addEventListener has a parameter as to whether you want to listen in capture phase or not. Events have a constructor parameter as to whether the event bubbles or not. Capture phase basically allows containers to supervise and block events going to their children. Bubble phase serves as notification that the child dispatched an event. In theory this makes the Popups even more loosely coupled from each other than the other suggestions. Each Popup simply dispatches events. Other code can capture all events coming from popups (yes, it has to know what the event name is). Popups can listen to other popups without having to watch for their creation and destruction since you are going to addEventListener on systemManager instead of the actual popups. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of qnotemedia Sent: Wednesday, March 21, 2007 4:44 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Event Dispatching through more than one component OK, I understood the other responses, but not this one. Agreed that I tried setting bubbles to true in my customEvent, and then each event instance, and the dispatched event did not pass through embedded windows. But I've never used systemManager, nor do I entirely understand bubbling. Can you forward me to an example or doc explaining this? And does this somewhat move away from loosely-coupled components (which I'm trying real hard to achieve!). Thanks, - Chris --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders% 40yahoogroups.com , Alex Harui aharui@ wrote: Each popup is parented by the systemManager so it won't bubble from one popup to the next. However, each popup can listen to the systemManager for the event to bubble to it, or listen in capture phase so you don't have to use bubbling.
RE: [flexcoders] Preloading a tilelist of images?
There's no option for TileList to pre-fetch. If you know the thumbnails and they won't change, you can always embed them and use a different itemRenderer that assumes the images are embedded. Then they are guaranteed to be there when the app starts up, but that can slow download and startup time. You can copy bmp data if you want as well. Depending on how fast you need it, remember that in most cases, once you fetch an image, it will be in the browser cache so the second fetch is pretty fast. So, you can always just have hidden loaders that load them once just to prime the browser cache. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rick Schmitty Sent: Friday, March 23, 2007 9:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Preloading a tilelist of images? What would be the preferred method of preloading a tilelist of thumbnails (could contain many thumbs) When I receive the list of thumb urls, should I create background image components to load them into and then access their bmp data for the actual tilelist display? Or is there a way in the tilelist to prefetch stuff?
RE: [flexcoders] SWF is not a loadable module
Modules cannot be loaded across domains w/o crossdomain.xml permissions From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of itrashmail Sent: Friday, March 23, 2007 8:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] SWF is not a loadable module I've compiled a mx:Module which I'm able to load fine if I place it in the same directory as my main application and load it with ModuleLoader.url = mymodule.swf. However, if I place it on my local webserver and try to load it using ModuleLoader.url = http://localhost/mymodule.swf http://localhost/mymodule.swf - I get this error: SWF is not a loadable module .. I tried searching google and found some info that it might have something to do with security, so I tried adding a crossdomain.xml to my webserver and following the steps outlined in the livedocs without success. (here: http://livedocs.adobe.com/flex/201/html/wwhelp/ http://livedocs.adobe.com/flex/201/html/wwhelp/ wwhimpl/common/html/ wwhelp.htm?context=LiveDocs_Book_Partsfile=modular_083_1.html) Anyone know what the problem might be? Best regards, Bjørn -- http://www.juicability.com http://www.juicability.com - soon a flex blog http://www.43min.com http://www.43min.com - funny movies
[flexcoders] DataGrid header question - need help on Styles
Hello All, Is there a style available, that would virtually eliminate the dividing line between each Column Header? Just imagine a multi-column DataGrid, but having just ONE huge rectangle which spans the length of the entire Grid encapsulating the Headers. You can do this on the DataGrid itself, by turning off the Vertical Gridlines - and this is the same look I am trying to attain for the Headers. Thanks in advance, for any information you can throw my way. Mike
RE: [flexcoders] Re: Module issue
I'm starting to think you are trying to use flex components which are built in actionscript and run only on the client in your server code. If that's true, then sorry, you can't run actionscript swc code on a server. -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of fabio_sebastiano Sent: Friday, March 23, 2007 2:27 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Module issue Hi, i'm going forward with this problem...today i downloaded flexLib components and i've tried to implements them in my webapp. My editor recognize them and suggest me all the properties...but when i run the app, i've got the same error as with moduleLoader. If i use the lib within another project...it works fine Help me --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , fabio_sebastiano [EMAIL PROTECTED] wrote: Alex, thank you once again. I know the swc is a sort of zip file, i've opened it and i've read the catalog.xml. Modules and moduleLoader tag were there. I've changed the order of libraries, putting framework.swc at first position, before fds swc. I've also put the source attachement in the right way. Everytime the same problem! Are you sure that the moduleloader component is compatible with project that are not recognizes as flex project by FlexBuilder? I've created this project as fds project, and eclipse read it as a j2ee project. I can't explain the reason that allow me to load modules within a classic flex project and don't allow me to do the same thing with fds or j2ee project. Thank you very very much Fabio --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: The framework.swc is really a zip file. In it is a catalog.xml that lists the classes known to it. Make sure ModuleLoader is in there. It might be an order problem too. Make sure the framework.swc is going to be found before the FDS swcs. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of fabio_sebastiano Sent: Thursday, March 22, 2007 1:02 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Module issue Hi, thanks for the reply. I checked the lib-path and i found that it's the right one, the one that flexBuilder automatically put when i create a project. I've also tried to change the path and point the 2.0.1 one, recompile the application and deploy it to the server...but it still give the same error. I really don't know what to do, and the others flex projects still works...this thing is making me loose a lot of time!!! Thanks, Fabio --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: Check your lib-path to make sure the framework.swc is the right one. If you end up with a 2.0 instead of 2.0.1 it won't know about moduleloader. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of fabio_sebastiano Sent: Wednesday, March 21, 2007 7:50 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Module issue Hi everybody, i'm facing a real funny problem with modules and moduleLoader, i hope it's not my fault anyway... If i create a normal flex project with fBuilder, i'm able to use modules in a lot of different ways (as mxml, as as in a function etc..)... but if i try to use them in my fds application (created with fds eclipse plugin) i can't use modules. The compile-time error message is always the same: Could not resolve mx:ModuleLoader to a component implementation I tried a lot of solutions, paying attention to import all the classes etc...but nothing change. I will appreciate everykind of help. TIA Fabio
[flexcoders] Basic question
Hello, Here's my problem : Access of undefined property grilleTerrainsACDP. I try to reach a public variable from inside a component (private method). The problem is in this method (from the OptionsFiche.mxml component): public function trierTerrainsPromoteur():void { var triTerrains:Sort = new Sort(); triTerrains.fields= [new SortField(numero)]; grilleTerrainsACDP.sort = triTerrains; grilleTerrainsACDP.refresh(); } The grilleTerrainsACDP variable is defined in my AS source : [Bindable] public var grilleTerrainsACDP:ArrayCollection; This source file in included, from my main application, with this sentence : mx:Script source=actionscript/ListingTerrains.as/ Here's my application structure: O---actionscript | |-ListingTerrains.as | O---components | |-OptionsFiche.mxml (trying to call from here). | O---MainApp.mxml Any suggestion? :) Thanks! Nicolas
RE: [flexcoders] DataGrid header paddingTop
Custom headerRenderer. Check the docs for examples. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sanjaypmg Sent: Friday, March 23, 2007 2:00 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataGrid header paddingTop Hi All, In my flex screen, there is a dataGrid with rendered headers. To make my header looking good I have given paddingTop=-2... but If I specify paddingTop=-2, vertical alignment of my Data/other rows shifts towards top in other words, which is not vertically in middle.. How can I make the paddingTop=0 for all rows except header? Please do let me knw the solution... Thanks in Advance Sanjay Sharma
RE: [flexcoders] Reference Getter in DataGrid
Should work. Are you getting compile errors, runtime exceptions or empty? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Sent: Thursday, March 22, 2007 6:15 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Reference Getter in DataGrid is it possible to reference a getter function as a variable in a DataGrid? Let's say I have a VO wit the following properties: public var first: public var last; public function get fullName():string{ return this.first+ +this.last; } I can I then call this in a DataGrid column? mx:DataGridColumn dataField=fullName headerText=full name / I can't get this to work... Thanks, Kevin
RE: [flexcoders] Basic question
Each mxml file is its own document and has its own variable scope. Therefore there is no property definied in OptionsFiche.mxml, it is defined in ListingTerrains.as or the main mxml file. parentDocument is usually the answer. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nicolas Boulet-Lavoie Sent: Friday, March 23, 2007 10:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Basic question Hello, Here's my problem : Access of undefined property grilleTerrainsACDP. I try to reach a public variable from inside a component (private method). The problem is in this method (from the OptionsFiche.mxml component): public function trierTerrainsPromoteur():void { var triTerrains:Sort = new Sort(); triTerrains.fields= [new SortField(numero)]; grilleTerrainsACDP.sort = triTerrains; grilleTerrainsACDP.refresh(); } The grilleTerrainsACDP variable is defined in my AS source : [Bindable] public var grilleTerrainsACDP:ArrayCollection; This source file in included, from my main application, with this sentence : mx:Script source=actionscript/ListingTerrains.as/ Here's my application structure: O---actionscript | |-ListingTerrains.as | O---components | |-OptionsFiche.mxml (trying to call from here). | O---MainApp.mxml Any suggestion? :) Thanks! Nicolas
RE: [flexcoders] Line inbetween comboItems
Maybe some sort of custom itemRenderer. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of sanjaypmg Sent: Friday, March 23, 2007 2:09 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Line inbetween comboItems Hi All, I have a combo box in my application and there a lots of items all are related to 4-5 categories.. Wht I wanted to do here I want a seperator sort of line once a category Items are finished I have tried it but didnt get success. Pls suggest, How can i do the same? Thanks in Advance, Sanjay Sharma
[flexcoders] ArrayCollection problem (binding to a Datagrid)
Hi, When I try to bind an empty ArrayCollection or with only 1 item to a Datagrid, I'm getting a runtime error (sorry it's in french but the error number means something in this case): TypeError: Error #1034: Echec de la contrainte de type : conversion de mx.utils::[EMAIL PROTECTED] en mx.collections.ArrayCollection impossible. Here's the code I use : private function handler(event:ResultEvent):void { grilleTerrainsACDP = event.result.terrains.terrain; } And the grilleTerrainsACDP variable who's binded to my datagrid, as the data provider, is declared this way: [Bindable] public var grilleTerrainsACDP:ArrayCollection; Any idea? I use a ArrayCollection for ICursorView... Thanks Nicolas
[flexcoders] Re: Basic question
Seems to work fine, thanks alot :) --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Each mxml file is its own document and has its own variable scope. Therefore there is no property definied in OptionsFiche.mxml, it is defined in ListingTerrains.as or the main mxml file. parentDocument is usually the answer. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nicolas Boulet-Lavoie Sent: Friday, March 23, 2007 10:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Basic question Hello, Here's my problem : Access of undefined property grilleTerrainsACDP. I try to reach a public variable from inside a component (private method). The problem is in this method (from the OptionsFiche.mxml component): public function trierTerrainsPromoteur():void { var triTerrains:Sort = new Sort(); triTerrains.fields= [new SortField(numero)]; grilleTerrainsACDP.sort = triTerrains; grilleTerrainsACDP.refresh(); } The grilleTerrainsACDP variable is defined in my AS source : [Bindable] public var grilleTerrainsACDP:ArrayCollection; This source file in included, from my main application, with this sentence : mx:Script source=actionscript/ListingTerrains.as/ Here's my application structure: O---actionscript | |-ListingTerrains.as | O---components | |-OptionsFiche.mxml (trying to call from here). | O---MainApp.mxml Any suggestion? :) Thanks! Nicolas
Re: [flexcoders] Compiling themes / modules / CSS using Flex Builder?
Modules are compiled by creating a module, and adding it to the project's Application list. I'm assuming you're referring to the Module tag in v2.0.1. -Scott On 23 Mar 2007 05:57:04 -0700, Bryan Clover [EMAIL PROTECTED] wrote: Hi All, I have been able to use the command-line compilers to compile themes, modules, etc. But, I was wondering if there's a way to do this within Flex Builder? I've read through the Flex documentation, but I can't seem to find any detailed information on how to do this. Am I missing something? Is it even possible? If so, can anyone point me to a step-by-step example? Thanks in advance, =BC= -- : : ) Scott
RE: [flexcoders] ArrayCollection problem (binding to a Datagrid)
When data is sent over the wire from a server, we have to guess whether it is a single data object or an array of objects. If we see an xml tag twice we know it has to be an array, but if there is only one tag, we assume it is an object. You can simply test to see if the result is an ObjectProxy or an Array/ArrayCollection and convert it to an array if needed. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nicolas Boulet-Lavoie Sent: Friday, March 23, 2007 11:04 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ArrayCollection problem (binding to a Datagrid) Hi, When I try to bind an empty ArrayCollection or with only 1 item to a Datagrid, I'm getting a runtime error (sorry it's in french but the error number means something in this case): TypeError: Error #1034: Echec de la contrainte de type : conversion de mx.utils::[EMAIL PROTECTED] en mx.collections.ArrayCollection impossible. Here's the code I use : private function handler(event:ResultEvent):void { grilleTerrainsACDP = event.result.terrains.terrain; } And the grilleTerrainsACDP variable who's binded to my datagrid, as the data provider, is declared this way: [Bindable] public var grilleTerrainsACDP:ArrayCollection; Any idea? I use a ArrayCollection for ICursorView... Thanks Nicolas
RE: [flexcoders] The last Date I'll ever go on
LiveCycle Data Services 2.5 (nee Flex Data Services 2.5) Beta 2 is now available on Adobe Labs and includes a new WebService implementation that aims to support much more of XML Schema and its built-in types. Since we're in beta, we want to get as many people to try out the new web service implementation and get the issues ironed out before we ship. A Beta release of a hotfix for Flex Builder and Flex SDK is due out soon that includes support for LCDS 2.5, but there are a few steps you can take to manually update your environment to use the new swcs and compiler from LCDS 2.5 Beta 2. We've already received great feedback for some issues with xsd:dateTime from this beta and we'd like to get your test case too. You can also email me directly to provide your WSDL and the AS code that you're using to construct the Date. Pete From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian Holmes Sent: Friday, March 23, 2007 12:48 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] The last Date I'll ever go on I'm having trouble encoding a date for use in a WebService. If I take the date out, the webservice call works. When I put it in, it breaks. Has anybody had a similar experience? I'm assuming this is a formatting problem, and have tried formatting it a hundred different ways. The actual service call doesn't happen with the date because the error happens within flex. The actual error is the one of my personal favs: Input string was not in a correct format I've tried it typed as a string, and I get a null reference. The type on the wsdl definition is dateTime Any Friday Date tips are welcome! Thanks, b.. *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. ***
[flexcoders] constructor like arguments in MXML components?
I'm working on an app that has the need for several popup item editor kind of windows. Example: there are people in a list, and when you double click one of them, you get a popup (TitleWindow) with a form with fields for (and populated with the selected person's) FirstName, LastName, ... and save and cancel buttons. I'm also trying to use the same popup for entering a NEW person, so that the popup comes up with blank form items. My first approach was to make an MXML component based off of TitleWindow, since I have a lot of form elements and layout to add. But then I ran into the problem. I want to pass in a Person instance to populate the form (if I'm in edit mode) or else not pass in anything (null) if I'm in create-new mode. In AS, I'd have the contructor accept a p:Person = null parameter and that would be that. So.. my question finally. Is there a way / technoque to pass in contructor types of parameters to an MXML component, or do I need to suck it up and write the class in AS and deal with all the addChild's necessary to create the layout (oh, and it has states)? Thanks! -- TC
[flexcoders] Re: constructor like arguments in MXML components?
I talk to myself all the time, so why not do it on FlexCoders? I was thinking more about my problem: I had tried to do something like this: //code here to create new popup of my TitleWindow form, then... myTitleWindow.person = myPerson; But I was getting errors and/or nothing because myTitleWindow was not done creating its children before I set its person variable. So I did this: var myTitleWindow = //code to create the popup using my mxml extension //of TitleWindow with the set person() function in //it var myFunc:Function = function():void {myTitleWindow.person = myPerson} myTitleWindow.addEventListener(creationComplete, myFunc); Seems to work, and is finally gives me a reason to understand why one would ever create a variable of type Function. Comments or concerns are welcome... but I thought I'd share
[flexcoders] Cool Undocumented Flex Class - HierarchicalCollectionView
mx.controls.treeClasses.HierarchicalViewCursor; mx.controls.treeClasses.HierarchicalCollectionView; Hey Guys, I'm looking at how the Tree locates a child's parent within a Hierarchical data structure and stumbled across these undocumented (but potentially very useful!) classes: HierarchicalCollectionView and HierarchicalViewCursor. Anyone out there have any documentation about these? Of course I can walk through myself, this is the official way to walk a Hierarchical structure for now but would be nice to call the method used in the tree HierarchicalCollectionView(collection).getParentItem(item) wouldn't it? Thanks, Evan
Re: [flexcoders] OS X Dock implemented in Flex
yes source for this would be cool. I am waiting for this one as well to have its source released, I dig the reflection :) http://dougmccune.com/blog/2007/03/02/demo-mashup-of-various-flex-2-community-components/ Impudent1 LeapFrog Productions
[flexcoders] Re: constructor like arguments in MXML components?
The way I do this is I create a public property of type Object called parentComponent in the Script/AS section of my TitleWindow. Then after I create the PopUp I set the parentComponent. That way I can get at the selectedItem and other information that I may need in the PopUp without passing anything. I normally working within a component that I have extended from one of the Flex components, so I have a method like this: protected var pop1:TitleWindow; protected function createPopUp():void { pop1 = new RemotingForm(); RemotingForm(pop1).parentComponent = this; } Where RemotingForm is the MXML TitleWindow. Then in the TitleWindow I will reference the the selectedItem as follows: mx:Script ![CDATA[ import flash.events.Event; public var parentComponent:Object; private var curItem:Object; private function creationCompleteHandler(evt:Event):void { curItem = parentComponent.selectedItem; } ]] /mx:Script I use this technique with all of my list based components. Maury --- In flexcoders@yahoogroups.com, tddclare [EMAIL PROTECTED] wrote: I talk to myself all the time, so why not do it on FlexCoders? I was thinking more about my problem: I had tried to do something like this: //code here to create new popup of my TitleWindow form, then... myTitleWindow.person = myPerson; But I was getting errors and/or nothing because myTitleWindow was not done creating its children before I set its person variable. So I did this: var myTitleWindow = //code to create the popup using my mxml extension //of TitleWindow with the set person() function in //it var myFunc:Function = function():void {myTitleWindow.person = myPerson} myTitleWindow.addEventListener(creationComplete, myFunc); Seems to work, and is finally gives me a reason to understand why one would ever create a variable of type Function. Comments or concerns are welcome... but I thought I'd share
RE: [flexcoders] constructor like arguments in MXML components?
MXML components do not have constructor parameters. You set properties after calling 'new'. If you write mx:Button id=b label=OK labelPlacement=right/ the compiler generates code similar to var b:Button; ... b = new Button(); b.label = OK; b.labelPlacement = right; It doesn't know what MXML attributes correspond to what constructor parameters. If setting a property needs to affect children, you use invaldiateProperties() and commitProperties() to accomplish this, because the children do not get created during 'new'. (This is so that which children it creates can be determined by the properties you set!) Take a look at how Button code implements its label property. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tddclare Sent: Friday, March 23, 2007 11:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] constructor like arguments in MXML components? I'm working on an app that has the need for several popup item editor kind of windows. Example: there are people in a list, and when you double click one of them, you get a popup (TitleWindow) with a form with fields for (and populated with the selected person's) FirstName, LastName, ... and save and cancel buttons. I'm also trying to use the same popup for entering a NEW person, so that the popup comes up with blank form items. My first approach was to make an MXML component based off of TitleWindow, since I have a lot of form elements and layout to add. But then I ran into the problem. I want to pass in a Person instance to populate the form (if I'm in edit mode) or else not pass in anything (null) if I'm in create-new mode. In AS, I'd have the contructor accept a p:Person = null parameter and that would be that. So.. my question finally. Is there a way / technoque to pass in contructor types of parameters to an MXML component, or do I need to suck it up and write the class in AS and deal with all the addChild's necessary to create the layout (oh, and it has states)? Thanks! -- TC