RE: [flexcoders] Thanks again to Adobe
Brief and succinct, like it! Is this being handled under the more general look at Lists and the DG, or under Spark? Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Matt Chotin Sent: 11 February 2009 00:33 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Thanks again to Adobe Ah, sorry, we must have missed that one. Your quesiton was: Just now, the majority of the functionality ItemEditor provides can be repeated by a ItemRenderer. With Gumbo giving better access to states, is it time to admit that Editing is just a state of the renderer? I believe the answer is yes :-)
[flexcoders] how to use a list's change event to refresh an array that is bound to it.
how can i use a list's change event to refresh an array that is bound to the list. for example if the list is populated by an array collection an displays images, how can i use the list's change event to refresh an array that is bound to it and acts as a data provider for another control? an example will be great. thanks
[flexcoders] Protect swf from webspider
Hello, How to protect the swf files from a webspider. Because we want to keep our development made in flex private. Thank you, Christophe,
Re: [flexcoders] Re: Sign function
On Monday 09 Feb 2009, aceoohay wrote: Another example of ActionScript making you roll your own I guess. You could submit a patch to add the function to the Math class. -- Tom Chiverton Helping to quickly compete innovative e-business This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Announcing the Flex SDK Community Committee
On Friday 06 Feb 2009, I wrote: Tom Chiverton, member of something you've not heard of yet http://www.rachaelandtom.info/content/announcing-flex-sdk-community-committee-and-maybe-end-fxbutton -- Tom Chiverton Helping to enormously envisioneer edge-of-your-seat market-driven information This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] Protect swf from webspider
Use robots.txt: http://www.robotstxt.org/ Cheers, -- Anirudh Sasikumar http://anirudhs.chaosnet.org/
[flexcoders] Convert utf-16 to utf-8
Hi there, Is there any way to convert utf-16 encoded string to utf-8 string in flex? I was searching this for long time now. Thanks in Advance.. -- Thanks and Regards Sreejith P
[flexcoders] Re: Can't use ImageSnapshot.captureBitmapData with a rotation matrix
Hi, thanks for the response, but that didn't work. I managed to get a solution via here: http://stackoverflow.com/questions/526119/cant-use-imagesnapshot-capturebitmapdata-with-a-rotation-matrix --- In flexcoders@yahoogroups.com, Amy amyblankens...@... wrote: Try just setting the blendMode on the textArea to layer, and see if that will let you rotate it without embedding. I found that ImageSnapshot sometimes didn't work with fonts that were not embedded. HTH; Amy
Re: [flexcoders] Re: tilelist HighlightIndicator effects
find the method you are trying to override in the code and check its method signature... On Wed, Feb 11, 2009 at 9:12 AM, stinasius stinas...@yahoo.com wrote: what is the right parameter to use here? -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
[flexcoders] LCDS - Show loading Icon
Hi! I am using LCDS Assembler with Java and configured the desitnations in data-management-config.xml. Now I want to show some loading icon to indicate the DS activity in my application by not doing this on each individual fill or aupdate nethode. The question is: For what DS-events do I have to listen to start and stop my loading icon. Can anyone please help me on that?
[flexcoders] What can be display in PopupManager??
Hi, Can any one please tell me that what we can display in popUpManager except IFlexDisplayObject?? Is it possible to pass Vbox, Hbox or any other type container into PopUpManager.addPopUp() as parameter to show? or only component and IFlexDisplayObject can be use??? I wana show a Vbox through popUpmanager. So kindly help me out Thankx.
[flexcoders] using sharedobject to maintain login data
i recently built a login system in flex with a coldfusion backend with the help of this forum and i put up the solution on the flex cook book. now i realized that it was kind of incomplete coz though it works perfectly, it still lacks a mechanism to save the login data. so my question is how can i use a sharedObject to save the login info so that it can be used throughout the flex application. here is the flex sample code of the login system i created and posted on cookbook. login_example.mxml ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:view=components.* mx:states mx:State name=Log Out mx:SetProperty target={label1} name=text value=Log Out/ /mx:State /mx:states mx:Script ![CDATA[ import components.*; //Flash Classes import flash.events.Event; import flash.events.MouseEvent; //Flex Classes import mx.containers.TitleWindow; import mx.controls.Alert; import mx.events.CloseEvent; import mx.managers.PopUpManager; import mx.core.IFlexDisplayObject; public var loggedin:Boolean = false; public var pop:Login; private function showLogin():void { pop = Login(PopUpManager.createPopUp(Application.application as DisplayObject,Login,true)); pop.showCloseButton =true; PopUpManager.centerPopUp(pop); pop.addEventListener(close,removeMe); pop[cancelButton].addEventListener(click, removeMe); pop.addEventListener( loginSuccessful, handleLoginSucess ); } private function removeMe(event:Event):void { PopUpManager.removePopUp(pop); } private function handleLoginSucess(event:Event):void{ viewstack1.selectedChild = admin; lbl_intro.text = Welcome +pop.username_txt.text; removeMe(event); currentState = 'Log Out'; } ]] /mx:Script mx:Label x=0 y=0 text=Sign In id=label1 buttonMode=true useHandCursor=true mouseChildren=false click=showLogin()/ mx:ViewStack x=0 y=26 id=viewstack1 width=100% height=100% view:Home id=home/ view:Admin id=admin/ /mx:ViewStack mx:Label x=700 y=0 id=lbl_intro/ /mx:Application login.mxml ?xml version=1.0 encoding=utf-8? mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute title=Login Form mx:Metadata [Event(name=loginSuccessful, type=flash.events.Event)] /mx:Metadata mx:Script ![CDATA[ import mx.rpc.events.ResultEvent; import mx.rpc.events.FaultEvent; import mx.utils.ObjectUtil; import mx.controls.Alert; import mx.events.ValidationResultEvent; private function isValid():Boolean { var emailValidResult:ValidationResultEvent = this.emailValidate.validate(this.username_txt.text); var pswdValidResult:ValidationResultEvent = this.pswdValidate.validate(this.password_txt.text); if (emailValidResult.type==ValidationResultEvent.VALID pswdValidResult.type==ValidationResultEvent.VALID) { return true; } else { return false; } } private function authenticateUser():void { if( isValid() ) { authManager.loginUser( this.username_txt.text, this.password_txt.text ); } } private function errorMessage(msg:String):void { //Alert.show( ObjectUtil.toString(event.message) ); this.errorMsg.text = msg; this.errorMsg.height = 15; this.errorMsg.visible = true; } private function serverFault(event:FaultEvent):void { errorMessage(event.message['message']); } private function login_result(event:ResultEvent):void { // login successful, remember the user. if( event.result == true ||
[flexcoders] Mouse click on an image
Hello, How to know the mouse click position that are made on an displayed image ? Thank you, Christophe
[flexcoders] Global variable
Hello, How to declare a global variable (for several mxml files) that is a common image ? Thank you, Christophe,
Re: [flexcoders] What can be display in PopupManager??
IFlexObject is a very high level interface. It has other interfaces that implement it, like IUIComponent. That is the interface implemented by UIComponent That is the superclass of Component. That is superclass of Box That is superclass of VBox. And finally I can say: You should be able to use your VBox, because it inherits from IFlexDisplayObject. Please post here your code. Regards, Pedro Sena On Wed, Feb 11, 2009 at 9:21 AM, Tahniyat Kazmi tahniyat.ka...@yahoo.comwrote: Hi, Can any one please tell me that what we can display in popUpManager except IFlexDisplayObject?? Is it possible to pass Vbox, Hbox or any other type container into PopUpManager.addPopUp() as parameter to show? or only component and IFlexDisplayObject can be use??? I wana show a Vbox through popUpmanager. So kindly help me out Thankx. -- /** * Pedro Sena * Systems Architect * Sun Certified Java Programmer * Sun Certified Web Component Developer */
Re: [flexcoders] Mouse click on an image
mouse click event has coordinates On Wed, Feb 11, 2009 at 2:50 PM, christophe_jacquelin christophe_jacque...@yahoo.fr wrote: Hello, How to know the mouse click position that are made on an displayed image ? Thank you, Christophe -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
Re: [flexcoders] Global variable
embed the image in the main application and pass references of it where needed On Wed, Feb 11, 2009 at 2:51 PM, christophe_jacquelin christophe_jacque...@yahoo.fr wrote: Hello, How to declare a global variable (for several mxml files) that is a common image ? Thank you, Christophe, -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
[flexcoders] Re: embedded font causes labels to appear with backgroundColor lighter than expected
Alex, I appreciate your taking the time to try my example. I tried it using Lucida Sans on my environment, and I do see the same phenomenon, of lighter stripes on the background of the FormItems. Here is the way it looks: http://chefaz.net/henry/TestEmbeddedFontLucidaSans.png http://chefaz.net/henry/TestEmbeddedFontLucidaSans.png I am using the latest Flex Builder (3.0.2), and viewing in IE6. It only happens with embedded fonts. --Henry --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: I don't have Lucida Bright, but I used Lucida Sans and don't see any problems. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of hr1ny Sent: Monday, February 09, 2009 5:09 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: embedded font causes labels to appear with backgroundColor lighter than expected Alex, Thanks for your reply. Following is a nice, minimal example that recreates this issue. It works with 2 different embedded fonts that I tried. advancedAntiAliasing did not make a difference. The labels have a striped appearance, which can be distracting. --Henry mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:Style @font-face { src: url('../bin- debug/assets/fonts/LucidaBright/LucidaBrightRegular.ttf'); fontFamily: lucidaBright; } global { fontFamily: lucidaBright; fontSize: 12; border: 1px; borderStyle: solid; color: white; } /mx:Style mx:VBox backgroundColor=#4e4e4e backgroundAlpha=1 width=500 height=150 mx:Form mx:FormItem label=dummy checkbox mx:CheckBox id=dummyCheckbox label=hi there/ /mx:FormItem mx:FormItem label=item label text color=white mx:TextInput id=fiti text=default text backgroundColor=gray/ /mx:FormItem /mx:Form /mx:VBox /mx:Application --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: Your version of Flex may not allow a list of fontFamilies. How much lighter is the background? Do you have filters applied, alpha? I've seen slight changes (0xfefefe becomes 0xfdfdfd), but not much more than that. Try turning off advancedAntiAliasing. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of hr1ny Sent: Monday, February 09, 2009 12:04 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] embedded font causes labels to appear with backgroundColor lighter than expected In my Flex 3 app, when I use an embedded font, I notice that some of my labels appear against a backgroundColor that is lighter than the surrounding backgroundColor (sometimes, in repeatable conditions), even though this is nowhere specified explictly. If I use a system font like '_sans' this does not happen. Can anyone explain why this would be, or how I can fix this behavior? My css code: @font-face { src: url('/assets/fonts/MyriadWebPro/MyriadWebPro.ttf'); fontFamily: myriadWebPro; advancedAntiAliasing: true; } global { fontFamily: myriadWebPro; fontSize: 12; border: 1px; borderStyle: solid; advancedAntiAliasing: true; color: white; } I also observe that if I say fontFamily: myriadWebPro, it loads the myriadWebPro font, but if I say fontFamily: myriadWebPro, '_sans', it will load a default serif font instead. That seems very strange. --Henry
Re: [flexcoders] Global variable
If you must have a global variable, consider using a static class or a singleton class instance. This saves passing references all over the place in your application. Treat global variables with care though - you are building dependencies between components. Paul - Original Message - From: Fotis Chatzinikos To: flexcoders@yahoogroups.com Sent: Wednesday, February 11, 2009 12:54 PM Subject: Re: [flexcoders] Global variable embed the image in the main application and pass references of it where needed On Wed, Feb 11, 2009 at 2:51 PM, christophe_jacquelin christophe_jacque...@yahoo.fr wrote: Hello, How to declare a global variable (for several mxml files) that is a common image ? Thank you, Christophe, -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
[flexcoders] Form on several page
Hello, How to make a form inside several pages ? Thank you, Christophe,
[flexcoders] Cursor cross
Hello, How to replace the arrow cursor by a cross cursor in a flex application ? Thank you, Christophe,
Re: [flexcoders] Re: BindingUtils and ResourceManager Question
I use this piece of code: BindingUtils.bindProperty( fiUsername, label, ResourceManager.getInstance(), {name: getString, getter: function(resMan:IResourceManager):String { return resMan.getString(myResources, LBL_USERNAME);} }); with fiUsername as a formItem grtz 2009/1/30 Amy amyblankens...@bellsouth.net --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Thomas, Erik erik_tho...@... wrote: Thanks for the suggestions, Johannes. Unfortunately, using an explicit event won't scale well in a big application since every access of a resource string from ActionScript will require this treatment. I've done a -keep-generated-actionscript and tried to grok the ActionScript code the Flex compiler generates when specifying a data binding in MXML and it just doesn't make sense to me just yet. I'm still on the hunt for a code sample using a ChangeWatcher or some means to set up the binding without explicit events. My objective is a single line of code just like using BindingUtils.bindProperty. It seems like I should be able to write a similar class as BindingUtils and expose an API that takes a Function as the chain property, instead of an Object. Anyway, thanks for your suggestion. Have you seen this presentation? http://tinyurl.com/databinding I've found it really useful. HTH; Amy
[flexcoders] I'm just not seeing it guys/gals... (events/scopes)
I've read Amy's FAQ (Q3) and the Flex 3 Cookbook and have attempted to make the situation below work, but the solution still escapes me. After reading several other resources, I think I've read too many ways to skin a cat and now I'm in circles. I have an ArrayCollection (currentAC) in a main application file in AIR. (When the user clicks on categories it updates that array with a selected arrayCollection.) I have a custom item renderer for a list in the main application file. When someone clicks an item in the list, it seems that scoping within the item renderer using either: Application.application.currentAC = this.itemRenderersAC; would work to update the currentAC array, and as well it seems that parentDocument.currentAC = this.itemRenderersAC; would work too, but I can't make that tightly coupled situation work for some reason. So... I move on to the proper, loosely coupled approach with little success as well. No errors, but no currentAC update. I tried to dispatchEvent from the itemRenderer and have it be handled by...anything, and I'm just not getting the syntax or something, and nothing needs to even be passed around, I just need to update an array with the itemRenderer's Array that has a known array name. I'm tired or dumb, or I could be both.
[flexcoders] Re: Global variable
Flex treat images as global, if you ref it in one componet and a another componet, flex only use the one loaded first into memory. --- In flexcoders@yahoogroups.com, christophe_jacquelin christophe_jacque...@... wrote: Hello, How to declare a global variable (for several mxml files) that is a common image ? Thank you, Christophe,
Re: [flexcoders] ArrayCollection DataProvider question.
Hi Tracy, this is how I get the XML info into an ArrayCollection: mx:HTTPServiceurl=days.php useProxy=false method=POST id=Days resultFormat=e4x result=get_days(event) privatefunctionget_days(event:ResultEvent):void{ Arraydays.removeAll(); XMLdays = event.result asXML;foreach(varourxml:XML inXMLdays.elements()) Arraydays.addItem(ourxml);} Is this ok? Thanks -David From: Tracy Spratt tspr...@lariatinc.com To: flexcoders@yahoogroups.com Sent: Tuesday, February 10, 2009 4:19:53 PM Subject: RE: [flexcoders] ArrayCollection DataProvider question. I suggest using e4x expressions against the XML, and then putting the result in an XMLListCollection. var xlResults:XMLList = xmlData.result. (attribute(“id”) == “1”); trace(xlResults. toXMLString( )); //to verify your data xlcResults = new XMLListCollection( xlResults) ; You did not say how you got your XML into an ArrayCollection, but I suspect it is not the good way. Tracy Spratt Lariat Services Flex development bandwidth available From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Henrique Sent: Tuesday, February 10, 2009 2:19 PM To: flexcod...@yahoogro ups.com Subject: Re: [flexcoders] ArrayCollection DataProvider question. Humm, you have to make a filterFunction, like this: private function filterFucntion( item:Object) :Boolean { return item.id == 1; } Henrique F. Marino blog.dclick. com.br www.dclick.com. br On Tue, Feb 10, 2009 at 3:35 PM, sailorsea21 sailorsea21@ yahoo.com wrote: I loaded the following xml as an ArrayCollection. data result id=1 datetoday/date yes13154/yes no654321/no /result result id=1 dateyesterday/date yes21354/yes no5468432/no /result result id=2 datetoday/date yes2665/yes no4256/no /result result id=2 dateyesterday/date yes7425/yes no7542/no /result /data How can I use this as a dataprovider but only using the values in result id=1 and not result id=2? My arraycollection var is Arraydays. I tried {Arraydays.( @id=='2')} but it gave me an error: Error #1123: Filter operator... Thanks.
[flexcoders] Stop Key press
How can i disable/ suppress the default behavior of a button, where if it has focus then space-bar key-press fires the click event. Basically I want click to work as normal, but space-bar Key-press if it's the space bar, do nothing. This Key-Press/Spacebar issue allows Modal popup windows to be opened up - more than once, which defeats the point of modal popup window. I'm using Flex 3 (not 3.2 and can't migrate at this stage.) Any help appreciated :-)
RE: [flexcoders] Stop Key press
I remember coming across this issue quite a while back and it's because your new modal window hasn't taken the focus away from the button which opens the popup. When you create and show the popup use the focusmanager to give a button or whatever you have in your popup focus. That way when the user presses space bar again it will not be 'clicking' the button which originally opened the modal window. HTH Kenneth. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of gr33neye501 Sent: 11 February 2009 14:46 To: flexcoders@yahoogroups.com Subject: [flexcoders] Stop Key press How can i disable/ suppress the default behavior of a button, where if it has focus then space-bar key-press fires the click event. Basically I want click to work as normal, but space-bar Key-press if it's the space bar, do nothing. This Key-Press/Spacebar issue allows Modal popup windows to be opened up - more than once, which defeats the point of modal popup window. I'm using Flex 3 (not 3.2 and can't migrate at this stage.) Any help appreciated :-) Disclaimer --- This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. ---
[flexcoders] Re: Stop Key press
Sorry Kenneth i should have said, i also have buttons that don't have popups. I just want to disable this 'feature'. Do you know how i can do this? --- In flexcoders@yahoogroups.com, Kenneth Sutherland kenneth.sutherl...@... wrote: I remember coming across this issue quite a while back and it's because your new modal window hasn't taken the focus away from the button which opens the popup. When you create and show the popup use the focusmanager to give a button or whatever you have in your popup focus. That way when the user presses space bar again it will not be 'clicking' the button which originally opened the modal window. HTH Kenneth. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of gr33neye501 Sent: 11 February 2009 14:46 To: flexcoders@yahoogroups.com Subject: [flexcoders] Stop Key press How can i disable/ suppress the default behavior of a button, where if it has focus then space-bar key-press fires the click event. Basically I want click to work as normal, but space-bar Key-press if it's the space bar, do nothing. This Key-Press/Spacebar issue allows Modal popup windows to be opened up - more than once, which defeats the point of modal popup window. I'm using Flex 3 (not 3.2 and can't migrate at this stage.) Any help appreciated :-) Disclaimer --- This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. ---
RE: [flexcoders] I'm just not seeing it guys/gals... (events/scopes)
Your e-mail is not very clear. There are many ways to get the array collection to update. Anyway, if you are using a drop-in item renderer, I suggest that you access the listData property of the itemRenderer. listData has a property called owner. So you could have your item renderer dispatch an event using the owner property. This way, the event will be seen as coming from the list itself. so, from inside the item renderer: listData.owner.dispatchEvent(your event); and attach listeners to the list itself to get notified. http://geo.yahoo.com/serv?s=97359714/grpId=12286167/grpspId=1705007207/ msgId=136557/stime=1234359703/nc1=4507179/nc2=3848640/nc3=4836038
Re: [flexcoders] I'm just not seeing it guys/gals... (events/scopes)
Comments in-line David Kramer wrote: I've read Amy's FAQ (Q3) and the Flex 3 Cookbook and have attempted to make the situation below work, but the solution still escapes me. After reading several other resources, I think I've read too many ways to skin a cat and now I'm in circles. I have an ArrayCollection (currentAC) in a main application file in AIR. (When the user clicks on categories it updates that array with a selected arrayCollection.) I'm not sure what this means. Do you have two ArrayCollections? One w/ the full list and one with a list of selected items? I have a custom item renderer for a list in the main application file. When someone clicks an item in the list, it seems that scoping within the item renderer using either: Application.application.currentAC = this.itemRenderersAC; would work to update the currentAC array, and as well it seems that parentDocument.currentAC = this.itemRenderersAC; would work too, but I can't make that tightly coupled situation work for some reason. So... I move on to the proper, loosely coupled approach with little success as well. No errors, but no currentAC update. I tried to dispatchEvent from the itemRenderer and have it be handled by...anything, and I'm just not getting the syntax or something, and nothing needs to even be passed around, I just need to update an array with the itemRenderer's Array that has a known array name. Be sure that your event is set to bubble. If you could share your itemRenderer code and/or the listener code that might help debug it. _ -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
RE: [flexcoders] Re: Stop Key press
Well you only need to take the focus away when you open a popup so if some buttons do not have a popup just leave the focus as is. Either way you can also look at the event which has caused the 'click' event on the button. If the event.localX is NaN it's not come from the mouse and has come from the space bar (same for localY, stageX stagey). Debug your app and you'll see what I mean. Kenneth. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of gr33neye501 Sent: 11 February 2009 15:14 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Stop Key press Sorry Kenneth i should have said, i also have buttons that don't have popups. I just want to disable this 'feature'. Do you know how i can do this? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Kenneth Sutherland kenneth.sutherl...@... wrote: I remember coming across this issue quite a while back and it's because your new modal window hasn't taken the focus away from the button which opens the popup. When you create and show the popup use the focusmanager to give a button or whatever you have in your popup focus. That way when the user presses space bar again it will not be 'clicking' the button which originally opened the modal window. HTH Kenneth. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of gr33neye501 Sent: 11 February 2009 14:46 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Stop Key press How can i disable/ suppress the default behavior of a button, where if it has focus then space-bar key-press fires the click event. Basically I want click to work as normal, but space-bar Key-press if it's the space bar, do nothing. This Key-Press/Spacebar issue allows Modal popup windows to be opened up - more than once, which defeats the point of modal popup window. I'm using Flex 3 (not 3.2 and can't migrate at this stage.) Any help appreciated :-) Disclaimer -- This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. -- Disclaimer --- This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. ---
RE: [flexcoders] I'm just not seeing it guys/gals... (events/scopes)
Thanks for the reply. To be very specific... I'm trying for any way to achieve this: parentDocument.currentAC (in app) = presentationsSlidesAC (in component), so the main application.mxml has the currentAC updated. (Loose, tight, whatever.) Here's the DropLabel.mxml component code: ?xml version=1.0 encoding=utf-8? mx:Label xmlns:mx=http://www.adobe.com/2006/mxml; text={data.pTitle} dragEnter=draggedInto(event) dragDrop=testDrop(event) click=clickHandler(event) width=220 textAlign=left color=#ff fontSize=12 mx:Metadata [Event('presentationSelected')] /mx:Metadata mx:Script ![CDATA[ import mx.collections.ArrayCollection; import mx.controls.Alert; import mx.core.DragSource; import mx.managers.DragManager; import mx.events.DragEvent; //import flash.data.SQLResult; //import flash.filesystem.File; //import flash.data.SQLStatement; //import flash.data.SQLConnection; //import flash.events.SQLEvent; //import flash.events.SQLErrorEvent; private function draggedInto(event:DragEvent):void { DragManager.acceptDragDrop(this); } private function testDrop(event:DragEvent):void { if (event.dragSource.hasFormat(items)) { var itemsArray:Array = event.dragSource.dataForFormat(items) as Array; // breakpoint, examine itemsArray[0] //Do sql stuff here, which works fine Alert.show(itemsArray[0].sTitle + '\nadded to\n' + this.text); } } [Bindable] private var presentationsSlidesAC:ArrayCollection; //public var selectedPresentation:Object; private function clickHandler(event:MouseEvent):void { //Do sql stuff here, works fine (requery via SELECT), the result is in an arrayCollection called presentationsSlidesAC //I'm trying to simply get this assignment. //parentDocument.currentAC = presentationsSlidesAC; } ]] /mx:Script /mx:Label - Original Message - From: Yves Riel To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] I'm just not seeing it guys/gals... (events/scopes) Date: Wed, 11 Feb 2009 10:13:22 -0500 Your e-mail is not very clear. There are many ways to get the array collection to update. Anyway, if you are using a drop-in item renderer, I suggest that you access the listData property of the itemRenderer. listData has a property called owner. So you could have your item renderer dispatch an event using the owner property. This way, the event will be seen as coming from the list itself. so, from inside the item renderer: listData.owner.dispatchEvent(your event); and attach listeners to the list itself to get notified. [IMAGE]
[flexcoders] Http login to a server from Flex client
Hello all, My application scenerion is this: My desktop flex client needs to access a third party application. Which I can easily do with an Http login (providing the login/password and accessing whatever page I want to access through a single URL). However what I am not able to do is: keeping my logged in session active. Every time I have to access the 3rd party application I have to login in every single time. Any help on how I can login just once and keep doing my work until I log out, will be greatly appreciated. Just as a side note: If I bring up the same 3rd party application through Iframe inside my flex client and then login through the browser it works just fine. Logged in session just does not go away. Example code will be greatly appreciated. Best Regards
[flexcoders] Discussing Shared Codebase between Flex and AIR project
Hi gang, Yes, it's another one :) But I am going to approach it a different way. My question is based on David Coletta's MAX presentation. If you haven't seen his presentation, please watch here: http://tv.adobe.com/#vi+f15384v1022 The slides are available here: http://www.slideshare.net/dcoletta/DavidColettaArchitecting-a-Shared- Codebase-for-Browser-and-DesktopFinal To everyone who has seen his presentations, could you help me out in understanding how his Browser SWFs included in AIR file works to solve the Shared code packaging ? This is what I understand on what he did with that approach: 1. Only have one AIR project that contains all AIR implementation. 2. Each of your module's common functionality, extract them out to an interface and then have Flex-specific and AIR-specific class implements the interface. So I am kind of get the idea but I have a very hard time understanding on how he was able to get each module to have the AIR project to serve the module's AIR-implementation needs? Thanks!
[flexcoders] portlets in Flex
Hey all, Does anyone know of a way to safely load and run 3rd party modules? I'm working on a team that is building a large application (like a 'portal') that needs to be able to load in modules that might not be of very high quality (like 'portlets'). We need to make sure that exceptions raised in those modules don't bring down our entire application. Is there any way to sandbox them so that the exceptions don't bubble up out of the sandbox? A try/catch doesn't cover it, because these modules can exist long past just load/creation-time and they can do lots of things to cause exceptions outside of any try/catch we can wrap around it. Without a solution to this, we're probably going to have to move to a more hybrid html/flex model, because at least in that case the multiple player instances can fail independently... Thanks for any ideas, . Gregg Caines gr...@caines.ca
Re: [flexcoders] Thanks again to Adobe
I'm checking with some folks, but we're not changing the way Halo works so I think you'd consider to be a Spark adjustment. On 2/11/09 12:19 AM, Gregor Kiddie gkid...@inpses.co.uk wrote: Brief and succinct, like it! Is this being handled under the more general look at Lists and the DG, or under Spark? Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Matt Chotin Sent: 11 February 2009 00:33 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Thanks again to Adobe Ah, sorry, we must have missed that one. Your quesiton was: Just now, the majority of the functionality ItemEditor provides can be repeated by a ItemRenderer. With Gumbo giving better access to states, is it time to admit that Editing is just a state of the renderer? I believe the answer is yes :-)
Re: [flexcoders] Http login to a server from Flex client
The most common way is to have a facade class on the remote server that handles the sessions; and after login that facade sends you back some session key you can pass with each request. Additionally, it appears that the Flash Player will send cookies set on the same domain as part of the remote object call. So, if your swf is served from the same domain as the login service, they should work--assuming that the login service is keeping track of login w/ cookies. Beyond that; I don't have a solution. hworke wrote: Hello all, My application scenerion is this: My desktop flex client needs to access a third party application. Which I can easily do with an Http login (providing the login/password and accessing whatever page I want to access through a single URL). However what I am not able to do is: keeping my logged in session active. Every time I have to access the 3rd party application I have to login in every single time. Any help on how I can login just once and keep doing my work until I log out, will be greatly appreciated. Just as a side note: If I bring up the same 3rd party application through Iframe inside my flex client and then login through the browser it works just fine. Logged in session just does not go away. Example code will be greatly appreciated. Best Regards -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
RE: [flexcoders] Re: AxisRenderer Embedded Font Bug?
Darrell, I wanted to pick this one back up - I'm wondering whether it should be entered as a bug. If so, I'll put togeter some example code to reproduce the issue. Only caveat being that the RSLs have to live somewhere so there is an external dependency. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Battershall, Jeff Sent: Friday, February 06, 2009 9:15 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: AxisRenderer Embedded Font Bug? 3.2.0.3958 -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Darrell Loverin Sent: Thursday, February 05, 2009 9:16 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: AxisRenderer Embedded Font Bug? What version of dataviz and the framework are you using? -Darrell --- In flexcoders@yahoogroups.com, Battershall, Jeff jeff.battersh...@... wrote: Daniel, OK its an RSL issue. When I have the dataviz and framework merged into code, everything renders correctly. When I'm referencing them as RSL URLs, the fonts don't render properly in the AxisRenderer (for vertical axes). I had run into this previously and the workaround is/was to merge it all into code with the commensurate increase in file size. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Battershall, Jeff Sent: Thursday, February 05, 2009 8:54 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: AxisRenderer Embedded Font Bug? Daniel, It's bizarre - I enumerated the fonts in the document (TitleWindow) and they are there but aren't displaying in the AxisRenderer. The fonts ARE rendering in other parts of the document. I'm wondering whether I have the latest datavis build or something weird like that. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Darrell Loverin Sent: Thursday, February 05, 2009 7:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: AxisRenderer Embedded Font Bug? The problem sounds like it might be this bug https://bugs.adobe.com/jira/browse/FLEXDMV-1883 which was fixed in Flex 3.2. -Darrell --- In flexcoders@yahoogroups.com, Battershall, Jeff jeff.battershall@ wrote: Additional info - the chart is in a TitleWindow. There seems to be a lot of posts about this and similar issues with charts within modules, etc. I just haven't been able to get the magic incantation that will make the fonts render. I could just say f-it and render the labels using device fonts and without rotation, but that kinda runs against the grain, if you know what I mean. Jeff -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Battershall, Jeff Sent: Thursday, February 05, 2009 2:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] AxisRenderer Embedded Font Bug? I've got a vertical axis with an axisrenderer and I'm trying to rotate the labels 90 degrees. I'm referring to a font embedded in a stylesheet. The labels won't display - it appears that room is being made for the labels to appear, but the labels aren't getting rendered. I'm using MyriadWebPro as the embedded font and I've also tried this with Arial with the same results. I've also tried this with no label rotation at all - but no dice. If I stipulate a font family including device fonts, the labels will render, but no rotation is available. Has anyone seen this? Jeff Battershall Application Architect Dow Jones Indexes jeff.battershall@ (609) 520-5637 (p) (484) 477-9900 (c) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f- b4cf- 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4c f- 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4c f- 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ:
[flexcoders] Re: Flex Text animation help
Hai Anybody knows how I can get this working , Please. Thanks Gireesh On Thu, Jan 29, 2009 at 11:01 PM, Gireesh Kumar gireeshkuma...@gmail.comwrote: Hi All, Please check the below url, Can any one tell me how I can achive this animation/text morphing/tween using Flex ? http://gireeshkumar.ind.in/temp/2009-01-29_225737.jpg I wanted to show that the source work getting transformed to the target work letter by letter. Thanks Gireesh -- Gireesh Kumar G http://gireeshkumar.ind.in/
[flexcoders] Re: Form on several page
We do this all the time for things like credit card processing forms... create a component (mxml or AS) - then you can reuse it many times - even in other applications with just a little work. Check out this link: http://www.adobe.com/devnet/flex/quickstart/building_components_in_mxm l/ Anthony DeBonis www.troywebconsulting.com --- In flexcoders@yahoogroups.com, christophe_jacquelin christophe_jacque...@... wrote: Hello, How to make a form inside several pages ? Thank you, Christophe,
[flexcoders] HttpService headers - age old problem
This seems to be an age-old issue. I need to set the Authorization header for GET requests. I read it cannot be done and I have read articles that hint it is doable. Which is it? I have no cross-domain issues. Everything is sent to the same server. I found the following adobe TechNote: http://kb.adobe.com/selfservice/viewContent.do? externalId=kb403184sliceId=1 appears to state that post Flash player 9.0.115.0 the Authorization header can be sent with either GET or POST. I have player 9.0.224.0. However, I cannot the Authorization header or a custom header to go across. Has anyone successfully set the Authorization header for any customer header for that matter with the HttpService? Thanks. -S
[flexcoders] Chart Axis Location
Hello, I am using a LineChart that has labels for the horizontal axis, but no labels for the vertical axis. I would like the labels to be displayed over top of the chart, rather than below or above of the chart. Does anyone have any good ideas on how to accomplish this? The point of this is to hide the extra space that is put around the chart to renderer the axis labels. I want my chart to take up 100% of the space it is allotted and place the axis labels on top of the chart. Thank you, Chad
RE: [flexcoders] Discussing Shared Codebase between Flex and AIR project
We've used the strategy pattern for this. We do something similar to how ToolTipManager uses toolTipClass. When the app starts up (or module is loaded), the correct classes are injected into the files which have AIR / player differences. We also have two front end swfs which are little more than preloaders primed with appropriate classes for the rest of the application. As an example, we've used this mechanism to cache the same data in the SQLite DB in AIR, or a Shared Object in the Flash player via the same call (i.e. the rest of the app was agnostic to whether it was in AIR or FP) Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of handitan Sent: 11 February 2009 16:31 To: flexcoders@yahoogroups.com Subject: [flexcoders] Discussing Shared Codebase between Flex and AIR project Hi gang, Yes, it's another one :) But I am going to approach it a different way. My question is based on David Coletta's MAX presentation. If you haven't seen his presentation, please watch here: http://tv.adobe.com/#vi+f15384v1022 http://tv.adobe.com/#vi+f15384v1022 The slides are available here: http://www.slideshare.net/dcoletta/DavidColettaArchitecting-a-Shared- http://www.slideshare.net/dcoletta/DavidColettaArchitecting-a-Shared- Codebase-for-Browser-and-DesktopFinal To everyone who has seen his presentations, could you help me out in understanding how his Browser SWFs included in AIR file works to solve the Shared code packaging ? This is what I understand on what he did with that approach: 1. Only have one AIR project that contains all AIR implementation. 2. Each of your module's common functionality, extract them out to an interface and then have Flex-specific and AIR-specific class implements the interface. So I am kind of get the idea but I have a very hard time understanding on how he was able to get each module to have the AIR project to serve the module's AIR-implementation needs? Thanks!
[flexcoders] preventing flex List rollover indicator to draw on selected item.
This thing has always bugged me. the rollover effect should never appear on a selected item in a list. unfortunately that's not how the List works. The list is using an itemrenderer implementing IDropInListItemRenderer. and I already do various visual changes using the: ListBase(owner).isItemHighlighted(data) and ListBase(owner).isItemSelected(data) in the itemrenderer. I imagine I could: 1. get rid off the rollover effect entirely by setting the list useRollOver style property to false and handling the rollover through the itemrenderer. 2. make an new List class and override it's drawHighlightIndicator() method. any idea how to prevent drawHighlightIndicator() to operate on the selectedItem ? any other solution ? thanks
Re: [flexcoders] Chart Axis Location
Do you mean that you want the title for the left vertical axis, for example, to be above the axis rather than sideways alongside it? Or do you mean that you want the horizontal axis, along with its tick marks and tick mark labels to be above the chart? The latter is easy, the former might be easiest down outside of the chart (i.e. by putting the chart on a canvas, with the vertical axis titles pinned to the left or right. On Wed, Feb 11, 2009 at 9:22 AM, Chad Callahan chad.calla...@t8design.comwrote: Hello, I am using a LineChart that has labels for the horizontal axis, but no labels for the vertical axis. I would like the labels to be displayed over top of the chart, rather than below or above of the chart. Does anyone have any good ideas on how to accomplish this? The point of this is to hide the extra space that is put around the chart to renderer the axis labels. I want my chart to take up 100% of the space it is allotted and place the axis labels on top of the chart. Thank you, Chad
[flexcoders] Re: How to set the endpoint address in Coldfusion side?
just set the endpoint in your air code myRemoteObject.endpoint = http://192.168.0.181/flex2gateway;; --- In flexcoders@yahoogroups.com, markflex2007 markflex2...@... wrote: Hi I am doing an AIR application and the coldfusion server in a network pc(192.168.0.181).the application need use CFML functions I need use mx:RemoteObject in the Air code and I have to pass endpoint attribute to mx:RemoteObject. My question is how to set the endpoint in coldfusion 8 server,which files I need to change.how to change that. I just use the endpoint url in Air application. Thanks for help. Mark
[flexcoders] AIR Application optimizing...
So I've been working with Alchemy for a while now, and I hear of the size optimization issues with using it. What is the reasoning behind optimizing a SWF size when building an AIR application? I don't do anything to shrink the size of the output swf (or even try) since it is running on it's own on the user's system (vs. the browser over the internet). I know it'd be better to optimize and get the file size down as small as possible but, what difference does it really make? I totally see why you'd optimize a web based Flex app - that's obvious to me - but I don't really know what difference it would bring to cut out 200-300kb from an AIR application. Anyone else have any thoughts on it? -Nathan
[flexcoders] ignore my posts from this morning...
Ugh. The problem was staring me in the face! (The arrayCollection declared in the main application was not public and not available as a settable prop to other components.) Duh.
RE: [flexcoders] ArrayCollection DataProvider question.
That is not as bad as I thought it might be(I was expecting to see the default resultFormat. E4x is good!), but it is a bit odd. You are manually building an ArrayCollection of XML nodes. I don't see any reason to do that. Just use XMLListCollection, and avoid the loop. Now, best practice, or at least this list's apparent consensus of best practice, is to do what you are doing, but instead of adding xml nodes, you populate a strongly data typed Value Object and add tht to the ArrayCollection. This is probably the most efficient and performant approach. But I mostly use XML and XMLListCollection. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of - - Sent: Wednesday, February 11, 2009 9:37 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] ArrayCollection DataProvider question. Hi Tracy, this is how I get the XML info into an ArrayCollection: mx:HTTPService url=days.php useProxy=false method=POST id=Days resultFormat=e4x result=get_days(event) private function get_days(event:ResultEvent):void { Arraydays.removeAll(); XMLdays = event.result as XML; for each(var ourxml:XML in XMLdays.elements()) Arraydays.addItem(ourxml); } Is this ok? Thanks -David From: Tracy Spratt tspr...@lariatinc.com To: flexcoders@yahoogroups.com Sent: Tuesday, February 10, 2009 4:19:53 PM Subject: RE: [flexcoders] ArrayCollection DataProvider question. I suggest using e4x expressions against the XML, and then putting the result in an XMLListCollection. var xlResults:XMLList = xmlData.result. (attribute(id) == 1); trace(xlResults. toXMLString( )); //to verify your data xlcResults = new XMLListCollection( xlResults) ; You did not say how you got your XML into an ArrayCollection, but I suspect it is not the good way. Tracy Spratt Lariat Services Flex development bandwidth available From: flexcod...@yahoogro ups.com http://ups.com/ [mailto:flexcoders@ yahoogroups. com] On Behalf Of Henrique Sent: Tuesday, February 10, 2009 2:19 PM To: flexcod...@yahoogro ups.com Subject: Re: [flexcoders] ArrayCollection DataProvider question. Humm, you have to make a filterFunction, like this: private function filterFucntion( item:Object) :Boolean { return item.id http://item.id/ == 1; } Henrique F. Marino blog.dclick. com.br http://blog.dclick.com.br/ www.dclick.com. br http://www.dclick.com.br/ On Tue, Feb 10, 2009 at 3:35 PM, sailorsea21 sailorsea21@ yahoo.com mailto:sailorse...@yahoo.com wrote: I loaded the following xml as an ArrayCollection. data result id=1 datetoday/date yes13154/yes no654321/no /result result id=1 dateyesterday/date yes21354/yes no5468432/no /result result id=2 datetoday/date yes2665/yes no4256/no /result result id=2 dateyesterday/date yes7425/yes no7542/no /result /data How can I use this as a dataprovider but only using the values in result id=1 and not result id=2? My arraycollection var is Arraydays. I tried {Arraydays.( @id=='2')} but it gave me an error: Error #1123: Filter operator... Thanks.
[flexcoders] Re: How to implement right click drill down for either PieChart or ColumnChart
Anyway, overriding mouseClickHandler function in ChartBase is not a right solution since right click is not handled by this function. --- In flexcoders@yahoogroups.com, tungchau81 tungcha...@... wrote: I want to override the following function in ChartBase class, but it is private. I wonder if there is any other alternative solution. private function mouseClickHandler(event:MouseEvent):void Thanks in advance, Tung Chau --- In flexcoders@yahoogroups.com, tungchau81 tungchau81@ wrote: Any help out there? I am really stuck on this... --- In flexcoders@yahoogroups.com, tungchau81 tungchau81@ wrote: Hi, When a user **right-click on a wedge in a PieChart or a column in a ColumnChart control, I need to drill down into the data for that wedge or column and display new charts based on the selected menu item on the right-click menu. This should work similar to a normal left-click drill down available in Flex Chart using HitData. I have two problems: Problem#1: I know how to create right-click menu using ContextMenu and ContextMenuItem. However, I do not know how to make the right- click menu to show up **if and only if** a user clicks on a wedge of a PieChart or a column of a ColumnChart, not anywhere else. Problem#2: I cannot use the rightClick event available in ColumnChart API because the event is only available in AIR runtime. Also, rightClick event is not associated with ChartItemEvent as itemClick event does and therefore, no hitData is available for me to figure what data was underneath the mouse when the right-click event was triggered. Any help or suggestion is greatly appreciated. Thank you Tung Chau
RE: [flexcoders] Chart Axis Location
I'm not using titles for the chart, so those don't matter. Let's say that I have the LineChart in a Canvas and i want the chart to fill 100% of that canvas so that I don't see anything on any sides of the chart (no buffer for axis labels and such). So yes, I want the tick marks and labels to be over top of the chart (overlay). Ultimately, I'm trying to build this: http://screencast.com/t/3vz1MULH Thanks! From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Richard Rodseth Sent: Wednesday, February 11, 2009 12:00 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Chart Axis Location Do you mean that you want the title for the left vertical axis, for example, to be above the axis rather than sideways alongside it? Or do you mean that you want the horizontal axis, along with its tick marks and tick mark labels to be above the chart? The latter is easy, the former might be easiest down outside of the chart (i.e. by putting the chart on a canvas, with the vertical axis titles pinned to the left or right. On Wed, Feb 11, 2009 at 9:22 AM, Chad Callahan chad.calla...@t8design.com mailto:chad.calla...@t8design.com wrote: Hello, I am using a LineChart that has labels for the horizontal axis, but no labels for the vertical axis. I would like the labels to be displayed over top of the chart, rather than below or above of the chart. Does anyone have any good ideas on how to accomplish this? The point of this is to hide the extra space that is put around the chart to renderer the axis labels. I want my chart to take up 100% of the space it is allotted and place the axis labels on top of the chart. Thank you, Chad
RE: [flexcoders] Chart Axis Location
And this is what I have so far http://screencast.com/t/UlS2yx1y From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Chad Callahan Sent: Wednesday, February 11, 2009 1:51 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Chart Axis Location I'm not using titles for the chart, so those don't matter. Let's say that I have the LineChart in a Canvas and i want the chart to fill 100% of that canvas so that I don't see anything on any sides of the chart (no buffer for axis labels and such). So yes, I want the tick marks and labels to be over top of the chart (overlay). Ultimately, I'm trying to build this: http://screencast.com/t/3vz1MULH http://screencast.com/t/3vz1MULH Thanks! From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Richard Rodseth Sent: Wednesday, February 11, 2009 12:00 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Chart Axis Location Do you mean that you want the title for the left vertical axis, for example, to be above the axis rather than sideways alongside it? Or do you mean that you want the horizontal axis, along with its tick marks and tick mark labels to be above the chart? The latter is easy, the former might be easiest down outside of the chart (i.e. by putting the chart on a canvas, with the vertical axis titles pinned to the left or right. On Wed, Feb 11, 2009 at 9:22 AM, Chad Callahan chad.calla...@t8design.com mailto:chad.calla...@t8design.com wrote: Hello, I am using a LineChart that has labels for the horizontal axis, but no labels for the vertical axis. I would like the labels to be displayed over top of the chart, rather than below or above of the chart. Does anyone have any good ideas on how to accomplish this? The point of this is to hide the extra space that is put around the chart to renderer the axis labels. I want my chart to take up 100% of the space it is allotted and place the axis labels on top of the chart. Thank you, Chad
[flexcoders] Re: portlets in Flex
Sure... It's easy enough to get the sandboxing from a flex/html hybrid app, but since these are flex modules in a flex application, I was hoping to just be able to safely loading them in without having to resort to a partially HTML app. ... Gregg Caines gr...@caines.ca
RE: [flexcoders] Re: portlets in Flex
Take a look at the untrusted applications part of the marshall plan, that might help somewhat. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of greggcaines Sent: 11 February 2009 20:11 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: portlets in Flex Sure... It's easy enough to get the sandboxing from a flex/html hybrid app, but since these are flex modules in a flex application, I was hoping to just be able to safely loading them in without having to resort to a partially HTML app. ... Gregg Caines gr...@caines.ca mailto:gregg%40caines.ca
[flexcoders] SWFLoader and LocalConnection
Hi there, I'm struggeling with a strange issue: I need to load multiple SWFs and call a function inside them. All SWFs contain a localconnection. I know a local connection ID can only exist once. Is it possible to load and unload these SWFs with the same connection ID? The first call of swfLoader.source = clip1.swf; works. But if I try to load the next one with swfLoader.source = clip2.swf; doesnt work. I've already tried to close the connection and recreate the localconnection object. But nothing works for me. Any ideas? Many thanks. Best regards, Werner
[flexcoders] Image rotation and FileReference.save problem
After rotating an image I am unable to correctly save it locally with the new dimensions. The width and height of the image remain as the same original non-rotated image, although visually it updates fine. I'm sure I'm missing something very simple here. Any help greatly appreciated. Targets player 10.0.12 / 3.2 SDK. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.graphics.ImageSnapshot; import mx.graphics.codec.JPEGEncoder; import flash.geom.Matrix; import flash.display.*; private function rotate():void { var matrix : Matrix = img.transform.matrix; var offSetWidth : Number = img.width / 2; var offSetHeight : Number = img.height / 2; matrix.translate(-offSetWidth, -offSetHeight); matrix.rotate(90*(Math.PI/180)); matrix.translate(offSetWidth, offSetHeight); img.transform.matrix = matrix; } private function addDs():void { var ds : DropShadowFilter = new DropShadowFilter(); img.filters = [ ds ]; } private function saveByteArray():void { var jpg:JPEGEncoder = new JPEGEncoder(); var fileReference : FileReference = new FileReference(); var bitmapData:BitmapData = new BitmapData(img.width, img.height); bitmapData.draw(img, img.transform.matrix); var bitmap : Bitmap = new Bitmap(bitmapData); var byteArray:ByteArray = jpg.encode(bitmapData); fileReference.save(byteArray, 'google.jpg'); } private function saveImageSnapshot():void { var fileReference : FileReference = new FileReference(); var jpg : JPEGEncoder = new JPEGEncoder(); var imageSnap:ImageSnapshot = ImageSnapshot.captureImage(imgHolder, 0, jpg); fileReference.save(imageSnap.data, google.jpg); } ]] /mx:Script mx:HBox mx:Button id=btnRotate label=Rotate click=rotate()/ mx:Button id=btnAddDs label=Drop Shadow click=addDs()/ mx:Button id=btnSaveByteArray label=Save as ByteArray click=saveByteArray()/ mx:Button id=btnSaveImageSnapshot label=Save as Snapshot click=saveImageSnapshot()/ /mx:HBox mx:Box id=imgHolder backgroundColor=red horizontalCenter=0 verticalCenter=0 mx:Image id=img source=http://www.google.com/intl/en_ALL/images/logo.gif/ /mx:Box /mx:Application
Re: [flexcoders] Chart Axis Location
I don't have an answer for you off the top of my head, but look into - axis renderers - chart annotations - the customization examples on Ely Greenfield's site - the Degrafa data visualization examples Perhaps someone else will have a good idea. On Wed, Feb 11, 2009 at 11:51 AM, Chad Callahan chad.calla...@t8design.comwrote: I'm not using titles for the chart, so those don't matter. Let's say that I have the LineChart in a Canvas and i want the chart to fill 100% of that canvas so that I don't see anything on any sides of the chart (no buffer for axis labels and such). So yes, I want the tick marks and labels to be over top of the chart (overlay). Ultimately, I'm trying to build this: http://screencast.com/t/3vz1MULH Thanks! -- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Richard Rodseth *Sent:* Wednesday, February 11, 2009 12:00 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Chart Axis Location Do you mean that you want the title for the left vertical axis, for example, to be above the axis rather than sideways alongside it? Or do you mean that you want the horizontal axis, along with its tick marks and tick mark labels to be above the chart? The latter is easy, the former might be easiest down outside of the chart (i.e. by putting the chart on a canvas, with the vertical axis titles pinned to the left or right. On Wed, Feb 11, 2009 at 9:22 AM, Chad Callahan chad.calla...@t8design.com wrote: Hello, I am using a LineChart that has labels for the horizontal axis, but no labels for the vertical axis. I would like the labels to be displayed over top of the chart, rather than below or above of the chart. Does anyone have any good ideas on how to accomplish this? The point of this is to hide the extra space that is put around the chart to renderer the axis labels. I want my chart to take up 100% of the space it is allotted and place the axis labels on top of the chart. Thank you, Chad
Re: [flexcoders] Chart Axis Location
Look at the source for this... http://www.meutzner.com/blog/attachments/360/Flex_Finance_Step5.html The horizontal axis renderer which places the dates along the bottom accomplishes what you're looking for. The file is called skins.InnerAxisRenderer. Brendan On Wed, Feb 11, 2009 at 2:56 PM, Richard Rodseth rrods...@gmail.com wrote: I don't have an answer for you off the top of my head, but look into - axis renderers - chart annotations - the customization examples on Ely Greenfield's site - the Degrafa data visualization examples Perhaps someone else will have a good idea. On Wed, Feb 11, 2009 at 11:51 AM, Chad Callahan chad.calla...@t8design.com wrote: I'm not using titles for the chart, so those don't matter. Let's say that I have the LineChart in a Canvas and i want the chart to fill 100% of that canvas so that I don't see anything on any sides of the chart (no buffer for axis labels and such). So yes, I want the tick marks and labels to be over top of the chart (overlay). Ultimately, I'm trying to build this: http://screencast.com/t/3vz1MULH Thanks! -- *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Richard Rodseth *Sent:* Wednesday, February 11, 2009 12:00 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Chart Axis Location Do you mean that you want the title for the left vertical axis, for example, to be above the axis rather than sideways alongside it? Or do you mean that you want the horizontal axis, along with its tick marks and tick mark labels to be above the chart? The latter is easy, the former might be easiest down outside of the chart (i.e. by putting the chart on a canvas, with the vertical axis titles pinned to the left or right. On Wed, Feb 11, 2009 at 9:22 AM, Chad Callahan chad.calla...@t8design.com wrote: Hello, I am using a LineChart that has labels for the horizontal axis, but no labels for the vertical axis. I would like the labels to be displayed over top of the chart, rather than below or above of the chart. Does anyone have any good ideas on how to accomplish this? The point of this is to hide the extra space that is put around the chart to renderer the axis labels. I want my chart to take up 100% of the space it is allotted and place the axis labels on top of the chart. Thank you, Chad -- Brendan Meutzner http://www.meutzner.com/blog/
[flexcoders] Re: Chart Axis Location
If I understand correctly, you want to: 1) turn off all ticks (http://livedocs.adobe.com/flex/3/html/help.html?content=charts_formatting_04.html) 2) move the horizontal AxisRenderer. Ex: myHorizAxisRenderer.move(myHorizAxisRenderer.x, yourNewYPos); Keep in mind that you can set the placement for the horizontal AxisRenderer to initially be at the top of your chart. Then just move it down as needed to overlap the top of the chart. -Eddie www.edberman.com --- In flexcoders@yahoogroups.com, Chad Callahan chad.calla...@... wrote: And this is what I have so far http://screencast.com/t/UlS2yx1y From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Chad Callahan Sent: Wednesday, February 11, 2009 1:51 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Chart Axis Location I'm not using titles for the chart, so those don't matter. Let's say that I have the LineChart in a Canvas and i want the chart to fill 100% of that canvas so that I don't see anything on any sides of the chart (no buffer for axis labels and such). So yes, I want the tick marks and labels to be over top of the chart (overlay). Ultimately, I'm trying to build this: http://screencast.com/t/3vz1MULH http://screencast.com/t/3vz1MULH Thanks! From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Richard Rodseth Sent: Wednesday, February 11, 2009 12:00 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Chart Axis Location Do you mean that you want the title for the left vertical axis, for example, to be above the axis rather than sideways alongside it? Or do you mean that you want the horizontal axis, along with its tick marks and tick mark labels to be above the chart? The latter is easy, the former might be easiest down outside of the chart (i.e. by putting the chart on a canvas, with the vertical axis titles pinned to the left or right. On Wed, Feb 11, 2009 at 9:22 AM, Chad Callahan chad.calla...@... mailto:chad.calla...@... wrote: Hello, I am using a LineChart that has labels for the horizontal axis, but no labels for the vertical axis. I would like the labels to be displayed over top of the chart, rather than below or above of the chart. Does anyone have any good ideas on how to accomplish this? The point of this is to hide the extra space that is put around the chart to renderer the axis labels. I want my chart to take up 100% of the space it is allotted and place the axis labels on top of the chart. Thank you, Chad
[flexcoders] Re: preventing flex List rollover indicator to draw on selected item.
Here's an easy way: Extend List override protected function mouseOverHandler(event:MouseEvent):void { var item:IListItemRenderer = mouseEventToItemRenderer(event); super.mouseOverHandler(event); if (highlightIndicator item isItemSelected(item.data)) { clearHighlightIndicator(highlightIndicator, item); } } -TH --- In flexcoders@yahoogroups.com, Thibaud Van Vreckem thibaudm...@... wrote: This thing has always bugged me. the rollover effect should never appear on a selected item in a list. unfortunately that's not how the List works. The list is using an itemrenderer implementing IDropInListItemRenderer. and I already do various visual changes using the: ListBase(owner).isItemHighlighted(data) and ListBase(owner).isItemSelected(data) in the itemrenderer. I imagine I could: 1. get rid off the rollover effect entirely by setting the list useRollOver style property to false and handling the rollover through the itemrenderer. 2. make an new List class and override it's drawHighlightIndicator() method. any idea how to prevent drawHighlightIndicator() to operate on the selectedItem ? any other solution ? thanks
[flexcoders] Re: Discussing Shared Codebase between Flex and AIR project
Hi Gregor, Thank you for your suggestion. It took me a while to digest your suggestion but I think I got a working example. If I had followed your suggestion correctly, the front end is becoming fat. What I meant by that is the front end is where all interface implementations resided and have those implementations assigned to the appropriate classes, which the modules are going to be using. I hope that I interpret your suggestion correctly. --- In flexcoders@yahoogroups.com, Gregor Kiddie gkid...@... wrote: We've used the strategy pattern for this. We do something similar to how ToolTipManager uses toolTipClass. When the app starts up (or module is loaded), the correct classes are injected into the files which have AIR / player differences. We also have two front end swfs which are little more than preloaders primed with appropriate classes for the rest of the application. As an example, we've used this mechanism to cache the same data in the SQLite DB in AIR, or a Shared Object in the Flash player via the same call (i.e. the rest of the app was agnostic to whether it was in AIR or FP) Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@... From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of handitan Sent: 11 February 2009 16:31 To: flexcoders@yahoogroups.com Subject: [flexcoders] Discussing Shared Codebase between Flex and AIR project Hi gang, Yes, it's another one :) But I am going to approach it a different way. My question is based on David Coletta's MAX presentation. If you haven't seen his presentation, please watch here: http://tv.adobe.com/#vi+f15384v1022 http://tv.adobe.com/#vi+f15384v1022 The slides are available here: http://www.slideshare.net/dcoletta/DavidColettaArchitecting-a- Shared- http://www.slideshare.net/dcoletta/DavidColettaArchitecting-a- Shared- Codebase-for-Browser-and-DesktopFinal To everyone who has seen his presentations, could you help me out in understanding how his Browser SWFs included in AIR file works to solve the Shared code packaging ? This is what I understand on what he did with that approach: 1. Only have one AIR project that contains all AIR implementation. 2. Each of your module's common functionality, extract them out to an interface and then have Flex-specific and AIR-specific class implements the interface. So I am kind of get the idea but I have a very hard time understanding on how he was able to get each module to have the AIR project to serve the module's AIR-implementation needs? Thanks!
RE: [flexcoders] Re: Discussing Shared Codebase between Flex and AIR project
Yes, you can keep the AIR and FP specific code in separate modules and load them in to inject. That keeps your initial swf size small. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of handitan Sent: 11 February 2009 21:32 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Discussing Shared Codebase between Flex and AIR project Hi Gregor, Thank you for your suggestion. It took me a while to digest your suggestion but I think I got a working example. If I had followed your suggestion correctly, the front end is becoming fat. What I meant by that is the front end is where all interface implementations resided and have those implementations assigned to the appropriate classes, which the modules are going to be using. I hope that I interpret your suggestion correctly. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Gregor Kiddie gkid...@... wrote: We've used the strategy pattern for this. We do something similar to how ToolTipManager uses toolTipClass. When the app starts up (or module is loaded), the correct classes are injected into the files which have AIR / player differences. We also have two front end swfs which are little more than preloaders primed with appropriate classes for the rest of the application. As an example, we've used this mechanism to cache the same data in the SQLite DB in AIR, or a Shared Object in the Flash player via the same call (i.e. the rest of the app was agnostic to whether it was in AIR or FP) Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@... From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of handitan Sent: 11 February 2009 16:31 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Discussing Shared Codebase between Flex and AIR project Hi gang, Yes, it's another one :) But I am going to approach it a different way. My question is based on David Coletta's MAX presentation. If you haven't seen his presentation, please watch here: http://tv.adobe.com/#vi+f15384v1022 http://tv.adobe.com/#vi+f15384v1022 http://tv.adobe.com/#vi+f15384v1022 http://tv.adobe.com/#vi+f15384v1022 The slides are available here: http://www.slideshare.net/dcoletta/DavidColettaArchitecting-a- http://www.slideshare.net/dcoletta/DavidColettaArchitecting-a- Shared- http://www.slideshare.net/dcoletta/DavidColettaArchitecting-a- http://www.slideshare.net/dcoletta/DavidColettaArchitecting-a- Shared- Codebase-for-Browser-and-DesktopFinal To everyone who has seen his presentations, could you help me out in understanding how his Browser SWFs included in AIR file works to solve the Shared code packaging ? This is what I understand on what he did with that approach: 1. Only have one AIR project that contains all AIR implementation. 2. Each of your module's common functionality, extract them out to an interface and then have Flex-specific and AIR-specific class implements the interface. So I am kind of get the idea but I have a very hard time understanding on how he was able to get each module to have the AIR project to serve the module's AIR-implementation needs? Thanks!
Re: [flexcoders] preventing flex List rollover indicator to draw on selected item.
I do not know if it helps you, but i usually just set the list's selectable to false and then handling roll over/out in the renderer On Wed, Feb 11, 2009 at 7:51 PM, Thibaud Van Vreckem thibaudm...@gmail.comwrote: This thing has always bugged me. the rollover effect should never appear on a selected item in a list. unfortunately that's not how the List works. The list is using an itemrenderer implementing IDropInListItemRenderer. and I already do various visual changes using the: ListBase(owner).isItemHighlighted(data) and ListBase(owner).isItemSelected(data) in the itemrenderer. I imagine I could: 1. get rid off the rollover effect entirely by setting the list useRollOver style property to false and handling the rollover through the itemrenderer. 2. make an new List class and override it's drawHighlightIndicator() method. any idea how to prevent drawHighlightIndicator() to operate on the selectedItem ? any other solution ? thanks -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
RE: [flexcoders] Re: embedded font causes labels to appear with backgroundColor lighter than expected
I ran my test in IE6, no problems. Can you post your test case? Sometimes these are caused by the player's interaction with the hardware like a GPU or with features like font-smoothing. You can play around with those settings and see if they make a difference. There also is an mm.cfg file in docsettings that can tweak how the player uses some of these features. I think one of the flags is disableMultiCoreRendering. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of hr1ny Sent: Tuesday, February 10, 2009 3:02 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: embedded font causes labels to appear with backgroundColor lighter than expected Alex, I appreciate your taking the time to try my example. I tried it using Lucida Sans on my environment, and I do see the same phenomenon, of lighter stripes on the background of the FormItems. Here is the way it looks: http://chefaz.net/henry/TestEmbeddedFontLucidaSans.png I am using the latest Flex Builder (3.0.2), and viewing in IE6. It only happens with embedded fonts. --Henry --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: I don't have Lucida Bright, but I used Lucida Sans and don't see any problems. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of hr1ny Sent: Monday, February 09, 2009 5:09 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: embedded font causes labels to appear with backgroundColor lighter than expected Alex, Thanks for your reply. Following is a nice, minimal example that recreates this issue. It works with 2 different embedded fonts that I tried. advancedAntiAliasing did not make a difference. The labels have a striped appearance, which ca! n be distracting. --Henry mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:Style @font-face { src: url('../bin- debug/assets/fonts/LucidaBright/LucidaBrightRegular.ttf'); fontFamily: lucidaBright; } global { fontFamily: lucidaBright; fontSize: 12; border: 1px; borderStyle: solid; color: white; } /mx:Style mx:VBox backgroundColor=#4e4e4e backgroundAlpha=1 width=500 height=150 mx:Form mx:FormItem label=dummy checkbox mx:CheckBox id=dummyCheckbox label=hi there/ /mx:FormItem mx:FormItem label=item label text color=white mx:TextInput id=fiti text=! default text backgroundColor=gray/ ! /mx :FormItem /mx:Form /mx:VBox /mx:Application --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: Your version of Flex may not allow a list of fontFamilies. How much lighter is the background? Do you have filters applied, alpha? I've seen slight changes (0xfefefe becomes 0xfdfdfd), but not much more than that. Try turning off advancedAntiAliasing. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Be! half Of hr1ny Sent: Monday, February 09, 2009 12:04 PM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] embedded font causes labels to appear with backgroundColor lighter than expected In my Flex 3 app, when I use an embedded font, I notice that some of my labels appear against a backgroundColor that is lighter than the surrounding backgroundColor (sometimes, in repeatable conditions), even though this is nowhere specified explictly. If I use a system font like '_sans' this does not happen. Can anyone explain why this would be, or how I can fix this behavior? My css code: @font-face { src: url('/assets/fonts/MyriadWebPro/MyriadWebPro.ttf'); fontFamily: myriadWebPro; ! ; advanc edAntiAliasing: true; } global { fontFamily: myriadWebPro; fontSize: 12; border: 1px; borderStyle: solid; advancedAntiAliasing: true; color: white; } I also observe that if I say fontFamily: myriadWebPro, it loads the myriadWebPro font, but if I say fontFamily: myriadWebPro, '_sans', it will load a default serif font instead. That seems very strange. --Henry
RE: [flexcoders] SWFLoader and LocalConnection
Did the child SWF close the connection? If so, how did you wire that up to make sure it actually got a chance to do that? Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of ronaldk999 Sent: Wednesday, February 11, 2009 12:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] SWFLoader and LocalConnection Hi there, I'm struggeling with a strange issue: I need to load multiple SWFs and call a function inside them. All SWFs contain a localconnection. I know a local connection ID can only exist once. Is it possible to load and unload these SWFs with the same connection ID? The first call of swfLoader.source = clip1.swf; works. But if I try to load the next one with swfLoader.source = clip2.swf; doesnt work. I've already tried to close the connection and recreate the localconnection object. But nothing works for me. Any ideas? Many thanks. Best regards, Werner
RE: [flexcoders] Cursor cross
CursorManager Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of christophe_jacquelin Sent: Wednesday, February 11, 2009 5:27 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Cursor cross Hello, How to replace the arrow cursor by a cross cursor in a flex application ? Thank you, Christophe,
RE: [flexcoders] Re: preventing flex List rollover indicator to draw on selected item.
I'd just override drawHighlightIndicator... Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Hoff Sent: Wednesday, February 11, 2009 1:17 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: preventing flex List rollover indicator to draw on selected item. Here's an easy way: Extend List override protected function mouseOverHandler(event:MouseEvent):void { var item:IListItemRenderer = mouseEventToItemRenderer(event); super.mouseOverHandler(event); if (highlightIndicator item isItemSelected(item.data)) { clearHighlightIndicator(highlightIndicator, item); } } -TH --- In flexcoders@yahoogroups.com, Thibaud Van Vreckem thibaudm...@... wrote: This thing has always bugged me. the rollover effect should never appear on a selected item in a list. unfortunately that's not how the List works. The list is using an itemrenderer implementing IDropInListItemRenderer. and I already do various visual changes using the: ListBase(owner).isItemHighlighted(data) and ListBase(owner).isItemSelected(data) in the itemrenderer. I imagine I could: 1. get rid off the rollover effect entirely by setting the list useRollOver style property to false and handling the rollover through the itemrenderer. 2. make an new List class and override it's drawHighlightIndicator() method. any idea how to prevent drawHighlightIndicator() to operate on the selectedItem ? any other solution ? thanks
[flexcoders] Re: preventing flex List rollover indicator to draw on selected item.
Yeah, that makes sense; since it also considers highlighting with the keyboard. -TH --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: I'd just override drawHighlightIndicator... Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Hoff Sent: Wednesday, February 11, 2009 1:17 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: preventing flex List rollover indicator to draw on selected item. Here's an easy way: Extend List override protected function mouseOverHandler(event:MouseEvent):void { var item:IListItemRenderer = mouseEventToItemRenderer(event); super.mouseOverHandler(event); if (highlightIndicator item isItemSelected(item.data)) { clearHighlightIndicator(highlightIndicator, item); } } -TH --- In flexcoders@yahoogroups.com, Thibaud Van Vreckem thibaudmail@ wrote: This thing has always bugged me. the rollover effect should never appear on a selected item in a list. unfortunately that's not how the List works. The list is using an itemrenderer implementing IDropInListItemRenderer. and I already do various visual changes using the: ListBase(owner).isItemHighlighted(data) and ListBase(owner).isItemSelected(data) in the itemrenderer. I imagine I could: 1. get rid off the rollover effect entirely by setting the list useRollOver style property to false and handling the rollover through the itemrenderer. 2. make an new List class and override it's drawHighlightIndicator() method. any idea how to prevent drawHighlightIndicator() to operate on the selectedItem ? any other solution ? thanks
[flexcoders] Re: preventing flex List rollover indicator to draw on selected item.
So, with Alex's suggestion, this is a lot cleaner: override protected function drawHighlightIndicator(indicator:Sprite, x:Number, y:Number, width:Number, height:Number, color:uint, itemRenderer:IListItemRenderer):void { if (isItemSelected(itemRenderer.data)) { return; } super.drawHighlightIndicator(indicator, x, y, unscaledWidth - viewMetrics.left - viewMetrics.right, height, color, itemRenderer); } -TH --- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote: Yeah, that makes sense; since it also considers highlighting with the keyboard. -TH --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: I'd just override drawHighlightIndicator... Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Hoff Sent: Wednesday, February 11, 2009 1:17 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: preventing flex List rollover indicator to draw on selected item. Here's an easy way: Extend List override protected function mouseOverHandler(event:MouseEvent):void { var item:IListItemRenderer = mouseEventToItemRenderer(event); super.mouseOverHandler(event); if (highlightIndicator item isItemSelected(item.data)) { clearHighlightIndicator(highlightIndicator, item); } } -TH --- In flexcoders@yahoogroups.com, Thibaud Van Vreckem thibaudmail@ wrote: This thing has always bugged me. the rollover effect should never appear on a selected item in a list. unfortunately that's not how the List works. The list is using an itemrenderer implementing IDropInListItemRenderer. and I already do various visual changes using the: ListBase(owner).isItemHighlighted(data) and ListBase(owner).isItemSelected(data) in the itemrenderer. I imagine I could: 1. get rid off the rollover effect entirely by setting the list useRollOver style property to false and handling the rollover through the itemrenderer. 2. make an new List class and override it's drawHighlightIndicator() method. any idea how to prevent drawHighlightIndicator() to operate on the selectedItem ? any other solution ? thanks
[flexcoders] Re: preventing flex List rollover indicator to draw on selected item.
Or, even better: override protected function drawHighlightIndicator(indicator:Sprite, x:Number, y:Number, width:Number, height:Number, color:uint, itemRenderer:IListItemRenderer):void { if ( !isItemSelected(itemRenderer.data) ) { super.drawHighlightIndicator(indicator, x, y, unscaledWidth - viewMetrics.left - viewMetrics.right, height, color, itemRenderer); } } -TH --- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote: So, with Alex's suggestion, this is a lot cleaner: override protected function drawHighlightIndicator(indicator:Sprite, x:Number, y:Number, width:Number, height:Number, color:uint, itemRenderer:IListItemRenderer):void { if (isItemSelected(itemRenderer.data)) { return; } super.drawHighlightIndicator(indicator, x, y, unscaledWidth - viewMetrics.left - viewMetrics.right, height, color, itemRenderer); } -TH --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Yeah, that makes sense; since it also considers highlighting with the keyboard. -TH --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: I'd just override drawHighlightIndicator... Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Hoff Sent: Wednesday, February 11, 2009 1:17 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: preventing flex List rollover indicator to draw on selected item. Here's an easy way: Extend List override protected function mouseOverHandler(event:MouseEvent):void { var item:IListItemRenderer = mouseEventToItemRenderer(event); super.mouseOverHandler(event); if (highlightIndicator item isItemSelected(item.data)) { clearHighlightIndicator(highlightIndicator, item); } } -TH --- In flexcoders@yahoogroups.com, Thibaud Van Vreckem thibaudmail@ wrote: This thing has always bugged me. the rollover effect should never appear on a selected item in a list. unfortunately that's not how the List works. The list is using an itemrenderer implementing IDropInListItemRenderer. and I already do various visual changes using the: ListBase(owner).isItemHighlighted(data) and ListBase(owner).isItemSelected(data) in the itemrenderer. I imagine I could: 1. get rid off the rollover effect entirely by setting the list useRollOver style property to false and handling the rollover through the itemrenderer. 2. make an new List class and override it's drawHighlightIndicator() method. any idea how to prevent drawHighlightIndicator() to operate on the selectedItem ? any other solution ? thanks
Re: [flexcoders] Re: preventing flex List rollover indicator to draw on selected item.
Thanks for the answer, that was great :) Tim is code looks exactly like what I actually ended up doing: import mx.controls.List; import flash.display.Sprite; import mx.controls.listClasses.IListItemRenderer; override protected function drawHighlightIndicator(indicator:Sprite, x:Number, y:Number,width:Number, height:Number, color:uint,itemRenderer:IListItemRenderer):void { if (!isItemSelected(itemRenderer.data)) super.drawHighlightIndicator(indicator, x, y,width, height, color, itemRenderer); } any reason why you used (unscaledWidth - viewMetrics.left - viewMetrics.right) for width ? On Thu, Feb 12, 2009 at 12:44 AM, Tim Hoff timh...@aol.com wrote: Or, even better: * override * *protected* *function* drawHighlightIndicator(indicator:Sprite, x:Number, y:Number, width:Number, height:Number, color:uint, itemRenderer:IListItemRenderer):*void *{ * if* ( !isItemSelected(itemRenderer.data) ) { * super*.drawHighlightIndicator(indicator, x, y, unscaledWidth - viewMetrics.left - viewMetrics.right, height, color, itemRenderer); } } -TH --- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote: So, with Alex's suggestion, this is a lot cleaner: override protected function drawHighlightIndicator(indicator:Sprite, x:Number, y:Number, width:Number, height:Number, color:uint, itemRenderer:IListItemRenderer):void { if (isItemSelected(itemRenderer.data)) { return; } super.drawHighlightIndicator(indicator, x, y, unscaledWidth - viewMetrics.left - viewMetrics.right, height, color, itemRenderer); } -TH --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Yeah, that makes sense; since it also considers highlighting with the keyboard. -TH --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: I'd just override drawHighlightIndicator... Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Hoff Sent: Wednesday, February 11, 2009 1:17 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: preventing flex List rollover indicator to draw on selected item. Here's an easy way: Extend List override protected function mouseOverHandler(event:MouseEvent):void { var item:IListItemRenderer = mouseEventToItemRenderer(event); super.mouseOverHandler(event); if (highlightIndicator item isItemSelected(item.data)) { clearHighlightIndicator(highlightIndicator, item); } } -TH --- In flexcoders@yahoogroups.com, Thibaud Van Vreckem thibaudmail@ wrote: This thing has always bugged me. the rollover effect should never appear on a selected item in a list. unfortunately that's not how the List works. The list is using an itemrenderer implementing IDropInListItemRenderer. and I already do various visual changes using the: ListBase(owner).isItemHighlighted(data) and ListBase(owner).isItemSelected(data) in the itemrenderer. I imagine I could: 1. get rid off the rollover effect entirely by setting the list useRollOver style property to false and handling the rollover through the itemrenderer. 2. make an new List class and override it's drawHighlightIndicator() method. any idea how to prevent drawHighlightIndicator() to operate on the selectedItem ? any other solution ? thanks
[flexcoders] Re: preventing flex List rollover indicator to draw on selected item.
Was extending DataGrid instead of List and that was the code in DataGridBase. I noticed that too after I posted. Glad that you figured out a solution. -TH --- In flexcoders@yahoogroups.com, Thibaud Van Vreckem thibaudm...@... wrote: Thanks for the answer, that was great :) Tim is code looks exactly like what I actually ended up doing: import mx.controls.List; import flash.display.Sprite; import mx.controls.listClasses.IListItemRenderer; override protected function drawHighlightIndicator(indicator:Sprite, x:Number, y:Number,width:Number, height:Number, color:uint,itemRenderer:IListItemRenderer):void { if (!isItemSelected(itemRenderer.data)) super.drawHighlightIndicator(indicator, x, y,width, height, color, itemRenderer); } any reason why you used (unscaledWidth - viewMetrics.left - viewMetrics.right) for width ? On Thu, Feb 12, 2009 at 12:44 AM, Tim Hoff timh...@... wrote: Or, even better: * override * *protected* *function* drawHighlightIndicator(indicator:Sprite, x:Number, y:Number, width:Number, height:Number, color:uint, itemRenderer:IListItemRenderer):*void *{ * if* ( !isItemSelected(itemRenderer.data) ) { * super*.drawHighlightIndicator(indicator, x, y, unscaledWidth - viewMetrics.left - viewMetrics.right, height, color, itemRenderer); } } -TH --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: So, with Alex's suggestion, this is a lot cleaner: override protected function drawHighlightIndicator(indicator:Sprite, x:Number, y:Number, width:Number, height:Number, color:uint, itemRenderer:IListItemRenderer):void { if (isItemSelected(itemRenderer.data)) { return; } super.drawHighlightIndicator(indicator, x, y, unscaledWidth - viewMetrics.left - viewMetrics.right, height, color, itemRenderer); } -TH --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Yeah, that makes sense; since it also considers highlighting with the keyboard. -TH --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: I'd just override drawHighlightIndicator... Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Hoff Sent: Wednesday, February 11, 2009 1:17 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: preventing flex List rollover indicator to draw on selected item. Here's an easy way: Extend List override protected function mouseOverHandler(event:MouseEvent):void { var item:IListItemRenderer = mouseEventToItemRenderer(event); super.mouseOverHandler(event); if (highlightIndicator item isItemSelected(item.data)) { clearHighlightIndicator(highlightIndicator, item); } } -TH --- In flexcoders@yahoogroups.com, Thibaud Van Vreckem thibaudmail@ wrote: This thing has always bugged me. the rollover effect should never appear on a selected item in a list. unfortunately that's not how the List works. The list is using an itemrenderer implementing IDropInListItemRenderer. and I already do various visual changes using the: ListBase(owner).isItemHighlighted(data) and ListBase(owner).isItemSelected(data) in the itemrenderer. I imagine I could: 1. get rid off the rollover effect entirely by setting the list useRollOver style property to false and handling the rollover through the itemrenderer. 2. make an new List class and override it's drawHighlightIndicator() method. any idea how to prevent drawHighlightIndicator() to operate on the selectedItem ? any other solution ? thanks
Re: [flexcoders] Thanks again to Adobe
Response from Deepa and Glenn: a.) We didn't know if a component-level Boolean flag to control editability was necessary (it was the source for a notorious set of hairy issues in Halo List and we were wary of tackling that in Spark) b.) It was relatively straightforward to extend the component to include the concept of an editable state and author an edit-aware skin. So we're not necessarily providing that subclass of the component out of the box, but it should be easy for you :-) Matt On 2/11/09 9:05 AM, Matt Chotin mcho...@adobe.com wrote: I'm checking with some folks, but we're not changing the way Halo works so I think you'd consider to be a Spark adjustment. On 2/11/09 12:19 AM, Gregor Kiddie gkid...@inpses.co.uk wrote: Brief and succinct, like it! Is this being handled under the more general look at Lists and the DG, or under Spark? Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Matt Chotin Sent: 11 February 2009 00:33 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Thanks again to Adobe Ah, sorry, we must have missed that one. Your quesiton was: Just now, the majority of the functionality ItemEditor provides can be repeated by a ItemRenderer. With Gumbo giving better access to states, is it time to admit that Editing is just a state of the renderer? I believe the answer is yes :-)
[flexcoders] as3 .swf loaded through as2 swf - will it work?
Well... was doing a gig working on an FMS app -- and find out now that it needs to load in through a parent .swf --- but the parent .swf is AS2 -- so now sure now if this is going to work...?
[flexcoders] Alchemy
I've been through the Alchemy documentation (what there is) and am wondering if anyone has made any progress with it? Mostly interested in guidelines regarding what type of project might be a good target and what might not be. For example, would a sound object that processes PCM sound data altering spectrum be a target for Alchemy? Is there a better list? KFB
[flexcoders] Re: I'm just not seeing it guys/gals... (events/scopes)
--- In flexcoders@yahoogroups.com, David Kramer kramer.da...@... wrote: Thanks for the reply. To be very specific... I'm trying for any way to achieve this: parentDocument.currentAC (in app) = presentationsSlidesAC (in component), so the main application.mxml has the currentAC updated. (Loose, tight, whatever.) Here's the DropLabel.mxml component code: ?xml version=1.0 encoding=utf-8? mx:Label xmlns:mx=http://www.adobe.com/2006/mxml; text={data.pTitle} dragEnter=draggedInto(event) dragDrop=testDrop(event) click=clickHandler(event) width=220 textAlign=left color=#ff fontSize=12 mx:Metadata [Event('presentationSelected')] /mx:Metadata mx:Script ![CDATA[ import mx.collections.ArrayCollection; import mx.controls.Alert; import mx.core.DragSource; import mx.managers.DragManager; import mx.events.DragEvent; //import flash.data.SQLResult; //import flash.filesystem.File; //import flash.data.SQLStatement; //import flash.data.SQLConnection; //import flash.events.SQLEvent; //import flash.events.SQLErrorEvent; private function draggedInto(event:DragEvent):void { DragManager.acceptDragDrop(this); } private function testDrop(event:DragEvent):void { if (event.dragSource.hasFormat(items)) { var itemsArray:Array = event.dragSource.dataForFormat(items) as Array; // breakpoint, examine itemsArray[0] //Do sql stuff here, which works fine Alert.show(itemsArray[0].sTitle + '\nadded to\n' + this.text); } } [Bindable] private var presentationsSlidesAC:ArrayCollection; //public var selectedPresentation:Object; private function clickHandler(event:MouseEvent):void { //Do sql stuff here, works fine (requery via SELECT), the result is in an arrayCollection called presentationsSlidesAC //I'm trying to simply get this assignment. //parentDocument.currentAC = presentationsSlidesAC; } ]] /mx:Script /mx:Label I think your problem is actually more like Q 15. I'd suggest that when your service result returns that you dispatch a gotData event or something and then expose a public property that the parent application reads when the data is returned. Or you might want to consider having the application do the retrieval instead of the renderer. I'm not sure how appropriate it is to have itemRenderers acting as controllers.
[flexcoders]Architect an image gallery transition effect - design suggestions
I'm trying to create an image gallery component and I need some help. I have an Image component working. It has next and previous buttons that change the source of the Image component when they are clicked. This works fine so far. The problem is it looks like crap when it changes. How would you architect a source change effect so there would be a nice transition between the current image and the next or previous image? For example, I want it to handle a crossfade where one image fades out and the next fades in or a move in effect where one image moves off the screen (and fades out) and another image fades in and moves in to the current image location. I know there is a showEffect and hideEffect but I need something like a sourceChangeNextEffect and a sourceChangePreviousEffect.
Re: [flexcoders]Architect an image gallery transition effect - design suggestions
Why not have two Image components, one on top of the other? As the user brings up on image you can fade one out and fade the other in. --- In flexcoders@yahoogroups.com, dorkie dork from dorktown dorkiedorkfromdorkt...@... wrote: I'm trying to create an image gallery component and I need some help. I have an Image component working. It has next and previous buttons that change the source of the Image component when they are clicked. This works fine so far. The problem is it looks like crap when it changes. How would you architect a source change effect so there would be a nice transition between the current image and the next or previous image? For example, I want it to handle a crossfade where one image fades out and the next fades in or a move in effect where one image moves off the screen (and fades out) and another image fades in and moves in to the current image location. I know there is a showEffect and hideEffect but I need something like a sourceChangeNextEffect and a sourceChangePreviousEffect.
[flexcoders] Re: Flex Application Memory Footprint
Are you referring to the following bug? http://bugs.adobe.com/jira/browse/FLEXDMV-1968 I think this is fixed in the latest release 3.0.2 not sure. --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: If you have more header renderers than columns, I'd be checking them for leaks using the Profiler. See http://blogs.adobe.com/aharui/2008/09/using_the_flex_builder_3x_prof.html for tips on using the Profiler. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of djbrown_rotonews Sent: Friday, November 14, 2008 7:23 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex Application Memory Footprint I'm seeing the same behavior. DataGrid headerRenderer is a simple Label with a toolTip, and there's just 15 columns in the grid itself. Before the data is even populated, I have 75 instances of the header renderers (5 for each column), and they never get cleaned up. Around 35-40% of my application memory is then tied up in non- recycled headerRenderers. any ideas? --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Dimitrios Gianninas dimitrios.gianninas@ wrote: hi, when you go to a tab for the first time, it gets created along with all of its components and they will stay in memory so long as the app exists. If you are using creationPolicy=all on your TabNavigator, that is really bad, dont. That means all tabs are being created and maybe the user will never go to most of them. Also if you are caching data that you no longer need, set it to null to let the GC clean it up. hope that helps. Dimitrios Gianninas RIA Developer Team Lead Optimal Payments Inc. From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of Nirav Gosalia Sent: Thursday, November 06, 2008 10:21 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Cc: mayank.vora@ Subject: [flexcoders] Flex Application Memory Footprint Hi, We are developing a CRM application using Flex. The SWF size is 1.5 MB. The application has around 15 tabs. When all the tabs are visited once the application shows a memory foot print of 400 MB in the windows task manager. I used flex profiler but there is no memory leak. I was wondering that how flex handles garbage collection because once the tabs are created they never seem to be releasing any memory. Also flex profiler shows that my Datagrid header renderer occupies 40% of the total memory consumed. Can someone suggest ways of reducing the memory foot print and show an ideal way of writing a header renderer (we use it for full database sort). Regards, Nirav Gosalia -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
RE: [flexcoders]Architect an image gallery transition effect - design suggestions
Seems like you're trying to do too much with triggers. Why not just handle whatever arbitrary event you're after (like clicking on the next/prev buttons) and then manually launch your custom effect with the appropriate target(s)? If necessary, the even handler could set up information on the effect (like the x/y positions for a move or whatever) prior to launching. Chet. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of dorkie dork from dorktown Sent: Wednesday, February 11, 2009 6:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders]Architect an image gallery transition effect - design suggestions I'm trying to create an image gallery component and I need some help. I have an Image component working. It has next and previous buttons that change the source of the Image component when they are clicked. This works fine so far. The problem is it looks like crap when it changes. How would you architect a source change effect so there would be a nice transition between the current image and the next or previous image? For example, I want it to handle a crossfade where one image fades out and the next fades in or a move in effect where one image moves off the screen (and fades out) and another image fades in and moves in to the current image location. I know there is a showEffect and hideEffect but I need something like a sourceChangeNextEffect and a sourceChangePreviousEffect.
[flexcoders] How to deploy blazeds to websphere?
Hi I download the war file and deploy it on websphere.I do not get any error message when I deploy the war file.but the sample apps do not work. Please give me a guide.Thanks Mark
Re: [flexcoders]Architect an image gallery transition effect - design suggestions
@Michael - I was thinking about that but I'm wondering how to structure it where I can handle any transition. @Chet - Let's say that I'm creating an Image Gallery component for Flash Catalyst (not that I am - eh hem cough cough) and I want to let the user create the transitions in and out effects in Flash Catalyst how do I need to structure that? On Wed, Feb 11, 2009 at 8:52 PM, Chet Haase cha...@adobe.com wrote: Seems like you're trying to do too much with triggers. Why not just handle whatever arbitrary event you're after (like clicking on the next/prev buttons) and then manually launch your custom effect with the appropriate target(s)? If necessary, the even handler could set up information on the effect (like the x/y positions for a move or whatever) prior to launching. Chet. *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *dorkie dork from dorktown *Sent:* Wednesday, February 11, 2009 6:58 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders]Architect an image gallery transition effect - design suggestions I'm trying to create an image gallery component and I need some help. I have an Image component working. It has next and previous buttons that change the source of the Image component when they are clicked. This works fine so far. The problem is it looks like crap when it changes. How would you architect a source change effect so there would be a nice transition between the current image and the next or previous image? For example, I want it to handle a crossfade where one image fades out and the next fades in or a move in effect where one image moves off the screen (and fades out) and another image fades in and moves in to the current image location. I know there is a showEffect and hideEffect but I need something like a sourceChangeNextEffect and a sourceChangePreviousEffect.
[flexcoders] How to display HTML content in flex app?
Please give me a idea.thanks Mark
[flexcoders] Re: How to set the endpoint address in Coldfusion side?
How do you know flex2gateway here.do I set it in somewhere? Thanks Mark
[flexcoders]How to get at the code of an event
If I have an custom event on my class called transitionIn like this: mx:MyComponent transitionIn=myTransition / mx:Move id=myTransition / And it points to an event called, myTransition, In MyComponent I have: /** * Transition in effect */ [Event(name=transitionIn, type=mx.core.events.Event)] Is there a way to get a reference to myTransition from within MyComponent? I want to keep the property, transitionIn an event.
Re: [flexcoders] How to display HTML content in flex app?
Don't mean to be rude, but this question has been done to death. Check the archives - http://www.mail-archive.com/search?q=htmll=flexcod...@yahoogroups.com 2009/2/12 markflex2007 markflex2...@yahoo.com: Please give me a idea.thanks Mark -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Video player using netstream class
i want a videoplayer using video and netstream class.can anyone provide useful link Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
RE: [flexcoders] as3 .swf loaded through as2 swf - will it work?
I'm pretty sure it isn't guaranteed to work. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of grimmwerks Sent: Wednesday, February 11, 2009 5:11 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] as3 .swf loaded through as2 swf - will it work? Well... was doing a gig working on an FMS app -- and find out now that it needs to load in through a parent .swf --- but the parent .swf is AS2 -- so now sure now if this is going to work...?
RE: [flexcoders] Thanks again to Adobe
Great, thanks for chasing that down Matt. Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Matt Chotin Sent: 12 February 2009 01:10 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Thanks again to Adobe Response from Deepa and Glenn: a.) We didn't know if a component-level Boolean flag to control editability was necessary (it was the source for a notorious set of hairy issues in Halo List and we were wary of tackling that in Spark) b.) It was relatively straightforward to extend the component to include the concept of an editable state and author an edit-aware skin. So we're not necessarily providing that subclass of the component out of the box, but it should be easy for you :-) Matt On 2/11/09 9:05 AM, Matt Chotin mcho...@adobe.com wrote: I'm checking with some folks, but we're not changing the way Halo works so I think you'd consider to be a Spark adjustment. On 2/11/09 12:19 AM, Gregor Kiddie gkid...@inpses.co.uk wrote: Brief and succinct, like it! Is this being handled under the more general look at Lists and the DG, or under Spark? Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Matt Chotin Sent: 11 February 2009 00:33 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Thanks again to Adobe Ah, sorry, we must have missed that one. Your quesiton was: Just now, the majority of the functionality ItemEditor provides can be repeated by a ItemRenderer. With Gumbo giving better access to states, is it time to admit that Editing is just a state of the renderer? I believe the answer is yes :-)