[flexcoders] mx:Module problem
Hi Folks, i am swaminathan, new enrty to flex2. i am using the menubar in my application, its is used to navigate many forms. am using the modules for each form. and i want to update the form entry to database... am using httpservice in module. the compilation error will occur. Parse error faultstring HttpService my goal is to click the menu items to show the various forms and to update to database using httpservice. how can i show the forms and database access, httpservice. please help me to find out. -- Thanks Regards Swaminathan. M
[flexcoders] Image Source is not assigned
Hi all, I am assigning an Image's source dynamically, but i don't see any image, whta wrong ? both my_image.source = http://myserver/images_dir +changing_variable+.jpg; and my_image.load(http://myserver/images_dir+changing_vaiable+.jpg;); are not working. I have checked that all paths are correct and images do exist. I even tried fixed path, it not working. The image is displayed only when i assign a fixed path thru flex builder properties ( n not programitacally ) and turn autoload ON. What to do ? -- Regards, Yogesh
[flexcoders] Remote Object Security
Hi All 1) Is there any security flaws in RemoteObject? I'm using Remoteobject to call my cfcs and need to secure my application without session. Is it a better method to check a server generated GUID in each call?. 2) Is there any hack attacks reported against Flex applications especially in remoting? Could you please advice? Thanks in advance. Regards, Jerry
[flexcoders] Re: Display Custom ItemRenderer based on previous value in List
Maybe I am just being dense, but I can't figure out how rowIndex helps me since it is relative to the display on the screen and what i really need is to know the index of the current item relative to it's position in the data provider. For example, if I have 3 rows displayed (but 20 items in the ArrayCollection) and I get a rowIndex of 2, all that tells me is that this item is in the third row on the screen. However, that doesn't mean that it is the third item in the dataProvider so this, _listData.owner.dataProvider.getItemAt(listData.rowIndex - 1) would not necessarily lead me to the previous item. Of course, I could scan through the dataProvider each time to try to get the index of the current data item, but that seems extremely inefficient. BTW, I also noticed that the docs refer to the first item in the list as index 1, but in my testing it seemed like this is a zero based index. Am I misreading the docs or are they wrong? rowIndex --- The index of the row of the DataGrid, List, or Tree control relative to the currently visible rows of the control, where the first row is at an index of 1. For example, you click on an item in the control and rowIndex is set to 3. You then scroll the control to change the row's position in the visible rows of the control, and then click on the same row as before. The rowIndex now contains a different value corresponding to the new index of the row in the currently visible rows. - Kevin --- In flexcoders@yahoogroups.com, Eric Cancil [EMAIL PROTECTED] wrote: listData.rowIndex = indispensable On Feb 6, 2008 7:16 PM, Alex Harui [EMAIL PROTECTED] wrote: If you assume Arrays, and you can efficiently find the index, then you can use getItemAt to get the previous item. listData.rowIndex might be useful -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Kevin *Sent:* Wednesday, February 06, 2008 1:24 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Display Custom ItemRenderer based on previous value in List I am trying to solve a certain design problem and am not sure how to approach this. I have a List control which displays data using a custom ItemRenderer. I currently listen for a dataChange event and set different properties of the ItemRenderer based on the data that is being set. That all works fine. (although it could use some refactoring for performance). However, I now want to set some additional properties based on how this data compares to the data of the previous item in the list's dataProvider. I am struggling to find the best way to do this. I can get access to the DataProvider though this.owner.dataProvider, but then I would need to set up a new cursor, find the current item in the list and then movePrevious() to compare to the previous item. Of course this would have to happen each time they renderer was created for a new item in the list. Can anyone think of another more efficient way to achieve this? Along the same lines, it would also be nice to create separators in List controls, but I haven't figured a way to do this either. For example, if you are displaying a list of 20 scheduled events, it would be nice to be able to create separator for each different day that the events happen on. I am guessing I may have to look into extending the List component for this. - Kevin
Re: [flexcoders] flashVars not passed in Flex 3 Builder's debugger?
On Wednesday 06 Feb 2008, Peter Connolly wrote: I have an app who's flashVars work on webpages but not in the debugger. Does your debugging session launch the wrapper, or the .swf directly ? -- Tom Chiverton Helping to efficiently scale clicks-and-mortar methodologies on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] ColumnChart - creating multiple Linear Axis via ActionScript - Help!
Just use the following, p is the panel and h1 is the horizontal Axis, I'm using the same axis created by your code snippet, also changed the width, height of the other chart to 50% to make some room for this chart. private function init():void { var c:ColumnChart = new ColumnChart(); c.dataProvider = expensesAC; c.width = linechart.width; c.height = linechart.height; c.horizontalAxis = h1; c.verticalAxis = v1; var s1:ColumnSeries = new ColumnSeries(); s1.yField = Profit; var s2:ColumnSeries = new ColumnSeries(); s2.yField = Expenses; s2.verticalAxis = v2; c.series = [s1,s2]; var ar1:AxisRenderer = new AxisRenderer(); ar1.axis = v1; var ar2:AxisRenderer = new AxisRenderer(); ar2.axis = s2.verticalAxis; var ar3:AxisRenderer = new AxisRenderer(); ar3.axis = h1; c.horizontalAxisRenderers = [ar3]; c.verticalAxisRenderers = [ar1,ar2]; p.addChild(c); } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of EddieBerman Sent: Thursday, February 07, 2008 6:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ColumnChart - creating multiple Linear Axis via ActionScript - Help! I'm having difficulty understanding how to create, via AS3, a ColumnChart that contains multiple verticalAxis. I'm familiar with the sample program MultipleAxis provided by Adobe, but can't correctly translate this to AS3 code. All is good until I need to create and set the multiple AxisRenderer objects. Can anyone more familiar give me a suggestion, or point to any reference material for doing this in AS3? Thanks. I've pasted the Adobe MXML sample code below that I'd like to replicate: mx:ColumnChart id=linechart height=100% width=100% paddingLeft=5 paddingRight=5 showDataTips=true dataProvider={expensesAC} mx:horizontalAxis mx:CategoryAxis categoryField=Month/ /mx:horizontalAxis mx:verticalAxis mx:LinearAxis id= v1/ /mx:verticalAxis mx:verticalAxisRenderers mx:AxisRenderer axis = {v1}/ mx:AxisRenderer axis = {v2}/ /mx:verticalAxisRenderers mx:series mx:ColumnSeries yField=Profit displayName=Profit itemRenderer=mx.charts.renderers.CircleItemRenderer /mx:ColumnSeries mx:ColumnSeries yField=Expenses displayName=Expenses itemRenderer=mx.charts.renderers.CircleItemRenderer mx:verticalAxis mx:LinearAxis id = v2 / /mx:verticalAxis /mx:ColumnSeries /mx:series /mx:ColumnChart
[flexcoders] Tween Class buggy?
Hi All I'm building a slide out menu. The requirement is when you mouse over a button it expands horizontally with a label in it. When you then click it it expands down with a form inside. If you don't click and mouse out it goes back to it's initial size. On the whole this works fine except sometimes when rolling over the button quickly it doesn't slide all the way back in. For all of the effects I am using a Tween class. I decided to use a tween as I need to move and resize the canvas that slides out. This is because it must expand out to the left so I need to change the x value to keep the right bound of the button in the same places. Sometimes it seems the tween will issue call 1 onTweenUpdate call and then stop with no onTweenEnd call. I use 1 variable to keep track of all these tweens so before starting a new tween I can stop the old ones. I only get problems when re-using this tween variable (never on the first tween) so I think it must be something to do with the way I stop the previous tween. I use this function when I am about to call a new tween: private function cleanTweens(callLaterFunction:Function):Boolean { if(tweenEffect) { tweenEffect.stop(); tweenEffect = null; callLater(callLaterFunction); return true; } return false; } and call it like this: private function onClick(e:Event = null):void { if(cleanTweens(onClick))return; tweenEffect = new Tween(_horizontalCanvas,_horizontalCanvas.width,expandWidth,effectDuration); tweenEffect.easingFunction = _easeOut } Is there anything else I should be doing before I start a new Tween? Any suggestions why this might be happening? Thanks Giles.
[flexcoders] components styleName
Hi, Is it possible using some technique to assign many styles to a component, for example: *mx:Button styleName=class1,class2/ *Thanks, Ronen.
[flexcoders] Re: RPC: AsyncToken.addResponder vs addEventListener?
they just reopened it, if i'm not mistaken --- In flexcoders@yahoogroups.com, Jerome Clarke [EMAIL PROTECTED] wrote: ok nevermind... I think I found it now... because I'm not installing BlazeDS... I just downloaded it and thought it all be there just like the Flex SDK itself blazeds / resources / flex_sdk and then I had to extract the flex_sdk_3.zip which I thought was the Flex SDK that recently got released and thats where it all is thanks... sorry for going off subject Bjorn and Josh and OH MY GOD didn't know they released all the code in the RPC in mx.rpc and mx.messaging... thanks Adobe :p On Feb 7, 2008 7:21 AM, Jerome Clarke [EMAIL PROTECTED] wrote: ok thanks but still can't see it... I've got Flex 3 Beta 3 SDK ( build 121207 ) and I found that but it's only locale files nothing more... and in BlazeDS directory... there is no folder called frameworks... and the latest one I can download from adobe labs is this file blazeds_b1_020108 is that correct??? thanks On Feb 7, 2008 7:00 AM, Bjorn Schultheiss [EMAIL PROTECTED] wrote: sdks / frameworks / projects / rpc in blaze rc1 On 07/02/2008, at 5:51 PM, Jerome Clarke wrote: hi... sorry to be off subject... but you said source... where is the source... I don't see it anywhere except the JSP and Flex examples thanks On Feb 7, 2008 5:46 AM, Bjorn Schultheiss [EMAIL PROTECTED] wrote: Don't quote me.. I looked into the source for the first time when blaze rc1 was released. Its complicated. On ResultEvent is override mx_internal function callTokenResponders():void { if (token != null) token.applyResult(this); } Apply result is mx_internal function applyResult(event:ResultEvent):void { setResult(event.result); if (_responders != null) { for (var i:uint = 0; i _responders.length; i++) { var responder:IResponder = _responders[i]; if (responder != null) { responder.result(event); } } } } callTokenResponders is called by abstract invoker which also dispatchers the result/fault events at the same time mx_internal function dispatchRpcEvent(event:AbstractEvent):void { event.callTokenResponders(); if (!event.isDefaultPrevented()) { dispatchEvent(event); } } On 07/02/2008, at 4:11 PM, Josh McDonald wrote: You're right, I hadn't noticed that. That's actually kinda strange. When are they called, and what actually initiates the responders? Is it before or after the data or error events are dispatched? -Josh On Feb 7, 2008 3:03 PM, Bjorn Schultheiss [EMAIL PROTECTED] wrote: One thing i don't like about addResponder() is that there is no removeResponder(); On 07/02/2008, at 4:01 PM, Josh McDonald wrote: What's the prevailing wind / general thoughts on using token.addResponder vs adding event listeners, beside the one request vs all requests nature of it? Is one faster / better / more common that the other? -- Good people will do good things, and bad people will do bad things. But for good people to do bad thingsâthat takes religion. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] -- Good people will do good things, and bad people will do bad things. But for good people to do bad thingsâthat takes religion. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
Re: [flexcoders] RemoteObject question
On Thursday 07 Feb 2008, [p e r c e p t i c o n] wrote: Is it possible to use RemoteObject without using flex data services? Yes. can some one point me to some tutorials or other resources? ColdFusion and AMFPHP, amongest others. -- Tom Chiverton Helping to vitalistically innovate dot-com materials on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Database field Datas to Combobox
Hi, Please help me to put Database Table Field datas to Combobox. i have a Student Table, and the StudentNo is the Primary key. The form Shows the StudentNo : Combobox [retrive from the Student Table] and follow one datagrid, whcih is show the Entire Student Table fields. The functionality is can i choose the StudentNo in the combobox, The Entire Row will be showed in the Datagrid. How can i achive this. Please help me. -- Thanks Regards Swaminathan. M
Re: [flexcoders] Image Source is not assigned
http://myserver/images_dir/{changing_variable}.jpg; - Original Message From: YOGESH JADHAV [EMAIL PROTECTED] To: flexcoders@yahoogroups.com; [EMAIL PROTECTED] Sent: Thursday, February 7, 2008 3:43:27 AM Subject: [flexcoders] Image Source is not assigned Hi all, I am assigning an Image's source dynamically, but i don't see any image, whta wrong ? both my_image.source = http://myserver/ images_dir+changing_variable+.jpg; and my_image.load(http://myserver/ images_dir+changing_vaiable+.jpg); are not working. I have checked that all paths are correct and images do exist. I even tried fixed path, it not working. The image is displayed only when i assign a fixed path thru flex builder properties ( n not programitacally ) and turn autoload ON. What to do ? -- Regards, Yogesh Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
Re: [flexcoders] Image Source is not assigned
sorry i was little bit late, actually i was assigning an integer value, which was used up somewhere in the code to create one of the parameters of string path. After applying toString method, it was working. On Feb 7, 2008 6:16 PM, Sherif Abdou [EMAIL PROTECTED] wrote: http://myserver/images_dir/{changing_variable}.jpghttp://myserver/images_dir/%7Bchanging_variable%7D.jpg - Original Message From: YOGESH JADHAV [EMAIL PROTECTED] To: flexcoders@yahoogroups.com; [EMAIL PROTECTED] Sent: Thursday, February 7, 2008 3:43:27 AM Subject: [flexcoders] Image Source is not assigned Hi all, I am assigning an Image's source dynamically, but i don't see any image, whta wrong ? both my_image.source = http://myserver/ images_dirhttp://myserver/images_dir +changing_variable+.jpg; and my_image.load(http://myserver/ images_dirhttp://myserver/images_dir +changing_vaiable+.jpg); are not working. I have checked that all paths are correct and images do exist. I even tried fixed path, it not working. The image is displayed only when i assign a fixed path thru flex builder properties ( n not programitacally ) and turn autoload ON. What to do ? -- Regards, Yogesh -- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ -- Regards, Yogesh
Re: [flexcoders] Image Source is not assigned
u can try using a loader too - Original Message From: Sherif Abdou [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, February 7, 2008 6:46:40 AM Subject: Re: [flexcoders] Image Source is not assigned http://myserver/ images_dir/ {changing_ variable} .jpg - Original Message From: YOGESH JADHAV [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com; [EMAIL PROTECTED] oups.com Sent: Thursday, February 7, 2008 3:43:27 AM Subject: [flexcoders] Image Source is not assigned Hi all, I am assigning an Image's source dynamically, but i don't see any image, whta wrong ? both my_image.source = http://myserver/ images_dir+changing_variable +.jpg; and my_image.load( http://myserver/ images_dir+changing_vaiable+ .jpg); are not working. I have checked that all paths are correct and images do exist. I even tried fixed path, it not working. The image is displayed only when i assign a fixed path thru flex builder properties ( n not programitacally ) and turn autoload ON. What to do ? -- Regards, Yogesh Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
RE: [flexcoders] Re: What are the available WSDL - AS3/Flex code generators out there?
Hard to say for sure without seeing the WSDL, but it looks like a Flex bug. I'd suggest posting a bug report and include a .NET sample that causes the bug to appear, along with WSDL, and the Flex project. Everything should be abbreviated to only include code necessary to reproduce the bug. https://bugs.adobe.com/flex/ In the interim you can try changing your service to use ListT instead of an Array and perhaps that will help work around the problem. Best regards, Sam --- We're Hiring! Seeking a passionate developer to join our team building Flex based products. Position is in the Washington D.C. metro area. If interested contact [EMAIL PROTECTED] -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dave Kong Sent: Wednesday, February 06, 2008 8:42 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: What are the available WSDL - AS3/Flex code generators out there? Hm.. hit a problem with collection results. The [0] element always seem to be an ArrayCollection and the real results start at element[1]. resultgenerated.webservices.ArrayOfUser (@7983241) [inherited] [0]mx.collections.ArrayCollection (@7983f41) [1]generated.webservices.User (@7acb549) [2]generated.webservices.User (@7a69d99) [3]generated.webservices.User (@7a896d1) [4]generated.webservices.User (@7acbba1) [5]generated.webservices.User (@7acbaf9) Is this a bug or is there something wrong with my WS? (I checked my WS and the raw stream does not contain extraneous data.
[flexcoders] Performance testing tool for flex application
Is there any performance testing tool available to test Flex Application which uses FDS?
RE: [flexcoders] RemoteObject question
Yes it is, you can use BlazeDS, but you have to use Flex 3 http://labs.adobe.com/technologies/blazeds/ Dimitrios Gianninas RIA Developer and Team Lead Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [p e r c e p t i c o n] Sent: Wednesday, February 06, 2008 7:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] RemoteObject question Dear Friends, Is it possible to use RemoteObject without using flex data services? can some one point me to some tutorials or other resources? thanks p -- 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.
[flexcoders] Undo/redo for flex cairngorm
Hello, I want to implement an undo/redo mechanism into an existing cairngorm app. I found the flex UndoRedo framework to be quite interesting, but since it's a framework and the operation of implementing the undo-redo is quite a lot of work, I'd be really glad to know what people who tried it think about it. The flex UndoRedo home: http://code.google.com/p/flexundoredo/ Thanks a lot ! Almog Kurtser.
Re: [flexcoders] RemoteObject question
Yes Google ColdFusion and/or WebORB. It seems likely that BlazeDS may have support for RemoteObject, but I haven't researched it. [p e r c e p t i c o n] wrote: Dear Friends, Is it possible to use RemoteObject without using flex data services? can some one point me to some tutorials or other resources? thanks p -- Jeffry Houser Adobe Community Expert AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
[flexcoders] Re: What is the best way to add a day to a date?
Sorry, first post didn't come through properly. Try this: var origDateString:String = 2008/12/31; var dateItems:Array = origDateString.split(/); var newDate:Date = new Date(dateItems[0], Number(dateItems[1])-1, Number(dateItems[2])+1); var newDateString:String = newDate.getFullYear() + / + (newDate.getMonth() + 1) + / + newDate.getDate(); Ryan --- In flexcoders@yahoogroups.com, Mark [EMAIL PROTECTED] wrote: I'm getting dates in my XML formatted like this: 2008/12/20 In some cases in my Flex app I need to add 1 day to that date. What is the best way to do that? Right now I'm working it out this way: s = chartDates.getItemAt(0).globalDeadline; a = s.split(/); newDate = a[0]+/+a[1]+/+(Number(a[2])+1); But I'm pretty sure this isn't right. Can someone help out with the code? Thanks -M
[flexcoders] Is there any way to use customized RemoteObject in mxml with mx:method?
I wrote RemoteObject's sublcass that contains functionality common for all my appp's RemoteObjects: public dynamic class MyRemoteObject extends RemoteObject { public function MyRemoteObject() { super(); this.showBusyCursor = true; this.requestTimeout=10; addEventListener(FaultEvent.FAULT, onFault); } ... } When I use it in my mxml files: cust:MyRemoteObject id=ro destination=dest mx:method name=getAll result=onGetAllResult(event)/ /cust:MyRemoteObject compiler can't recognize mx:method tag. Is there any way to workaround this? Den
Re: [flexcoders] Is there any way to use customized RemoteObject in mxml with mx:method?
Which RemoteObject are you extending? mx.rpc.remoting.RemoteObject or mx.rpc.remoting.mxml.RemoteObject? Try extending the latter. Regards, Frederico Garcia den.orlov escreveu: I wrote RemoteObject's sublcass that contains functionality common for all my appp's RemoteObjects: public dynamic class MyRemoteObject extends RemoteObject { public function MyRemoteObject() { super(); this.showBusyCursor = true; this.requestTimeout=10; addEventListener(FaultEvent.FAULT, onFault); } ... } When I use it in my mxml files: cust:MyRemoteObject id=ro destination=dest mx:method name=getAll result=onGetAllResult(event)/ /cust:MyRemoteObject compiler can't recognize mx:method tag. Is there any way to workaround this? Den -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links __ NOD32 2854 (20080206) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com
[flexcoders] Re: cursormanager and icons - can't seem to remove the original pointer
Ok, hit me over the head with a brick! problem solved - it wasn't a problem at all! I'm using Microsoft's Remote Desktop Connection to use my macintosh to connect to the windows computer that i'm using for work (this way i don't need multiple monitors, i can run both machines with my 24 iMac screen which is quite nice)... well it is the RDC software that is displaying the white cursor that i've shown in the screen shot i posted before. when i go to the real windows box and open my app, the cursor is changing as expected. My apologies to all for getting so frustrated with Flex :) And my thanks for all who tried to help! At least i know the answer! Mitch --- In flexcoders@yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: This is how I have done it. CursorManager.removeCursor(CursorManager.currentCursorID); CursorManager.setCursor(blah, blah, blah); If thats not working I am not sure what to tell you. I would try it from a method rather than inline but thats the only code I've seen that works. HTH, Ben --- In flexcoders@yahoogroups.com, maunger maunger@ wrote: Hi y'all sorry to bother but i'm having a tough time with something and i just can't figure out what i'm doing wrong - have searched the net and this group for answers but i'm not putting 2 2 together in my head it seems. I'm using the CursorManager.setCursor (pencilIcon) to set the cursor and i get my new cursor, but the original pointer cursor isn't going away either... i've tried setting the priority to 99 (as i saw somewhere on here) CursorManager.setCursor( pencilIcon, 99 ); and i thought that was working yesterday, but today it doesn't seem to matter - i still have 2 cursors! I've tried CursorManager.removeCursor( CursorManager.currentCursorID ); but that didn't help either... there's got to be something i'm missing... all the examples i've found make it look so easy! Anyone help this poor soul who can't figure out why this isn't working the way i want? PLease? Mitch
Re: [flexcoders] Re: What is the best way to add a day to a date?
seems doing this you could easily end up with 2008/12/32 :) I'd parse the data, then create a Date object. Adding a day to a Date should be as simple as myDate.time += (24 * 60 * 60 * 1000); hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com rmarples wrote: --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Mark [EMAIL PROTECTED] wrote: I'm getting dates in my XML formatted like this: 2008/12/20 In some cases in my Flex app I need to add 1 day to that date. What is the best way to do that? Right now I'm working it out this way: s = chartDates.getItemAt(0).globalDeadline; a = s.split(/); newDate = a[0]+/+a[1]+/+(Number(a[2])+1); But I'm pretty sure this isn't right. Can someone help out with the code? Thanks -M
Re: [flexcoders] RemoteObject question
perhaps i should be more specific...i have a j2EE server and i want to use the RemoteObject to call methods on pojos...how do i achieve this...are there any articles that speak to this...i read some that mentioned flex data services but i don't think i need this do i? in flash i've used open amf, but it looks like RemoteObject takes care of that for me am i completely off base or what? thanks so much On Feb 7, 2008 7:25 AM, Jeffry Houser [EMAIL PROTECTED] wrote: Yes Google ColdFusion and/or WebORB. It seems likely that BlazeDS may have support for RemoteObject, but I haven't researched it. [p e r c e p t i c o n] wrote: Dear Friends, Is it possible to use RemoteObject without using flex data services? can some one point me to some tutorials or other resources? thanks p -- Jeffry Houser Adobe Community Expert AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
[flexcoders] Re: HTTPService or URLRequest Request header Question
Then what is a possible alternative to get around this? Anyone has suggestions? --- In flexcoders@yahoogroups.com, João Fernandes [EMAIL PROTECTED] wrote: this is true, you can't use authorization token in headers anymore within Flash Player. This is big step backwards in my opinion -- João Fernandes http://www.onflexwithcf.org http://www.riapt.org
RE: [flexcoders] Extending Base Classes
Cant help with RemoteObject, but for the List based on, use the link below an scroll to the bottom and take a look at the Scheduling framework http://code.google.com/p/flexlib/wiki/ComponentList Dimitrios Gianninas RIA Developer and Team Lead Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Aebig Sent: Thursday, February 07, 2008 12:16 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Extending Base Classes Hi Dimitrios, For the List based Component: I'm looking to make a component that would be the same as a timesheet. Basically a vertical list of time slots where items can be dragged and resized to reflect time ranges inside of a day. The key with this is that the time ranges could occupy multiple rows at once. A good example would be the day view inside of the Outlook Calendar... For RemoteObject: I'm looking to extend the RemoteObject class to incorporate a security implementation transparently as well as a more simple interface to make calls with. Thanks, !k From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios Gianninas Sent: Thursday, February 07, 2008 10:56 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Extending Base Classes can u talk in a bit more detail in both cases of what specific needs u have? Cause for the List based component, maybe an item renderer will solve your problem. Dimitrios Gianninas RIA Developer and Team Lead Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Aebig Sent: Thursday, February 07, 2008 11:13 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Extending Base Classes Hey all, I have a couple components I'd like to develop and use some of the base classes to do it. The only issue I'm having is because we can't see the inner workings of some of the base classes, it makes it more difficult to know how to extend off of them, or which is the best for the job. Some examples of what I mean: - A list based component, but needing more flexibility and customizations than an altered Listbox could give me - A RemoteObject Class with added additional features and specific usage cases How can I develop components based off the base classes when they remain a mystery? Cheers, !k AVIS IMPORTANT WARNING 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. 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. -- 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
Re: [flexcoders] Re: private constructor in action script
Determined users can still pass null to the constructor, no? We're currently throwing an exception if the singleton exists and its constructor is invoked, but I suppose this approach is a little cleaner. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: m.ar80 [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: private constructor in action script Date: Thu, 07 Feb 2008 05:41:03 - As of now, it is not possible to declare a constructor private (other than public) in ActionScript 3.0. However, as pointed out, it is possible to achieve the required behavior by using a dummy private class defined outside the package so that no one has access to it outside the file. Passing a dummy instance of this class to the constructor of the singleton class should prevent other users from instantiating the singleton class. Here is a code snippet illustrating the concept: package { class Singleton { private static var theOneAndOnlyInstance:Singleton; public function Singleton(dummy:DummyPrivateClass) { super(); } public static function getInstance():Singleton { if(theOneAndOnlyInstance == null) { theOneAndOnlyInstance = new Singleton(new DummyPrivateClass()); } return theOneAndOnlyInstance; } } } class DummyPrivateClass { public function DummyPrivateClass() { super(); } } HTH.
Re: [flexcoders] Re: Flex Interview Questions
Nick, you make a really good point, and bring up some great questions. -Eric On Feb 7, 2008 2:34 PM, Uber_Nick [EMAIL PROTECTED] wrote: Tom makes a good point. It depends on what kind of skills you want to bring in. ecancil's suggestions are ok if you're looking to do a lot of work with custom components. When getting developers to help create standard application, I'd weigh a lot more heavily on the as3 questions. Aside from basic show me how you'd write X algorithm questions, you can ask more in depth ones about the workings of the language: 1) What's the difference between Java and AS3 getters and setters? 2) Explain how binding works in mxml components. 3) What's the difference between ChangeWatcher.watch, and BindingUtils.bindProperty? 4) Why would you want to keep a reference to a ChangeWatcher and call unwatch()? Architecture 5) How do you add event listeners in mxml components. Now AS3 components? 6) What does calling preventDefault() on an event do? How is this enforced? 7) (If applicable) Explain the lifecycle of a Cairngorm action. More 8) What are some ways to specify styles on components? 9) What is the problem with calling setStyle() 10) Explain the difference between creating an effect and setting the target as opposed to adding an effectListener 11) What do repeater components do? 12) How do you identify a component created in a repeater? I'm sure we can come up with plenty more questions. If you want to know the answers to any, simply ask in the forums. Some of these are more open ended. Also, for hit rate I'd expect and medium-level Flex developer to score maybe a 50% if this was a test graded with partial credit. 80-90%+ for experts. -Nick Matelli Amentra, Inc --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Jeffry Houser [EMAIL PROTECTED] wrote: I'd have an easier time answering the questions as you go 'down' the list. I'd have problems explaining the first one in great detail without references in front of me (even though I deal with that stuff every day). :-) I think it's a great question, though. ecancil wrote: Id say they can answer all of the questions fairly satisfactorily if they're a good candidate. If they have a problem with one of the questions they usually have problems with the rest. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, Paul Andrews paul@ wrote: On the basis of these questions, what's the 'hit rate' on suitable applicants? Paul - Original Message - From: ecancil ecancil@ To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Thursday, February 07, 2008 1:53 AM Subject: [flexcoders] Re: Flex Interview Questions I regularly conduct interviews for flex developers My regular questions are to explain the component lifecycle. I ask how invalidate / commitProperties work specifically I ask a lot of questions about dataServices I ask a general understanding of MVC I ask what frameworks they're familiar with --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com, Jimmi Prajapati jimmi.javaflex@ wrote: Hello Friends, From where can I find Flex Interview Questions. Thanks in Advance. Regards Thanks Jimmi -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Jeffry Houser Adobe Community Expert AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
RE: [flexcoders] Re: is this how to use commitProperties
My opinion is that is a lot of code to wade through! Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sherif Abdou Sent: Thursday, February 07, 2008 1:36 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: is this how to use commitProperties so good? bad? any opinions? - Original Message From: Sherif Abdou [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, February 6, 2008 9:53:43 PM Subject: Re: [flexcoders] Re: is this how to use commitProperties if anyone cares to check, is this how your suppose to do the stuff or is it overkill. This is a Tab that contains a Close Button so if the user clicks on the close Button then the tab gets removed and depending on the policy that gets picked it reacts. package flexlib.controls. tabBarClasses { import flash.display. DisplayObject; import flash.events. Event; import flash.events. MouseEvent; import flexlib.constants. AdvancedTabConst ant; import flexlib.interfaces. ICustomComponent Styles; import mx.controls. Button; import mx.controls. tabBarClasses. Tab; import mx.core.UIComponent ; /** * The Style For the Close Button that will be used */ [Style(name=tabCloseButtonStyl eName,type=String, inherit=no)] /** * The Style that is used for the indicator, it will be an image */ [Style(name=indicatorClass, type=String, inherit=no)] public class AdvancedTab extends Tab implements ICustomComponentSty les { /** * Flag to Know if the Button has been created or not */ private var _closeButtonCreated :Boolean; /** * The Button that will aid us in closing the Tab AKA removing it from the scene */ private var closeButton: Button; /** * The Display Indicator that gets seen between the tabs when we move them */ private var indicatorDisplay: UIComponent; public function AdvancedTab( ) { super(); //enable Mouse Children so we can Have Interaction with the Buttons //and other Stuff that will be placed on the Tab, by Default it is false //reason is if there is a textField in the Tab then a click may be dispatched or //heard in the textField instead of the Tab itself and sometimes you dont want that to //happen. mouseChildren=true; } /** * Used to Determine whether or not there was a change in the Close Policy */ private var _closePolicyChanged :Boolean; /** * Internal Value for the ClosePolicy so we can react * accordingly */ private var _closePolicy: String; [Inspectable(defaultValue=close_always,enumeration=close_always, close_rollover, close_never, close_selected)] public function set closePolicy( value:String) :void{ if(_closePolicy !=value){ _closePolicy= value; _closePolicyChanged =true; invalidatePropertie s(); dispatchEvent(new Event(closePolicyChanged )); } } [Bindable(event=closePolicyChanged )] public function get closePolicy( ):String{ return _closePolicy; } /** * Override the CreateChildren so we can create the Close Button, Only Create Children * and nothing else, can't size them or position them */ override protected function createChildren( ):void{ //call the super method so the other stuff gets constructed like //the Button itself and all the other stuff that creates the Tab super.createChildren( ); //always check if the Button is not made if(!closeButton) { //safe now we can create it closeButton = new Button(); //listen for the click event so we know when to close the tab closeButton. addEventListener (MouseEvent. CLICK,onCloseBut tonClickHandler) ; //hide the close button closeButton. visible=false; _closeButtonCreated = true; addChild(closeButto n); } /** * Used to Display the Indicator, first get the Style as a class * then what you would need to do is create the style as a class */ if(!indicatorDisplay) { indicatorDisplay = new UIComponent( ) addChild(indicatorD
RE: [flexcoders] Extending Base Classes
For the List classes that works well, but the RPC source hasnt been released near as I can tell. !k _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Eric Cancil Sent: Thursday, February 07, 2008 1:12 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Extending Base Classes You do realize you can import the Flex framework directly into your eclipse, so anytime you need to open a class, just hit CTRL + SHIFT + T and type it in That works best. -Eric On Feb 7, 2008 1:43 PM, Kevin Aebig [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] com wrote: Actually I'm currently using the Scheduling Framework, but have found that it doesn't scale with fluid layouts, which is a big problem in the application I'm building. Thanks anyhow, !k _ From: [EMAIL PROTECTED] mailto:flexcoders@yahoogroups.com ups.com [mailto:[EMAIL PROTECTED] mailto:flexcoders@yahoogroups.com ups.com] On Behalf Of Dimitrios Gianninas Sent: Thursday, February 07, 2008 12:08 PM To: [EMAIL PROTECTED] mailto:flexcoders@yahoogroups.com ups.com Subject: RE: [flexcoders] Extending Base Classes Cant help with RemoteObject, but for the List based on, use the link below an scroll to the bottom and take a look at the Scheduling framework http://code. http://code.google.com/p/flexlib/wiki/ComponentList google.com/p/flexlib/wiki/ComponentList Dimitrios Gianninas RIA Developer and Team Lead Optimal Payments Inc. _ From: [EMAIL PROTECTED] mailto:flexcoders@yahoogroups.com ups.com [mailto:[EMAIL PROTECTED] mailto:flexcoders@yahoogroups.com ups.com] On Behalf Of Kevin Aebig Sent: Thursday, February 07, 2008 12:16 PM To: [EMAIL PROTECTED] mailto:flexcoders@yahoogroups.com ups.com Subject: RE: [flexcoders] Extending Base Classes Hi Dimitrios, For the List based Component: I'm looking to make a component that would be the same as a timesheet. Basically a vertical list of time slots where items can be dragged and resized to reflect time ranges inside of a day. The key with this is that the time ranges could occupy multiple rows at once. A good example would be the day view inside of the Outlook Calendar For RemoteObject: I'm looking to extend the RemoteObject class to incorporate a security implementation transparently as well as a more simple interface to make calls with. Thanks, !k _ From: [EMAIL PROTECTED] mailto:flexcoders@yahoogroups.com ups.com [mailto:[EMAIL PROTECTED] mailto:flexcoders@yahoogroups.com ups.com] On Behalf Of Dimitrios Gianninas Sent: Thursday, February 07, 2008 10:56 AM To: [EMAIL PROTECTED] mailto:flexcoders@yahoogroups.com ups.com Subject: RE: [flexcoders] Extending Base Classes can u talk in a bit more detail in both cases of what specific needs u have? Cause for the List based component, maybe an item renderer will solve your problem. Dimitrios Gianninas RIA Developer and Team Lead Optimal Payments Inc. _ From: [EMAIL PROTECTED] mailto:flexcoders@yahoogroups.com ups.com [mailto:[EMAIL PROTECTED] mailto:flexcoders@yahoogroups.com ups.com] On Behalf Of Kevin Aebig Sent: Thursday, February 07, 2008 11:13 AM To: [EMAIL PROTECTED] mailto:flexcoders@yahoogroups.com ups.com Subject: [flexcoders] Extending Base Classes Hey all, I have a couple components I'd like to develop and use some of the base classes to do it. The only issue I'm having is because we can't see the inner workings of some of the base classes, it makes it more difficult to know how to extend off of them, or which is the best for the job. Some examples of what I mean: - A list based component, but needing more flexibility and customizations than an altered Listbox could give me - A RemoteObject Class with added additional features and specific usage cases How can I develop components based off the base classes when they remain a mystery? Cheers, !k AVIS IMPORTANT WARNING 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. 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
[flexcoders] question on text encoding
Hello all, I wanted to know is it possible for flex to determine what encoding the text being entered in to a textInput, textArea, or HTMLTextInput is using. Thr concern is a user copies and pastes in text from say a Microsoft product. The reason I ask is we have UTF8 encoding for the project, and sometimes text appears as a black rectangle. Ideally I would like to run a function at focusOut that would confirm .text. Thanks for your time Jeff
[flexcoders] pass Array from Flex to cfc and pass Array from cfc to Flex?
Hi, The index start from 0 in Flex and index start from 1 in Coldfusion. How to pass array between Flex and CFC? Please give me a idea. Thanks Mark
[flexcoders] Adobe SDK, why flex comps accept bind in properties and custom comps dont?
Hello, i observe a strange behavior when i try extend label component to do a character counter. I try pass to my comp something like this: com:MyLabel max={myTextArea.lenght} / max is a custom property, i create getter and setter for this. But if i use direct value, without bind everything work, like this: com:MyLabel max={myTextArea.lenght} / Why custom components doesn't accept bind to properties and flex sdk comps accept? What can i do to make this work? Thanks
Re: [flexcoders] defining a javascript function from actionscript?
You can play around with the External Interface. Although I don't think you can define it in one call and then call it later. If you're serving a remote swf you may run into security sandbox issues. I'm not sure what situation would make this 'more ideal' than changing the HTML, though. vijay95052 wrote: Hello Is there any way i can make the actionscript/flex code in a swf to insert a javascript function in the wrapper HTML? we have a need to provide a javascript function in the wrapper HTML - instead of having to write a custom HTML that includes the javascript function and the swf, i was wondering if i can leverage the existing wrapper HTML support in FB2 and have the javascript embedded rt into it... thanks vijay -- Jeffry Houser Adobe Community Expert AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
RE: [flexcoders] Re: Display Custom ItemRenderer based on previous value in List
If you are using an ArrayCollection or XMLListCollection, getItemIndex(item) returns the index in the DP. If you are using an XMLList, childIndex() returns the index of the node within its parent. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Thursday, February 07, 2008 12:23 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Display Custom ItemRenderer based on previous value in List Add verticalScrollPosition to get the DP index From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Sent: Thursday, February 07, 2008 2:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Display Custom ItemRenderer based on previous value in List Maybe I am just being dense, but I can't figure out how rowIndex helps me since it is relative to the display on the screen and what i really need is to know the index of the current item relative to it's position in the data provider. For example, if I have 3 rows displayed (but 20 items in the ArrayCollection) and I get a rowIndex of 2, all that tells me is that this item is in the third row on the screen. However, that doesn't mean that it is the third item in the dataProvider so this, _listData.owner.dataProvider.getItemAt(listData.rowIndex - 1) would not necessarily lead me to the previous item. Of course, I could scan through the dataProvider each time to try to get the index of the current data item, but that seems extremely inefficient. BTW, I also noticed that the docs refer to the first item in the list as index 1, but in my testing it seemed like this is a zero based index. Am I misreading the docs or are they wrong? rowIndex --- The index of the row of the DataGrid, List, or Tree control relative to the currently visible rows of the control, where the first row is at an index of 1. For example, you click on an item in the control and rowIndex is set to 3. You then scroll the control to change the row's position in the visible rows of the control, and then click on the same row as before. The rowIndex now contains a different value corresponding to the new index of the row in the currently visible rows. - Kevin --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Eric Cancil [EMAIL PROTECTED] wrote: listData.rowIndex = indispensable On Feb 6, 2008 7:16 PM, Alex Harui [EMAIL PROTECTED] wrote: If you assume Arrays, and you can efficiently find the index, then you can use getItemAt to get the previous item. listData.rowIndex might be useful -- *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] *On Behalf Of *Kevin *Sent:* Wednesday, February 06, 2008 1:24 PM *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* [flexcoders] Display Custom ItemRenderer based on previous value in List I am trying to solve a certain design problem and am not sure how to approach this. I have a List control which displays data using a custom ItemRenderer. I currently listen for a dataChange event and set different properties of the ItemRenderer based on the data that is being set. That all works fine. (although it could use some refactoring for performance). However, I now want to set some additional properties based on how this data compares to the data of the previous item in the list's dataProvider. I am struggling to find the best way to do this. I can get access to the DataProvider though this.owner.dataProvider, but then I would need to set up a new cursor, find the current item in the list and then movePrevious() to compare to the previous item. Of course this would have to happen each time they renderer was created for a new item in the list. Can anyone think of another more efficient way to achieve this? Along the same lines, it would also be nice to create separators in List controls, but I haven't figured a way to do this either. For example, if you are displaying a list of 20 scheduled events, it would be nice to be able to create separator for each different day that the events happen on. I am guessing I may have to look into extending the List component for this. - Kevin
Re: [flexcoders] Extending Base Classes
You do realize you can import the Flex framework directly into your eclipse, so anytime you need to open a class, just hit CTRL + SHIFT + T and type it in That works best. -Eric On Feb 7, 2008 1:43 PM, Kevin Aebig [EMAIL PROTECTED] wrote: Actually I'm currently using the Scheduling Framework, but have found that it doesn't scale with fluid layouts, which is a big problem in the application I'm building. Thanks anyhow, !k -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Dimitrios Gianninas *Sent:* Thursday, February 07, 2008 12:08 PM *To:* flexcoders@yahoogroups.com *Subject:* RE: [flexcoders] Extending Base Classes Cant help with RemoteObject, but for the List based on, use the link below an scroll to the bottom and take a look at the Scheduling framework http://code.google.com/p/flexlib/wiki/ComponentList *Dimitrios Gianninas* *RIA Developer and Team Lead* *Optimal Payments Inc.* -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Kevin Aebig *Sent:* Thursday, February 07, 2008 12:16 PM *To:* flexcoders@yahoogroups.com *Subject:* RE: [flexcoders] Extending Base Classes Hi Dimitrios, For the List based Component: I'm looking to make a component that would be the same as a timesheet. Basically a vertical list of time slots where items can be dragged and resized to reflect time ranges inside of a day. The key with this is that the time ranges could occupy multiple rows at once. A good example would be the day view inside of the Outlook Calendar… For RemoteObject: I'm looking to extend the RemoteObject class to incorporate a security implementation transparently as well as a more simple interface to make calls with. Thanks, !k -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Dimitrios Gianninas *Sent:* Thursday, February 07, 2008 10:56 AM *To:* flexcoders@yahoogroups.com *Subject:* RE: [flexcoders] Extending Base Classes can u talk in a bit more detail in both cases of what specific needs u have? Cause for the List based component, maybe an item renderer will solve your problem. *Dimitrios Gianninas* *RIA Developer and Team Lead* *Optimal Payments Inc.* -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Kevin Aebig *Sent:* Thursday, February 07, 2008 11:13 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Extending Base Classes Hey all, I have a couple components I'd like to develop and use some of the base classes to do it. The only issue I'm having is because we can't see the inner workings of some of the base classes, it makes it more difficult to know how to extend off of them, or which is the best for the job. Some examples of what I mean: - A list based component, but needing more flexibility and customizations than an altered Listbox could give me - A RemoteObject Class with added additional features and specific usage cases How can I develop components based off the base classes when they remain a mystery? Cheers, !k *AVIS IMPORTANT* *WARNING* 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. 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.
Re: [flexcoders] flashVars not passed in Flex 3 Builder's debugger?
Does your debugging session launch the wrapper, or the .swf directly ? It launches the wrapper. And after taking a closer look at the wrapper: file:///C:/path/project-name/bin/mxml-name.html# I found that I had made a stupid mistake. I had added the flashvars, var1=blahvar2=blah... to the **first** AC_FL_RunContent() which installs the Flash Player. My bad. As soon as I modified the index.template.html to add the flashVars to the 2nd AC_FL_RunContent(), it worked like a charm.
Re: [flexcoders] Re: is this how to use commitProperties
so good? bad? any opinions? - Original Message From: Sherif Abdou [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, February 6, 2008 9:53:43 PM Subject: Re: [flexcoders] Re: is this how to use commitProperties if anyone cares to check, is this how your suppose to do the stuff or is it overkill. This is a Tab that contains a Close Button so if the user clicks on the close Button then the tab gets removed and depending on the policy that gets picked it reacts. package flexlib.controls. tabBarClasses { import flash.display. DisplayObject; import flash.events. Event; import flash.events. MouseEvent; import flexlib.constants. AdvancedTabConst ant; import flexlib.interfaces. ICustomComponent Styles; import mx.controls. Button; import mx.controls. tabBarClasses. Tab; import mx.core.UIComponent ; /** * The Style For the Close Button that will be used */ [Style(name=tabCloseButtonStyl eName,type=String, inherit=no)] /** * The Style that is used for the indicator, it will be an image */ [Style(name=indicatorClass, type=String, inherit=no)] public class AdvancedTab extends Tab implements ICustomComponentSty les { /** * Flag to Know if the Button has been created or not */ private var _closeButtonCreated :Boolean; /** * The Button that will aid us in closing the Tab AKA removing it from the scene */ private var closeButton: Button; /** * The Display Indicator that gets seen between the tabs when we move them */ private var indicatorDisplay: UIComponent; public function AdvancedTab( ) { super(); //enable Mouse Children so we can Have Interaction with the Buttons //and other Stuff that will be placed on the Tab, by Default it is false //reason is if there is a textField in the Tab then a click may be dispatched or //heard in the textField instead of the Tab itself and sometimes you dont want that to //happen. mouseChildren=true; } /** * Used to Determine whether or not there was a change in the Close Policy */ private var _closePolicyChanged :Boolean; /** * Internal Value for the ClosePolicy so we can react * accordingly */ private var _closePolicy: String; [Inspectable(defaultValue=close_always,enumeration=close_always, close_rollover, close_never, close_selected)] public function set closePolicy( value:String) :void{ if(_closePolicy !=value){ _closePolicy= value; _closePolicyChanged =true; invalidatePropertie s(); dispatchEvent(new Event(closePolicyChanged )); } } [Bindable(event=closePolicyChanged )] public function get closePolicy( ):String{ return _closePolicy; } /** * Override the CreateChildren so we can create the Close Button, Only Create Children * and nothing else, can't size them or position them */ override protected function createChildren( ):void{ //call the super method so the other stuff gets constructed like //the Button itself and all the other stuff that creates the Tab super.createChildren( ); //always check if the Button is not made if(!closeButton) { //safe now we can create it closeButton = new Button(); //listen for the click event so we know when to close the tab closeButton. addEventListener (MouseEvent. CLICK,onCloseBut tonClickHandler) ; //hide the close button closeButton. visible=false; _closeButtonCreated = true; addChild(closeButto n); } /** * Used to Display the Indicator, first get the Style as a class * then what you would need to do is create the style as a class */ if(!indicatorDisplay) { indicatorDisplay = new UIComponent( ) addChild(indicatorD isplay as DisplayObject) ; } //call to set the styles setCustomStyles( ); } /** * Called On when the User Clicks on the Close Button, * all we are going to do is dispatch that the user * wants to close the tab and handle in the AdvanedTabBar * so it gets removed cleanly */ private function onCloseButtonClickH andler(event: MouseEvent) :void{ dispatchEvent(new Event(AdvancedTabCo nstant.CLOSE_ TAB)); } /** * Override the measure to set the compenents custom size * We set the Close Button Size here and the Indicator?? */ override protected function measure():void{ super.measure(); if(_closeButtonCreate d){ closeButton. width = closeButton. height=16; _closeButtonCreated =false; } } /** * The Sizes and Positions the Children */ override protected function updateDisplayList( unscaledWidth: Number, unscaledHeight: Number):void{ super.updateDisplayList( unscaledWidth, unscaledHeight) ; //check to see if we have the Button if(closeButton. visible){ closeButton. move(unscaledWid th-closeButton. width,4); //change the index of where the button is so we can adjust it setChildIndex( closeButton, numChildren- 2); } if(indicatorDisplay) { setChildIndex( indicatorDisplay ,numChildren- 1); } } /** * Create the CommitProperties so we determine if there is a need * to change the closePolicy Buttons */ override protected function commitProperties( ):void{ super.commitProperties( ); if(_closePolicyChange d){ switch(closePolicy) { case AdvancedTabConstant .CLOSE_ALWAYS: closeButton. visible=true; break; case
Re: [flexcoders] createPopUp question
look to see what Flex takes in under WhatToShow I think it might by Display Object and do WhatToShow as (Whatever the parameter is). sorry no where near flex so i cant be more percise. - Original Message From: markgoldin_2000 [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, February 7, 2008 11:55:48 AM Subject: [flexcoders] createPopUp question Sorry have to ask that again. How can I make this function working: public function showPopupWindow( parent:DisplayOb ject, WhatToShow:String) :void { var helpWindow:TitleWin dow = TitleWindow( PopUpManager. createPopUp( parent, WhatToShow, true)); PopUpManager. centerPopUp( helpWindow) ; } createPopUp does not take WhatToShow as a parameter. Thanks for help. Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
[flexcoders] createPopUp question
Sorry have to ask that again. How can I make this function working: public function showPopupWindow(parent:DisplayObject, WhatToShow:String):void { var helpWindow:TitleWindow = TitleWindow(PopUpManager.createPopUp(parent, WhatToShow, true)); PopUpManager.centerPopUp(helpWindow); } createPopUp does not take WhatToShow as a parameter. Thanks for help.
[flexcoders] HTTP requests security
Hello, If I do the following: 1) Compile a Flex application with some password stored in a variable 2) Publish the SWF file on the web 3) Send the password from running application over the wire via HTTPS is it possible for a hacker to somehow find out this password? Decompile SWF or something? Many thanks, Borek
RE: [flexcoders] Re: Still Tree
You said in the prior email that when you drag the icons do not appear, now you say the icons are fine. I'm not really willing to help you define which problems you are trying to solve. The points to keep in mind are: 1) invalidation will cause the expand tween to not play 2) icons are looked up in the document. Good luck, -Alex From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rafael Faria Sent: Wednesday, February 06, 2008 9:20 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Still Tree The thing is... the icons are just fine, even when i open the branch for the first time, the icons are all there. The only think it doesnt work really well is when i load the application and i try to open it for the first time, than it just popup my leafs instead of being smooth with that animation of the leafs blinding down if you know what i mean. than when i close and open it again it just work fine. This happens on all of the branches. all i do is set a iconFunction in the begging of my constructor to call the parseIcons function public class menuTree extends Tree { public function menuTree() { super(); iconFunction = parseIcons; } private function parseIcons(node:XML, type:String = ): void { var nodeName:String = node.name(); if (type == edit) { if (nodeName == module) { if (getStyle(defaultEditModuleIcon) != null) { setItemIcon(node, getStyle(defaultEditModuleIcon), getStyle(defaultEditModuleIcon)); } } else if (nodeName == category) { if (getStyle(folderEditIcon) != null) { setItemIcon(node, getStyle(folderEditIcon), getStyle(folderEditIcon)); } } else { if (getStyle(defaultEditLeafIcon) != null) { setItemIcon(node, getStyle(defaultEditLeafIcon), getStyle(defaultEditLeafIcon)); } } } else { if (nodeName == module) { setItemIcon(node, getStyle(defaultModuleIcon), getStyle(defaultModuleIcon)); } else if (nodeName == category) { setItemIcon(node, getStyle(folderClosedIcon), getStyle(folderOpenIcon)); } else { setItemIcon(node, getStyle(defaultLeafIcon), getStyle(defaultLeafIcon)); } } } } The icons are embed on a CSS file. Tree { disclosureClosedIcon: Embed('../assets/images/plus.png'); disclosureOpenIcon: Embed('../assets/images/minus.png'); folderClosedIcon: Embed('../assets/images/application.png'); folderOpenIcon: Embed('../assets/images/application_put.png'); folderEditIcon: Embed('../assets/images/application_edit.png'); defaultLeafIcon: Embed('../assets/images/file.png'); defaultEditLeafIcon: Embed('../assets/images/file_edit.png'); defaultModuleIcon: Embed('../assets/images/module.png'); defaultEditModuleIcon: Embed('../assets/images/module_edit.png'); disableColor:#CC; defaultColor:#00; indentation:14; } --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: If the icon is embedded in a different MXML file then it won't be found in the destination tree From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Rafael Faria Sent: Wednesday, February 06, 2008 3:27 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Still Tree another thing is happening is whenever i drag an element from another tree into my main tree the icon does not appear. why would this happen?! --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: 1. setStyle(indentation, ...) 2. itemRenderer = new ClassFactory(myTreeRenderer) 3. If your renderer invalidates the tree it will cancel the tween 4. Make sure you're using the right methods at the right time (commitProperties, measure, updateDisplayList) From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Rafael Faria Sent: Tuesday, February 05, 2008 5:05 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Still Tree For some reason whenever i use setItemIcon on a function set for a iconFunction its behavior is very weird. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Rafael Faria rafaelfaria.grupos@ wrote: I think is better to post most of my questions and if anyone can help just reply with an answer :) I'm still struggling myself with packages so if someone has a good article about it or where i can find a good material about packages it would be very helpful as
RE: [flexcoders] What is the best way to add a day to a date?
Create a date object with the string, than add the day to it like this: newDate = new Date(a[0], a[1], a[2]); newDate.seconds += 8640; // seconds in a day or (60*60*24) !k _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Sent: Thursday, February 07, 2008 8:40 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] What is the best way to add a day to a date? I'm getting dates in my XML formatted like this: 2008/12/20 In some cases in my Flex app I need to add 1 day to that date. What is the best way to do that? Right now I'm working it out this way: s = chartDates.getItemAt(0).globalDeadline; a = s.split(/); newDate = a[0]+/+a[1]+/+(Number(a[2])+1); But I'm pretty sure this isn't right. Can someone help out with the code? Thanks -M
RE: [flexcoders] Extending Base Classes
Hi Dimitrios, For the List based Component: Im looking to make a component that would be the same as a timesheet. Basically a vertical list of time slots where items can be dragged and resized to reflect time ranges inside of a day. The key with this is that the time ranges could occupy multiple rows at once. A good example would be the day view inside of the Outlook Calendar For RemoteObject: Im looking to extend the RemoteObject class to incorporate a security implementation transparently as well as a more simple interface to make calls with. Thanks, !k _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios Gianninas Sent: Thursday, February 07, 2008 10:56 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Extending Base Classes can u talk in a bit more detail in both cases of what specific needs u have? Cause for the List based component, maybe an item renderer will solve your problem. Dimitrios Gianninas RIA Developer and Team Lead Optimal Payments Inc. _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Aebig Sent: Thursday, February 07, 2008 11:13 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Extending Base Classes Hey all, I have a couple components I'd like to develop and use some of the base classes to do it. The only issue I'm having is because we can't see the inner workings of some of the base classes, it makes it more difficult to know how to extend off of them, or which is the best for the job. Some examples of what I mean: - A list based component, but needing more flexibility and customizations than an altered Listbox could give me - A RemoteObject Class with added additional features and specific usage cases How can I develop components based off the base classes when they remain a mystery? Cheers, !k AVIS IMPORTANT WARNING 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. 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.
[flexcoders] Is it possible to call a command automatically when compiling ends?
Is it possible to configure FB so that after the compiling ends, an external command is called? I know that if i use ant tasks this might be solved, but I was looking for something simpler. Does this feature exists? Is there any simple and straightforward way to achieve this? Thanks, João Saleiro
RE: [flexcoders] Extending Base Classes
can u talk in a bit more detail in both cases of what specific needs u have? Cause for the List based component, maybe an item renderer will solve your problem. Dimitrios Gianninas RIA Developer and Team Lead Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Aebig Sent: Thursday, February 07, 2008 11:13 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Extending Base Classes Hey all, I have a couple components I'd like to develop and use some of the base classes to do it. The only issue I'm having is because we can't see the inner workings of some of the base classes, it makes it more difficult to know how to extend off of them, or which is the best for the job. Some examples of what I mean: - A list based component, but needing more flexibility and customizations than an altered Listbox could give me - A RemoteObject Class with added additional features and specific usage cases How can I develop components based off the base classes when they remain a mystery? Cheers, !k -- 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] Is there any way to use customized RemoteObject in mxml with mx:method?
Sorry, I didn't read it properly. I thought you were using WebService.
Re: [flexcoders] Is there any way to use customized RemoteObject in mxml with mx:method?
On Feb 7, 2008 5:38 PM, den.orlov [EMAIL PROTECTED] wrote: I wrote RemoteObject's sublcass that contains functionality common for all my appp's RemoteObjects: public dynamic class MyRemoteObject extends RemoteObject { public function MyRemoteObject() { super(); this.showBusyCursor = true; this.requestTimeout=10; addEventListener(FaultEvent.FAULT, onFault); } ... } When I use it in my mxml files: cust:MyRemoteObject id=ro destination=dest mx:method name=getAll result=onGetAllResult(event)/ /cust:MyRemoteObject compiler can't recognize mx:method tag. Is there any way to workaround this? It's mx:operation and not mx:method. Also, you don't use result on the mx:operation, that is on the mx:WebService tag. Here is an example: mx:WebService id=companyService wsdl=http://localhost:8080/accounting/services/CompanyService?wsdl; showBusyCursor=true fault=Alert.show(event.fault.toString(), 'Error'); result=showResult(event); useProxy=false mx:operation name=saveCompany mx:request company_id{companyId.text}/company_id /mx:request /mx:operation /mx:WebService Hope that helps. All the best, Fidel.
[flexcoders] HTTPService or URLRequest Request header Question
I am trying to make a HTTPService or URLRequest call to a remote service. This call needs user authentication and I tried to put username/password into the code and use the request header to send these parameter. So far no success in making the call. Some search indicates may has something to do with URLRequstHeader and Authorization. See the below link from a blog. It said that whether they [Your application] are created with Flex 2, Flex 3, AS3 or Flash IDE. If its headed for the browser and your user has updated to Flash Player 9.0.115 this code will error. Is this true? If so, what is the alternative to get around with login prompt? Thanks http://blog.simb.net/2008/01/28/the-sky-is-falling-urlrequstheader-and- authorization/
[flexcoders] Extending Base Classes
Hey all, I have a couple components I'd like to develop and use some of the base classes to do it. The only issue I'm having is because we can't see the inner workings of some of the base classes, it makes it more difficult to know how to extend off of them, or which is the best for the job. Some examples of what I mean: - A list based component, but needing more flexibility and customizations than an altered Listbox could give me - A RemoteObject Class with added additional features and specific usage cases How can I develop components based off the base classes when they remain a mystery? Cheers, !k
[flexcoders] Re: System level information in AIR?
As far as I know, this isn't supported. I've submitted an enhancement ticket for some type of generated unique id (since the mac address is considered private data you wouldn't want a flex website to have). It would have to be one-way hashed from something hardware-related like a mac address that won't change very often and is unique. This feature will continue to keep flex behind other languages until it's added. Another option is to look into Artemis, but I'm not sure how deployable this solution is outside of AIR. It'd be nice to have a solution to this problem that works in both Flex and AIR. -Andrew --- In flexcoders@yahoogroups.com, Rick Schmitty [EMAIL PROTECTED] wrote: Is there a way that you could get some kind of unique identifier of the computer via apollo? Like say a computers mac address?
[flexcoders] Re: What is the best way to add a day to a date?
--- In flexcoders@yahoogroups.com, Mark [EMAIL PROTECTED] wrote: I'm getting dates in my XML formatted like this: 2008/12/20 In some cases in my Flex app I need to add 1 day to that date. What is the best way to do that? Right now I'm working it out this way: s = chartDates.getItemAt(0).globalDeadline; a = s.split(/); newDate = a[0]+/+a[1]+/+(Number(a[2])+1); But I'm pretty sure this isn't right. Can someone help out with the code? Thanks -M
[flexcoders] Re: Undo/redo for flex cairngorm
As I'm the author, I'd be interested as well ;). Since we're on the topic, I have a couple of related questions to people: 1) Would a non-cairngorm version of the Undo/Redo framework be useful? 2) Is the GPL License a problem for anybody? I tried initially to remove any dependence on Cairngorm but wasn't quite able to do so. However, it would be almost trivial for me to create a branch of the first that didn't rely on Cairngorm. I also stumbled across an article on the ActionScript design patterns site the other day about using the Memento pattern for undo/redo: http://www.as3dp.com/2008/01/24/actionscript-30-memento-design-pattern-encapsulating-saved-states/ I don't find it particularly well suited for that, but it would actually be a very good way to encapsulate behavior for a single widget. Thanks. --Kaleb --- In flexcoders@yahoogroups.com, mydarkspoon [EMAIL PROTECTED] wrote: Hello, I want to implement an undo/redo mechanism into an existing cairngorm app. I found the flex UndoRedo framework to be quite interesting, but since it's a framework and the operation of implementing the undo-redo is quite a lot of work, I'd be really glad to know what people who tried it think about it. The flex UndoRedo home: http://code.google.com/p/flexundoredo/ Thanks a lot ! Almog Kurtser.
[flexcoders] What is the best way to add a day to a date?
I'm getting dates in my XML formatted like this: 2008/12/20 In some cases in my Flex app I need to add 1 day to that date. What is the best way to do that? Right now I'm working it out this way: s = chartDates.getItemAt(0).globalDeadline; a = s.split(/); newDate = a[0]+/+a[1]+/+(Number(a[2])+1); But I'm pretty sure this isn't right. Can someone help out with the code? Thanks -M
Re: [flexcoders] Tween Class buggy?
On Thursday 07 Feb 2008, Giles Roadnight wrote: For all of the effects I am using a Tween class. I decided to use a tween as I need to move and resize the canvas that slides out. Would a Parellel effect not work as well ? -- Tom Chiverton Helping to conveniently maintain B2C services on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The 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 Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Compilation error when using localization
Hi, I'm trying to compile project with fi_FI locale and I keep getting compilation error 'Unable to resolve resource bundle charts for locale fi_FI'. If I change locale to en_US everything works fine. I'm using Flex 3 beta. Thanks, Tuomas
[flexcoders] flex hibernate probs
Hi. More of the same. Im starting to feel like a spammer. Are there so few people using java and flex? I have been trying for many days to get this working. I want proof of concept of connecting to a hibernate back end with flex front end. I need help! I have an mxml file that specifies a hibernate destination. The data-management-config.xml file is OK (uses HibernateAssembler. I have proven that my hibernate mappings work. (Hibernate is not the problem) I have all the jars in /WEB-INF/lib. (mxml compiles and swf loads). I can load the mxml page but I dont get data... Please help! I can post files if necessary. TIA Kr. Luke Vanderfluit
RE: [flexcoders] Datagrid: how to inline edit entire row
The screenshot you've shown looks like HTML to me, so obviously not a real DataGrid in the Flex sense. With Flex you can make the DataGrid editable so that each cell can view individually selected and edited. If that is what you want to accomplish then read the chapter on ItemRenderers and ItemEditors, it should help you. If it is more complex than that, they I saw place a form at the bottom of the grid that gets shown when the user selected a row. If you do the overlay like some people suggest, just be careful cause the overlayed component will hide some rows. Dimitrios Gianninas RIA Developer and Team Lead Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wwaishan Sent: Wednesday, February 06, 2008 2:44 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Datagrid: how to inline edit entire row Hi. I'm new to Flex. This is what I would like to have but haven't figured out how to implement yet: In my data grid, when the user clicks on a row, the entire row becomes visually editable, not just the cell that was clicked. Within this edit form, there will be other controls like another text input field and Save and Cancel buttons. So I'm asking for a few things. 1. How do I make the entire row visually editable, not just the clicked cell? 2. How do I add other controls to this edit form (like Save/Cancel buttons)? These additional controls would be contained within the same row. I found this screenshot that looks very much to what I'm asking for: http://www.vitalist.com/neteffect/wp-content/images/cobra-preview-3.gif http://www.vitalist.com/neteffect/wp-content/images/cobra-preview-3.gif I searched online but was unable to find a solution. Any suggestions would be appreciated. Thanks. -- 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] Help upgrading to Flex 3
Haven't tried that...I would suggest you use Flex 3 with BlazeDS (the open source version of FDS) since its all free! :) That would be the easiest solution and less headaches. http://labs.adobe.com/technologies/blazeds/ Dimitrios Gianninas RIA Developer and Team Lead Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Body Works Studio Sent: Wednesday, February 06, 2008 3:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Help upgrading to Flex 3 Hello all, I have a j2EE facing web app that is using flex 2.0.1 w/ the fds.swf. I am taking a stab at Flex 3 Beta 3, and wanted to know will Flex three work with fds.swf when you use the 2.0.1 compiler? Thanks Jeff -- 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.
[flexcoders] Re: Flex Interview Questions
Tom makes a good point. It depends on what kind of skills you want to bring in. ecancil's suggestions are ok if you're looking to do a lot of work with custom components. When getting developers to help create standard application, I'd weigh a lot more heavily on the as3 questions. Aside from basic show me how you'd write X algorithm questions, you can ask more in depth ones about the workings of the language: 1) What's the difference between Java and AS3 getters and setters? 2) Explain how binding works in mxml components. 3) What's the difference between ChangeWatcher.watch, and BindingUtils.bindProperty? 4) Why would you want to keep a reference to a ChangeWatcher and call unwatch()? Architecture 5) How do you add event listeners in mxml components. Now AS3 components? 6) What does calling preventDefault() on an event do? How is this enforced? 7) (If applicable) Explain the lifecycle of a Cairngorm action. More 8) What are some ways to specify styles on components? 9) What is the problem with calling setStyle() 10) Explain the difference between creating an effect and setting the target as opposed to adding an effectListener 11) What do repeater components do? 12) How do you identify a component created in a repeater? I'm sure we can come up with plenty more questions. If you want to know the answers to any, simply ask in the forums. Some of these are more open ended. Also, for hit rate I'd expect and medium-level Flex developer to score maybe a 50% if this was a test graded with partial credit. 80-90%+ for experts. -Nick Matelli Amentra, Inc --- In flexcoders@yahoogroups.com, Jeffry Houser [EMAIL PROTECTED] wrote: I'd have an easier time answering the questions as you go 'down' the list. I'd have problems explaining the first one in great detail without references in front of me (even though I deal with that stuff every day). :-) I think it's a great question, though. ecancil wrote: Id say they can answer all of the questions fairly satisfactorily if they're a good candidate. If they have a problem with one of the questions they usually have problems with the rest. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Paul Andrews paul@ wrote: On the basis of these questions, what's the 'hit rate' on suitable applicants? Paul - Original Message - From: ecancil ecancil@ To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Thursday, February 07, 2008 1:53 AM Subject: [flexcoders] Re: Flex Interview Questions I regularly conduct interviews for flex developers My regular questions are to explain the component lifecycle. I ask how invalidate / commitProperties work specifically I ask a lot of questions about dataServices I ask a general understanding of MVC I ask what frameworks they're familiar with --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Jimmi Prajapati jimmi.javaflex@ wrote: Hello Friends, From where can I find Flex Interview Questions. Thanks in Advance. Regards Thanks Jimmi -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Jeffry Houser Adobe Community Expert AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
RE: [flexcoders] Remoting over SSL
Anyone? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Kukiel Sent: Wednesday, 6 February 2008 12:51 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Remoting over SSL Ok I figured it out I removed the endpoint from the RemoteObject tag and it worked. However it won't work when I compile as Air. Is anyone using Remote Objects over SSL in air? Any good references? Paul From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Kukiel Sent: Wednesday, 6 February 2008 10:20 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Remoting over SSL Hi, I'm having an issue using remote objects over ssl. I have got this to work in FireFox but not in IE. I have searched around and have added add-no-cache-headersfalse/add-no-cache-headers to the properties tag of channel-definition but it's still not working. This is the error I am receiving: [RPC Fault faultString=Send failed faultCode=Client.Error.MessageSend faultDetail=Channel.Connect.Failed error NetConnection.Call.Failed. Server is IIS, with CF8. Flex 3 beta. Any idea's? Thanks.
[flexcoders] Re: BlazeDS, pdf generation, et al
Thanks for the reply. I am completely new to programming on the server side working only with stand alone apps in the past. We have no solution in place for PDF generation at the moment on the server. And whatever we do has to be open source. We don't want to send the actual reports via email, just a link for the user to go download it from the server. As far as distributing the data from a requesting client (who wants to create a new auto- generated report) to the server and then from the server out to subscribers who could produce the report for publication, I am a lost. I tried out the BlazeDS trial for datapush and it seems promising, but I have no idea how the messagebroker works really and especially how it might receive data from producers (requesting clients). I've also read a bit on JMS and it looks promising, but seems to be complicated to implement. --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: Does anyone have any experience with BlazeDS? Is it even necessary? Not if polling suffices, or you just email them to the users. And as far as the PDF generation, I had looked into Alive PDF, but is there a better/easier solution? Depends what you have server-side already. -- Tom Chiverton Helping to carefully bully granular design-patterns on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The 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] Multiple NetConnections sometimes fail to load in Firefox
Hello, I ran into an issue with my Flex 2 app running in FireFox. I am using NetConnection to remote data from AMFPHP 1.9 and when the application starts it will start loading a few different pieces simultaneously. I have notice that with FireFox it will only load all the data 2/10 times, while in IE all operations finish 10/10 times. Is this because of the multiprocessing in IE? Is there an easy fix for this, or will I have to make some kind of remote queuing system? Off the top of my head, it seems like it would be a pain. Thanks in advance for any advice! ~Aaron
[flexcoders] Re: private constructor in action script
Yes. So, you still have to check if whatever passed inside the constructor is what you are expecting and not null and throw an error if it is not right. But for most cases, this approach is still better than throwing only a run time error. --- In flexcoders@yahoogroups.com, Maciek Sakrejda [EMAIL PROTECTED] wrote: Determined users can still pass null to the constructor, no? We're currently throwing an exception if the singleton exists and its constructor is invoked, but I suppose this approach is a little cleaner. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: m.ar80 [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: private constructor in action script Date: Thu, 07 Feb 2008 05:41:03 - As of now, it is not possible to declare a constructor private (other than public) in ActionScript 3.0. However, as pointed out, it is possible to achieve the required behavior by using a dummy private class defined outside the package so that no one has access to it outside the file. Passing a dummy instance of this class to the constructor of the singleton class should prevent other users from instantiating the singleton class. Here is a code snippet illustrating the concept: package { class Singleton { private static var theOneAndOnlyInstance:Singleton; public function Singleton(dummy:DummyPrivateClass) { super(); } public static function getInstance():Singleton { if(theOneAndOnlyInstance == null) { theOneAndOnlyInstance = new Singleton(new DummyPrivateClass()); } return theOneAndOnlyInstance; } } } class DummyPrivateClass { public function DummyPrivateClass() { super(); } } HTH.
[flexcoders] defining a javascript function from actionscript?
Hello Is there any way i can make the actionscript/flex code in a swf to insert a javascript function in the wrapper HTML? we have a need to provide a javascript function in the wrapper HTML - instead of having to write a custom HTML that includes the javascript function and the swf, i was wondering if i can leverage the existing wrapper HTML support in FB2 and have the javascript embedded rt into it... thanks vijay
RE: [flexcoders] Extending Base Classes
Actually Im currently using the Scheduling Framework, but have found that it doesnt scale with fluid layouts, which is a big problem in the application Im building. Thanks anyhow, !k _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios Gianninas Sent: Thursday, February 07, 2008 12:08 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Extending Base Classes Cant help with RemoteObject, but for the List based on, use the link below an scroll to the bottom and take a look at the Scheduling framework http://code. http://code.google.com/p/flexlib/wiki/ComponentList google.com/p/flexlib/wiki/ComponentList Dimitrios Gianninas RIA Developer and Team Lead Optimal Payments Inc. _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Aebig Sent: Thursday, February 07, 2008 12:16 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Extending Base Classes Hi Dimitrios, For the List based Component: Im looking to make a component that would be the same as a timesheet. Basically a vertical list of time slots where items can be dragged and resized to reflect time ranges inside of a day. The key with this is that the time ranges could occupy multiple rows at once. A good example would be the day view inside of the Outlook Calendar For RemoteObject: Im looking to extend the RemoteObject class to incorporate a security implementation transparently as well as a more simple interface to make calls with. Thanks, !k _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dimitrios Gianninas Sent: Thursday, February 07, 2008 10:56 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Extending Base Classes can u talk in a bit more detail in both cases of what specific needs u have? Cause for the List based component, maybe an item renderer will solve your problem. Dimitrios Gianninas RIA Developer and Team Lead Optimal Payments Inc. _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Aebig Sent: Thursday, February 07, 2008 11:13 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Extending Base Classes Hey all, I have a couple components I'd like to develop and use some of the base classes to do it. The only issue I'm having is because we can't see the inner workings of some of the base classes, it makes it more difficult to know how to extend off of them, or which is the best for the job. Some examples of what I mean: - A list based component, but needing more flexibility and customizations than an altered Listbox could give me - A RemoteObject Class with added additional features and specific usage cases How can I develop components based off the base classes when they remain a mystery? Cheers, !k AVIS IMPORTANT WARNING 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. 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.
RE: [flexcoders] RemoteObject question
You are on base yes, look at BlazeDS it does exacty what you want: http://labs.adobe.com/technologies/blazeds/ Dimitrios Gianninas RIA Developer and Team Lead Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [p e r c e p t i c o n] Sent: Thursday, February 07, 2008 12:16 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] RemoteObject question perhaps i should be more specific...i have a j2EE server and i want to use the RemoteObject to call methods on pojos...how do i achieve this...are there any articles that speak to this...i read some that mentioned flex data services but i don't think i need this do i? in flash i've used open amf, but it looks like RemoteObject takes care of that for me am i completely off base or what? thanks so much On Feb 7, 2008 7:25 AM, Jeffry Houser [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Yes Google ColdFusion and/or WebORB. It seems likely that BlazeDS may have support for RemoteObject, but I haven't researched it. [p e r c e p t i c o n] wrote: Dear Friends, Is it possible to use RemoteObject without using flex data services? can some one point me to some tutorials or other resources? thanks p -- Jeffry Houser Adobe Community Expert AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com http://www.dot-com-it.com My Podcast: http://www.theflexshow.com http://www.theflexshow.com My Blog: http://www.jeffryhouser.com http://www.jeffryhouser.com -- 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.
[flexcoders] Re: ColumnChart - creating multiple Linear Axis via ActionScript - Help!
I see the step I missed. Much appreciated Sunil. -Eddie --- In flexcoders@yahoogroups.com, Sunil Bannur [EMAIL PROTECTED] wrote: Just use the following, p is the panel and h1 is the horizontal Axis, I'm using the same axis created by your code snippet, also changed the width, height of the other chart to 50% to make some room for this chart. private function init():void { var c:ColumnChart = new ColumnChart(); c.dataProvider = expensesAC; c.width = linechart.width; c.height = linechart.height; c.horizontalAxis = h1; c.verticalAxis = v1; var s1:ColumnSeries = new ColumnSeries(); s1.yField = Profit; var s2:ColumnSeries = new ColumnSeries(); s2.yField = Expenses; s2.verticalAxis = v2; c.series = [s1,s2]; var ar1:AxisRenderer = new AxisRenderer(); ar1.axis = v1; var ar2:AxisRenderer = new AxisRenderer(); ar2.axis = s2.verticalAxis; var ar3:AxisRenderer = new AxisRenderer(); ar3.axis = h1; c.horizontalAxisRenderers = [ar3]; c.verticalAxisRenderers = [ar1,ar2]; p.addChild(c); } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of EddieBerman Sent: Thursday, February 07, 2008 6:18 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ColumnChart - creating multiple Linear Axis via ActionScript - Help! I'm having difficulty understanding how to create, via AS3, a ColumnChart that contains multiple verticalAxis. I'm familiar with the sample program MultipleAxis provided by Adobe, but can't correctly translate this to AS3 code. All is good until I need to create and set the multiple AxisRenderer objects. Can anyone more familiar give me a suggestion, or point to any reference material for doing this in AS3? Thanks. I've pasted the Adobe MXML sample code below that I'd like to replicate: mx:ColumnChart id=linechart height=100% width=100% paddingLeft=5 paddingRight=5 showDataTips=true dataProvider={expensesAC} mx:horizontalAxis mx:CategoryAxis categoryField=Month/ /mx:horizontalAxis mx:verticalAxis mx:LinearAxis id= v1/ /mx:verticalAxis mx:verticalAxisRenderers mx:AxisRenderer axis = {v1}/ mx:AxisRenderer axis = {v2}/ /mx:verticalAxisRenderers mx:series mx:ColumnSeries yField=Profit displayName=Profit itemRenderer=mx.charts.renderers.CircleItemRenderer /mx:ColumnSeries mx:ColumnSeries yField=Expenses displayName=Expenses itemRenderer=mx.charts.renderers.CircleItemRenderer mx:verticalAxis mx:LinearAxis id = v2 / /mx:verticalAxis /mx:ColumnSeries /mx:series /mx:ColumnChart
RE: [flexcoders] Scrolling a list in firefox with the mouse wheel
For those with this problem in the future I figured it out. I added the wmode=transparent to the embed tag to fix a bug in IE not letting HTML hover over the flash object, but this had a adverse side affect on Firefox disabling the wheel mouse scrolling. So I modified my code to only add the parameter when IE and then everything worked as expected. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jerry DuVal Sent: Thursday, February 07, 2008 4:23 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Scrolling a list in firefox with the mouse wheel When scrolling a mx:list in Firefox using the mouse wheel , the flash object always loses focus and the browser scrolls the html page up and down instead of the list. This is a embedded app. IE works perfect, any idea's? Jerry DuVal Pace Systems Group, Inc. 800.624.5999 www.Pace2020.com
RE: [flexcoders] defining a javascript function from actionscript?
if (ExternalInterface.available) { ExternalInterface.call(''); } you can use ExternalInterface.call in actionscript to call any java script function. The javascript can be wrapped in script block of index.template.html. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of vijay95052 Sent: 08 February 2008 1:40 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] defining a javascript function from actionscript? Hello Is there any way i can make the actionscript/flex code in a swf to insert a javascript function in the wrapper HTML? we have a need to provide a javascript function in the wrapper HTML - instead of having to write a custom HTML that includes the javascript function and the swf, i was wondering if i can leverage the existing wrapper HTML support in FB2 and have the javascript embedded rt into it... thanks vijay attachment: ~WRD001.jpg attachment: image001.jpg attachment: image002.jpg
RE: [flexcoders] Re: Display Custom ItemRenderer based on previous value in List
Add verticalScrollPosition to get the DP index From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Sent: Thursday, February 07, 2008 2:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Display Custom ItemRenderer based on previous value in List Maybe I am just being dense, but I can't figure out how rowIndex helps me since it is relative to the display on the screen and what i really need is to know the index of the current item relative to it's position in the data provider. For example, if I have 3 rows displayed (but 20 items in the ArrayCollection) and I get a rowIndex of 2, all that tells me is that this item is in the third row on the screen. However, that doesn't mean that it is the third item in the dataProvider so this, _listData.owner.dataProvider.getItemAt(listData.rowIndex - 1) would not necessarily lead me to the previous item. Of course, I could scan through the dataProvider each time to try to get the index of the current data item, but that seems extremely inefficient. BTW, I also noticed that the docs refer to the first item in the list as index 1, but in my testing it seemed like this is a zero based index. Am I misreading the docs or are they wrong? rowIndex --- The index of the row of the DataGrid, List, or Tree control relative to the currently visible rows of the control, where the first row is at an index of 1. For example, you click on an item in the control and rowIndex is set to 3. You then scroll the control to change the row's position in the visible rows of the control, and then click on the same row as before. The rowIndex now contains a different value corresponding to the new index of the row in the currently visible rows. - Kevin --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Eric Cancil [EMAIL PROTECTED] wrote: listData.rowIndex = indispensable On Feb 6, 2008 7:16 PM, Alex Harui [EMAIL PROTECTED] wrote: If you assume Arrays, and you can efficiently find the index, then you can use getItemAt to get the previous item. listData.rowIndex might be useful -- *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] *On Behalf Of *Kevin *Sent:* Wednesday, February 06, 2008 1:24 PM *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* [flexcoders] Display Custom ItemRenderer based on previous value in List I am trying to solve a certain design problem and am not sure how to approach this. I have a List control which displays data using a custom ItemRenderer. I currently listen for a dataChange event and set different properties of the ItemRenderer based on the data that is being set. That all works fine. (although it could use some refactoring for performance). However, I now want to set some additional properties based on how this data compares to the data of the previous item in the list's dataProvider. I am struggling to find the best way to do this. I can get access to the DataProvider though this.owner.dataProvider, but then I would need to set up a new cursor, find the current item in the list and then movePrevious() to compare to the previous item. Of course this would have to happen each time they renderer was created for a new item in the list. Can anyone think of another more efficient way to achieve this? Along the same lines, it would also be nice to create separators in List controls, but I haven't figured a way to do this either. For example, if you are displaying a list of 20 scheduled events, it would be nice to be able to create separator for each different day that the events happen on. I am guessing I may have to look into extending the List component for this. - Kevin
[flexcoders] Re: Question on using RPC WebService Call
For more details on what's happening, I hope I don't confuse the situation with too much data here: I have a delegate that has a method called GetData and GetData2: public function GetData():void { var token:AsyncToken = ws.GetData(); token.addResponder(this.responder); } public function GetData(nodeId:Object = null):void { var token:AsyncToken = ws.GetData(nodeId); token.addResponder(this.responder); } I've declared a WebService in Both MXML and in Actionscript: WebServiceRPC WebServiceMXML I then call every combination of the two methods: WebServiceRPC-GetData (Doesn't even call to the server, doesn't fail. I suspect something is happening in the SOAPEncoder, though it's not throwing errors, just silently dying. I'm hoping to figure out why/how to get it to throw errors. Its silence is disturbing.) WebServiceMXML-GetData works just fine. WebServiceRPC-GetData2(null) - SoapFault is raised because the server doesn't recognize the request. WebServiceRPC-GetData2(1) - Returns expected Soap Envelope from the Server WebServiceMXML-GetData2(null) - Returns proper SoapFault, just like with WebServiceRPC call above. WebServiceRPC-GetData2(1) - Returns expected Soap Envelope from the Server , just like WebServiceRPC call above I'm trying to figure out how to call the WebServiceRPC-GetData so it doesn't break (it's not throwing a fault), like it doesn't with the WebServiceMXML. I guess I'm looking for a strategy for passing optional parameters from Flex up to WebServices declared in Actionscript code (RPC). Here's the WSDL defenition of GetData, as you can see it has both min and maxOccurs set: element name=GetData annotation documentation Blah /documentation /annotation complexType sequence element maxOccurs=1 minOccurs=0 name=nodeId type=long /element /sequence /complexType /element
Re: [flexcoders] HTTPService or URLRequest Request header Question
this is true, you can't use authorization token in headers anymore within Flash Player. This is big step backwards in my opinion -- João Fernandes http://www.onflexwithcf.org http://www.riapt.org
[flexcoders] Flex 3 Beta 3 Problem with ImageSnapshot, IE crash when image is too big.
I created a button that when clicked, capture an image of a chart, encode it into base64 format and then send it out to a webservice. The problem i'm having is that when the image size seem to go close to 100k, the whole browser crash when running this line: encodedData = ImageSnapshot.encodeImageAsBase64(ohSnap); If the image is 80k or less, it doesnt crash. Has anyone else experienced this problem. Thanks public var ohSnap:ImageSnapshot = new ImageSnapshot; [Bindable] public var encodedData:String private const pngEnc:PNGEncoder = new PNGEncoder(); private const jpgEnc:JPEGEncoder = new JPEGEncoder(); private function captureImg():void { ohSnap = ImageSnapshot.captureImage(containerChart1, 0, jpgEnc, true); encodedData = ImageSnapshot.encodeImageAsBase64(ohSnap); }
[flexcoders] Re: BlazeDS, pdf generation, et al
maybe you could take a look at SHARE... it has an actionscript api for uploading and downloading documents, plus other functionality and give you links so you can access the docs later... its in beta but seems interesting http://labs.adobe.com/technologies/share/ HTH Gus --- In flexcoders@yahoogroups.com, netdeep [EMAIL PROTECTED] wrote: Thanks for the reply. I am completely new to programming on the server side working only with stand alone apps in the past. We have no solution in place for PDF generation at the moment on the server. And whatever we do has to be open source. We don't want to send the actual reports via email, just a link for the user to go download it from the server. As far as distributing the data from a requesting client (who wants to create a new auto- generated report) to the server and then from the server out to subscribers who could produce the report for publication, I am a lost. I tried out the BlazeDS trial for datapush and it seems promising, but I have no idea how the messagebroker works really and especially how it might receive data from producers (requesting clients). I've also read a bit on JMS and it looks promising, but seems to be complicated to implement. --- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiverton@ wrote: Does anyone have any experience with BlazeDS? Is it even necessary? Not if polling suffices, or you just email them to the users. And as far as the PDF generation, I had looked into Alive PDF, but is there a better/easier solution? Depends what you have server-side already. -- Tom Chiverton Helping to carefully bully granular design-patterns on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The 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] Re: BlazeDS, pdf generation, et al
Hi, if you use BlazeDS you can use RemoteObjects. You can directly trigger RemoteObjects in your AS3 classes. RemoteObjects are JavaObjects in BlazeDS. For PDF creation you could have a look at ujac. For our reporting project we use BlazeDS in combination with ujac and it works fine. Regards, Christoph netdeep schrieb: Thanks for the reply. I am completely new to programming on the server side working only with stand alone apps in the past. We have no solution in place for PDF generation at the moment on the server. And whatever we do has to be open source. We don't want to send the actual reports via email, just a link for the user to go download it from the server. As far as distributing the data from a requesting client (who wants to create a new auto- generated report) to the server and then from the server out to subscribers who could produce the report for publication, I am a lost. I tried out the BlazeDS trial for datapush and it seems promising, but I have no idea how the messagebroker works really and especially how it might receive data from producers (requesting clients). I've also read a bit on JMS and it looks promising, but seems to be complicated to implement. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: Does anyone have any experience with BlazeDS? Is it even necessary? Not if polling suffices, or you just email them to the users. And as far as the PDF generation, I had looked into Alive PDF, but is there a better/easier solution? Depends what you have server-side already. -- Tom Chiverton Helping to carefully bully granular design-patterns on: http://thefalken.livejournal.com http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The 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] Generated Digitally Signable PDF's
Doesn't LiveCycle have an option to do that? - Original Message From: Nick [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, February 7, 2008 3:48:37 PM Subject: [flexcoders] Generated Digitally Signable PDF's Hello all! I am currently working on a project that will require the generation of a PDF from a Microsoft Word file. I am developing a Flex front end to enable users to upload documents to a document server for which they will be saved in PDF format. Due to regulatory reason these PDF's should be signable with a digital signature. Does anyone here know of any tools to accomplish this? Thanks. Nick Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
[flexcoders] Question on using RPC WebService Call
Hello I have 2 Questions 1) I notice that when using mx.rpc.soap.WebService (instead of mx.rpc.soap.mxml.WebService) that there's no property resultFormat. Is there a way for my RPC-based WebService to return e4x? Or, do I manually do the conversion 2) When using the mxml.WebService, do I have to declare all the Operations and Requests? It seems with the rpc-based Webservice, it can dynamically inspect the WebService. The reason I'm asking is that I'm having difficulties passing an optional parameter through the WebService. When using MXML--based WebService, with Operations declared in MXML, the SoapEncoder creates a proper request when omitting that optional parameter. However, the rpc-WebService blows up, never returning, with the SoapEncoder swallowing the error. I'm also asking because we have a lot of web services with a lot of calls that we're integrating, and WSDL import tool doesn't work for us...and we have a lot of WebServices and operations we're bringing into the application, further compounded by the fact that the WebServices are constantly changing through the development environment. Thanks for any insight.
[flexcoders] Generated Digitally Signable PDF's
Hello all! I am currently working on a project that will require the generation of a PDF from a Microsoft Word file. I am developing a Flex front end to enable users to upload documents to a document server for which they will be saved in PDF format. Due to regulatory reason these PDF's should be signable with a digital signature. Does anyone here know of any tools to accomplish this? Thanks. Nick
Re: [flexcoders] defining a javascript function from actionscript?
This seems to work: 1) Create a function called 'hello'. 2) Call it with a parameter. ExternalInterface.call( eval, window.hello = function( who ) { alert( who ); } ); ExternalInterface.call( hello, Mark ); -Mark On Feb 7, 2008, at 2:10 PM, vijay95052 wrote: Hello Is there any way i can make the actionscript/flex code in a swf to insert a javascript function in the wrapper HTML? we have a need to provide a javascript function in the wrapper HTML - instead of having to write a custom HTML that includes the javascript function and the swf, i was wondering if i can leverage the existing wrapper HTML support in FB2 and have the javascript embedded rt into it... thanks vijay
[flexcoders] assertion in flexunit testcases using cairngorm
how to put assertion in flexunit testcases using cairngorm? Issue:we are using cairngorm with flex unit test cases then the test cases are getting executed before the result method of the command class as we are implementing IResponder interface, because of which we are having problem putting assertions in the test case methods.
[flexcoders] Scrolling a list in firefox with the mouse wheel
When scrolling a mx:list in Firefox using the mouse wheel , the flash object always loses focus and the browser scrolls the html page up and down instead of the list. This is a embedded app. IE works perfect, any idea's? Jerry DuVal Pace Systems Group, Inc. 800.624.5999 www.Pace2020.com
RE: [flexcoders] What is the best way to add a day to a date?
Yeah, that works too... =] !k -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: Thursday, February 07, 2008 4:16 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] What is the best way to add a day to a date? or: var ms:Number = 24*60*60*1000; var d:String = 2008/12/20; var newDate:Date = new Date(Date.parse(d)+ms); - Original Message - From: Kevin Aebig [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, February 07, 2008 6:19 PM Subject: RE: [flexcoders] What is the best way to add a day to a date? Create a date object with the string, than add the day to it like this: newDate = new Date(a[0], a[1], a[2]); newDate.seconds += 8640; // seconds in a day or (60*60*24) !k -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
Re: [flexcoders] Re: BlazeDS, pdf generation, et al
netdeep wrote: Thanks for the reply. I am completely new to programming on the server side working only with stand alone apps in the past. We have no solution in place for PDF generation at the moment on the server. And whatever we do has to be open source. I'd recommend iText for server side PDF Generation. -- Jeffry Houser Adobe Community Expert AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
Re: [flexcoders] Re: is this how to use commitProperties
but wouldnt that take more memory? - Original Message From: Eric Cancil [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, February 7, 2008 1:50:16 PM Subject: Re: [flexcoders] Re: is this how to use commitProperties It may be more code - But not only is it best practices, it's also using the framework to your advantage, and is far more efficient. On Feb 7, 2008 2:19 PM, Merrill, Jason jason.merrill@ bankofamerica. com wrote: My opinion is that is a lot of code to wade through! Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of Sherif Abdou Sent: Thursday, February 07, 2008 1:36 PM To: [EMAIL PROTECTED] ups.com Subject: Re: [flexcoders] Re: is this how to use commitProperties so good? bad? any opinions? - Original Message From: Sherif Abdou [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com Sent: Wednesday, February 6, 2008 9:53:43 PM Subject: Re: [flexcoders] Re: is this how to use commitProperties if anyone cares to check, is this how your suppose to do the stuff or is it overkill. This is a Tab that contains a Close Button so if the user clicks on the close Button then the tab gets removed and depending on the policy that gets picked it reacts. package flexlib.controls. tabBarClasses { import flash.display. DisplayObject; import flash.events. Event; import flash.events. MouseEvent; import flexlib.constants. AdvancedTabConst ant; import flexlib.interfaces. ICustomComponent Styles; import mx.controls. Button; import mx.controls. tabBarClasses. Tab; import mx.core.UIComponent ; /** * The Style For the Close Button that will be used */ [ Style(name=tabCloseButtonStyl eName,type=String, inherit=no)] /** * The Style that is used for the indicator, it will be an image */ [ Style(name=indicatorClass, type=String, inherit=no)] public class AdvancedTab extends Tab implements ICustomComponentSty les { /** * Flag to Know if the Button has been created or not */ private var _closeButtonCreated :Boolean; /** * The Button that will aid us in closing the Tab AKA removing it from the scene */ private var closeButton: Button; /** * The Display Indicator that gets seen between the tabs when we move them */ private var indicatorDisplay: UIComponent; public function AdvancedTab( ) { super(); //enable Mouse Children so we can Have Interaction with the Buttons //and other Stuff that will be placed on the Tab, by Default it is false //reason is if there is a textField in the Tab then a click may be dispatched or //heard in the textField instead of the Tab itself and sometimes you dont want that to //happen. mouseChildren= true; } /** * Used to Determine whether or not there was a change in the Close Policy */ private var _closePolicyChanged :Boolean; /** * Internal Value for the ClosePolicy so we can react * accordingly */ private var _closePolicy: String; [ Inspectable(defaultValue=close_always,enumeration=close_always, close_rollover, close_never, close_selected)] public function set closePolicy( value:String) :void{ if(_closePolicy !=value){ _closePolicy= value; _closePolicyChanged = true; invalidatePropertie s(); dispatchEvent( new Event(closePolicyChanged )); } } [ Bindable(event=closePolicyChanged )] public function get closePolicy( ):String{ return _closePolicy; } /** * Override the CreateChildren so we can create the Close Button, Only Create Children * and nothing else, can't size them or position them */ override protected function createChildren( ):void{ //call the super method so the other stuff gets constructed like //the Button itself and all the other stuff that creates the Tab super.createChildren( ); //always check if the Button is not made if(!closeButton) { //safe now we can create it closeButton = new Button(); //listen for the click event so we know when to close the tab closeButton. addEventListener (MouseEvent. CLICK,onCloseBut tonClickHandler) ; //hide the close button closeButton. visible= false; _closeButtonCreated = true; addChild(closeButto n); } /** * Used to Display the Indicator, first get the Style as a class * then what you would need to do is create the style as a class */ if(!indicatorDisplay) { indicatorDisplay = new UIComponent( ) addChild(indicatorD isplay as DisplayObject) ; } //call to set the styles setCustomStyles( ); } /** * Called On when the User Clicks on the Close Button, * all we are going to do is dispatch that the user * wants to close the tab and handle in the AdvanedTabBar * so it gets removed cleanly */ private function onCloseButtonClickH andler(event: MouseEvent) :void{ dispatchEvent( new Event(AdvancedTabCo nstant.CLOSE_ TAB)); } /** * Override the measure to set the compenents custom size * We set the Close Button Size here and the Indicator?? */ override protected function
[flexcoders] handling events from embedded swf assets
I have a as3 swf w/ various movie clip assets in it. Some of them are dispatching bubbling events that I want to listen for in order to unload those assets afterwards. In the flex app I have an AssetImporter class that has bindable prop like so: [Bindable] [Embed(source=assets/swf/someSwf.swf, symbol=someMC)] public var someSprite:Class; Now on the end frame of the someMC, its dispatching a new Event(movieClipEnded, true, true); I want to be able to listen to this from the Flex app and load a different embedded asset after the event is dispatched. On the app I am listening for an event of the same type which is expected to be bubbling up through the display architecture. a) is this possible, it doesn't seem likely since Flex seems to be ignoring it and the mc fails to stop() b) if so, what is the syntax for doing so?
Re: [flexcoders] pass Array from Flex to cfc and pass Array from cfc to Flex?
cffunction nameGetArray returntype=array access=Remote !--- CF Code to create and populate an array -- cfreturn myArray /cffunction Then use RemoteObject in Flex to call the GetArray method on your CFC. In the result handler you can access the array in the result parameter of the result object. Did you have a specific problem or question? markflex2007 wrote: Hi, The index start from 0 in Flex and index start from 1 in Coldfusion. How to pass array between Flex and CFC? Please give me a idea. Thanks Mark -- Jeffry Houser Flex, ColdFusion, AIR AIM: Reboog711 | Phone: 1-203-379-0773 -- Adobe Community Expert http://www.adobe.com/communities/experts/members/JeffryHouser.html My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
Re: [flexcoders] defining a javascript function from actionscript?
Hello, Something like listed below should work with IE browser: ... ExternalInterface.call(eval, f1=function(x){alert(''+x);}); ExternalInterface.call(f1, 123); ... -- Thanks, Vadim. - Original Message - From: vijay95052 To: flexcoders@yahoogroups.com Sent: Thursday, February 07, 2008 10:10 PM Subject: [flexcoders] defining a javascript function from actionscript? Hello Is there any way i can make the actionscript/flex code in a swf to insert a javascript function in the wrapper HTML? we have a need to provide a javascript function in the wrapper HTML - instead of having to write a custom HTML that includes the javascript function and the swf, i was wondering if i can leverage the existing wrapper HTML support in FB2 and have the javascript embedded rt into it... thanks vijay
[flexcoders] Re: Question on using RPC WebService Call
In regards to my first part, I'm aware that I can cast from ObjectUtil to XMLList, I guess I'm more curious on the differences in implementation between rpc and mxml-based WebService. --- In flexcoders@yahoogroups.com, Todd [EMAIL PROTECTED] wrote: Hello I have 2 Questions 1) I notice that when using mx.rpc.soap.WebService (instead of mx.rpc.soap.mxml.WebService) that there's no property resultFormat. Is there a way for my RPC-based WebService to return e4x? Or, do I manually do the conversion 2) When using the mxml.WebService, do I have to declare all the Operations and Requests? It seems with the rpc-based Webservice, it can dynamically inspect the WebService. The reason I'm asking is that I'm having difficulties passing an optional parameter through the WebService. When using MXML--based WebService, with Operations declared in MXML, the SoapEncoder creates a proper request when omitting that optional parameter. However, the rpc-WebService blows up, never returning, with the SoapEncoder swallowing the error. I'm also asking because we have a lot of web services with a lot of calls that we're integrating, and WSDL import tool doesn't work for us...and we have a lot of WebServices and operations we're bringing into the application, further compounded by the fact that the WebServices are constantly changing through the development environment. Thanks for any insight.
[flexcoders] CellRenderer in AS3/Flex 2 vs. Flash 8/AS2
Does anyone know if the CellRenderer for datagrids in AS3/Flex 2 framework has been improved and made easier to code than it was in AS2/Flash 8 framework? Reason I ask is, I used it extensively in an AS2 project I worked on, and while I got it to work, it was a royal pain to figure out and get it working, and still it seemed a little buggy. Rendering the cells with things like checkboxes was easy, but making the rendered components and other UI items interactive with data was difficult. I'm considering doing it again for a project, but am a little gun-shy based on my past experience with it. Does anyone know if this been improved in the AS3/Flex 2 framework? Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community
Re: [flexcoders] What is the best way to add a day to a date?
or: var ms:Number = 24*60*60*1000; var d:String = 2008/12/20; var newDate:Date = new Date(Date.parse(d)+ms); - Original Message - From: Kevin Aebig [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, February 07, 2008 6:19 PM Subject: RE: [flexcoders] What is the best way to add a day to a date? Create a date object with the string, than add the day to it like this: newDate = new Date(a[0], a[1], a[2]); newDate.seconds += 8640; // seconds in a day or (60*60*24) !k -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Generated Digitally Signable PDF's
I believe that PDFs, by their very nature, can be digitially signed. I personally use Adobe Acrobat to do so. Were you looking for a server side solution to digitally sign PDF documents? You might look into LiveCycle, although I do not know if this is supported. The thought of a computer program signing my name automatically gives me the willies. Nick wrote: Hello all! I am currently working on a project that will require the generation of a PDF from a Microsoft Word file. I am developing a Flex front end to enable users to upload documents to a document server for which they will be saved in PDF format. Due to regulatory reason these PDF's should be signable with a digital signature. Does anyone here know of any tools to accomplish this? Thanks. Nick -- Jeffry Houser Flex, ColdFusion, AIR AIM: Reboog711 | Phone: 1-203-379-0773 -- Adobe Community Expert http://www.adobe.com/communities/experts/members/JeffryHouser.html My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
Re: [flexcoders] question on text encoding
There are several JS based sanity checks out on the web that you can adopt to AS. One important factor is preserving UTF8 once you have it in Flex. All data transactions as well, should be UTF8. For example: your server-side script (bi-directionally) for UTF8 And your database should be setup for UTF8. If you are using PHP you can add iconv_set_encoding(input_encoding, UTF-8); iconv_set_encoding(output_encoding, UTF-8); iconv_set_encoding(internal_encoding, UTF-8); to the beginning of your scripts. Alternatively, you can use mySQL_query(SET NAMES UTF8) in your server-side scripts. HTH Body Works Studio wrote: Hello all, I wanted to know is it possible for flex to determine what encoding the text being entered in to a textInput, textArea, or HTMLTextInput is using. Thr concern is a user copies and pastes in text from say a Microsoft product. The reason I ask is we have UTF8 encoding for the project, and sometimes text appears as a black rectangle. Ideally I would like to run a function at focusOut that would confirm .text. Thanks for your time Jeff -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
RE: [flexcoders] createPopUp question
Try this: var helpWindow:WhatToShow = WhatToShow(PopUpManager.createPopUp(parent, WhatToShow, true); PopUpManager.centerPopUp(helpWindow); Paul. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Friday, 8 February 2008 4:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] createPopUp question Sorry have to ask that again. How can I make this function working: public function showPopupWindow(parent:DisplayObject, WhatToShow:String):void { var helpWindow:TitleWindow = TitleWindow(PopUpManager.createPopUp(parent, WhatToShow, true)); PopUpManager.centerPopUp(helpWindow); } createPopUp does not take WhatToShow as a parameter. Thanks for help.
Re: [flexcoders] HTTP requests security
If I do the following: 1) Compile a Flex application with some password stored in a variable 2) Publish the SWF file on the web 3) Send the password from running application over the wire via HTTPS is it possible for a hacker to somehow find out this password? Decompile SWF or something? Yes, it would be quite easy to extract the password. Stephen
RE: [flexcoders] mx:Module problem
Make sure you can use HTTPService in a regular (no modules) application so you know you are using it correctly. Then when you move it to a module, you'll either have to move the entire service or get a reference to the shared service in the main app. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Swamy Nathan Sent: Thursday, February 07, 2008 12:25 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] mx:Module problem Hi Folks, i am swaminathan, new enrty to flex2. i am using the menubar in my application, its is used to navigate many forms. am using the modules for each form. and i want to update the form entry to database... am using httpservice in module. the compilation error will occur. Parse error faultstring HttpService my goal is to click the menu items to show the various forms and to update to database using httpservice. how can i show the forms and database access, httpservice. please help me to find out. -- Thanks Regards Swaminathan. M
Re: [flexcoders] Some Advises.
Hi Abdullah, I have this error when I starget getting in your website: TypeError: Error #1009: Cannot access a property or method of a null object reference. at Comp::Home/creationCompleteHandler() at Comp::Home/___Operation1_result() at flash.events::EventDispatcher/ flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/ internal::dispatchRpcEvent() at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/ internal::resultHandler() at mx.rpc::Responder/result() at mx.rpc::AsyncRequest/acknowledge() at ::DirectHTTPMessageResponder/completeHandler() at flash.events::EventDispatcher/ flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/flash.net:URLLoader::onComplete() then when I click on the others tabs, happens other errors. How you managed to change the backgrounds and the animations, when the state change on the flex? Regards Gustavo On Feb 6, 2008, at 3:08 AM, NileAge, Mail wrote: http://www.nileage.org/IndexHome.html Gustavo A. Duenas Creative Director LEFT AND RIGHT SOLUTIONS 904. 265 0330 - 904. 386 7958 www.leftandrightsolutions.com Jacksonville - Florida
[flexcoders] Flex3beta3 - Any way to get stacked columns to select as one?
I like the new selection support, but one thing kind of bothers me. As of yet, I have found no way to select a stacked column series as a single unit. I think it would be nice to be able to set it so that rather than selecting different pieces of the stack, it selected the whole thing. Is there already a way to do this? Any pointers on how to kludge it in? I'd like both the rollover and the selection to do the same for every chunk of the column. -- Jason
Re: [flexcoders] Re: is this how to use commitProperties
It may be more code - But not only is it best practices, it's also using the framework to your advantage, and is far more efficient. On Feb 7, 2008 2:19 PM, Merrill, Jason [EMAIL PROTECTED] wrote: My opinion is that is a lot of code to wade through! Jason Merrill *Bank of America * GTO LLD Solutions Design Development eTools Multimedia *Bank of America Flash Platform Developer Community* -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Sherif Abdou *Sent:* Thursday, February 07, 2008 1:36 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: is this how to use commitProperties so good? bad? any opinions? - Original Message From: Sherif Abdou [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, February 6, 2008 9:53:43 PM Subject: Re: [flexcoders] Re: is this how to use commitProperties if anyone cares to check, is this how your suppose to do the stuff or is it overkill. This is a Tab that contains a Close Button so if the user clicks on the close Button then the tab gets removed and depending on the policy that gets picked it reacts. * package * flexlib.controls. tabBarClasses { *import* flash.display. DisplayObject; *import* flash.events. Event; *import* flash.events. MouseEvent; *import* flexlib.constants. AdvancedTabConst ant; *import* flexlib.interfaces. ICustomComponent Styles; *import* mx.controls. Button; *import* mx.controls. tabBarClasses. Tab; *import* mx.core.UIComponent ; /** * The Style For the Close Button that will be used */ [ *Style*(name=*tabCloseButtonStyl eName*,type=*String*, inherit=*no* )] /** * The Style that is used for the indicator, it will be an image */ [ *Style*(name=*indicatorClass*, type=*String*, inherit=*no*)] *public* *class* AdvancedTab *extends* Tab *implements*ICustomComponentSty les { /** * Flag to Know if the Button has been created or not */ *private* *var* _closeButtonCreated :Boolean; /** * The Button that will aid us in closing the Tab AKA removing it from the scene */ *private* *var* closeButton: Button; /** * The Display Indicator that gets seen between the tabs when we move them */ *private* *var* indicatorDisplay: UIComponent; *public* *function* AdvancedTab( ) { *super*(); *//enable Mouse Children so we can Have Interaction with the Buttons* *//and other Stuff that will be placed on the Tab, by Default it is false* *//reason is if there is a textField in the Tab then a click may be dispatched or* *//heard in the textField instead of the Tab itself and sometimes you dont want that to* *//happen.* mouseChildren= *true*; } /** * Used to Determine whether or not there was a change in the Close Policy */ *private* *var* _closePolicyChanged :Boolean; /** * Internal Value for the ClosePolicy so we can react * accordingly */ *private* *var* _closePolicy: String; [ *Inspectable*(defaultValue=*close_always*,enumeration=*close_always, close_rollover, close_never, close_selected*)] *public* *function* *set* closePolicy( value:String) :*void*{ *if*(_closePolicy !=value){ _closePolicy= value; _closePolicyChanged = *true*; invalidatePropertie s(); dispatchEvent( *new* Event(*closePolicyChanged *)); } } [ *Bindable*(event=*closePolicyChanged *)] *public* *function* *get* closePolicy( ):String{ *return* _closePolicy; } /** * Override the CreateChildren so we can create the Close Button, Only Create Children * and nothing else, can't size them or position them */ *override* *protected* *function* createChildren( ):*void*{ *//call the super method so the other stuff gets constructed like * *//the Button itself and all the other stuff that creates the Tab* *super*.createChildren( ); *//always check if the Button is not made* *if*(!closeButton) { *//safe now we can create it* closeButton = *new* Button(); *//listen for the click event so we know when to close the tab* closeButton. addEventListener (MouseEvent. CLICK,onCloseBut tonClickHandler) ; *//hide the close button* closeButton. visible= *false*; _closeButtonCreated = *true*; addChild(closeButto n); } /** * Used to Display the Indicator, first get the Style as a class * then what you would need to do is create the style as a class */ *if*(!indicatorDisplay) { indicatorDisplay = *new* UIComponent( ) addChild(indicatorD isplay *as* DisplayObject) ; } *//call to set the styles* setCustomStyles( ); } /** * Called On when the User Clicks on the Close Button, * all we are going to do is dispatch that the user * wants to close the tab and handle in the AdvanedTabBar * so it gets removed cleanly */ *private* *function* onCloseButtonClickH andler(event: MouseEvent) :*void*{ dispatchEvent( *new* Event(AdvancedTabCo nstant.CLOSE_ TAB)); } /** * Override the measure to