[flexcoders] Re: Disable Deep Linking
This actually disables not only deep linking, but but all browser interaction. How can you disable deep linking without disabling historyManager ? I have an application which i made with Flex 2, and i was using HistoryManager. Now in Flex 3, HistoryManager does not work anymore and deep linking is active. How can i disable deep linking so i can use HistoryManager ? Thanks for your input. --- In flexcoders@yahoogroups.com, rfm [EMAIL PROTECTED] wrote: On the project properties, in Flex Compiler section you have a checkbox Enable integration with browser navigation, deselect it and then rebuild your application. -- View this message in context: http://www.nabble.com/Disable-Deep-Linking-tp16604365p16604445.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Re: Working with ads (DART) in flex ? How can you possibly do that ?
Hello Shannon, Thank you for taking the time to look into this. I don't really understand what you're doing here... Are you saying that with your code, you can show in your flash app the swf or gif that gets writen by the js call ? The main problem is that the js call may be a call to another js and so on... until you get to the swf or gif ad ! I'll keep trying your code. JL --- In flexcoders@yahoogroups.com, Shannon [EMAIL PROTECTED] wrote: Sorry I get it now. I read about DART, this is a js call. In Flash: var dartData = {x:X,y:Y,z:Z}; flash.external.ExternalInterface.call(myDartWriterFunc,dartData) in Javascript: script !-- function myDartWriterFunc(dartData){ // parse dartData if applicable document.write('script language=JavaScript src=http://ad.fr.doubleclick.net/adj/ts.psycho.com/homepage/index/sky ;kw=x;tile\=5;sz=160x320;ord='+jsDartRandom+'?/script'); } //-- /script
[flexcoders] Re: Working with ads (DART) in flex ? How can you possibly do that ?
Sorry, i get your code now. What you is what i tried before, that is triggering the writing of the dart ad from flex, and positionning it in a div on a layer over your flex app. There are two limitations here : You cannot deal with expandable ads (because the ad is contained in a div) You cannot allocate the space for the ad overlaying your app in your flex app, because there is no ways of knowing the height of the ad returned. If you have flex content before and after your ad, how do you allocate the corresponding space to position your content ? JL --- In flexcoders@yahoogroups.com, Shannon [EMAIL PROTECTED] wrote: Sorry I get it now. I read about DART, this is a js call. In Flash: var dartData = {x:X,y:Y,z:Z}; flash.external.ExternalInterface.call(myDartWriterFunc,dartData) in Javascript: script !-- function myDartWriterFunc(dartData){ // parse dartData if applicable document.write('script language=JavaScript src=http://ad.fr.doubleclick.net/adj/ts.psycho.com/homepage/index/sky ;kw=x;tile\=5;sz=160x320;ord='+jsDartRandom+'?/script'); } //-- /script
[flexcoders] Working with ads (DART) in flex ? How can you possibly do that ?
If someone finds a solution to this one, i'll pay him strawberries ! Is there a way of doing a js document.write in Flex ? Explanantion : Today i have a website with DART tags like this one : script !-- document.write('script language=JavaScript src=http://ad.fr.doubleclick.net/adj/ts.psycho.com/homepage/index/sky;kw=x;tile=5;sz=160x320;ord='+jsDartRandom+'?/script'); //-- /script Tomorrow my website is gonna be a full flex application. How do i implement my DART into my Flex app ? Looks like i cannot, because the source is not necessarly the swf or gif, but can be a redirect, that is another js calling another js, and so on. So is there a way flex can deal with this ? I think this is gonna become a very big problem if we cannot deal with ads in flex apps... Using an iFrame to display ads doesn't work as some ads may have to expand over the app on rollover. Working with divs won't work as there is no way of knowing the size of the ad returned by DART, and thus no way of allowing the corresponding space in our flex app... I'm stuck !! Jean-Luc.
[flexcoders] Re: Working with ads (DART) in flex ? How can you possibly do that ?
I don't see the ad networks providing such a solution... It would mean, because of the redirects from one network to the other, that every single network makes this move. I think the move has to come from adobe, in a way or another. Adobe ? Jean-Luc ESSER Leader of the French Flex User Group (flexeurs.org) --- In flexcoders@yahoogroups.com, Troy Gilbert [EMAIL PROTECTED] wrote: The ad networks are going to need to provide a native Flash solution sooner rather than later, particularly with the growing number of Flash RIAs (in particular games). Mochi Ads provides one solution for games, but its nothing compared to a TextLinks, DoubleClick or GoogleAds. In other words, there is no solution beyond what you mentioned. The ad networks simply depend on functionality that isn't present inside of Flash. Troy. On 21 Mar 2007 03:20:57 -0700, Jean-Luc ESSER [EMAIL PROTECTED] wrote: If someone finds a solution to this one, i'll pay him strawberries ! Is there a way of doing a js document.write in Flex ? Explanantion : Today i have a website with DART tags like this one : script !-- document.write('script language=JavaScript src= http://ad.fr.doubleclick.net/adj/ts.psycho.com/homepage/index/sky;kw=x;tile=5;sz=160x320;ord= '+jsDartRandom+'?/script'); //-- /script Tomorrow my website is gonna be a full flex application. How do i implement my DART into my Flex app ? Looks like i cannot, because the source is not necessarly the swf or gif, but can be a redirect, that is another js calling another js, and so on. So is there a way flex can deal with this ? I think this is gonna become a very big problem if we cannot deal with ads in flex apps... Using an iFrame to display ads doesn't work as some ads may have to expand over the app on rollover. Working with divs won't work as there is no way of knowing the size of the ad returned by DART, and thus no way of allowing the corresponding space in our flex app... I'm stuck !! Jean-Luc.
[flexcoders] Re: Working with ads (DART) in flex ? How can you possibly do that ?
Thanks for your help, but it looks like this solution is for publishers, so they can develop content that will integrate into flash environments. But the problem remains for the one who just needs to integrate a campain in a flex environment. And the problem remains if you deal with redirects, that is ads from different ad networks. Jean-Luc ESSER --- In flexcoders@yahoogroups.com, Paul DeCoursey [EMAIL PROTECTED] wrote: Perhaps you should be talking with Doubleclick, it looks like they have a Flash in Flash solution for DART. http://www.doubleclick.com/us/products/dart_motif_for_flash_in_flash/ I'm not at all familiar with it though, just trying to be helpful. I've never really worked with ads before, I have a deep disdain for them... but I'm sure someday I'll have to give in to it. --- In flexcoders@yahoogroups.com, Jean-Luc ESSER flex@ wrote: If someone finds a solution to this one, i'll pay him strawberries ! Is there a way of doing a js document.write in Flex ? Explanantion : Today i have a website with DART tags like this one : script !-- document.write('script language=JavaScript src=http://ad.fr.doubleclick.net/adj/ts.psycho.com/homepage/index/sky;kw=x;tile=5;sz=160x320;ord='+jsDartRandom+'?/script'); //-- /script Tomorrow my website is gonna be a full flex application. How do i implement my DART into my Flex app ? Looks like i cannot, because the source is not necessarly the swf or gif, but can be a redirect, that is another js calling another js, and so on. So is there a way flex can deal with this ? I think this is gonna become a very big problem if we cannot deal with ads in flex apps... Using an iFrame to display ads doesn't work as some ads may have to expand over the app on rollover. Working with divs won't work as there is no way of knowing the size of the ad returned by DART, and thus no way of allowing the corresponding space in our flex app... I'm stuck !! Jean-Luc.
[flexcoders] Re: Background transparancy
Hello Benoit ! How you doing ? To all : I'm trying to extend the transparency problem to a more complex problem : How would you, in Flex, make possible to expand some content over your html page, so that html content is accessible (you can interact with it) when not expanded. That is what you can do with flash (for ads for example). Flash does not have a main container, but Flex does, so is it possible ? Thanx ! Jean-Luc. --- In flexcoders@yahoogroups.com, Benoit Hediard [EMAIL PROTECTED] wrote: In order to get full transparency (in an html page), you might also have to set windowMode to transparent in your code that insert the swf: object ... ... param name=wmode value=transparent / ... embed ... wmode=transparent ... /embed /object Benoit Hediard _ De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la part de sumeet k Envoyé : vendredi 29 septembre 2006 08:23 À : flexcoders@yahoogroups.com Objet : Re: [flexcoders] Background transparancy Hi Patrick, Ypu can set backgroundAlpha=0 in application tag. dj [EMAIL PROTECTED] wrote: How do you set the background alpha of an application to 0, possible? Thanks, Patrick _ Get your own web http://us.rd.yahoo.com/evt=43290/*http://smallbusiness.yahoo.com/domains address for just $1.99/1st yr. We'll help. Yahoo! http://us.rd.yahoo.com/evt=41244/*http://smallbusiness.yahoo.com/ Small Business.
[flexcoders] Cleaning a file in eclipse ?
Hi all ! I'm not talking about about the 'clean project' here. Is there a way to clean your file for all unused imports for exemple ? I know this is somehow possible in Java in eclipse, but it doesn't seem to work with Flex. Best, Jean-Luc __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Cleaning a file in eclipse ?
Nice tip Benoit ! I should have asked the question on flexeurs, but Tim would have been sad ;) Adobe : If you can hear us for 2.01 update ;) Best, JL - Original Message - From: Benoit Hediard To: flexcoders@yahoogroups.com Sent: Thursday, July 27, 2006 11:04 AM Subject: RE: [flexcoders] Cleaning a file in eclipse ? Hello Jean-Luc! Nice to see you here... ;) In .as files, you can re-organize your imports with Ctrl+Shift+O (very cool), but unfortunately, it does notclean the unused ones... In .mxml files, nothing to re-orgnaize your imports yet... I suppose that this kind of features as well as re-factoring are high on the enhancements list of the Flex Builder team for a future release. Benoit Hediard De: [EMAIL PROTECTED]ups.com [mailto:flexcoders@yahoogroups.com] De la part de Jean-Luc ESSEREnvoyé: jeudi 27 juillet 2006 10:55À: [EMAIL PROTECTED]ups.comObjet: [flexcoders] Cleaning a file in eclipse ? Hi all ! I'm not talking about about the 'clean project' here. Is there a way to clean your file for all unused imports for exemple ? I know this is somehow possible in Java in eclipse, but it doesn't seem to work with Flex. Best, Jean-Luc __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] TODO and FIXME in Builder ?
Maybe missed it, but did'nt find anybody asking how to implement the TODO and FIXME tasks in Builder. This is a must for every eclipse users, specially when working in teams, but it does not work for mxml or asfiles (maybe they are not parsed). Is there a simple way to have it work ? Thanx, JL __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Help with Flex Store Demo Instalation
I'd say don't look any further... Best, JL - Original Message - From: Ian Skinner To: flex@houseoffusion.com ; [EMAIL PROTECTED] ; flexcoders@yahoogroups.com Sent: Wednesday, July 19, 2006 6:54 PM Subject: [flexcoders] Help with Flex Store Demo Instalation ... I am still using Beta 3 ... . __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] TODO and FIXME in Builder ?
Dirk, Something like this ? override protected function normalDay():NormalDay { myNewDay:JackBauersDay = new JackBauersDay; _normalDay.nbHours = myNewDay.nbHours; return _normalDay; } Here you go ! Best, JL - Original Message - From: Dirk Eismann To: flexcoders@yahoogroups.com Sent: Wednesday, July 19, 2006 4:32 PM Subject: RE: [flexcoders] TODO and FIXME in Builder ? No, it's not included in Flex Builder 2. I started developing a plugin extension for Flex Builder 2 that adds this kind of functionality to both the MXML and AS editors a while ago but it'sonly 50% finished yet. If I find a way to get rid of the"A-day-only-has-24-hours" problem then I hope to get it finished and packaged soon but unless it will take some time. Dirk. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jean-Luc ESSERSent: Wednesday, July 19, 2006 2:49 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] TODO and FIXME in Builder ? Maybe missed it, but did'nt find anybody asking how to implement the TODO and FIXME tasks in Builder. This is a must for every eclipse users, specially when working in teams, but it does not work for mxml or asfiles (maybe they are not parsed). Is there a simple way to have it work ? Thanx, JL __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Loading external css and setting a:hover style for htmlText
I didn't tried it, but from help, this should work : package { import flash.display.Sprite; import flash.text.StyleSheet; import flash.text.TextField; import flash.text.TextFieldAutoSize; public class StyleSheetExample extends Sprite { public function StyleSheetExample() { var style:StyleSheet = new StyleSheet(); var heading:Object = new Object(); heading.fontWeight = "bold"; heading.color = "#FF"; var body:Object = new Object(); body.fontStyle = "italic"; style.setStyle(".heading", heading); style.setStyle("body", body); var label:TextField = new TextField(); label.styleSheet = style; label.htmlText = "bodyspan class='heading'Hello /spanWorld.../body"; addChild(label); } }} ** Of course this is not what you want, as it does not use an external CSS. Now, i guess that using the parseCSS Method could get you where you want to go. Not sure though... :s This is not dynamically loading CSS at runtime which is not possible as we speak, as Tom said. Share your findings on this. Best, JL -- Lancement de la communauté francophone sur Flex : http://www.flexeurs.org rejoignez-nous ! - Original Message - From: olivierdejonge To: flexcoders@yahoogroups.com Sent: Monday, July 17, 2006 2:02 PM Subject: [flexcoders] Loading external css and setting a:hover style for htmlText How do I connect an external stylesheet to a textfield so the htmlTextgets the right styles?In Flex 1.5 that was easy:var styles:TextField.StyleSheet = new TextField.StyleSheet();styles.load('myStyles.css');...function onLoad(ok){if(ok){myText.htmlText = "hello a href=""world/amyText.styleSheet = styles}}But how to do this in Flex 2.0, when function 'load()' doesn't existanymore and parseCSS not realy seems tow work with a:hover style etc?In the 2.0 example I have an Application...?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"xmlns:myText="*" layout="absolute"mx:Style source="main.css "/myText:TextFieldExample //mx:Application...that loads an external stylesheet main.css,...body {fontFamily : "ThesisBolPla";leading : "-3";}.heading {fontWeight :"bold";color: "#FF3300";}a {color:#f0037f;}a:link{color:#f0037f;text-decoration:underline;}a:hover{color:#f0037f;}a:active{color:#cc;}...and creates the an instance of TextFieldExample:package {import mx.core.UIComponent;import flash.text.TextField;public class TextFieldExample extends UIComponent {private var label:TextField;private var labelText:String = "bodyspanclass='heading'Hello world/spanbra href=''andwelcome/a to the show. /body";public function TextFieldExample() {configureLabel();setLabel(labelText);}public function setLabel(str:String):void {label.htmlText = str;}private function configureLabel():void {label = new TextField();label.width = 200;label.embedFonts = true;label.background = "">label.multiline = true;label.styleSheet = HOW TO CONNECT TO THE CSS?;addChild(label);}}}How do I connect the external stylesheet to the textfield so thehtmlText gets the right style? __._,_.___ -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] TileList's Horizontal Gap
Sorry for asking this again, but i have been trying for a week or so to add an horizontal gap between renderers in a Tile List. I don't want to use specific columnWidth and/or padding in the renderer. I want real gap. So thatbackgroundColor for the cell for exemple won't fill the gap. Gap as it is possible to do in a simple Tile. Can it be done via skinning ? If so how ? Thank you ! JL __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: TileList's Horizontal Gap
Tim, Unfortunatly, i saw this hack on a post regarding Flex1.5, maybe it was working then, but i can't get it to work here. Thanx anyway. JL - Original Message - From: Tim Hoff To: flexcoders@yahoogroups.com Sent: Wednesday, July 12, 2006 1:05 PM Subject: [flexcoders] Re: TileList's Horizontal Gap Hey Jean-Luc,Set the horizantalGap property on the container that the TileList is in.-TH--- In [EMAIL PROTECTED]ups.com, "Jean-Luc ESSER" [EMAIL PROTECTED] wrote: Sorry for asking this again, but i have been trying for a week or so to add an horizontal gap between renderers in a Tile List. I don't want to use specific columnWidth and/or padding in the renderer. I want real gap. So that backgroundColor for the cell for exemple won't fill the gap. Gap as it is possible to do in a simple Tile. Can it be done via skinning ? If so how ? Thank you ! JL __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] TileList's Horizontal Gap
Hey Ralf, Creating the gap in the renderer would'nt do what i want. First because style applied to the cell of the TileList would apply to the gap created, which i do not want, second because it would not be a gap, meaning it would appear on the right edge of the last column, or the bottom edge of the last row. Subclassing would probably do it (mayby), but i have no clue of how to implement it. Thanx. JL - Original Message - From: Ralf Bokelberg To: flexcoders@yahoogroups.com Sent: Wednesday, July 12, 2006 1:31 PM Subject: Re: [flexcoders] TileList's Horizontal Gap Hi Jean Luc, can't you create an itemRenderer, which draws the horizontalGap itself? Maybe by placing a colored box at top and bottom? Another possibility would be to subclass TileList and add horizontalGap to it. Cheers,Ralf On 7/12/06, Jean-Luc ESSER [EMAIL PROTECTED] wrote: Sorry for asking this again, but i have been trying for a week or so to add an horizontal gap between renderers in a Tile List. I don't want to use specific columnWidth and/or padding in the renderer. I want real gap. So thatbackgroundColor for the cell for exemple won't fill the gap. Gap as it is possible to do in a simple Tile. Can it be done via skinning ? If so how ? Thank you ! JL-- Flex Flash Consultant based in Cologne/Germany __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Dynamic ItemRenderer
I guess the best way of handling this would be to have a generic itemRenderer and load the corresponding components inside it, depending on a data value passed to the List dataProvider. That's how i would do it. You can also do it in the List container via actionScript if you want, by setting your itemRenderer depending on your var : if (var == A) myList.itemRenderer = newClassFactory(com.yoursite.itemRendererA); Best, Jean-Luc. - Original Message - From: ROUSSELIE David ROSI/SIFAC To: flexcoders@yahoogroups.com Sent: Wednesday, July 12, 2006 2:28 PM Subject: [flexcoders] Dynamic ItemRenderer Hi,I would like to use the List component with different type of data inits dataProvider and adapt each itemRenderer depending on the type ofthe data item :var dp: Array = [new A(), new B()]...mx:List dataProvider="{dp}" ... /How can I use a "AItemRenderer" to handle A data type elements and"BItemRenderer" to handle B data type elements ?Thanks,-- David RousselieCe message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et etablis a l'intention exclusive deses destinataires.Toute utilisation ou diffusion non autorisee est interdite.Tout message electronique est susceptible d'alteration. Le Groupe France Telecom decline toute responsabilite au titre dece message s'il a ete altere, deforme ou falsifie.Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et d'avertir l'expediteur.*This message and any attachments (the "message") are confidential and intended solely for the addressees. Any unauthoriseduse or dissemination is prohibited.Messages are susceptible to alteration. France Telecom Group shall not be liable for the message if altered, changed orfalsified.If you are not the intended addressee of this message, please cancel it immediately and inform the sender. __._,_.___ -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Dynamic ItemRenderer
BTW, David, are you from France ? If so, are you aware of the creation of the French Flex Community ? http://www.flexeurs.org If you are interested, come say hello. Jean-Luc ESSER http://www.flexeurs.org - Original Message - From: ROUSSELIE David ROSI/SIFAC To: flexcoders@yahoogroups.com Sent: Wednesday, July 12, 2006 2:28 PM Subject: [flexcoders] Dynamic ItemRenderer Hi,I would like to use the List component with different type of data inits dataProvider and adapt each itemRenderer depending on the type ofthe data item :var dp: Array = [new A(), new B()]...mx:List dataProvider="{dp}" ... /How can I use a "AItemRenderer" to handle A data type elements and"BItemRenderer" to handle B data type elements ?Thanks,-- David RousselieCe message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et etablis a l'intention exclusive deses destinataires.Toute utilisation ou diffusion non autorisee est interdite.Tout message electronique est susceptible d'alteration. Le Groupe France Telecom decline toute responsabilite au titre dece message s'il a ete altere, deforme ou falsifie.Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et d'avertir l'expediteur.*This message and any attachments (the "message") are confidential and intended solely for the addressees. Any unauthoriseduse or dissemination is prohibited.Messages are susceptible to alteration. France Telecom Group shall not be liable for the message if altered, changed orfalsified.If you are not the intended addressee of this message, please cancel it immediately and inform the sender. __._,_.___ -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] SWF Loader
Jester, Does this mean that there is no way of getting a loaded swf to play, pause or stop without using localConnection ? JL - Original Message - From: JesterXL To: flexcoders@yahoogroups.com Sent: Wednesday, July 12, 2006 3:07 PM Subject: Re: [flexcoders] SWF Loader It's an AVM1Movie, not a MovieClip. Unfortunately, this prevents you from talking to the SWF; you have to use LocalConnection, or some other binary socket way.Have you tried with Flash 9 Alpha yet? I haven't had time but I bet this'd work.- Original Message - From: "flexnewbie06" flexnewbie06@yahoo.caTo: [EMAIL PROTECTED]ups.comSent: Wednesday, July 12, 2006 8:48 AMSubject: [flexcoders] SWF LoaderI am trying to cast swf as MovieClip in Flex 2.0. The SWF wascreated with Flash 8...I get an coercion error...is this somethingthat can not be done or maybe I am doing it incorrectly.I have posted the error and my code. Any Suggestions?TypeError: Error #1034: Type Coercion failed: cannot convertflash.display::AVM1Movie@27faa81 to flash.display.MovieClip.at EPlayer/::test()at EPlayer/___Button1_click()CODE:?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"layout="absolute"mx:Script![CDATA[import mx.core.FlexMovieClip;import mx.controls.SWFLoader;function test():void{var myMovieClip:MovieClip = MovieClip(mySWF.content);myMovieClip.gotoAndPlay(1);}]]/mx:Scriptmx:Panel height="406" width="525"paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10"y="10" x="10"mx:SWFLoader id="mySWF" source="RFP intro.swf" height="338"width="459"//mx:Panelmx:Button label="test" x="300" y="424" click="test();"//mx:Application--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: cant set alpha for scrollbar
Didn't try it, but i think you can skin your scroll bar... Designing a translucid scroll bar in flash should do the trick. I'll be interested to see if you can get it to work. Best, JL - Original Message - From: hank williams To: flexcoders@yahoogroups.com Sent: Thursday, July 06, 2006 7:03 PM Subject: [flexcoders] Re: cant set alpha for scrollbar Ok just thought I would try again here since this message has probably scrolled off most peoples screensI am trying to dim a scrollbar by setting its alpha value.I have tried to change every field that has the work alpha in it and nothing seems to work. I have even put a scrollbar inside a canvas and tried to set the alpha of the canvas. It cant be that scrollbars cant be alpha'd can it? Tell me it aint so. On 7/6/06, hank williams [EMAIL PROTECTED] wrote: Is it possible to set the alpha for a scrollbar? Setting its alpha seems to have no effect. Hank __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Passing argument to ItemRenderer ?
Hi all ! Let's say you have a TileList with a dataProvider : mx:TileList dataProvider="{myDataProvider}" itemRenderer="myIR"/ Now you want to pass a new Variable to the ItemRenderer myIR. Would you append this var to myDataProvider (and if so how ?) so it is accessible via "data.myVar" ? Or is there another way ? (maybe creating a new component extending the TileList with a property to set myVar ?) Thanx, JL __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Gap in a TileList ?
Anyone figured out how to specify an horizontal or vertical Gap in a TileList ? Works fine in a Tile, with repeaters, but not in a tile list. Thanx, JL __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Gap in a TileList ?
Let's say you have a TileList with width 100% and columnCount = 2. You wouldn't want to set the columnWidth explicitly. Your item renderer is 100% width because it needs to, and i cannot add padding to my itemRenderer as i only want space in between. The only way is using horizontalGap. Which does not exist on the TileList. So what do i do ? Thanx, JL - Original Message - From: Rob Rusher To: flexcoders@yahoogroups.com Sent: Friday, July 07, 2006 5:26 PM Subject: Re: [flexcoders] Gap in a TileList ? Check your rowHieght, columnWidth and item renderer margins.regards,rob On 7/7/06, Jean-Luc ESSER [EMAIL PROTECTED] wrote: Anyone figured out how to specify an horizontal or vertical Gap in a TileList ? Works fine in a Tile, with repeaters, but not in a tile list. Thanx, JL -- -- Regards,Rob RusherAdobe Certified Breeze, ColdFusion MX and Flex 2 Instructorm: 303-885-7044im: robrusher __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] [Flex2] Changes to the Cairngorm package structure
I believe Cairngorm is just Adobe's vision of architecture, there is no licensing on this and you can refactor it as you wish. But what do you need to do ? Before refactoring, make sure you really need to. Cairngorm has been created with the voice of large clients developping large Flex Apps, and i see it as very flexible. Right know, i cannot see any reason for refactoring. Anyway, i'm sure Adobe will be very interested in your thoughts ! Best, JL - Original Message - From: Thomas Rühl -akitogo- To: flexcoders@yahoogroups.com Sent: Thursday, July 06, 2006 11:52 AM Subject: [flexcoders] [Flex2] Changes to the Cairngorm package structure Hello list,I just came across a question of architecture and I'm not quite sure, if it is well... sort of "allowed" to do what I'm about to do. Thing is, for the particular situation that I'm dealing with, I'd need to refactor Cairngorm regarding its package structure. Now, since this is Adobe's thing here, I don't know whether that correspond their licensing in terms of usage. Maybe someone, maybe folks from Adobe, could give me some hint here.Thanks and cheers,ThomasThomas RühlDesign, Programming Conceptsakitogo OHGHanauer Landstrasse 18860314 FrankfurtTelefon +49 (0) 69 800 69 445Fax +49 (0) 69 800 69 449Mobil +49 (0) 179 750 75 87E-Mail thomas.ruehl@akitogo.comWeb http://www.akitogo.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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] ScrollBar eating content
In beta3, when using an auto scroll bar in a Box with content sized to 100% width and no height, when the scrollbar appeared, the content was resized accordingly so the scroll bar could fit in. In final version, the scroll appears on top of the content, thus eating some of it ! I find this to be very annoying. Any workarounds ? Best, Jean-Luc. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Cairngorm 2 Events ! Arghhhhhhhhhh !
;) Steven, did i miss something, or do i have to change all the event dispatching when upgrading from beta 3 to final ?! I'm a little lost... CairngormEventDispatcher... What should i change my dispatchEvent(myCairngormEvent) to ? I already changed all onFault and onResult to type * (not event anymore) in Responder BTW ! Anyway, good work on getting CG2 out in time for Flex2 !!! Best, Jean-Luc. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Cairngorm 2 Events ! Arghhhhhhhhhh !
Thanx Steven. I read the release notes, but as i was not familiar with previous version (.99), it does'nt reallytalk to me ! Anyways, i'll find a way to get around this. That's precisely what i love about betas ;) Good meetings, Best, Jean-Luc. - Original Message - From: Steven Webster To: flexcoders@yahoogroups.com Sent: Wednesday, June 28, 2006 11:59 AM Subject: RE: [flexcoders] Cairngorm 2 Events ! Arghh ! Hey Jean-Luc, I'm in meetings all week, so you won't get much email response from me for rest of week. In the release notes, we talk of this, and we'll blog of our intentions shortly ... but yes, at the end of the day the beta, and the feedback we had internally and from the community, drove a number of discussions that make us believe that it's a better practice - as we had in Cairngorm 0.99 - to keep a separation of Cairngorm events from other events. Perhaps one of the other members of the team will be able to elaborate further; if not, I'll try and blog something on our design decisions later next week. Alex Uhlmann I believe is going to blog something that will allow you to achieve a simpler migration path, but our expectation is that it's not the most painful thing you're going to have to do. And it was a _beta_ :-) Apologies for the brevity, Steven Steven WebsterPractice Director (Rich Internet Applications)Adobe ConsultingWestpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 6108 m: +44 (0)7917 428 947[EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jean-Luc ESSERSent: 28 June 2006 10:40To: flexcoders@yahoogroups.comSubject: [flexcoders] Cairngorm 2 Events ! Arghh ! ;) Steven, did i miss something, or do i have to change all the event dispatching when upgrading from beta 3 to final ?! I'm a little lost... CairngormEventDispatcher... What should i change my dispatchEvent(myCairngormEvent) to ? I already changed all onFault and onResult to type * (not event anymore) in Responder BTW ! Anyway, good work on getting CG2 out in time for Flex2 !!! Best, Jean-Luc. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Flash player is not a debugger?
Same issue here. Tried reverting to the beta 3 player, won't work either. Uninstalled everything and back on, same problem... Can't find a debug player anywhere... JL - Original Message - From: Daniel Tuppeny To: flexcoders@yahoogroups.com Sent: Wednesday, June 28, 2006 4:06 PM Subject: [flexcoders] Flash player is not a debugger? I upgraded my flash player to v9 this morning. Then later, I installed FlexBuilder (assuming it would replace the player, if needed). Now, when I run in debug mode, I get a message saying the current version of my flash player is not a debugger. Can I fix this? I can't see my Trace statements or hit breakpoints as things are :-( The information contained in this e-mail and/or any attachments is confidential and intended only for the individual(s) to which it is addressed. If you are not named as an addressee you must not disclose, copy or take any action in reliance of this transmission. This e-mail and its attachments have been scanned for viruses by MessageLabs Ltd. __This email has been scanned by the MessageLabs Email Security System.For more information please visit http://www.messagelabs.com/email __ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Flex 2 final, Cairngorm ServiceLocator/Delegate implementation?
Hello Benoit, I've been playing around this matter all day long ;) You'll have to type your onResult and onFault to * instead of OnXXX, and cast your event when declaring your var myEvent = CAST(event.result); You actually drop the call (event.call.result) which is not defined in rpc anymore. Hope this helps. - Original Message - From: Benoit Hediard To: flexcoders@yahoogroups.com Sent: Wednesday, June 28, 2006 4:38 PM Subject: [flexcoders] Flex 2 final, Cairngorm ServiceLocator/Delegate implementation? Hi, In the Flex 2 final, how do you implement the ServiceLocator and Delegates? In ServiceLocator, it looks like result="event.call.resultHandler(event)"must be replaced by result="event.token.resultHandler(event)". But how do you implement the delegate? I suppose that we'll see that in the finalcom.adobe.cairngorm.samples.login sample, but I'm currently blocked by this issue... ;) Or am I missing something? Benoit Hediard __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: Flash player is not a debugger?
I just got it to work : Download uninstaller from adobe site : http://www.adobe.com/shockwave/download/alternates/ Then launch both activeX and normal version installers from program files flex player debug Works on both ie and firefox. JL - Original Message - From: sourcecoderia To: flexcoders@yahoogroups.com Sent: Wednesday, June 28, 2006 4:54 PM Subject: [flexcoders] Re: Flash player is not a debugger? I can't see how a couple of us could have the problem though. i cleaned everything from beta, even went throuh the registry after i seen i was having problems.Have not had a problem since alpha version like this one. i honestly can't think of anything else to try.:(jason--- In [EMAIL PROTECTED]ups.com, "Daniel Tuppeny" [EMAIL PROTECTED].. wrote: On a colleagues machine here, it works fine. He's never had the beta installed. Is there something been left around from the beta that's screwing this up maybe? -Original Message- From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of sourcecoderia Sent: 28 June 2006 15:33 To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] Re: Flash player is not a debugger? Regular mail not getting through. I'm having the same problem been working to solve it all day. No luck. Just can't seem to get a debug working in IE. Firefox works. I even went as far as to clean any and all flash related stuff from my post. Did not help a bit. Are you all on another local other then US, it may have something to do with it.. Jason --- In [EMAIL PROTECTED]ups.com, "Jean-Luc ESSER" flex@ wrote: Same issue here. Tried reverting to the beta 3 player, won't work either. Uninstalled everything and back on, same problem... Can't find a debug player anywhere... JL- Original Message - From: Daniel Tuppeny To: [EMAIL PROTECTED]ups.com Sent: Wednesday, June 28, 2006 4:06 PM Subject: [flexcoders] Flash player is not a debugger? I upgraded my flash player to v9 this morning. Then later, I installed FlexBuilder (assuming it would replace the player, if needed).Now, when I run in debug mode, I get a message saying the current version of my flash player is not a debugger. Can I fix this? I can't see my Trace statements or hit breakpoints as things are :-( -- The information contained in this e-mail and/or any attachments is confidential and intended only for the individual(s) to which it is addressed. If you are not named as an addressee you must not disclose, copy or take any action in reliance of this transmission. This e-mail and its attachments have been scanned for viruses by MessageLabs Ltd. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- 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 [Inbound Mail Scanned by MessageLabs] __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Another simple flex newbie question
The answer is Cairngorm ! (sorry, couldn't resist) :D JL - Original Message - From: hank williams To: flexcoders@yahoogroups.com Sent: Friday, June 23, 2006 3:09 PM Subject: [flexcoders] Another simple flex newbie question How do you modularize MXML.In actionscript we import classes, and each class represents some conceptual chunk, but I am not sure what the equivalent is in MXML.I have been looking at lots of code examples, but they are all small. This has been very helpful in learning how APIs work, but I am on the edge of my two day project feeling bloated and unmodular. I am sure, lots of people will say the answer is cairngorm, but for right now I want to learn MXML "raw" before adding another layer on top of it.ThanksHank __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [Junk E-Mail - LOW] [flexcoders] Another simple flex newbie question
You'll have to specify .* to get to the files inside your directory. MyComp="MyComponents.*" should work. Jean-Luc. - Original Message - From: hank williams To: flexcoders@yahoogroups.com Sent: Friday, June 23, 2006 5:02 PM Subject: Re: [Junk E-Mail - LOW] [flexcoders] Another simple flex newbie question Thanks. One last question on this. I have no problem defining how to put a component in the same directory and using MyComp="*", but if I want to put it in a sub directory, MyComp="MyComponents" is not working. The MyComponents directory is now at the same level as the main app. Any ideas? ThanksHank On 6/23/06, Matt Horn [EMAIL PROTECTED] wrote: You can use anything when you define a namespace. You need to matchwhatever you use in your mxml tags; for example, if you name it fred,then you reference the ButtonComp control with a "fred" prefix:?xml version="1.0"?mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"xmlns:Fred="*"Fred:ButtonComp id="b1" click="sumTotal()"/ /mx:ApplicationIn this case, the file ButtonComp.mxml is in the same directory as theapp that references it. The entire file can consist of something assimple as:mx:Button xmlns:mx=" http://www.adobe.com/2006/mxml"/hth,matt hornflex docs -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of hank williams Sent: Friday, June 23, 2006 10:19 AM To: flexcoders@yahoogroups.com Subject: Re: [Junk E-Mail - LOW] [flexcoders] Another simple flex newbie question Ok, so in looking at the docs, to include a directory you use xmlns:MyComp="*" This should as I understand it include everything from the main app directory. Is MyComp a reserved word that is the holder of the directory path, or could you use other words here instead of MyComp. Thanks Hank On 6/23/06, Shannon Hicks [EMAIL PROTECTED] wrote: You want to use MXML components... http://livedocs.macromedia.com/labs/1/flex20beta3/wwhelp/wwhim pl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=Part1_Ge tStarted.html http://livedocs.macromedia.com/labs/1/flex20beta3/wwhelp/wwhi mpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=Part1_G etStarted.html You can pass in data when the component is called, and even have bendable and/or functions that return values/objects. Shan From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of hank williams Sent: Friday, June 23, 2006 8:10 AM To: flexcoders@yahoogroups.com Subject: [Junk E-Mail - LOW] [flexcoders] Another simple flex newbie question How do you modularize MXML. In actionscript we import classes, and each class represents some conceptual chunk, but I am not sure what the equivalent is in MXML. I have been looking at lots of code examples, but they are all small. This has been very helpful in learning how APIs work, but I am on the edge of my two day project feeling bloated and unmodular. I am sure, lots of people will say the answer is cairngorm, but for right now I want to learn MXML "raw" before adding another layer on top of it. Thanks Hank -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 6/21/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 6/21/2006 Yahoo! Groups Sponsor ~--Something is new at Yahoo! Groups.Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM~---Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development
Re: [Junk E-Mail - LOW] [flexcoders] Another simple flex newbie question
Slash notation ???!!! Is that actually working ? Anyway, you should use dot notation, as said previously. To add to my previous post, if you wish to go down several directories, you keep using dot notation : MyDir1.MyDir2.* for example. Be carefull about case sensitive. Best, Jean-Luc. - Original Message - From: Shannon Hicks To: flexcoders@yahoogroups.com Sent: Friday, June 23, 2006 5:08 PM Subject: RE: [Junk E-Mail - LOW] [flexcoders] Another simple flex newbie question You want to use: xmlns:mx="MyComponents/* Shan From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of hank williamsSent: Friday, June 23, 2006 10:03 AMTo: flexcoders@yahoogroups.comSubject: Re: [Junk E-Mail - LOW] [flexcoders] Another simple flex newbie question Thanks. One last question on this. I have no problem defining how to put a component in the same directory and using MyComp="*", but if I want to put it in a sub directory, MyComp="MyComponents" is not working. The MyComponents directory is now at the same level as the main app. Any ideas? ThanksHank On 6/23/06, Matt Horn [EMAIL PROTECTED] wrote: You can use anything when you define a namespace. You need to matchwhatever you use in your mxml tags; for example, if you name it fred,then you reference the ButtonComp control with a "fred" prefix:?xml version="1.0"?mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"xmlns:Fred="*"Fred:ButtonComp id="b1" click="sumTotal()"/ /mx:ApplicationIn this case, the file ButtonComp.mxml is in the same directory as theapp that references it. The entire file can consist of something assimple as:mx:Button xmlns:mx=" http://www.adobe.com/2006/mxml"/hth,matt hornflex docs -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of hank williams Sent: Friday, June 23, 2006 10:19 AM To: flexcoders@yahoogroups.com Subject: Re: [Junk E-Mail - LOW] [flexcoders] Another simple flex newbie question Ok, so in looking at the docs, to include a directory you use xmlns:MyComp="*" This should as I understand it include everything from the main app directory. Is MyComp a reserved word that is the holder of the directory path, or could you use other words here instead of MyComp. Thanks Hank On 6/23/06, Shannon Hicks [EMAIL PROTECTED] wrote: You want to use MXML components... http://livedocs.macromedia.com/labs/1/flex20beta3/wwhelp/wwhim pl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=Part1_Ge tStarted.html http://livedocs.macromedia.com/labs/1/flex20beta3/wwhelp/wwhi mpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=Part1_G etStarted.html You can pass in data when the component is called, and even have bendable and/or functions that return values/objects. Shan From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of hank williams Sent: Friday, June 23, 2006 8:10 AM To: flexcoders@yahoogroups.com Subject: [Junk E-Mail - LOW] [flexcoders] Another simple flex newbie question How do you modularize MXML. In actionscript we import classes, and each class represents some conceptual chunk, but I am not sure what the equivalent is in MXML. I have been looking at lots of code examples, but they are all small. This has been very helpful in learning how APIs work, but I am on the edge of my two day project feeling bloated and unmodular. I am sure, lots of people will say the answer is cairngorm, but for right now I want to learn MXML "raw" before adding another layer on top of it. Thanks Hank -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 6/21/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.2/372 - Release Date: 6/21/2006 Yahoo! Groups Sponsor ~--Something is new at Yahoo! Groups.Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM~---Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ * 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/ --No virus found in
Re: [flexcoders] Please Adobe. Unanswered questions, and building the community
Hello Sourcecodia, Just my own 0.02 here: The way i see a community is that it is a community. I mean that Adobe has not the entire responsability of answering one and every question posted in this forum. Myself, i had a few questions which have never been answered, well, then what ? I ask again, i reformulate... But in no ways i'm gonna complain about Adobe. If you need help, or have questions which need to be adressed in a professional and timely way, go buy a Gold Support at Adobe, and i assure you that you'll get what you want. And it will be worth your money. I'm trying myself to build the french community around Flex, and i'm working on an everyday basis with Adobe France, i can assure you that their implication in developping the community is total. Keep in mind that Flex is due out next week, they have a planning to respect, a lot of work to do, abunch of things to finish for the launch date,i'm sure that you'll be impressed by Adobe's commitment to the community after Flex is released. Let's take Cairngorm for instance. Steven always claimed that they are doing all they can to get Cairngorm and all the docs ready for Flex release. And they will. We all appreciate (as developpers) your commitment to the beta's and your postings to this list. But please give us and Adobe the time for building this community. It's all new for them. They have beenin the community thing for only a few months. I am not affiliated with Adobe in any ways, i am just throwing in my two cents as an enthousiastic french developper. Best, Jean-Luc. - Original Message - From: sourcecoderia To: flexcoders@yahoogroups.com Sent: Thursday, June 22, 2006 10:16 AM Subject: [flexcoders] Please Adobe. Unanswered questions, and building the community IMHO a community is not at all built this way, any answer is better then no answer. For developers we ask a question if it goes without response we think either they are ignoring the question, can't be bothered, or it's a bug. Since the first thought is that they can't be bothered we continue to try and find a solution to the problem, until completely frustrated. Theses things are very important (to me at least) when choosing to switch from a dot net development environment to something such as flex. I've been working with flex for a year now, and of course I'm very happy with it, however I feel that the community involvement from adobe is rather lacking. You can't hope to build a solid community that supports it self, we are not the experts, you are. We need your help, and you need our help. But; the communication, and participation in the building of the community has to work both way's. I've answered far more questions then I have had answered, I participated in the alpha testing, I've reported bug's in this forum. All this I'm very willing to do, and continue doing. However your community support people could at least take the time and read the question, and either confirm it as a bug, not possible, or give an idea of where to look. I'm not unhappy with Flex, I'm rather impressed and energized. Learning a new language, and platform is difficult, and time consuming. Why are there no tutorials except the few you have done to get people up to speed, where is all the learn by example stuff, tips, general community building. Surly you can invest in some full time community support personnel.Flex is moving Adobe into a developer realm, as apposed to the designer realm. I think if you hope to convince the developer realm (a more demanding task) community involvement from Abode needs to be greatly increased. A couple blog entries a week will not do it. A couple of questions answered here, and there will not do it. We need to see that your behind us, that you want to help us succeed with your product, that you continue to listen, and that you're doing everything humanly possible to help get us up to speed. Flex has the potential to be more then just some other platform. In order to go head to head with MS, and unlock the dedicated developer community they've built, you need to greatly increase your community involvement.Hopefully in posting this I've not managed to get on the spam/ignore list of all Adobe support :)Here are some example things with no response, I'm sure if asked, every person in this forum could repost at least 1 or 2 unanswered questions. Any answer is better then none.Garbage collection and removeChild [Flex 2 beta 3]?http://groups.yahoo.com/group/flexcoders/message/40262E4X Interpreter:http://groups.yahoo.com/group/flexcoders/message/40342?threaded=1var=1p=1I can't get a xml chain to bind here.[Bindable]public var boundtarget:XML = new XML(itemnamexJason/namex/item);private var owatch:ChangeWatcher;private function Init_TargetBinding():void{//build the array for the
[flexcoders] How to have multiple states in same component ?
How would you deal with multiple states in the same component ? Imagine a panel wich has states like state 1 is opened and state 2 is closed. Now i would imagine a state 3 is blue and state 4 is red. But i cannot mix them because currentState takes only one value ! Only way out is defining a state open and red, open and blue, closed and red, closed and blue ! What if i want to have one instance of states defining open/close, and another instance red/blue ?? I cannot see a way of doing this. Best, Jean-Luc. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] How to have multiple states in same component ?
Thanx Jason, but my question was global. Of course i can find a way of doing this particular task by binding colors or whatever. What i was trying to find is a best practice for such situations. This example was just for making a point. Using it in a Cairngorm architecture would make sens. Any ideas ? - Original Message - From: Jason Hawryluk To: flexcoders@yahoogroups.com Sent: Thursday, June 22, 2006 5:16 PM Subject: RE: [flexcoders] How to have multiple states in same component ? If we were to assume that we could (which we can) actually bind the background color in the state to a variable, then you could do it. Otherwise yes you would require a separate state for each. Which is logical because up, down, red, blue signify each a separate state. Binding color variables may be what your after. Interesting to try out, there may be a way. Not sure :) -Message d'origine-De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]De la part de Jean-Luc ESSEREnvoyé: jeudi 22 juin 2006 15:58À: flexcoders@yahoogroups.comObjet: [flexcoders] How to have multiple states in same component ? How would you deal with multiple states in the same component ? Imagine a panel wich has states like state 1 is opened and state 2 is closed. Now i would imagine a state 3 is blue and state 4 is red. But i cannot mix them because currentState takes only one value ! Only way out is defining a state open and red, open and blue, closed and red, closed and blue ! What if i want to have one instance of states defining open/close, and another instance red/blue ?? I cannot see a way of doing this. Best, Jean-Luc. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] [To Michael Schmalle] Rendered from dataProvider ?
Michael, i saw one of your posts where you said : " Once you have established that the list has been rendered from the dataProvider " I assume you mean when the List has finished working with its dataProvider (including finished drawing its itemRenderers with their data). If so, how would you do that ? Best, Jean-Luc. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ?
Hi Mike, Yes i mean an event that signifies everything has been drawn. I mean if i have an image to show in the itemRenderers, i want to know when the data has been received, image has been loaded, itemRenderer has been renderered, and the List has finished sizing and showing all items. Best, JL - Original Message - From: Michael Schmalle To: flexcoders@yahoogroups.com Sent: Monday, June 19, 2006 1:04 PM Subject: Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ? Hi,Yeah I remeber that post tit was in relation to setting the height based on rows.I remember Manish said the rowHeight property and I said calculateHeight().You rquestion is alittle nebulus, do you mean an event that signifies everything has been drawn?Or measurements?Peace, Mike On 6/19/06, Jean-Luc ESSER [EMAIL PROTECTED] wrote: Michael, i saw one of your posts where you said : " Once you have established that the list has been rendered from the dataProvider " I assume you mean when the List has finished working with its dataProvider (including finished drawing its itemRenderers with their data). If so, how would you do that ? Best, Jean-Luc. -- What goes up, does come down. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ?
Well i tried that, and it looks like it is fired several times during the population of the List. So i have no way of knowing when it is fired for the last time, that is when the last item has been rendered ! Or maybe i did notput the listener at the correct place. I'll keep trying. Best, JL - Original Message - From: Michael Schmalle To: flexcoders@yahoogroups.com Sent: Monday, June 19, 2006 3:25 PM Subject: Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ? Oh yeah,Add the listener right before you change the dataProvider, remove it when the actual handler fires for the UPDATE_COMPLETE event.Peace, Mike On 6/19/06, Michael Schmalle [EMAIL PROTECTED] wrote: Hi,Well, I am to to up to speed on the deep workings of the ListBase and List *yet* but, changing the dataProvider is connected to updateDisplayLit().That being said, I would say try;mx.events.FlexEvent.UPDATE_COMPLETE"Dispatched when an object has had its commitProperties, measure, and updateDisplayList called (if needed).. "Now looking at the UIComponent, I am pretty sure that is it. BTW, thanks for this question becasue that is a very important event!Ok, double on that, LayoutManger says FlexEvent.UPDATE_COMPLETE ;-) Peace, Mike On 6/19/06, Jean-Luc ESSER [EMAIL PROTECTED] wrote: Hi Mike, Yes i mean an event that signifies everything has been drawn. I mean if i have an image to show in the itemRenderers, i want to know when the data has been received, image has been loaded, itemRenderer has been renderered, and the List has finished sizing and showing all items. Best, JL - Original Message - From: Michael Schmalle To: flexcoders@yahoogroups.com Sent: Monday, June 19, 2006 1:04 PM Subject: Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ? Hi,Yeah I remeber that post tit was in relation to setting the height based on rows.I remember Manish said the rowHeight property and I said calculateHeight().You rquestion is alittle nebulus, do you mean an event that signifies everything has been drawn?Or measurements?Peace, Mike On 6/19/06, Jean-Luc ESSER [EMAIL PROTECTED] wrote: Michael, i saw one of your posts where you said : " Once you have established that the list has been rendered from the dataProvider " I assume you mean when the List has finished working with its dataProvider (including finished drawing its itemRenderers with their data). If so, how would you do that ? Best, Jean-Luc. -- What goes up, does come down. -- What goes up, does come down. -- What goes up, does come down. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ?
Mike, here is what i do : public function myTest():void{bookFormatMedium.addEventListener(FlexEvent.UPDATE_COMPLETE, myTest2);bookFormatMedium.dataProvider = myDataProvider;}public function myTest2(event:FlexEvent):void{bookFormatMedium.removeEventListener(FlexEvent.UPDATE_COMPLETE, myTest2, false);trace('myTestComplete '+event.currentTarget);} And i invoke myTest on creationComplete of my TileList (or List) : mx:TileList id="bookFormatMedium" backgroundAlpha="0" textAlign="left" horizontalScrollPolicy="off"width="100%" height="100%" styleName="bookFormatMedium"itemRenderer="com.lmg.view.global.book.BookFormatMediumItemRenderer"itemClick="changeFlowStates(panelState, BookVO(bookFormatMedium.selectedItem))"creationComplete="myTest()"/ My event is dispatched too soon (items are not fully drawn yet). Also, invoking myTest() on creationComplete is wrong because next time my dataProvider changes, i won't be able to call myTest(). This is new for me, sorry if i misunderstood what you said ! Best, JL - Original Message - From: Michael Schmalle To: flexcoders@yahoogroups.com Sent: Monday, June 19, 2006 3:39 PM Subject: Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ? JL,Have you test the event's currentTarget property for the actuall list?When the LayoutManager rolls through it's updateCompleteQueue, it goes backwards, children to parent.I would think you could check for the base components instance.If you find out that you cannot, I don't understand what is going on by looking at the LayoutManager. It seems pretty simple.Peace, MikePS show me some code so I can try what you are doing! :) On 6/19/06, Jean-Luc ESSER [EMAIL PROTECTED] wrote: Well i tried that, and it looks like it is fired several times during the population of the List. So i have no way of knowing when it is fired for the last time, that is when the last item has been rendered ! Or maybe i did notput the listener at the correct place. I'll keep trying. Best, JL - Original Message - From: Michael Schmalle To: flexcoders@yahoogroups.com Sent: Monday, June 19, 2006 3:25 PM Subject: Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ? Oh yeah,Add the listener right before you change the dataProvider, remove it when the actual handler fires for the UPDATE_COMPLETE event.Peace, Mike On 6/19/06, Michael Schmalle [EMAIL PROTECTED] wrote: Hi,Well, I am to to up to speed on the deep workings of the ListBase and List *yet* but, changing the dataProvider is connected to updateDisplayLit().That being said, I would say try;mx.events.FlexEvent.UPDATE_COMPLETE "Dispatched when an object has had its commitProperties, measure, and updateDisplayList called (if needed).. "Now looking at the UIComponent, I am pretty sure that is it. BTW, thanks for this question becasue that is a very important event!Ok, double on that, LayoutManger says FlexEvent.UPDATE_COMPLETE ;-) Peace, Mike On 6/19/06, Jean-Luc ESSER [EMAIL PROTECTED] wrote: Hi Mike, Yes i mean an event that signifies everything has been drawn. I mean if i have an image to show in the itemRenderers, i want to know when the data has been received, image has been loaded, itemRenderer has been renderered, and the List has finished sizing and showing all items. Best, JL - Original Message - From: Michael Schmalle To: flexcoders@yahoogroups.com Sent: Monday, June 19, 2006 1:04 PM Subject: Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ? Hi,Yeah I remeber that post tit was in relation to setting the height based on rows.I remember Manish said the rowHeight property and I said calculateHeight().You rquestion is alittle nebulus, do you mean an event that signifies everything has been drawn?Or measurements?Peace, Mike On 6/19/06, Jean-Luc ESSER [EMAIL PROTECTED] wrote: Michael, i saw one of your posts where you said : " Once you have established that the list has been rendered from the dataProvider " I assume you mean when the List has finished working with its dataProvider (including finished drawing its itemRenderers with their dat
Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ?
One hack i'm using is on each creationComplete of the itemRenderer, i call a function where i test currentIndex to dataProvider length. If same, it means the last Item has been created and processed by the List. Is that bad ? JL - Original Message - From: Michael Schmalle To: flexcoders@yahoogroups.com Sent: Monday, June 19, 2006 4:03 PM Subject: Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ? Hi,Well I have done some testing and well, I see what you are saying. There is no way to test the target or currentTarget because they point to the List.I added that event listener to the LayoutManager's instance, it came down to two calls. There has to be a way to know this.I also checked the updateCompletePendingFlag of the List, this offers no help either because after the event is broadcast, it switches it to false again by the LayoutManager just after it loops through the complete queue.For now, I am out of ideas, Adobe?Peace, Mike On 6/19/06, Michael Schmalle [EMAIL PROTECTED] wrote: JL,Have you test the event's currentTarget property for the actuall list?When the LayoutManager rolls through it's updateCompleteQueue, it goes backwards, children to parent.I would think you could check for the base components instance.If you find out that you cannot, I don't understand what is going on by looking at the LayoutManager. It seems pretty simple.Peace, MikePS show me some code so I can try what you are doing! :) On 6/19/06, Jean-Luc ESSER [EMAIL PROTECTED] wrote: Well i tried that, and it looks like it is fired several times during the population of the List. So i have no way of knowing when it is fired for the last time, that is when the last item has been rendered ! Or maybe i did notput the listener at the correct place. I'll keep trying. Best, JL - Original Message - From: Michael Schmalle To: flexcoders@yahoogroups.com Sent: Monday, June 19, 2006 3:25 PM Subject: Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ? Oh yeah,Add the listener right before you change the dataProvider, remove it when the actual handler fires for the UPDATE_COMPLETE event.Peace, Mike On 6/19/06, Michael Schmalle [EMAIL PROTECTED] wrote: Hi,Well, I am to to up to speed on the deep workings of the ListBase and List *yet* but, changing the dataProvider is connected to updateDisplayLit().That being said, I would say try;mx.events.FlexEvent.UPDATE_COMPLETE "Dispatched when an object has had its commitProperties, measure, and updateDisplayList called (if needed).. "Now looking at the UIComponent, I am pretty sure that is it. BTW, thanks for this question becasue that is a very important event!Ok, double on that, LayoutManger says FlexEvent.UPDATE_COMPLETE ;-) Peace, Mike On 6/19/06, Jean-Luc ESSER [EMAIL PROTECTED] wrote: Hi Mike, Yes i mean an event that signifies everything has been drawn. I mean if i have an image to show in the itemRenderers, i want to know when the data has been received, image has been loaded, itemRenderer has been renderered, and the List has finished sizing and showing all items. Best, JL - Original Message - From: Michael Schmalle To: flexcoders@yahoogroups.com Sent: Monday, June 19, 2006 1:04 PM Subject: Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ? Hi,Yeah I remeber that post tit was in relation to setting the height based on rows.I remember Manish said the rowHeight property and I said calculateHeight().You rquestion is alittle nebulus, do you mean an event that signifies everything has been drawn?Or measurements?Peace, Mike On 6/19/06, Jean-Luc ESSER [EMAIL PROTECTED] wrote: Michael, i saw one of your posts where you said : " Once you have established that the list has been rendered from the dataProvider " I assume you mean when the List has finished working with its dataProvider (including finished drawing its itemRenderers with their data).
Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ?
I got you message, yahoo must feal a little dizzy ;) How long is your list of questions ? :)) JL - Original Message - From: Michael Schmalle To: flexcoders@yahoogroups.com Sent: Monday, June 19, 2006 4:28 PM Subject: Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ? I see, I also see yahoo is messing up again, I think yo might have got my last message.I am adding this to my list of questions ;-)I don't know the answer right now. I had tested this also.Peace, Mike On 6/19/06, Jean-Luc ESSER [EMAIL PROTECTED] wrote: Mike, here is what i do : public function myTest():void{bookFormatMedium.addEventListener(FlexEvent.UPDATE_COMPLETE, myTest2);bookFormatMedium.dataProvider = myDataProvider;}public function myTest2(event:FlexEvent):void{bookFormatMedium.removeEventListener(FlexEvent.UPDATE_COMPLETE, myTest2, false);trace('myTestComplete '+event.currentTarget);} And i invoke myTest on creationComplete of my TileList (or List) : mx:TileList id="bookFormatMedium" backgroundAlpha="0" textAlign="left" horizontalScrollPolicy="off"width="100%" height="100%" styleName="bookFormatMedium"itemRenderer="com.lmg.view.global.book.BookFormatMediumItemRenderer"itemClick="changeFlowStates(panelState, BookVO(bookFormatMedium.selectedItem))"creationComplete="myTest()"/ My event is dispatched too soon (items are not fully drawn yet). Also, invoking myTest() on creationComplete is wrong because next time my dataProvider changes, i won't be able to call myTest(). This is new for me, sorry if i misunderstood what you said ! Best, JL - Original Message - From: Michael Schmalle To: flexcoders@yahoogroups.com Sent: Monday, June 19, 2006 3:39 PM Subject: Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ? JL,Have you test the event's currentTarget property for the actuall list?When the LayoutManager rolls through it's updateCompleteQueue, it goes backwards, children to parent.I would think you could check for the base components instance.If you find out that you cannot, I don't understand what is going on by looking at the LayoutManager. It seems pretty simple.Peace, MikePS show me some code so I can try what you are doing! :) On 6/19/06, Jean-Luc ESSER [EMAIL PROTECTED] wrote: Well i tried that, and it looks like it is fired several times during the population of the List. So i have no way of knowing when it is fired for the last time, that is when the last item has been rendered ! Or maybe i did notput the listener at the correct place. I'll keep trying. Best, JL - Original Message - From: Michael Schmalle To: flexcoders@yahoogroups.com Sent: Monday, June 19, 2006 3:25 PM Subject: Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ? Oh yeah,Add the listener right before you change the dataProvider, remove it when the actual handler fires for the UPDATE_COMPLETE event.Peace, Mike On 6/19/06, Michael Schmalle [EMAIL PROTECTED] wrote: Hi,Well, I am to to up to speed on the deep workings of the ListBase and List *yet* but, changing the dataProvider is connected to updateDisplayLit().That being said, I would say try;mx.events.FlexEvent.UPDATE_COMPLETE "Dispatched when an object has had its commitProperties, measure, and updateDisplayList called (if needed).. "Now looking at the UIComponent, I am pretty sure that is it. BTW, thanks for this question becasue that is a very important event!Ok, double on that, LayoutManger says FlexEvent.UPDATE_COMPLETE ;-) Peace, Mike On 6/19/06, Jean-Luc ESSER [EMAIL PROTECTED] wrote: Hi Mike, Yes i mean an event that signifies everything has been drawn. I mean if i have an image to show in the itemRenderers, i want to know when the data has been received, image has been loaded, itemRenderer has been renderered, and the List has finished sizing and showing all items. Best, JL - Original Message - From: Michael Schmalle To:
Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ?
Mike, Well i just tested it i came accross a problem : I'm using a TileList and as you know, only a few items are rendered if you have a scroll, so we'll never get to match the length of the dataProvider... So i guess i'll have to manually set the number of items which do not scroll or... do i have a property which returns the index of the first scrolled item ? Hummm, let's check this... JL - Original Message - From: Michael Schmalle To: flexcoders@yahoogroups.com Sent: Monday, June 19, 2006 4:36 PM Subject: Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ? JL, Is that bad ?No way man!, I was thinking along the same lines. Test the length and when it finishes, it's finished, just didn't have enough time nor brain power to try it :)I will definitaly ask about this and some other things related to initialization at the summit. On a 'professional' level you shouldn't have to hack a major Complete alogrithm like this. So there might actually be a correct way to do it.Peace, Mike On 6/19/06, Michael Schmalle [EMAIL PROTECTED] wrote: I see, I also see yahoo is messing up again, I think yo might have got my last message.I am adding this to my list of questions ;-)I don't know the answer right now. I had tested this also. Peace, Mike On 6/19/06, Jean-Luc ESSER [EMAIL PROTECTED] wrote: Mike, here is what i do : public function myTest():void{bookFormatMedium.addEventListener(FlexEvent.UPDATE_COMPLETE, myTest2);bookFormatMedium.dataProvider = myDataProvider;}public function myTest2(event:FlexEvent):void{bookFormatMedium.removeEventListener(FlexEvent.UPDATE_COMPLETE, myTest2, false);trace('myTestComplete '+event.currentTarget);} And i invoke myTest on creationComplete of my TileList (or List) : mx:TileList id="bookFormatMedium" backgroundAlpha="0" textAlign="left" horizontalScrollPolicy="off"width="100%" height="100%" styleName="bookFormatMedium"itemRenderer="com.lmg.view.global.book.BookFormatMediumItemRenderer"itemClick="changeFlowStates(panelState, BookVO(bookFormatMedium.selectedItem))"creationComplete="myTest()"/ My event is dispatched too soon (items are not fully drawn yet). Also, invoking myTest() on creationComplete is wrong because next time my dataProvider changes, i won't be able to call myTest(). This is new for me, sorry if i misunderstood what you said ! Best, JL - Original Message - From: Michael Schmalle To: flexcoders@yahoogroups.com Sent: Monday, June 19, 2006 3:39 PM Subject: Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ? JL,Have you test the event's currentTarget property for the actuall list?When the LayoutManager rolls through it's updateCompleteQueue, it goes backwards, children to parent.I would think you could check for the base components instance.If you find out that you cannot, I don't understand what is going on by looking at the LayoutManager. It seems pretty simple.Peace, MikePS show me some code so I can try what you are doing! :) On 6/19/06, Jean-Luc ESSER [EMAIL PROTECTED] wrote: Well i tried that, and it looks like it is fired several times during the population of the List. So i have no way of knowing when it is fired for the last time, that is when the last item has been rendered ! Or maybe i did notput the listener at the correct place. I'll keep trying. Best, JL - Original Message - From: Michael Schmalle To: flexcoders@yahoogroups.com Sent: Monday, June 19, 2006 3:25 PM Subject: Re: [flexcoders] [To Michael Schmalle] Rendered from dataProvider ? Oh yeah,Add the listener right before you change the dataProvider, remove it when the actual handler fires for the UPDATE_COMPLETE event.Peace, Mike On 6/19/06, Michael Schmalle [EMAIL PROTECTED] wrote: Hi,Well, I am to to up to speed on the deep workings of the ListBase and List *yet* but, changing the dataProvider is connected to updateDisplayLit().That being said, I would say try;mx.events.FlexEven
[flexcoders] ItemRenderer cannot override data when in TileList ?!
I have an itemRenderer in which i do an override of set data. Works fine when i put itin a List, does not work when in a TileList ! Looks like the Image and the Text do not exist yet !?! (null object reference) Anyone ? Best, Jean-Luc. ** code of the itemRenderer ** ?xml version="1.0" encoding="utf-8"?mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" mx:Script![CDATA[ import mx.events.FlexEvent; // Override the setter method. override public function set data(value:Object):void { if(value != null) { // Use super to set the value in the base class. super.data = ""> if (value.available == 'true') { textDispo.setStyle('color', 0x009836); textDispo.text = 'Disponible'; pictoDispo.source = 'assets/images/offline/picto_disponible.png'; } else { textDispo.setStyle('color', 0xCE0F13); textDispo.text = 'Non disponible'; pictoDispo.source = 'assets/images/offline/picto_indisponible.png'; } } // Dispatch the dataChange event. dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE)); } ]]/mx:Scriptmx:Image id="pictoDispo"/mx:Text id="textDispo"/ /HBox __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] TileList performance issue
When used with a complex itemRenderer, performance between List and TileList is amazing ! I'm even thinking of replacing all my TileLists by a mix of Lists and/or Repeaters... But before doing that, i want to know if you have found ways to have a TileList perform better (keeping liveScrolling to true). Annother annoying thing in a List or TileList is the fact that scrolling goes from one item to the other with no animation (i mean no smooth scroll), or am i missing something ? Best, Jean-Luc __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: Event when Data is Loaded ?
Hi Tim, Your solution seems great, but i don't understand it very well. What do you mean by "I'm casting the lastResult from the RPC call to the VO in the ModelLocator " ? If you could detail your solution, that would be very helpfull ! Thank you ! Best, Jean-Luc. - Original Message - From: Tim Hoff To: flexcoders@yahoogroups.com Sent: Friday, June 09, 2006 9:32 PM Subject: [flexcoders] Re: Event when Data is Loaded ? Hi Jean-Luc,I'm handling a similar situation in the onResult function of the command that gets the data. In the function, I'm casting the lastResult from the RPC call to the VO in the ModelLocator and then changing the view's state to display the data grid. This way the grid isn't displayed until all of the data has been returned and populated through binding.-TH--- In [EMAIL PROTECTED]ups.com, "Jean-Luc ESSER" [EMAIL PROTECTED] wrote: I'm not loading data via URLLoader. Maybe you got me wrong. Sorry if i wasn't clear. Whichever data is sent to my DataGrid's dataProvider, i want to handle an event after the datagrid has loaded all this data. In my specific case, my dataProvider is binded to a valueObject in the ModelLocator (cairngorm). On creationComplete, my DataGrid dispatches an event which calls a command to populate my ValueObject. I want my DataGrid to become visible once all data has been loaded, and once all its itemRenderers have been populated. Best, JL - Original Message - From: Jim Robson To: [EMAIL PROTECTED]ups.com Sent: Friday, June 09, 2006 1:32 PM Subject: RE: [SPAM] [flexcoders] Event when Data is Loaded ? Jean-Luc,How about if you initialize the DataGrid's visible property to false until the data is loaded, and write a handler for the complete event of the URLLoader class that sets the DataGrid's visible property to true when all the data is loaded? Would that work? Docs on the complete event: http://livedocs.macromedia.com/labs/1/flex/langref/flash/net/URLLoader.html#event:complete Jim - From: [EMAIL PROTECTED]ups.com [mailto:[EMAIL PROTECTED]ups.com] On Behalf Of Jean-Luc ESSER Sent: Friday, June 09, 2006 6:29 AM To: [EMAIL PROTECTED]ups.com Subject: [SPAM] [flexcoders] Event when Data is Loaded ? Hi there,I'm trying to show a component on stage only when its dataProvider has finished populating the component. Let's take for exemple a datagrid with an itemRenderer. How would i set my datagrid property to visible only when all data from its dataProvider has been loaded and its itemRenderers have been layed out ? None of the events avalaible are made for that. Render Event would be the closest, but it's not made for that.Any ideas ? Best, Jean-Luc. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Resizing Container's children in FLEX
Did you try an autoLayout to false in your parent ? Don't know how to do it from the child though. JL - Original Message - From: iuliub To: flexcoders@yahoogroups.com Sent: Thursday, June 15, 2006 4:23 PM Subject: [flexcoders] Resizing Containers children in FLEX Hi list,What do I have to do on a container's child in FLEX, to make it NOT listen to its parent RESIZE EVENT. I don't want it to keep its specified width and height (even if they're percents), while resizing the parent.I'm talking about the same blunt behavior of a MovieClip's child in Flash. Whenever I resize the parent MovieClip, the inside child also resizes with the same amount, keeping the proportions.I really need to implement this behavior to a dozen of buttons in my FLEX project, so I'd be really thankful to anyone who can provide the slightest idea.Thanks in advance,Iuliu B. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Event when Data is Loaded ?
Hi there, I'm trying to show a component on stage only when its dataProvider hasfinished populating the component. Let's take for exemple a datagrid with an itemRenderer. How would i set my datagridproperty to visible only when all data from its dataProvider has been loaded and its itemRenderers have been layed out ? None of the events avalaible are made for that. Render Event would be the closest, but it's not made for that. Any ideas ? Best, Jean-Luc. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Event when Data is Loaded ?
Nope, this won't work as the updateComplete event is dispatched xx times during the process ! No way to identify which one is the last one. Anyone ? JL - Original Message - From: Dirk Eismann To: flexcoders@yahoogroups.com Sent: Friday, June 09, 2006 2:04 PM Subject: RE: [flexcoders] Event when Data is Loaded ? You may want to try the updateComplete() event:mx:DataGrid updateComplete="doStuff()" dataProvider="{dp}"/this should get called after the DataGrid has updated itself due tointernal commitProperties(), measure(), or updateDisplayList() calls.Dirk. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Event when Data is Loaded ?
I'm not loading data via URLLoader. Maybe you got me wrong. Sorry if i wasn't clear. Whichever data is sent to my DataGrid's dataProvider, i want to handle an event after the datagrid has loaded all this data. In my specific case, my dataProvider is binded to a valueObject in the ModelLocator (cairngorm). On creationComplete, my DataGrid dispatches an event which calls a command to populate my ValueObject. I want my DataGrid to become visible once all data has been loaded, and once all its itemRenderers have been populated. Best, JL - Original Message - From: Jim Robson To: flexcoders@yahoogroups.com Sent: Friday, June 09, 2006 1:32 PM Subject: RE: [SPAM] [flexcoders] Event when Data is Loaded ? Jean-Luc, How about if you initialize the DataGrids visible property to false until the data is loaded, and write a handler for the complete event of the URLLoader class that sets the DataGrids visible property to true when all the data is loaded? Would that work? Docs on the complete event: http://livedocs.macromedia.com/labs/1/flex/langref/flash/net/URLLoader.html#event:complete Jim From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jean-Luc ESSERSent: Friday, June 09, 2006 6:29 AMTo: flexcoders@yahoogroups.comSubject: [SPAM] [flexcoders] Event when Data is Loaded ? Hi there, I'm trying to show a component on stage only when its dataProvider hasfinished populating the component. Let's take for exemple a datagrid with an itemRenderer. How would i set my datagridproperty to visible only when all data from its dataProvider has been loaded and its itemRenderers have been layed out ? None of the events avalaible are made for that. Render Event would be the closest, but it's not made for that. Any ideas ? Best, Jean-Luc. __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] F2B3: useHandCursor property of Text control
I have the exact same problem, anddo not have a solution. If you put handCursor on a Box where you text resides, it does not work either. Best, JL - Original Message - From: Jim Robson To: flexcoders@yahoogroups.com Sent: Friday, June 09, 2006 3:18 PM Subject: [flexcoders] F2B3: useHandCursor property of Text control Per the docs, the useHandCursor property is inherited from the Sprite class. However, it doesnt seem to work on the Text control. When set to true, the mouse cursor remains an arrow instead of changing to a button when over the text field: mx:Text id="txtItem" text="The quick brown fox jumps over the lazy dog. " buttonMode="true" selectable="false" useHandCursor="true" / What am I missing? __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Re: Dispatching multiple events in order with cairngorm
Thanx Tim i'm gonna look into this, but i'm worried about one issue : In case of a command launching an effect in a component, when the effect starts, it means the command has executed, thus invocating the next command. What if i want to wait for effectEnd before invoking next command... I'll keep you posted. -JL, investigating. - Original Message - From: Tim Hoff [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, June 01, 2006 11:18 AM Subject: [flexcoders] Re: Dispatching multiple events in order with cairngorm Hi Jean-Luc, It looks like you might need to use the Cairngorm SequenceCommand class. I haven't used this yet but if you look at the source for the SequenceCommand class, it describes a possible solution for you. If you use this and get it to work, please post your findings here. Good Luck, Tim --- In flexcoders@yahoogroups.com, JL E. [EMAIL PROTECTED] wrote: Hi there ! I have a search pane. I open it (sliding to the right). Now, i want to go somewhere else in the application. In order to do that, when clicking on let's say 'contact', i dispatch an event which is gonna show page contact. The thing is that when clicking 'contact', before executing the command which is gonna build contact page, i want to check if the search pane is open, and if so, i want to dispatch event closeSearchPane, wait until it is fully closed, and only then execute my command showContactPage. I guess coding this logic in my command showContactPage won't scale as i may need this logic to work everywhere in the app, whichever event i am gonna dispatch. How would you do it ? What am i missing here ? Best, Jean-Luc PS: Thanx Alex for previous answers regarding getters setters ! Worked fine ! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: Dispatching multiple events in order with cairngorm
I do agree with you guys, that's the way to go ! Thanx ! BTW, loved Paul's little helper. This one is a sure hit ! -JL - Original Message - From: Darren Houle [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, June 01, 2006 4:49 PM Subject: RE: [flexcoders] Re: Dispatching multiple events in order with cairngorm I agree with Alex. Say you have a View with a button... you mutate that button's click= event into a CairngormEvent. Your custom Cg Event triggers a Cg Command, which sets state in the ModelLocator. New to Beta 3 is a utility called ChangeWatcher that allows you to watch a bindable value and define a handler to run when the value changes. In the original View (or any other View) you could simply watch that state var and have ChangeWatcher call yourMoveEffect.play(). You could mutate the standard effectEnd= event into a new CairngormEvent that triggered the Cg Command that needs to run at the end of the effect. Darren From: Alex Uhlmann [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Dispatching multiple events in order with cairngorm Date: Thu, 1 Jun 2006 06:46:57 -0700 Hi Guys, I'd probably suggest letting the view dispatch a Cairngorm event, having that following Command change a state in your model and have that view bind to that state change in the model. This view will trigger the effect and at effectEnd you will trigger another Command. IMHO, the Command should never invoke anything view related (like an effect) by himself. Note that your view (MXML) can bind to the model using the mx:Binding tag. BTW: check out Paul's little helper for that. ;) http://weblogs.macromedia.com/paulw/archives/2006/05/the_worlds_smal.cfm #more Best, Alex Alex Uhlmann Consultant (Rich Internet Applications) Adobe Consulting Westpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UK p: +44 (0) 131 338 6969 m: +44 (0) 7917 428 951 [EMAIL PROTECTED] -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jean-Luc ESSER Sent: 01 June 2006 10:35 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Dispatching multiple events in order with cairngorm Thanx Tim i'm gonna look into this, but i'm worried about one issue : In case of a command launching an effect in a component, when the effect starts, it means the command has executed, thus invocating the next command. What if i want to wait for effectEnd before invoking next command... I'll keep you posted. -JL, investigating. - Original Message - From: Tim Hoff [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, June 01, 2006 11:18 AM Subject: [flexcoders] Re: Dispatching multiple events in order with cairngorm Hi Jean-Luc, It looks like you might need to use the Cairngorm SequenceCommand class. I haven't used this yet but if you look at the source for the SequenceCommand class, it describes a possible solution for you. If you use this and get it to work, please post your findings here. Good Luck, Tim --- In flexcoders@yahoogroups.com, JL E. [EMAIL PROTECTED] wrote: Hi there ! I have a search pane. I open it (sliding to the right). Now, i want to go somewhere else in the application. In order to do that, when clicking on let's say 'contact', i dispatch an event which is gonna show page contact. The thing is that when clicking 'contact', before executing the command which is gonna build contact page, i want to check if the search pane is open, and if so, i want to dispatch event closeSearchPane, wait until it is fully closed, and only then execute my command showContactPage. I guess coding this logic in my command showContactPage won't scale as i may need this logic to work everywhere in the app, whichever event i am gonna dispatch. How would you do it ? What am i missing here ? Best, Jean-Luc PS: Thanx Alex for previous answers regarding getters setters ! Worked fine ! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files
Re: [flexcoders] Cairngorm question
You'll have everything you need on Steven's Blog : http://weblogs.macromedia.com/swebster/ CG2 is in Beta3 right now. Download it here : http://weblogs.macromedia.com/swebster/archives/Cairngorm2b3.zip Best, Jean-Luc PS: Steven, di you hear something about a cgStore ? Just kidding :) - Original Message - From: Michael To: flexcoders@yahoogroups.com Sent: Thursday, June 01, 2006 4:19 PM Subject: RE: [flexcoders] Cairngorm question Where can I download cairngorm 2.0. I believe I have downloaded the .99 version, but I didnt get a chance to learn it before I got tasked with a Flex 2.0 project. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Steven WebsterSent: Thursday, June 01, 2006 8:15 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Cairngorm question Michael, I wrote a 6-part series of articles for Adobe Devnet that seem to be helping people to get started with Cairngorm, you'll find the first part here: http://www.adobe.com/devnet/flex/articles/cairngorm_pt1.html Hope that helps ! Steven Steven WebsterPractice Director (Rich Internet Applications)Adobe ConsultingWestpoint, 4 Redheughs Rigg, South Gyle, Edinburgh, EH12 9DQ, UKp: +44 (0) 131 338 6108 m: +44 (0)7917 428 947[EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of MichaelSent: 01 June 2006 02:51To: flexcoders@yahoogroups.comSubject: [flexcoders] Cairngorm question Does anyone know some good resources for cairngorm, and what the best way to start learning it is. I have done a few large flex apps, and I would like to see what cairngorm can do for me. Thanks a lot for the help! Michael -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: Newbie : How do i listen to a value ? Cairngorm inside.
Tom and others, I agree with all the theory out there, but i cannot seem to put it into a working example. Let's try to be practical here with some trivail code: myComp : mx:Script ![CDATA[ import mx.controls.*; public function addLabel(value:String):void { var myNewLabel:Label = new Label(); myNewLabel.text = value; myPanel.addChild(myNewLabel); } ]] /mx:Script mx:Panel id=myPanel mx:Button label=Add Label click=addLabel('New Label')/ /mx:Panel This short piece of code is trivial. Now let's try to leverage this via Cairngorm : 1/ The button which adds a new label can be anywhere in the application. So on click, we gonna dispatch a cg event which is gonna run a command. 2/ As i need to do some business logic also, i will put it in that command. (optionnal) 3/ Now for xxx reasons, the function addLabel needs to reside where it is. So the command is gonna have to trigger this function. One very bad way to do this would be to add Application.application.myComp.addLabel('New Label') to the command. But that won't scale at all for obvious reasons : what if i want to trigger different functions, or if there is a function name change or whatever... 4/ The good way to do it would be to update data in ModelLocator from the command with value New Label. So that i can bind this data in myComp to trigger addLabel('dataFromML') everytime data changes. This is theory, and it looks like what you all say should be done. But how do i trigger addLabel() each time data in modelLocator changes ? That is how do i bind the data to the trigerring of a Function. This is what i'm missing, it is probably obvious, but i don't see it ! And if it needs to be refactored, ok, but i don't see how. This is simple case, but function could be way more complex. Best, Jean-Luc - Original Message - From: Tom Chiverton [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, May 24, 2006 9:58 AM Subject: Re: [flexcoders] Re: Newbie : How do i listen to a value ? Cairngorm inside. On Tuesday 23 May 2006 16:53, Jean-Luc ESSER wrote: I meant that i need to know the component name because the command is gonna change things in this component (and thus pass it as a param in my dispatch event). That's why initially it was a view function. You should refactor things so this doesn't happen. What in your view is the command going to change, and why can't that thing use modelLocator data binding ? As to if the function performs some buisness level task, it should be a command i'm not sure of this. But in some cases, you will have to update a view by adding or removing children, or even doing much complex things which are not business dependant. Things which will require actionscript, and thus a function. And i don't see how using bindings could resolve all these issues. Ahh, OK, I see now :-) Unless you tell me there is a way to trigger a local function by listenning to data in ModelLocator. If you've got a list of items, that list can be in modelLocator, and you can repeat over the list. Then your buisness command updates the model, and all is well. -- Tom Chiverton 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. We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the Year at the 2005 Growth Company Awards -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development
Re: [flexcoders] Re: Newbie : How do i listen to a value ? Cairngorm inside.
Thanx Tom but is "Dynamically repeating components"the answer to my issue? I agree that in my exemple, and probably most of the times, it could do the work, but does that mean there is no way to trigger a function by listenning to a change of value in a data ? Or am i still missing something ? Best, Jean-Luc. - Original Message - From: "Tom Chiverton" [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, May 24, 2006 12:27 PM Subject: Re: [flexcoders] Re: Newbie : How do i listen to a value ? Cairngorm inside. On Wednesday 24 May 2006 11:10, Jean-Luc ESSER wrote: But how do i trigger addLabel() each time data in modelLocator changes ? That is how do i bind the data to the trigerring of a Function. This is what i'm missing, it is probably obvious, but i don't see it ! Ahh, OK :-) http://livedocs.macromedia.com/labs/1/flex20beta3/wwhelp/wwhimpl/common/html/wwhelp.htm?href=""> ? -- Tom Chiverton 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. We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the Year at the 2005 Growth Company Awards Yahoo! Groups Sponsor ~-- Protect your PC from spy ware with award winning anti spy technology. It's free. http://us.click.yahoo.com/97bhrC/LGxNAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Newbie : How do i listen to a value ? Cairngorm inside.
How do i "listen" to a value change in a var ? Let's say i have a component CompA. In this component is a function FunctionA which needs to be triggered when an event is dispatched from a component CompB. Using Cairngorm, i dispatch an event from CompB, running a Command. For now, i trigger FunctionA from the Command (ie Application.application.CompA.FunctionA(myObject) ). But that is not how Cairngorm is supposed to work, right ? The way i should do it, i guess, is by updating a var myVar to myObjectin my ModelLocator from my Command. Then, via bindings, in CompA, listen to myVar, and when changing to myObject, trigger FunctionA. Am i right ? But how would i do this ? Help is welcome. -Jean-Luc -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: Newbie : How do i listen to a value ? Cairngorm inside.
That's exactly the question Tim, and it has been haunting me for quite a while now : 1/ Ok, if the view function simply updates the view, fine, using bindings should do it. 2/ But if it is more complex, i would agree on writing a new command. But when dispatching an event from any component, it means that the destination view (where command should execute) should be passed as a parameter. But that won't scale, imagine you change the destination view name ?!?! So you could bind the name of the view in the model locator so that if you change it, you won't have to update each one of your dispatch events. I don't know which way is the good way... -JL - Original Message - From: Tim Hoff [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, May 23, 2006 4:45 PM Subject: [flexcoders] Re: Newbie : How do i listen to a value ? Cairngorm inside. Jean-Luc, You scenario questions make me wonder; when does a function in a viewHelper or viewLocator (or MXML file) merit becoming a command? In my opinion, I don't see any reason not to call one command from another (dispatch or direct call). For instance getData calls calculateTotals on result. Since commands are in the same abstraction layer, this should be OK. However crossing layers by calling a view function from a command should be avoided. What does the view function actually do. If it updates the view, then you can rework this to have your command update state variables or VO's in the ModelLocator that are bound to the view. This will automatically update the view. If the function does anything else, perhaps the function should become a command. This was my thought process when addressing similar issues. I would love to hear what Steven and/or Ali have to say about this. Regards, Tim Hoff --- In flexcoders@yahoogroups.com, Jean-Luc ESSER [EMAIL PROTECTED] wrote: How do i listen to a value change in a var ? Let's say i have a component CompA. In this component is a function FunctionA which needs to be triggered when an event is dispatched from a component CompB. Using Cairngorm, i dispatch an event from CompB, running a Command. For now, i trigger FunctionA from the Command (ie Application.application.CompA.FunctionA(myObject) ). But that is not how Cairngorm is supposed to work, right ? The way i should do it, i guess, is by updating a var myVar to myObject in my ModelLocator from my Command. Then, via bindings, in CompA, listen to myVar, and when changing to myObject, trigger FunctionA. Am i right ? But how would i do this ? Help is welcome. -Jean-Luc -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: Newbie : How do i listen to a value ? Cairngorm inside.
Tim, When i say the destination view (where command should execute) should be passed as a parameter., i didn't mean that command gets executed in the view. ;) I meant that i need to know the component name because the command is gonna change things in this component (and thus pass it as a param in my dispatch event). That's why initially it was a view function. As to if the function performs some buisness level task, it should be a command i'm not sure of this. In theory, yes. But in some cases, you will have to update a view by adding or removing children, or even doing much complex things which are not business dependant. Things which will require actionscript, and thus a function. And i don't see how using bindings could resolve all these issues. Unless you tell me there is a way to trigger a local function by listenning to data in ModelLocator. Sorry if this sounds confusing, but as you might have guessed, english is not my original language. -JL - Original Message - From: Tom Chiverton [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, May 23, 2006 5:41 PM Subject: Re: [flexcoders] Re: Newbie : How do i listen to a value ? Cairngorm inside. On Tuesday 23 May 2006 16:30, Jean-Luc ESSER wrote: 2/ But if it is more complex, i would agree on writing a new command. But when dispatching an event from any component, it means that the destination view (where command should execute) should be passed as a parameter. Commands don't execute in views. They execute in their own space, and update things in modelLocator if needed - all you views are binding to modelLocator for their data, no ? As to when does a function in a viewHelper or viewLocator (or MXML file) merit becoming a command? I'd say, if the function performs some buisness level task, it should be a command. Otherwise not. -- Tom Chiverton 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. We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the Year at the 2005 Growth Company Awards -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: Newbie : How do i listen to a value ? Cairngorm inside.
I'm not sure to understand this one ! Anyway Michael, aren't viewHelper and viewLocator not to be used anymore in cg2 ? I thought i heard Steven say that everything could now be done using bindings... Guess that's another topic :) -JL - Original Message - From: [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, May 23, 2006 5:45 PM Subject: Re: [flexcoders] Re: Newbie : How do i listen to a value ? Cairngorm inside. I'm not sure if this is relevant or not, but the following is response from Alistair regarding a previous question I had about the use of viewHelpers - In your complex value object case, here's what we'd recommend now. In your command, put the complex object in your model (ModelLocator), eg. ModelLocator.getInstance().complextData = theResultFromTheServer; Now, in your view, you bind to that model item, but call a utility class to massage the results into the format you want. eg, mx:Label text={ MyUtilityClass.formatDataToSomethingSimpler( ModelLocator.getInstance().complexData ) } / Now, you could possibly call MyUtilityClass a view helper, in the broad sense of the pattern, but extracting it this way lets you, for example, unit tests it's functionality and keeps the Model and View separate. -- Jean-Luc ESSER To: flexcoders@yahoogroups.com [EMAIL PROTECTED] cc: Sent by: Subject: Re: [flexcoders] Re: Newbie : How do i listen to a value ? Cairngorm flexcoders@yahoogroups.com inside. 05/23/2006 11:30 AM Please respond to flexcoders That's exactly the question Tim, and it has been haunting me for quite a while now : 1/ Ok, if the view function simply updates the view, fine, using bindings should do it. 2/ But if it is more complex, i would agree on writing a new command. But when dispatching an event from any component, it means that the destination view (where command should execute) should be passed as a parameter. But that won't scale, imagine you change the destination view name ?!?! So you could bind the name of the view in the model locator so that if you change it, you won't have to update each one of your dispatch events. I don't know which way is the good way... -JL - Original Message - From: Tim Hoff [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, May 23, 2006 4:45 PM Subject: [flexcoders] Re: Newbie : How do i listen to a value ? Cairngorm inside. Jean-Luc, You scenario questions make me wonder; when does a function in a viewHelper or viewLocator (or MXML file) merit becoming a command? In my opinion, I don't see any reason not to call one command from another (dispatch or direct call). For instance getData calls calculateTotals on result. Since commands are in the same abstraction layer, this should be OK. However crossing layers by calling a view function from a command should be avoided. What does the view function actually do. If it updates the view, then you can rework this to have your command update state variables or VO's in the ModelLocator that are bound to the view. This will automatically update the view. If the function does anything else, perhaps the function should become a command. This was my thought process when addressing similar issues. I would love to hear what Steven and/or Ali have to say about this. Regards, Tim Hoff --- In flexcoders@yahoogroups.com, Jean-Luc ESSER [EMAIL PROTECTED] wrote: How do i listen to a value change in a var ? Let's say i have a component CompA. In this component is a function FunctionA which needs to be triggered when an event is dispatched from a component CompB. Using Cairngorm, i dispatch an event from CompB, running a Command. For now, i trigger FunctionA from the Command (ie Application.application.CompA.FunctionA(myObject) ). But that is not how Cairngorm is supposed to work, right ? The way i should do it, i guess, is by updating a var myVar to myObject in my ModelLocator from my Command. Then, via bindings, in CompA, listen to myVar, and when changing to myObject, trigger FunctionA. Am i right ? But how would i do this ? Help is welcome. -Jean-Luc -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links --- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you
Re: [flexcoders] Re: Cairngorm Sample Store
Last i heard from Steven was that they were trying to find time to put that online asap. They are under lot of pressure with internal projects. They didn't forget about it, we just need to be patient. Best, Jean-Luc - Original Message - From: Stefan Schmalhaus [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, May 23, 2006 7:11 PM Subject: [flexcoders] Re: Cairngorm Sample Store --- In flexcoders@yahoogroups.com, Steven Webster [EMAIL PROTECTED] wrote: We have a build of Cairngorm Store for Flex Beta 3, and Cairngorm 2 that we intend to deliver to you in the days ahead. Any news on this? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Force a List to resize ? How ?
I have a VBox, no height specified (i want it to grow depending on his child). Inside this box i put a List with xx rows. How do i force my List to take the height of all its rows ? That is, i don't want my list to scroll, i want it to resize so it shows all rows, and returns its height to my VBox. It's been almost a full day now that i'm trying this ! I've been looking everywhere... I'm pulling my hair off ! Help ! Please ? Jean-Luc -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Force a List to resize ? How ?
If i do that, it works fine, but how can i get the height of an item dynamically ? I need it if for example font-size for my item changes dynamically, it won't always be 17 ! Also, computing the height like this eats more ressources no ? -JL - Original Message - From: Jim Robson To: flexcoders@yahoogroups.com Sent: Friday, May 19, 2006 1:45 PM Subject: RE: [flexcoders] Force a List to resize ? How ? Jean-Luc: What happens when you set the height of the List component to a multiple of the number of items in the list? myList.height = numberOfItems * 17; Does the component resize correctly? Jim From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jean-Luc ESSERSent: Friday, May 19, 2006 5:38 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Force a List to resize ? How ? I have a VBox, no height specified (i want it to grow depending on his child). Inside this box i put a List with xx rows. How do i force my List to take the height of all its rows ? That is, i don't want my list to scroll, i want it to resize so it shows all rows, and returns its height to my VBox. It's been almost a full day now that i'm trying this ! I've been looking everywhere... I'm pulling my hair off ! Help ! Please ? Jean-Luc -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Force a List to resize ? How ?
Thanx Jim, i'll do that. -JL - Original Message - From: Jim Robson To: flexcoders@yahoogroups.com Sent: Friday, May 19, 2006 2:19 PM Subject: RE: [flexcoders] Force a List to resize ? How ? OK, I was assuming a constant item height. Yes, youll have to do something to determine the heights of the items, if they are variable. I dont think that simple calculations like this are too resource intensive. I have used this sort of method frequently, and on very large applications, with no noticeable degradation in performance. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jean-Luc ESSERSent: Friday, May 19, 2006 7:56 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Force a List to resize ? How ? If i do that, it works fine, but how can i get the height of an item dynamically ? I need it if for example font-size for my item changes dynamically, it won't always be 17 ! Also, computing the height like this eats more ressources no ? -JL - Original Message - From: Jim Robson To: flexcoders@yahoogroups.com Sent: Friday, May 19, 2006 1:45 PM Subject: RE: [flexcoders] Force a List to resize ? How ? Jean-Luc: What happens when you set the height of the List component to a multiple of the number of items in the list? myList.height = numberOfItems * 17; Does the component resize correctly? Jim From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jean-Luc ESSERSent: Friday, May 19, 2006 5:38 AMTo: flexcoders@yahoogroups.comSubject: [flexcoders] Force a List to resize ? How ? I have a VBox, no height specified (i want it to grow depending on his child). Inside this box i put a List with xx rows. How do i force my List to take the height of all its rows ? That is, i don't want my list to scroll, i want it to resize so it shows all rows, and returns its height to my VBox. It's been almost a full day now that i'm trying this ! I've been looking everywhere... I'm pulling my hair off ! Help ! Please ? Jean-Luc -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: Problem transcoding FlashType font
You'll have to transform your opentype to true type. A few tools can accomplish that, TransType (FontLab) is one of them. www.fontlab.com Jean-Luc. - Original Message - From: Tom Chiverton [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, May 18, 2006 10:16 AM Subject: Re: [flexcoders] Re: Problem transcoding FlashType font On Thursday 18 May 2006 00:14, billlane1962 wrote: That's the first thing I tried. But the designer has an OpenType font As I've never heard of OpenType, and was reading the Flex2 font embeding stuff last week, I guess you can't. -- Tom Chiverton 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. We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the Year at the 2005 Growth Company Awards -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Release Dates?
Upgrade to new player can be done inside the player now so it is not really an issue anymore. Anyway it used to be 6 months for 50% and one year for 80% covered with a new release (if i remember correctly). Jean-Luc. - Original Message - From: Stanislav Zayarsky To: flexcoders@yahoogroups.com Sent: Thursday, May 18, 2006 10:58 AM Subject: Re: [flexcoders] Release Dates? Steve, If your application is for large amount of internet users, be aware that it takes time for users to install new player. As far as I remember 9-12 monthes, Adobe guys can correct me. Best regards Stanislav On 5/18/06, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 17 May 2006 18:10, Gordon Smith wrote: That's the plan. I hope it's also the reality. Will a Flash9 player for Linux be available at release time ?--Tom ChivertonThis 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. CONFIDENTIALITYThis 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.We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the Year at the 2005 Growth Company Awards Yahoo! Groups Sponsor ~--Home is just a click away.� Make Yahoo! your home page now.http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM~---Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Release Dates?
I mean that if you have fp8, when you enter an application wich needs fp9, you can code the fp9 app to automatically update your fp8 to fp9. I think you can even skin the update bar in your flash. Then you'll be ask to relaunch your browser and voilà. Crossplatform, seamlessly integrated, updates only parts of the player which need to be updated,... what else ? Jean-Luc. - Original Message - From: Jamie Tehonica [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, May 18, 2006 3:46 PM Subject: Re: [flexcoders] Release Dates? What do you mean, can be done inside the player now??? --- Jean-Luc ESSER [EMAIL PROTECTED] wrote: Upgrade to new player can be done inside the player now so it is not really an issue anymore. Anyway it used to be 6 months for 50% and one year for 80% covered with a new release (if i remember correctly). Jean-Luc. - Original Message - From: Stanislav Zayarsky To: flexcoders@yahoogroups.com Sent: Thursday, May 18, 2006 10:58 AM Subject: Re: [flexcoders] Release Dates? Steve, If your application is for large amount of internet users, be aware that it takes time for users to install new player. As far as I remember 9-12 monthes, Adobe guys can correct me. Best regards Stanislav On 5/18/06, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 17 May 2006 18:10, Gordon Smith wrote: That's the plan. I hope it's also the reality. Will a Flash9 player for Linux be available at release time ? -- Tom Chiverton 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. We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the Year at the 2005 Growth Company Awards -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice -- YAHOO! GROUPS LINKS a.. Visit your group flexcoders on the web. b.. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Top Ten Reasons
Hell ! I'm one of them !!! - Original Message - From: Tim Hoff To: flexcoders@yahoogroups.com Sent: Thursday, May 18, 2006 12:59 PM Subject: [flexcoders] Top Ten Reasons Knowing the enormous pressures, that we all currently face, on getting-to-market, Ioffer a bit of levity. Here are the top ten reasons to determine; whether or not, you are truly are a Flexcoder: 10. You have Flex Builder or Eclipse open right now.9. You know what scrollbar Hell is.8. You've searched the help docs for getItemAt();.7. You know that Cairngorm isn't just a range of mountains and national park.6. You've allocated a week, or so, to recover your application due to alpha/beta releases.5. You've read a post on this list and ignored it, because the answer was in the help docs.4. You believe in the concept of "Pay it Forward".3. You believe that teaching someone to fish is more beneficial than giving them a fish.2. You are willing to participant in the instantaneous evolution of technology and ideas.And the #1 reason is: 1. You appreciate that Flex2 is going to set the bar for RIA and RAD. This is just a little humor and hopeful inspiration. Cheers everyone,Tim Hoff -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Padding around Text or Label
Hello there ! I've been trying to get rid of the top and bottom padding of a Text or Label, so that i can stick for example an image just underneath a Label, with no space at all showing in between. There is no such property on a Label, and it has no effect on a Text. It looks like a line-height maybe... Do you know how i can make this space disappear ? -JL -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Re: Cairngorm Sample Store
I couldn't agree more on what you say ! For sure, the Cairngorm Store in its F2B3 version will be very very helpfull ! Looks like it should come out any day (week?) now (just hoping here) ! Just guessing here : Your cairngorm files folder could be in a 'com.mycompany.[business,commands,control,model,view,vo]' type of thing or directly in your root without the com.mycompany. Then your cairngorm architecture would reside in your root app in org.nevis.cairngorm as it is supposed to be. If you decide to import the swc file in your main app, you woudn't even need to put the architecture in your app. That's how i understand it. Steven said that Peter Martin will blog soon on how to implement cairgorm, so i'm looking forward to this reading. FYI, my team is on a big project with Flex2 in its beta release, there will be co-branding, localized versions, and much more, so we are implementing cairngorm as the micro-architecture so that the application will scale well. The whole team is starting to learn cairngorm, and it's not that simple ! Wish us good luck ;) PS: excuse my poor english, i'm from france ;) Jean-Luc. [EMAIL PROTECTED] - Original Message - From: stefan_schmalhaus [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, May 11, 2006 4:34 PM Subject: [flexcoders] Re: Cairngorm Sample Store Thanks for all your hints and tips. I finished reading Steven Webster's excellent 6-part series and I took a look at the old 0.99 Cairngorm files. Then I tried to set up a simple app in Flex 2 (Beta 3) with the latest Cairngorm version. But reading and studying this stuff is one thing, setting up something new from scratch is another story. Maybe I'm too stupid... LOL... I'm struggling with basic things: What's the best location for the Cairngorm folders/files? Should I import the classes into my own Flex project? Or am I supposed to store the Cairngorm assets in a folder outside the projects hierarchy? It would be helpful if there was a working sample application based on the latest Flex/Cairngorm versions. The sample applications on the Adobe Labs site helped me a lot to grasp the overall Flex concept, the MXML constructs, etc. I really appreciate that the developers constantly update these samples to make sure that they work with the latest Flex version. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] No header in Datagrid : how ?
I didn't manage to find a way of not having any header in a datagrid. Setting headerHeight property to 0 does not really work as the little black arrow keeps appearing (partially) in the upper right corner of the column. Anyone to tell me which property i'm missing here ? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.