RE: [flexcoders] Profiler telling lies?
Yeah, we went on that particular sweep ages ago... Developers now get beatings if they don't use weak listeners ;) Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Mark Doberenz Sent: 05 May 2009 16:04 To: flexcoders@yahoogroups.com Cc: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Profiler telling lies? Check your event listeners because if you're not using weak references then the garbage collector won't remove it. Disregard if you already knew that one :)
[flexcoders] Re: Advanced Data Grid - A working Demo for LockedRowCount property needed
Thank you, I hadn't look there but that explains..very clearly. I can see the logical difficulty to define this property while with hierarchical data. Anyway you helped me very much out of this. And I have to express my thanks to all the contributors of this great forum of dedicated Flex developers for all the help they offer. Thanks all George --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: Basically, lockedRowCount does not do anything if the AdvancedDataGrid is displaying hierachical data. If you have a look at the AdvancedDataGrid code you will see this comment before the get lockedRowCount() function: // if dataProvider is hierarchical, return 0 // because lockedRowCount has no effect in a hierarchical display --- In flexcoders@yahoogroups.com, grg_blls grg_blls@ wrote: Hi, thanks for the working example. Your example displays a flat Data type, though I was trying to have LockedRowCount property work with Hierarchical Data type displayed, without success. Is it that AdvancedDataGrid doesn't support this property if displaying hierachical data (my prime reason for using this control in place of the normal DataGrid). Is this really so? (I couldn't find any documented limitations as to the application of this particular property) Please clarify. Thanks again, George --- In flexcoders@yahoogroups.com, valdhor valdhorlists@ wrote: Sure... ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ [Bindable] private var dp:Array = [ { symbol: ADBE, name: Adobe Systems Inc., price: 49.95 }, { symbol: BETA, name: Beta Inc., price: 19.95 }, { symbol: CSCO, name: Cisco Inc., price: 45.95 }, { symbol: DELL, name: Dell Inc., price: 34.95 }, { symbol: EXPD, name: Expedia Inc., price: 39.95 }, { symbol: FOXS, name: Fox Sports Inc., price: 9.95 }, { symbol: GOOG, name: Google Inc., price: 139.95 }, { symbol: ICON, name: Icon Inc., price: 32.95 }, { symbol: JUNI, name: Juniper Inc., price: 23.95 }, { symbol: KLA, name: KLA Tencor Inc., price: 37.95 }, { symbol: MACR, name: Macromedia Inc., price: 39.95 }, { symbol: MSFT, name: Microsoft Corp., price: 25.95 }, { symbol: IBM, name: IBM Corp., price: 42.55 } ]; ]] /mx:Script mx:AdvancedDataGrid dataProvider={dp} rowCount=9 lockedRowCount=2 mx:columns mx:AdvancedDataGridColumn headerText=Name dataField=name width=200/ mx:AdvancedDataGridColumn headerText=Symbol dataField=symbol width=100/ mx:AdvancedDataGridColumn headerText=Price dataField=price width=100/ /mx:columns /mx:AdvancedDataGrid /mx:Application --- In flexcoders@yahoogroups.com, grg_blls grg_blls@ wrote: Hi all, Is there any working demo example in Flex 3, of a AdvancedDataGrid with LockedRowCount property set and capable of demonstrating its functionality? Any help will be greatly appreciated. Thanks in advance George
[flexcoders] Re: FMS Recording Delay -Flex
Hello Pravin, To tell the truth i don't know whats written on the server side. just use the link to the fms and play it back :), its done by our sis admin @ Ukraine but didn't get him online till now. any way thanks. --- In flexcoders@yahoogroups.com, p...@... Uttarwar pravinuttar...@... wrote: Hi Vinu, Can you explain how ur recording on FMS side? Regards, Pravin 2009/5/5 vinayakvijay_v vinayakvija...@... Hi Friends. am Vinu. Please help me to find a solution. Am using Flex And FMS to record audio from my app using mic.But when i play back i has a delay at the beginning. ie. initial few sec is not recorded , and also the quality is low. can any one suggest a solution for this. Thanks in advance Vinu.
[flexcoders] Choppy Move effect..
Hi friends, In flex when i apply Move Effect to a jpg or png image , the effect is not smooth and image appears choppy. u can see it even in the example given by adobe. http://livedocs.adobe.com/flex/201/langref/mx/effects/Move.html (bottom of this page) the image when move appears choppy. i think you got what i mean. do any one know how to make it smooth.. thanks in advance Vinu.
RE: [flexcoders] Choppy Move effect..
You could try increasing the frame rate (say 50) e.g. mx:Application frameRate=50 Or add a blur (depending on its speed) to make the jumps appear less jumpy. Kenneth. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of vinayakvijay_v Sent: 06 May 2009 10:41 To: flexcoders@yahoogroups.com Subject: [flexcoders] Choppy Move effect.. Hi friends, In flex when i apply Move Effect to a jpg or png image , the effect is not smooth and image appears choppy. u can see it even in the example given by adobe. http://livedocs.adobe.com/flex/201/langref/mx/effects/Move.html (bottom of this page) the image when move appears choppy. i think you got what i mean. do any one know how to make it smooth.. thanks in advance Vinu. Disclaimer --- This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. ---
RE: [flexcoders] Profiler telling lies?
Yeah, ok some clarification (rather than bashing the email out then going home for the night ;) ) I'm debugging and watching the numChildren properties and the selectedChild properties. (The object extends viewstack btw). I can see the view in the viewstack, then after running though the code that removes the child from the viewstack, I can see the numChildren has dropped from 1 to 0, and the selectedChild (and selectedIndex) both are consistent with having no child in the viewstack. In terms of profiling... I am starting up the app, getting the view created, and running the code once to clean up. Then I take a memory snapshot. I do the same action another two times (to get to the prime). Then I take another snapshot. Then I work out the loitering objects. The line with the instance being the viewstack object and the property being [child0] is what makes me think it still has a reference to the view and the reason (or one of them ;) )why it isn't being garbage collected... And Alex, I think I've read everything on your blog at least 8 times ;) Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: 05 May 2009 17:57 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Profiler telling lies? First, make sure you are using the right view. If you are looking at loitering objects but your scenario should not be using that view, you will get false positives. I've explained why on my blog. If you're looking at a memory snapshot, I would dig further as I haven't seen the profiler 'lie' in this situation yet. Remember that Flex containers are IRawChildrenContainers. There is no children array, and numChildren does not count borders and other chrome. Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Mark Doberenz Sent: Tuesday, May 05, 2009 8:04 AM To: flexcoders@yahoogroups.com Cc: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Profiler telling lies? Check your event listeners because if you're not using weak references then the garbage collector won't remove it. Disregard if you already knew that one :) On May 5, 2009, at 7:58 AM, Gregor Kiddie gkid...@inpses.co.uk mailto:gkid...@inpses.co.uk wrote: Hi all, I'm trying to work out where a memory leak is occurring in our application (putting me into Jeff's hell from last week). When profiling the app, it claims there is still a back reference to its parent on the display list (even though I remove it!) at [child0]. When I debug the application, the child is removed as I'd expected, and the children array is empty. So which one is lying? The profiler when it tells me there is still a back reference to the parent as [child0] or the debugger when it tells me the child has been removed... Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk mlmsg #ygrp-msg p a span.yshortcuts { font-family: Verdana; font-size: 10px; font-weight: normal; } #ygrp-msg p a { font-family: Verdana; font-size: 10px; } #ygrp-mlmsg a { color: #1E66AE; } div.attach-table div div a { text-decoration: none; } div.attach-table { width: 400px; } --
[flexcoders] Application shows with a partial height
What could be a cause for an application to show with a normal (full size) width and only about 100-130 pixels of a height? Everything in an app. says 100% for the height. Thanks for the help.
[flexcoders] Re: specify services-comfig.xml in either MXML or AS?
Check out this thread... http://tech.groups.yahoo.com/group/flexcoders/message/126803 --- In flexcoders@yahoogroups.com, dnk d.k.emailli...@... wrote: Hi there, I was wondering if it was possible to specify my services-comfig.xml in either MXML or AS? I just wanted to include that in my actual code (as opposed to a compiler arg) for portability. I have been searching google, and nothing yet... Thanks! / D
[flexcoders] Re: Choppy Move effect..
I tried the example at the link you posted and it is not choppy for me - very smooth move. Perhaps your PC is on the slow side or does not have much memory (I have a 2.66GHz Core 2 Duo with 4GB of RAM) --- In flexcoders@yahoogroups.com, vinayakvijay_v vinayakvija...@... wrote: Hi friends, In flex when i apply Move Effect to a jpg or png image , the effect is not smooth and image appears choppy. u can see it even in the example given by adobe. http://livedocs.adobe.com/flex/201/langref/mx/effects/Move.html (bottom of this page) the image when move appears choppy. i think you got what i mean. do any one know how to make it smooth.. thanks in advance Vinu.
[flexcoders] Re: Choppy Move effect..
Thanks for ur replay. Have tried increasing frame rate but same result ,a little difference. My PC is 2.00GHz Dual Core with 2GB of RAM is that enough to see a simple move effect :) Have a nice day. --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: I tried the example at the link you posted and it is not choppy for me - very smooth move. Perhaps your PC is on the slow side or does not have much memory (I have a 2.66GHz Core 2 Duo with 4GB of RAM) --- In flexcoders@yahoogroups.com, vinayakvijay_v vinayakvijay_v@ wrote: Hi friends, In flex when i apply Move Effect to a jpg or png image , the effect is not smooth and image appears choppy. u can see it even in the example given by adobe. http://livedocs.adobe.com/flex/201/langref/mx/effects/Move.html (bottom of this page) the image when move appears choppy. i think you got what i mean. do any one know how to make it smooth.. thanks in advance Vinu.
RE: [flexcoders] Re: Choppy Move effect..
Have you tried giving it an easing. It's going from static to instant jump straight away and it may not really be jumpy but to the eye it looks like it is a bit. An easing will smooth of the acceleration/deceleration at the start/end of the movement. Easings always make movement look more realistic. K. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of vinayakvijay_v Sent: 06 May 2009 13:59 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Choppy Move effect.. Thanks for ur replay. Have tried increasing frame rate but same result ,a little difference. My PC is 2.00GHz Dual Core with 2GB of RAM is that enough to see a simple move effect :) Have a nice day. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , valdhor valdhorli...@... wrote: I tried the example at the link you posted and it is not choppy for me - very smooth move. Perhaps your PC is on the slow side or does not have much memory (I have a 2.66GHz Core 2 Duo with 4GB of RAM) --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , vinayakvijay_v vinayakvijay_v@ wrote: Hi friends, In flex when i apply Move Effect to a jpg or png image , the effect is not smooth and image appears choppy. u can see it even in the example given by adobe. http://livedocs.adobe.com/flex/201/langref/mx/effects/Move.html (bottom of this page) the image when move appears choppy. i think you got what i mean. do any one know how to make it smooth.. thanks in advance Vinu. Disclaimer --- This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. ---
[flexcoders] Re: Server PUSH in LCDS
Hi Everybody, If I am not clear in my question, I will brief it this way. I need to get the latest data from server. We use Spring/Hibernate on server side. Just tell me how to implement messaging service here to get the latest data. How does LCDS know if database is changed. Kindly tell me if anybody knows the solution. Thanks Ravi
[flexcoders] Flex with PV3D. How to make a Plane in a canvas to accept the events?
Hi all, I put some planes in the viewport in a canvas. But the planes can't accept any mouse-click event from canvas. I set the viewport.interative = true, material of each plane = true, but it dosen't work. What should I do now ? /* * In the ReflectionWall class, for each Plane setting a function * p = new Plane(ma,_imageWidth, _imageHeight, _seg, _seg); * p.addEventListener(InteractiveScene3DEvent.OBJECT_CLICK, planeClickEvent); */ private var ref:ReflectionWall; private function init():void{ ref = new ReflectionWall(images/Belle.png,100, 100, 54, can.width, can.height); can.rawChildren.addChild(ref); ref.camera.zoom = 50; addEventListener(Event.ENTER_FRAME, ref.render); } mx:Canvas id=can width=1000 height=750 /
[flexcoders] Toggling borderSkin style
Hi, I have an HBox with a borderSkin property set to a Class I found that draws dashed borders. var imageContainer:HBox = new HBox(); imageContainer.setStyle('borderSkin',com.skins.DashedBorder); When you click on/off the skin I want to toggle the borderSkin property, i.e. remove the dashed lines and make it look selected/unselected, i.e. if(container.name != _selectedImage.name){ container.setStyle('borderStyle',null); container.setStyle('borderThickness',null); container.setStyle('borderSkin',null); }else{ _selectedImage.setStyle('borderStyle','solid'); _selectedImage.setStyle('borderThickness', '2'); _selectedImage.setStyle('borderSkin', com.skins.DashedBorder); } That doesn't work. It draws the borderSkin just fine when I first instantiate the HBox, but when I start toggling it's gone. However, it works fine if I'm just using a borderColor and not a skin, a la: if(container.name != _selectedImage.name){ container.setStyle('borderStyle',null); container.setStyle('borderThickness',null); container.setStyle('borderColor',null); }else{ _selectedImage.setStyle('borderStyle','solid'); _selectedImage.setStyle('borderThickness', '2'); _selectedImage.setStyle('borderColor', 'green'); } SoI guess you can't toggle borderSkin property...is that right? Thanks for any tips.
[flexcoders] Re: Choppy Move effect..
You should really look into TweenLite http://blog.greensock.com/tweenliteas3/ Adobe animations are good in certain situations but, if you really want to control the animation - TweenLite/TweenMax are a lot better suited. --- In flexcoders@yahoogroups.com, vinayakvijay_v vinayakvija...@... wrote: Hi friends, In flex when i apply Move Effect to a jpg or png image , the effect is not smooth and image appears choppy. u can see it even in the example given by adobe. http://livedocs.adobe.com/flex/201/langref/mx/effects/Move.html (bottom of this page) the image when move appears choppy. i think you got what i mean. do any one know how to make it smooth.. thanks in advance Vinu.
Re: [flexcoders] UK Flex User Group
On Tuesday 05 May 2009, londonbiker099 wrote: Can anyone tell me the status of the UK Flex User Group. Good timing - come to Birmingham : http://flashcamp.co.uk/ -- Helping to simultaneously entrench viral experiences as part of the IT team of the year, '09 and '08 Tom Chiverton Developer Tel: +44 0161 618 5032 Fax: +44 0161 618 5099 tom.chiver...@halliwells.com 3 Hardman Square, Manchester, M3 3EB www.Halliwells.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 together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.Halliwells.com.
[flexcoders] Re: Toggling borderSkin style
SOLVED: The solution is instead of nulling out the borderSkin style, set it to a Borderless skin, i.e. package com.skins { import mx.core.UIComponent; public class BorderlessSkin extends UIComponent { public function BorderlessSkin() { super(); } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void{ super.updateDisplayList(unscaledWidth,unscaledHeight); } } } Hope that helps someone. --- In flexcoders@yahoogroups.com, fumeng5 fume...@... wrote: Hi, I have an HBox with a borderSkin property set to a Class I found that draws dashed borders. var imageContainer:HBox = new HBox(); imageContainer.setStyle('borderSkin',com.skins.DashedBorder); When you click on/off the skin I want to toggle the borderSkin property, i.e. remove the dashed lines and make it look selected/unselected, i.e. if(container.name != _selectedImage.name){ container.setStyle('borderStyle',null); container.setStyle('borderThickness',null); container.setStyle('borderSkin',null); }else{ _selectedImage.setStyle('borderStyle','solid'); _selectedImage.setStyle('borderThickness', '2'); _selectedImage.setStyle('borderSkin', com.skins.DashedBorder); } That doesn't work. It draws the borderSkin just fine when I first instantiate the HBox, but when I start toggling it's gone. However, it works fine if I'm just using a borderColor and not a skin, a la: if(container.name != _selectedImage.name){ container.setStyle('borderStyle',null); container.setStyle('borderThickness',null); container.setStyle('borderColor',null); }else{ _selectedImage.setStyle('borderStyle','solid'); _selectedImage.setStyle('borderThickness', '2'); _selectedImage.setStyle('borderColor', 'green'); } SoI guess you can't toggle borderSkin property...is that right? Thanks for any tips.
[flexcoders] Using SerializationFilter
I've noticed the serializationFilter property on the HTTPService class, and I would like to use this feature, but FlexBuilder is not recognizing that property or class in code assist. I'm using the Flex 3.3 SDK. Am I mistaking this features availability? Is it new to Gumbo? Thanks!
Re: [flexcoders] for better performance, use as rather than just leaving an object as Object?
Thanks for the input, Alex. True, it did take a lot of iterations to get a one second difference, but that's with only one reference to a property. If I had something like: o.foo.bar[3].baz = o.foo.getBaz(), I've suddenly quintupled the number of FindProperty calls. Ditto if I had a few lines of calls, all working off of o. But mainly I agree that you have to consider whether a given optimization is worth it if the code doesn't actually need optimizing and the optimization will make the code harder to understand and maintain. That's why this is such a good tip, since I wanted to use as anyway to make the code more maintainable! Good point about SWF/RAM size, though. You finally got me to bother setting up some RSS subscriptions in thunderbird. I always mean to read the various excellent Flex blogs, but never get around to it. Maybe this way I'll be more likely to get those useful nuggets of knowledge. I'm already looking forward to implementing some of your tips on itemRenderers (especially the image centering ones) to try to speed up a particularly painful ADG redraw. On Tue, May 5, 2009 at 12:24 AM, Alex Harui aha...@adobe.com wrote: I published similar results on my blog a few years back. The reason it is slower is that there are more byte codes involved and those byte codes take more time. The more you know, and the more information you have handy, the less work there is to do and we can make more assumptions. For “b.id”, the byte code is more or less: Push “id” Push “b” GetProperty For “(b as button).id”, the byte code is roughly: Push “id” Push b Push button Coerce GetProperty For “o.id”, the byte code is roughly: Push “id” Push “o” FindProperty and FindProperty is much slower. Note that it takes 1000 accesses to feel a 1 second difference. There’s more byte code involved in using “as” so if you did it everywhere your SWF will be larger and take up more memory at runtime and could offset those gains. However, if you’ve got the time, it might be worth doing from a code maintenance standpoint as the compiler will help you find misspellings and what not. Alex Harui Flex SDK Developer Adobe Systems Inc. http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Pan Troglodytes *Sent:* Monday, May 04, 2009 7:19 PM *To:* flexcoders *Subject:* [flexcoders] for better performance, use as rather than just leaving an object as Object? I was curious as to the difference between a few different ways of approaching the situation of an itemRenderer having a data property and deciding whether or not to use as to make all the type checking happy. So I tried some test code and found that it made a big difference whether you use as or just leave the data property as an Object. If you leave it as an Object, you get a performance hit on the order of 40%+ longer than if you use as to cast it first. Here are the ways I tested it. I just decided to pull the id property because it's something that is just a simple access of a private variable, no complicated stuff. var b:Button = new Button; var o:Object = b; var s:String; s = b.id; s = (o as Button).id; s = Button(o).id; s = UIComponent(o).id; s = (o as UIComponent).id; s = o.id; I did get a bit fancy and put them in a loop and a timer to isolate each one. The full code is included below. What I found was along the lines of this (give or take a few %): Button: 3.16 Button(): 4.06 129% as Button: 4.14 131% UIComponent(): 3.98 126% as UIComponent: 4.03 128% Object: 5.38 170% I put in the UIComponent ones because sometimes I cast it to a superclass because I might get several different subclasses passed into a function. So what I've found is that if you ignore than noise, the middle four methods are also approximately the same in timings. But the Object one is far worse. This probably won't come as any surprise to the Adobe folks or the people who have been working with Flex a bit more in-depth. I found it rather useful information, though, considering I'm trying to shave off some time in various places in one of my apps. Granted, it won't matter as much outside of loops. So many things return the items as objects, such as Arrays/ArrayCollection, the data property of item renderers, etc. I think I'm just going to make it a habit to put as in my code (and not the format of Class(variable) because sometimes that triggers a function rather than just doing a casting) all the time. It helps catch errors by doing strict type checking (as long as you aren't using dynamic classes) and it's a little faster to boot. Still, I wish it was as fast as the top line where you don't have to do any casting/as at all. Any thoughts on that or anything else I've missed? Any flash
[flexcoders] adding to a sprite.
Why is it if I have an Image (created in actionscript) and I add it to my canvas it works fine, but if I add it to a Sprite it does nothing (doesn't even load image, let alone display anything)? I'm using the addChild method in both cases, and I can see the sprite, but the added image doesn't appear. Cheers. realise . Kenneth Sutherland Technical Developer Realise Ltd Quay House, 142 Commercial Street, Leith, Edinburgh EH6 6LB Tel 0131 476 7432 www.realise.com http://www.realise.com/ Check out some of our recent flex work: * Focus on funds UK http://www.focusonfunds.co.uk/ * Focus on funds Europe http://europe.standardlifeinvestments.com/distributor/products_and_serv ices/going_further_focus_on_funds/index.html * Fund selector http://uk.standardlifeinvestments.com/ifa/adviser_support/index.html * Video view http://uk.standardlifeinvestments.com/ifa/market_views/video_view_and_m p3s/index.html Realise are sponsors of the Marketing Society Scotland. Realise Limited is registered in Scotland, SC172507. Disclaimer --- This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. ---
[flexcoders] Re: Using SerializationFilter
Are you sure you're using the right class? According to the docs it is in mx.rpc.http.HTTPService but NOT in mx.rpc.http.mxml.HTTPService. --- In flexcoders@yahoogroups.com, Luke Pillow lpil...@... wrote: I've noticed the serializationFilter property on the HTTPService class, and I would like to use this feature, but FlexBuilder is not recognizing that property or class in code assist. I'm using the Flex 3.3 SDK. Am I mistaking this features availability? Is it new to Gumbo? Thanks!
[flexcoders] Re: adding to a sprite.
I have seen this question asked before. You may like to check the archives. This post may help as well... http://groups.google.com/group/macromedia.flex.general_discussion/browse_thread/thread/beb04fa6cf84aea5 And this one... http://userflex.wordpress.com/2008/06/12/sprite-uicomponent/ --- In flexcoders@yahoogroups.com, Kenneth Sutherland kenneth.sutherl...@... wrote: Why is it if I have an Image (created in actionscript) and I add it to my canvas it works fine, but if I add it to a Sprite it does nothing (doesn't even load image, let alone display anything)? I'm using the addChild method in both cases, and I can see the sprite, but the added image doesn't appear. Cheers. realise . Kenneth Sutherland Technical Developer Realise Ltd Quay House, 142 Commercial Street, Leith, Edinburgh EH6 6LB Tel 0131 476 7432 www.realise.com http://www.realise.com/ Check out some of our recent flex work: * Focus on funds UK http://www.focusonfunds.co.uk/ * Focus on funds Europe http://europe.standardlifeinvestments.com/distributor/products_and_serv ices/going_further_focus_on_funds/index.html * Fund selector http://uk.standardlifeinvestments.com/ifa/adviser_support/index.html * Video view http://uk.standardlifeinvestments.com/ifa/market_views/video_view_and_m p3s/index.html Realise are sponsors of the Marketing Society Scotland. Realise Limited is registered in Scotland, SC172507. Disclaimer --- This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. ---
[flexcoders] how open .doc (words )file
Hi Dear friends anybody knows how we can read and open .doc files in flex and convert it to pdf on fly with action scripts or php . I use of AMF to transfer value object between flex and php. PLease help me . BR farid valipour
[flexcoders] Re: Question regarding FLV protection
--- In flexcoders@yahoogroups.com, Jon Oxtoby j...@... wrote: We're using FMS 3.0, unfortunately the downloading software we're attempting to block (Jaksta) can handle an rtmpe stream no problem. We have the SWF verification enabled and that prevents the software from opening a new stream, but it's still able to record the stream as it plays in the video player. Our thought was that if we can apply some sort of non-standard encryption to the FLV file and then decrypt it prior to being played in the video player, that the recorded version would still be the encrypted one and the downloaded file would not play. We'll continue to look into this and if we happen upon a reasonable solution I'll post it back. What if you use something like afterEffects to embed an image on top of the middle of the video with a blendmode that inverts on the image colors, then simply overlay that same image in your player with the reverse blendmode. They can record all they want, but if they don't have the image to invert the middle of the video, they'll have a crap copy with a middle that doesn't make any sense.
[flexcoders] NativeDragManager and nested components
The DragManagerImpl and NativeDragManagerImpl behaviours are so different that it drives me nut! I have a Flex component that is embedded in a Flex and AIR app. So, I used the IDragManager interface to access the methods and used the standard events. Unfortunately, I can't get a consistent behaviour across both platforms. One of my biggest problem is that in AIR, if a parent UIComponent accepted the drag, a child cannot cancel it through the standard IDragManager interface. I have a container that can accept or refuse a drag operation and I have children of the container that can do the same. So, when I move the mouse over the container, if it accepts the drag and that I move the mouse over a children and that the children cannot accept the drag, I simply cannot get the no drag icon over the child. I could possibly try to use the NativeDragEvents to do the trick but since I want my component to be cross platform, I cannot use AIR only classes. I'm starting to think that Adobe didn't think about this use case when designing both drag managers. Anyone has an idea or overcame this issue? Thanks! Yves
[flexcoders] Are you using the Marshall Plan?
Are you building apps in a modular fashion where those modules need to support different Flex versions? Do you have nightmares where Alex is explaining SecurityDomains and ApplicationDomains and SWFLoader.loadForCompatibility? Please let me know (email me at mcho...@adobe.com), we're trying to evaluate some pain points and whether I need to bribe the Player team to solve them ASAP or if it can wait a release. Matt
Re: [flexcoders] Re: Run swf on server
In my case it was an offline process so it didn't need to communicate back to the client. It's probably best not to treat it as server call that expects a reply. If there are a bunch of simultaneous requests, it's likely that the AIR app might get backlogged. You could have the client pole the server to see if the image is ready, but let the user continue using the site while the image is being generated. J On Tue, May 5, 2009 at 9:02 PM, lagos_tout lagos.t...@gmail.com wrote: J- In your application, was the image generated as part of a single call to the server? Or did you have some other way of notifying the client-side app that the image had been generated on the server? Also, what server-side language did you use? Thanks again! LT --- In flexcoders@yahoogroups.com, Jamie S jsjph...@... wrote: I was in a similar boat, having to generate an image server-side to that matches what the user sees in a flash movie client-side. Unfortunately there is no command-line version of Flash but AIR is almost as good. You can launch an AIR app from the command-line on the server and pass it in your data as command-line arguments. When finished the AIR app can save the image to the file system and terminate. J On Mon, May 4, 2009 at 3:17 PM, lagos_tout lagos.t...@... wrote: Hi, Thanks for your response. Since I already have a swf that generates a complex view using data provided, what I'd like to be able to do is not have to recreate this logic in some other language just so that the server can generate images of the result. AS3 provides image generation for display classes. And if I could run the swf on the server, instead of on the client-side, there would be no network overhead of having to send the rendered image to the server. LT --- In flexcoders@yahoogroups.com, Kevin F. Benz kbenz@ wrote: Well. You can run a swf in Air but I expect that is the least of your headaches. I mean, what's the real objective. If you need to dynamically create images, why not do that in the server script as you won't have all the other goo? This was figured out years ago as the age of the link will attest. http://www.javaworld.com/javaworld/jw-05-2000/jw-0505-servlets.html K From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of lagos_tout Sent: Monday, May 04, 2009 1:46 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Run swf on server Hi, all. I'd appreciate any suggestions on how to implement the following use case: (1) a swf running in a browser on the client-side sends simple numeric data to a server-side script. (2) the server-side script calls a second swf located on the same server as the script, passing it the numeric data. (3) this swf uses the data to generate a layout in flash that is rendered to an image and either (a) returned directly as binary data to the server-side script or (b) saved locally on the server so that the server-side script can access it. It's steps 2 and 3 that have me stumped. How can I call a swf without a browser, and by extension, without the Flash Player? Is there some way to call a swf directly as an executable that can return output to the calling process? Thanks much! LT
[flexcoders] Re: Enable/Disable Context Menu Based on selected row of DG
Thanks Man.. this is what I needed.. Now I can execute some logic before showing Context munu.. I appreciate your help. - Dharmendra --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: This example should help... ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical verticalAlign=middle creationComplete=onCreationComplete() mx:Script ![CDATA[ import mx.controls.Alert; [Bindable] private var myContextMenu:ContextMenu; private var approvedMenuItem:ContextMenuItem = new ContextMenuItem(Approved, false, false); private var approveMenuItem:ContextMenuItem = new ContextMenuItem(Approve); private var lastRollOverIndex:int; [Bindable] private var dp:Array = [ { symbol: ADBE, name: Adobe Systems Inc., price: 49.95 }, { symbol: BETA, name: Beta Inc., price: 19.95 }, { symbol: CSCO, name: Cisco Inc., price: 45.95 }, { symbol: DELL, name: Dell Inc., price: 34.95 }, { symbol: IBM, name: IBM Corp., price: 42.55 } ]; private function onCreationComplete():void { approveMenuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, menuItemHandler); myContextMenu = new ContextMenu(); myContextMenu.hideBuiltInItems(); myContextMenu.addEventListener(ContextMenuEvent.MENU_SELECT, menuSelectHandler); } private function menuSelectHandler(event:ContextMenuEvent):void { dataGrid.selectedIndex = lastRollOverIndex; var currentItem:Object = dataGrid.selectedItem; if(currentItem.name == Cisco Inc.) { myContextMenu.customItems = [approvedMenuItem]; } else { myContextMenu.customItems = [approveMenuItem]; } } private function menuItemHandler(event:ContextMenuEvent):void { var currentItem:Object = dataGrid.selectedItem; Alert.show(currentItem.name); } ]] /mx:Script mx:DataGrid id=dataGrid width=400 dataProvider={dp} contextMenu={myContextMenu} itemRollOver=lastRollOverIndex = event.rowIndex mx:columns mx:DataGridColumn headerText=Name dataField=name / mx:DataGridColumn headerText=Symbol dataField=symbol/ mx:DataGridColumn headerText=Price dataField=price / /mx:columns /mx:DataGrid /mx:Application HTH Steve --- In flexcoders@yahoogroups.com, Dharmendra Chauhan chauhan_icse@ wrote: Hi Everybody, I need to enable/Disable Context Menu Item based the selected row of the DG.ie I would perform some logic based on current selected row to decide enabling/Disabling of context menu item. Classical example of this is Timesheet application. If a manager click on any of the entry which was already approved , he should NOT be getting approve option enabled. I found some workaound to get this functionality workinng but they are all browser based.They do not apply in my case as my application is running on Flash Player.
[flexcoders] AIR components appear to be disabled.
I have HBox containing some buttons that appear to be disabled when the application starts up. I say appear because if I inspect them their enabled property is true. Yet, they are greyed out and unclickable. The HBox is defined as a child under WindowedApplication. I can't find way to make them usable. I must be missing something obvious. mx:WindowedApplication mx:menu mx:FlexNativeMenu id=appMenu dataProvider={tMenu} labelField=@label showRoot=false/ /mx:menu mx:HBox width=100% mx:Button id=upload label=Upload click=onSelect(event);/ mx:Button id=edit label=Edit click=onSelect(event);/ mx:Spacer width=100%/ mx:Label id=connection text=No Connection/ /mx:HBox mx:ViewStack id=main selectedIndex=0 creationPolicy=all width=100% height=100% console:Upload id=uploader width=100% height=100%/ console:TemplateEditor id=editor width=100% height=100%/ /mx:ViewStack /mx:WindowedApplication
Re: [flexcoders] how open .doc (words )file
I would think that using the Word COM+ objects would be the easiest way to read Word documents. Of course, you can also only support the XML-based version of Word documents Office 2007. On 6/05/2009, at 6:23 PM, farid wl wrote: Hi Dear friends anybody knows how we can read and open .doc files in flex and convert it to pdf on fly with action scripts or php . I use of AMF to transfer value object between flex and php. PLease help me . BR farid valipour
[flexcoders] Changing the BG color of selected row on contect menu item click
Hi All, I want to change the BG color of selected row on context Menu Item click. Actually , I have two context Menu Item 1) highlight 2)un-highlight they highlight/un-highlight selected row on click event. I found some resource on google ,all of them changing bg color in drawRowBackground(), but in my case I cant use it as I have to execute this logic on context item click. Pleas suggest some ideas. Second requirement is ,when user sort the grid after highlighting row , color of all highlighted row should remain same irresevtive of their new position. Thanks, Dharmendra
Re: [flexcoders] Are you using the Marshall Plan?
Matt just a question regarding your software development process- what exact methodology do you guys(you flex team) follow to develop the Flex platform? On Wed, May 6, 2009 at 1:23 PM, Matt Chotin mcho...@adobe.com wrote: Are you building apps in a modular fashion where those modules need to support different Flex versions? Do you have nightmares where Alex is explaining SecurityDomains and ApplicationDomains and SWFLoader.loadForCompatibility? Please let me know (email me at mcho...@adobe.com), we're trying to evaluate some pain points and whether I need to bribe the Player team to solve them ASAP or if it can wait a release. Matt
Re: [flexcoders] Are you using the Marshall Plan?
I wouldn't say there's an exact methodology. We have some elements of agile (like iterations, unit tests, ability to respond to feedback and adjust), but as a platform we also need to make sure we have specifications, assigned Quality Engineers, schedules, etc. So if you're looking for we use scrum you won't get that, it's a combination of practices necessary for a team that works with a large number of stakeholders. Matt On 5/6/09 12:10 PM, Vivian Richard kanps...@gmail.com wrote: Matt just a question regarding your software development process- what exact methodology do you guys(you flex team) follow to develop the Flex platform? On Wed, May 6, 2009 at 1:23 PM, Matt Chotin mcho...@adobe.com mailto:mchotin%40adobe.com wrote: Are you building apps in a modular fashion where those modules need to support different Flex versions? Do you have nightmares where Alex is explaining SecurityDomains and ApplicationDomains and SWFLoader.loadForCompatibility? Please let me know (email me at mcho...@adobe.com mailto:mchotin%40adobe.com ), we're trying to evaluate some pain points and whether I need to bribe the Player team to solve them ASAP or if it can wait a release. Matt
[flexcoders] swf decompiling and embedded assets
Hi, I am looking at various decompiling tools, and one thing I am noticing is that none of them seem to make the resource bundles available for export. Does anyone understand why and whether this is something that can be relied upon?
[flexcoders] Re: Flash speed test - please participate - only 1 click required !
So where are the results?! --- In flexcoders@yahoogroups.com, Paul Andrews p...@... wrote: LOL, I did exactly the opposite - dumped Norton for AVG! Looking at the page source, it has javascript scraping values from the navigator object and no doubt sending them back to base. I can't see that it does anything else. Paul - Original Message - From: Cato Paus ca...@... To: flexcoders@yahoogroups.com Sent: Monday, April 13, 2009 12:16 PM Subject: [flexcoders] Re: Flash speed test - please participate - only 1 click required ! After a hit, I did stop using the AVG.. and are now using Norton Internet Security, it uses Insigth and is much faster then AVG .. here is the link to the Trojan http://securityresponse.symantec.com/security_response/writeup.jsp?docid=2004-021914-2822-99 --- In flexcoders@yahoogroups.com, Paul Andrews paul@ wrote: How did you find the trojan Cato - AVG reports nothing. What trojan is it? Paul - Original Message - From: Cato Paus cato1@ To: flexcoders@yahoogroups.com Sent: Monday, April 13, 2009 11:58 AM Subject: [flexcoders] Re: Flash speed test - please participate - only 1 click required ! DO NOT TEST THIS... Trojan Horse Detected on page! --- In flexcoders@yahoogroups.com, tom93438 tcs2201@ wrote: One other test that would also be useful: Please hit: http://flatim3000.appspot.com/?fps=24 Does the same as before, but tests for 24 fps. thanks tom --- In flexcoders@yahoogroups.com, tom s tcs2201@ wrote: Hi All, I'm doing some tests to see how 'fast' the Flash Player is in a variety of environments. Please click the link to take part: (you don't have to do anything other than click the link) http://flatim3000.appspot.com It's totally malware free. If you're interested, see below for details. Please hit it as many times as you like, from as many different environments as you can :) I'll share the results when I'm done. cheers tom details = The SWF: 1. attempts to set the frame rate to 1000 2. listens for enter_frame 10,000 times 3. records how long (2) takes 4. computes the actual FPS 5. send the data to a server, along with details on OS, Browser, FP version, IP Any suggestions/improvements - let me know... -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Popup window close button fails
In the application I'm creating, I have a few popups. Each has the showCloseWindow attribute set to true, and sure enough, the button is there. But it won't close the window when clicked. ? -- Thanks, Tom Tom McNeer MediumCool http://www.mediumcool.com 1735 Johnson Road NE Atlanta, GA 30306 404.589.0560
[flexcoders] Viewstack page activation
Is there an event raised when a hidden page of a ViewStack becomes visible? I'd like to refresh certain widgets on each page every time the page appears, but the activate event only fires when the whole application gets the focus back from the operating system, and that event doesn't fire when switching pages in the viewstack. I haven't found any other events that might pertain to this situation. FWIW, each child of the viewstack is a separate component, and I use an Accordion full of labeled HBox'es to switch the viewstack pages via: click=viewstack.selectedIndex=accordion.selectedIndex I could manually call something on the click event, but I was hoping for something more event-driven/implicit. Jim
RE: [flexcoders] Popup window close button fails
It is not automatic. The button just dispatches the close event. You need to define a close event handler. And in that do PopUpmanager.removePopUp(this). Though more often, I just dispatch a custom named event, and have in a listener/handler in the component that created the popup, and in that handler, I get what data I need from the popup on close, like status(ok, cancel) and value if any, then call PopUpmanager.removePopUp(event.target). Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tom McNeer Sent: Wednesday, May 06, 2009 5:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Popup window close button fails In the application I'm creating, I have a few popups. Each has the showCloseWindow attribute set to true, and sure enough, the button is there. But it won't close the window when clicked. ? -- Thanks, Tom Tom McNeer MediumCool http://www.mediumco http://www.mediumcool.com ol.com 1735 Johnson Road NE Atlanta, GA 30306 404.589.0560
[flexcoders] Re: Dispatching Events from SWC - via Class`
I assumed that this would be the case - being in the child or grandchild of the application because it was called from the application.. my bad... What would you say would be the best to resolve this issue? What should I try? I am still learning... the process never ends... Thanks of the help.. Eric --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: If Adaption... class is not extending DisplayObject and a child or grandchild (or deeper) of the application, then bubbling will not work. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Friday, May 01, 2009 2:46 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Dispatching Events from SWC - via Class` That is not even a custom event, it is a flash event with a custom type. The metadata should go above the class definition, but the metadata should not be necessary. If you are depending on the bubbling, are yo sure the Adaption... class is in the child hierarchy of the listener? PopUps, for example are not. Tracy Spratt, Lariat Services, development services available From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Eric Dunn Sent: Friday, May 01, 2009 4:23 PM To: flexcoders Subject: [flexcoders] Dispatching Events from SWC - via Class` I am trying to creating a custom event in a actionscript class that will be distributed via a swc file.. I need to notify the parent application of when data is finished loading. Here is what I've been playing with: Class File: created as a Flex Library Project package com.adaption.instance { import com.adaption.Adaption_SiteDetails_Structure; import flash.events.Event; public class Adaption_SiteDetails_ { private static var instance:Adaption_SiteDetails_; public static function get siteDetail():Adaption_SiteDetails_ { if (instance == null) { instance = new Adaption_SiteDetails_; } return instance; } [Bindable] public var myInstance_SiteDetails:Object = new Adaption_SiteDetails_Structure; [Event (name=enableChanged, type=flash.events.Event)] public function createSiteDetail(dataObject:Object):void { siteDetail.myInstance_SiteDetails.businessLine = dataObject.businessLine; siteDetail.myInstance_SiteDetails.businessPartnerID = dataObject.businessPartnerID; siteDetail.myInstance_SiteDetails.ccEnterpriceID = dataObject.ccEnterpriceID; siteDetail.myInstance_SiteDetails.ccGroupID = dataObject.ccGroupID; dispatchEvent(new Event(enableChanged,true)); } Application File: creationComplete=initApp(event) // in the application header. private function initApp(e:FlexEvent):void { valueOfBusinessPartner = Application.application.parameters.businessPartnerValue; valueOfAuthCode = Application.application.parameters.authCodeValue; valueOfAppiaWs = Application.application.parameters.appiaWsValue; if (valueOfAuthCode == QA) { header.lblConnectionType.text = QA-build } loadWsXML(e); loadBpXML(e); loadAcXML(e); bm = BrowserManager.getInstance(); bm.init(, OfficeFone Dashboard - Site Administrator); bm.setTitle(OfficeFone Dashboard - Site Administrator); this.addEventListener(enableChanged, getSiteDetailsHandler); } Any one see where I've gone wrong or what I've missed? I tried putting MetaData tags around the Event method but no love , I've tired the MetaDataEvent (that the only option when I ctrl-SpaceBar) EventDispatch is soething else I've tired. Do I need to create a Custom Event Class in the library? or should I be doing this another way... I am trying to create a component libary to invoke a web service, store the data and send out a notification upon completion of the data retrieval. Thanks... Eric W Dunn Adaption Technologies 281-465-3326 ed...@...
[flexcoders] Books - Flex
Hi people, My name's Gustavo and I'm new on Flex. I'd like to know your opinion about good books I can buy. Thank you!
[flexcoders] Re: Dispatching Events from SWC - via Class`
It would appear that it is not in the child hierarchy.. I am not sure how o fix this problem.. What would you recomend me trying? --- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote: That is not even a custom event, it is a flash event with a custom type. The metadata should go above the class definition, but the metadata should not be necessary. If you are depending on the bubbling, are yo sure the Adaption. class is in the child hierarchy of the listener? PopUps, for example are not. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Eric Dunn Sent: Friday, May 01, 2009 4:23 PM To: flexcoders Subject: [flexcoders] Dispatching Events from SWC - via Class` I am trying to creating a custom event in a actionscript class that will be distributed via a swc file.. I need to notify the parent application of when data is finished loading. Here is what I've been playing with: Class File: created as a Flex Library Project package com.adaption.instance { import com.adaption.Adaption_SiteDetails_Structure; import flash.events.Event; public class Adaption_SiteDetails_ { private static var instance:Adaption_SiteDetails_; public static function get siteDetail():Adaption_SiteDetails_ { if (instance == null) { instance = new Adaption_SiteDetails_; } return instance; } [Bindable] public var myInstance_SiteDetails:Object = new Adaption_SiteDetails_Structure; [Event (name=enableChanged, type=flash.events.Event)] public function createSiteDetail(dataObject:Object):void { siteDetail.myInstance_SiteDetails.businessLine = dataObject.businessLine; siteDetail.myInstance_SiteDetails.businessPartnerID = dataObject.businessPartnerID; siteDetail.myInstance_SiteDetails.ccEnterpriceID = dataObject.ccEnterpriceID; siteDetail.myInstance_SiteDetails.ccGroupID = dataObject.ccGroupID; dispatchEvent(new Event(enableChanged,true)); } Application File: creationComplete=initApp(event) // in the application header. private function initApp(e:FlexEvent):void { valueOfBusinessPartner = Application.application.parameters.businessPartnerValue; valueOfAuthCode = Application.application.parameters.authCodeValue; valueOfAppiaWs = Application.application.parameters.appiaWsValue; if (valueOfAuthCode == QA) { header.lblConnectionType.text = QA-build } loadWsXML(e); loadBpXML(e); loadAcXML(e); bm = BrowserManager.getInstance(); bm.init(, OfficeFone Dashboard - Site Administrator); bm.setTitle(OfficeFone Dashboard - Site Administrator); this.addEventListener(enableChanged, getSiteDetailsHandler); } Any one see where I've gone wrong or what I've missed? I tried putting MetaData tags around the Event method but no love , I've tired the MetaDataEvent (that the only option when I ctrl-SpaceBar) EventDispatch is soething else I've tired. Do I need to create a Custom Event Class in the library? or should I be doing this another way... I am trying to create a component libary to invoke a web service, store the data and send out a notification upon completion of the data retrieval. Thanks... Eric W Dunn Adaption Technologies 281-465-3326 ed...@...
Re: [flexcoders] Popup window close button fails
Hi Tracy, Thanks for the explanation. I knew the close event was fired. But I guess I thought the default close event also called the PopUpManager. Maybe it's me, but I think the Lang Ref could be a little clearer about this. Thanks for straightening me out, anyway. -- Thanks, Tom Tom McNeer MediumCool http://www.mediumcool.com 1735 Johnson Road NE Atlanta, GA 30306 404.589.0560
RE: [flexcoders] Viewstack page activation
The first level child will dispatch the show and hide events when you expect. If you want the action to happen the first time the view is shown, you need to also invoke it in creationComplete. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jim Haungs Sent: Wednesday, May 06, 2009 12:06 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Viewstack page activation Is there an event raised when a hidden page of a ViewStack becomes visible? I'd like to refresh certain widgets on each page every time the page appears, but the activate event only fires when the whole application gets the focus back from the operating system, and that event doesn't fire when switching pages in the viewstack. I haven't found any other events that might pertain to this situation. FWIW, each child of the viewstack is a separate component, and I use an Accordion full of labeled HBox'es to switch the viewstack pages via: click=viewstack.selectedIndex=accordion.selectedIndex I could manually call something on the click event, but I was hoping for something more event-driven/implicit. Jim
RE: [flexcoders] Re: Dispatching Events from SWC - via Class`
The class does not appear to be a UI class, so why can't you instantiate it where you need it and set a direct listener on it? Also, if it is going to dispatch an event it needs to extend EventDispatcher, I believe. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Eric W Dunn Sent: Wednesday, May 06, 2009 11:47 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Dispatching Events from SWC - via Class` It would appear that it is not in the child hierarchy.. I am not sure how o fix this problem.. What would you recomend me trying? --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Tracy Spratt tr...@... wrote: That is not even a custom event, it is a flash event with a custom type. The metadata should go above the class definition, but the metadata should not be necessary. If you are depending on the bubbling, are yo sure the Adaption. class is in the child hierarchy of the listener? PopUps, for example are not. Tracy Spratt, Lariat Services, development services available _ From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com [mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com] On Behalf Of Eric Dunn Sent: Friday, May 01, 2009 4:23 PM To: flexcoders Subject: [flexcoders] Dispatching Events from SWC - via Class` I am trying to creating a custom event in a actionscript class that will be distributed via a swc file.. I need to notify the parent application of when data is finished loading. Here is what I've been playing with: Class File: created as a Flex Library Project package com.adaption.instance { import com.adaption.Adaption_SiteDetails_Structure; import flash.events.Event; public class Adaption_SiteDetails_ { private static var instance:Adaption_SiteDetails_; public static function get siteDetail():Adaption_SiteDetails_ { if (instance == null) { instance = new Adaption_SiteDetails_; } return instance; } [Bindable] public var myInstance_SiteDetails:Object = new Adaption_SiteDetails_Structure; [Event (name=enableChanged, type=flash.events.Event)] public function createSiteDetail(dataObject:Object):void { siteDetail.myInstance_SiteDetails.businessLine = dataObject.businessLine; siteDetail.myInstance_SiteDetails.businessPartnerID = dataObject.businessPartnerID; siteDetail.myInstance_SiteDetails.ccEnterpriceID = dataObject.ccEnterpriceID; siteDetail.myInstance_SiteDetails.ccGroupID = dataObject.ccGroupID; dispatchEvent(new Event(enableChanged,true)); } Application File: creationComplete=initApp(event) // in the application header. private function initApp(e:FlexEvent):void { valueOfBusinessPartner = Application.application.parameters.businessPartnerValue; valueOfAuthCode = Application.application.parameters.authCodeValue; valueOfAppiaWs = Application.application.parameters.appiaWsValue; if (valueOfAuthCode == QA) { header.lblConnectionType.text = QA-build } loadWsXML(e); loadBpXML(e); loadAcXML(e); bm = BrowserManager.getInstance(); bm.init(, OfficeFone Dashboard - Site Administrator); bm.setTitle(OfficeFone Dashboard - Site Administrator); this.addEventListener(enableChanged, getSiteDetailsHandler); } Any one see where I've gone wrong or what I've missed? I tried putting MetaData tags around the Event method but no love , I've tired the MetaDataEvent (that the only option when I ctrl-SpaceBar) EventDispatch is soething else I've tired. Do I need to create a Custom Event Class in the library? or should I be doing this another way... I am trying to create a component libary to invoke a web service, store the data and send out a notification upon completion of the data retrieval. Thanks... Eric W Dunn Adaption Technologies 281-465-3326 ed...@...
RE: [flexcoders] Re: Dispatching Events from SWC - via Class`
Or implement IEventDispatcher. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tracy Spratt Sent: Wednesday, May 06, 2009 6:29 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Dispatching Events from SWC - via Class` The class does not appear to be a UI class, so why can't you instantiate it where you need it and set a direct listener on it? Also, if it is going to dispatch an event it needs to extend EventDispatcher, I believe. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Eric W Dunn Sent: Wednesday, May 06, 2009 11:47 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Dispatching Events from SWC - via Class` It would appear that it is not in the child hierarchy.. I am not sure how o fix this problem.. What would you recomend me trying? --- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com, Tracy Spratt tr...@... wrote: That is not even a custom event, it is a flash event with a custom type. The metadata should go above the class definition, but the metadata should not be necessary. If you are depending on the bubbling, are yo sure the Adaption. class is in the child hierarchy of the listener? PopUps, for example are not. Tracy Spratt, Lariat Services, development services available _ From: flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com [mailto:flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com] On Behalf Of Eric Dunn Sent: Friday, May 01, 2009 4:23 PM To: flexcoders Subject: [flexcoders] Dispatching Events from SWC - via Class` I am trying to creating a custom event in a actionscript class that will be distributed via a swc file.. I need to notify the parent application of when data is finished loading. Here is what I've been playing with: Class File: created as a Flex Library Project package com.adaption.instance { import com.adaption.Adaption_SiteDetails_Structure; import flash.events.Event; public class Adaption_SiteDetails_ { private static var instance:Adaption_SiteDetails_; public static function get siteDetail():Adaption_SiteDetails_ { if (instance == null) { instance = new Adaption_SiteDetails_; } return instance; } [Bindable] public var myInstance_SiteDetails:Object = new Adaption_SiteDetails_Structure; [Event (name=enableChanged, type=flash.events.Event)] public function createSiteDetail(dataObject:Object):void { siteDetail.myInstance_SiteDetails.businessLine = dataObject.businessLine; siteDetail.myInstance_SiteDetails.businessPartnerID = dataObject.businessPartnerID; siteDetail.myInstance_SiteDetails.ccEnterpriceID = dataObject.ccEnterpriceID; siteDetail.myInstance_SiteDetails.ccGroupID = dataObject.ccGroupID; dispatchEvent(new Event(enableChanged,true)); } Application File: creationComplete=initApp(event) // in the application header. private function initApp(e:FlexEvent):void { valueOfBusinessPartner = Application.application.parameters.businessPartnerValue; valueOfAuthCode = Application.application.parameters.authCodeValue; valueOfAppiaWs = Application.application.parameters.appiaWsValue; if (valueOfAuthCode == QA) { header.lblConnectionType.text = QA-build } loadWsXML(e); loadBpXML(e); loadAcXML(e); bm = BrowserManager.getInstance(); bm.init(, OfficeFone Dashboard - Site Administrator); bm.setTitle(OfficeFone Dashboard - Site Administrator); this.addEventListener(enableChanged, getSiteDetailsHandler); } Any one see where I've gone wrong or what I've missed? I tried putting MetaData tags around the Event method but no love , I've tired the MetaDataEvent (that the only option when I ctrl-SpaceBar) EventDispatch is soething else I've tired. Do I need to create a Custom Event Class in the library? or should I be doing this another way... I am trying to create a component libary to invoke a web service, store the data and send out a notification upon completion of the data retrieval. Thanks... Eric W Dunn Adaption Technologies 281-465-3326 ed...@...
[flexcoders] Re: TabNavigator creationPolicy
--- In flexcoders@yahoogroups.com, Richard Rodseth rrods...@... wrote: The code that I replaced was adding the entire TabNavigator plus children and grandchildren in an AddChild tag. It appears that deferred instantiation of the grandchildren is non-functional in that case. Duh. When you do this: myThing:Thing = new Thing(); The thing is instantiated right then, in the very moment you, er, instantiate it. See?
RE: [flexcoders] Re: adding to a sprite.
Flex containers like Canvas override the Player's addChild() method to do all sorts of extra stuff. And Flex components like Image rely on their parent containers to lay them out with the correct size and position. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Wednesday, May 06, 2009 9:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: adding to a sprite. I have seen this question asked before. You may like to check the archives. This post may help as well... http://groups.google.com/group/macromedia.flex.general_discussion/browse_thread/thread/beb04fa6cf84aea5 And this one... http://userflex.wordpress.com/2008/06/12/sprite-uicomponent/ --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Kenneth Sutherland kenneth.sutherl...@... wrote: Why is it if I have an Image (created in actionscript) and I add it to my canvas it works fine, but if I add it to a Sprite it does nothing (doesn't even load image, let alone display anything)? I'm using the addChild method in both cases, and I can see the sprite, but the added image doesn't appear. Cheers. realise . Kenneth Sutherland Technical Developer Realise Ltd Quay House, 142 Commercial Street, Leith, Edinburgh EH6 6LB Tel 0131 476 7432 www.realise.com http://www.realise.com/ Check out some of our recent flex work: * Focus on funds UK http://www.focusonfunds.co.uk/ * Focus on funds Europe http://europe.standardlifeinvestments.com/distributor/products_and_serv ices/going_further_focus_on_funds/index.html * Fund selector http://uk.standardlifeinvestments.com/ifa/adviser_support/index.html * Video view http://uk.standardlifeinvestments.com/ifa/market_views/video_view_and_m p3s/index.html Realise are sponsors of the Marketing Society Scotland. Realise Limited is registered in Scotland, SC172507. Disclaimer -- This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. --
Re: [flexcoders] Server PUSH in LCDS
If you can run Java code at the time the database changes, you can use the DataServiceTransaction api. It has methods to refresh queries, or push specific create, update, delete changes to the client. There is a refresh operation which you can run from the client. That will only pick up db changes though if you have cache-items disabled. Jeff On Tue, May 5, 2009 at 1:29 PM, Ravi Suda sudaraviku...@yahoo.com wrote: Hi, I want to implement Server-Push in my project. We use Adobe Flex3 in UI. We use Spring with Hibernate on server side. We also have LCDS on server. Flex calls Spring beans (DAOs) on server. Spring DAO's access database using hibernate. In this way Flex-UI gets data from server. And also update/save data using Spring beans. Spring beans(DAOs) has the hibernate code (mappings) to fetch/update database. Now, one outside process is updating the database directly i.e., without involving Flex/Spring/Hibernate. Whenver that happens, UI needs to get the latest data from server. Could you tell me how to implement this. What kind of adapter should I use? Any resources/docs available ? Thanks in advance for your reply. Ravi
Re: [flexcoders] Re: TabNavigator creationPolicy
Hmm. This seems a little wrong-side-of-the-bed. Actually, when you do: TabNavigator View1 View2 /TabNavigator View1 and View2 are instantiated (obviously necessary to get the labels), but the *children* of the inactive tabs are not, and as a result the creationComplete events of the inactive tabs are not fired. Makes perfect sense if you understand creationComplete to mean me and all my children. On the other hand, if the above MXML is placed in an AddChild of a state, View1 and View2 are both *fully* instantiated, and their creationComplete events fired. This has implications if you are triggering service calls on creationComplete. This is hardly equivalent to what you wrote. Try it if you don't believe me. On Wed, May 6, 2009 at 3:39 PM, Amy amyblankens...@bellsouth.net wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Richard Rodseth rrods...@... wrote: The code that I replaced was adding the entire TabNavigator plus children and grandchildren in an AddChild tag. It appears that deferred instantiation of the grandchildren is non-functional in that case. Duh. When you do this: myThing:Thing = new Thing(); The thing is instantiated right then, in the very moment you, er, instantiate it. See?
[flexcoders] McAfee slowdown of the application load
We are experience some strange behavior on the Windows Machine with McAfee Security Suite installed. Here is the description of behavior: We launch the Flex App in IE and there is a lap between the page is loaded and app starts initialization. During that time user sees white screen. If we launch the same app in the same browser , for example in the next new tab, that lap is increasing, almost like +1 or +2 seconds per tab. If t all McAfee services shutdown then that behavior goes away. This behavior is also not present in Firefox. The app itself uses Charts, and AMF components with Blaze DS and is done by using Flex SDK 3 or Flex Builder 3. But I think it is irrelevant to the problem. The behavior is also consistent whether the app compiled with or without RSLs. Has anybody experienced such an issue?
[flexcoders] Re: Are you using the Marshall Plan?
Our current Modules are all in sdk 3.3 So far all is good. We hope that if we decide to introduce modules later down the track the were solely built using sdk 4+ that this would not be painful. We hope that we will not have to use the 4+ sdk to compile our 3.3 modules against in this scenario? Have I been to vague? even if this is not the issue you were directly referring to? Thanks, Bjorn --- In flexcoders@yahoogroups.com, Matt Chotin mcho...@... wrote: I wouldn't say there's an exact methodology. We have some elements of agile (like iterations, unit tests, ability to respond to feedback and adjust), but as a platform we also need to make sure we have specifications, assigned Quality Engineers, schedules, etc. So if you're looking for we use scrum you won't get that, it's a combination of practices necessary for a team that works with a large number of stakeholders. Matt On 5/6/09 12:10 PM, Vivian Richard kanps...@... wrote: Matt just a question regarding your software development process- what exact methodology do you guys(you flex team) follow to develop the Flex platform? On Wed, May 6, 2009 at 1:23 PM, Matt Chotin mcho...@... mailto:mchotin%40adobe.com wrote: Are you building apps in a modular fashion where those modules need to support different Flex versions? Do you have nightmares where Alex is explaining SecurityDomains and ApplicationDomains and SWFLoader.loadForCompatibility? Please let me know (email me at mcho...@... mailto:mchotin%40adobe.com ), we're trying to evaluate some pain points and whether I need to bribe the Player team to solve them ASAP or if it can wait a release. Matt
[flexcoders] Re: TileList dataprovider change bug?
For now I am shelving TileList in favour of a custom component to do the job. I'll put together an isolated test case and see what is going on. If I find something I open a bug. Thanks for your time and attention, folks. -Raj --- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote: Hmm, never had a problem like this with a TileList. You can try myOldArrayCollection.removeAll(), before setting to the new ArrayCollection. (Hack) Also, make sure that you reset any filterFunctions that you may be using. Perhaps there is something else that is not getting reset before you try to add; some kind of cache? Or, the problem is with the add logic. If the TileList clears, then the dataProvider is clear (filterFunction withstanding). I would look around a little wider, in addition to fucusing on the TileList. -TH --- In flexcoders@yahoogroups.com, Ritu Raj Tiwari rituraj.tiwari@ wrote: Jake, Thanks for your response, but this did not help. I am still seeing the exact same behaviour. It is as if changing the data provider somehow does not really clean things out in the tile list. -Raj --- In flexcoders@yahoogroups.com, jake@ jake@ wrote: Instead of switching arraycollections, leave the arraycollection alone and alter the arraycollection.source (Array). I've had weird things happen with binding to an arraycollection and just altering the source array fixed the issue. -- Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com 402-408-3733 x103 From: Ritu Raj Tiwari rituraj.tiwari@ Sent: Tuesday, May 05, 2009 8:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] TileList dataprovider change bug? I am seeing some strange behaviour with TileList. I am hoping someone can shed some light on this: I have a TileList where I assign it an ArrayCollection for its dataProvider. As I add objects to this collection, the tile list updates faithfully. The problem happens when I switch the dataProvider to a new one. I start with an empty array collection and sure enough, the tile list is empty. When I add the first item to the new dataProvider, I see the last item from the previous dataProvider as the first entry in the list. As I add more items, I see more items from the previous data provider. Has someone else encountered this? It is definitely a bug, I am wondering if there is an easy workaround, like, say, creating my own TileList subclass that clears the right thing? Thanks in advance for any insights. -Raj
[flexcoders] Re: how open .doc (words )file
Farid, Why not use OpenOffice on the backend and do the transcoding there? -Raj --- In flexcoders@yahoogroups.com, farid wl fari...@... wrote: Hi Dear friends anybody knows how we can read and open .doc files in flex and convert it to pdf on fly with action scripts or php . I use of AMF to transfer value object between flex and php. PLease help me . BR farid valipour
Re: [flexcoders] Re: Are you using the Marshall Plan?
You are definitely a candidate for the Marshall Plan since you are trying to avoid recompiling modules. However, it sounds like in your current setup you would need to recompile. Please make sure to check out the docs at http://www.adobe.com/go/learn_flex_loading_applications_en Matt On 5/6/09 5:23 PM, Bjorn Schultheiss bjorn.mailingli...@gmail.com wrote: Our current Modules are all in sdk 3.3 So far all is good. We hope that if we decide to introduce modules later down the track the were solely built using sdk 4+ that this would not be painful. We hope that we will not have to use the 4+ sdk to compile our 3.3 modules against in this scenario? Have I been to vague? even if this is not the issue you were directly referring to? Thanks, Bjorn --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Matt Chotin mcho...@... wrote: I wouldn't say there's an exact methodology. We have some elements of agile (like iterations, unit tests, ability to respond to feedback and adjust), but as a platform we also need to make sure we have specifications, assigned Quality Engineers, schedules, etc. So if you're looking for we use scrum you won't get that, it's a combination of practices necessary for a team that works with a large number of stakeholders. Matt On 5/6/09 12:10 PM, Vivian Richard kanps...@... wrote: Matt just a question regarding your software development process- what exact methodology do you guys(you flex team) follow to develop the Flex platform? On Wed, May 6, 2009 at 1:23 PM, Matt Chotin mcho...@... mailto:mchotin%40adobe.com wrote: Are you building apps in a modular fashion where those modules need to support different Flex versions? Do you have nightmares where Alex is explaining SecurityDomains and ApplicationDomains and SWFLoader.loadForCompatibility? Please let me know (email me at mcho...@... mailto:mchotin%40adobe.com ), we're trying to evaluate some pain points and whether I need to bribe the Player team to solve them ASAP or if it can wait a release. Matt
[flexcoders] Data changed in xml file does not updated in mx:xml
Hi all, mx:XML id=trendyXML source=data/casual.xml / Some where in my source code: imageRepeater.dataProvider=trendyXML.image; The result is the repeater display all records in the xml files. However, I need to keep update xml file and RECOMPILE the app with flex builder in order for the xml updates to take effect. I would like to get the data updated by only editing the xml file without recpmpile the program. Anyway how I can fix this? henry
[flexcoders] Re: Data changed in xml file does not updated in mx:xml
Hi Hery, You probably have the Copy non-embedded files to output folder compiler option selected. So, the xml file that your application is referencing is in the bin-debug folder. If you change that file directly, you should be able to get the new data without re-compiling the application. Of course, this file will be replaced each time that you DO recompile; so be careful. -TH --- In flexcoders@yahoogroups.com, jam35bond jam35b...@... wrote: Hi all, mx:XML id=trendyXML source=data/casual.xml / Some where in my source code: imageRepeater.dataProvider=trendyXML.image; The result is the repeater display all records in the xml files. However, I need to keep update xml file and RECOMPILE the app with flex builder in order for the xml updates to take effect. I would like to get the data updated by only editing the xml file without recpmpile the program. Anyway how I can fix this? henry
Re: [flexcoders] McAfee slowdown of the application load
It would probably have to do with the McAfee IE addon, site advisor I believe? Basically it checks every link to see if they are malicious, among other things. They are typically written poorly (or maybe the IE infrastructure is bad) hence funny issues like this, and the need for an IE safe mode. Check if it exists by going to Tools - manage addons. I would suspect the user would have similar issues on other flash websites. There probably isn't much you can do on your end unfortunately. On 5/7/09, aizmail aizmay...@advisorsoftware.com wrote: We are experience some strange behavior on the Windows Machine with McAfee Security Suite installed. Here is the description of behavior: We launch the Flex App in IE and there is a lap between the page is loaded and app starts initialization. During that time user sees white screen. If we launch the same app in the same browser , for example in the next new tab, that lap is increasing, almost like +1 or +2 seconds per tab. If t all McAfee services shutdown then that behavior goes away. This behavior is also not present in Firefox. The app itself uses Charts, and AMF components with Blaze DS and is done by using Flex SDK 3 or Flex Builder 3. But I think it is irrelevant to the problem. The behavior is also consistent whether the app compiled with or without RSLs. Has anybody experienced such an issue? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Sent from my mobile device
[flexcoders] Re: Data changed in xml file does not updated in mx:xml
If not, you'll have to use URLLoader or HTTPService to load the xml. -TH --- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote: Hi Hery, You probably have the Copy non-embedded files to output folder compiler option selected. So, the xml file that your application is referencing is in the bin-debug folder. If you change that file directly, you should be able to get the new data without re-compiling the application. Of course, this file will be replaced each time that you DO recompile; so be careful. -TH --- In flexcoders@yahoogroups.com, jam35bond jam35bond@ wrote: Hi all, mx:XML id=trendyXML source=data/casual.xml / Some where in my source code: imageRepeater.dataProvider=trendyXML.image; The result is the repeater display all records in the xml files. However, I need to keep update xml file and RECOMPILE the app with flex builder in order for the xml updates to take effect. I would like to get the data updated by only editing the xml file without recpmpile the program. Anyway how I can fix this? henry
[flexcoders] re: Books - Flex
2 books that I've found to be a big help are: Adobe Flex, Training from the Source, by Adobe Press Programming Flex, O'Reilly, Kazoun and Lott I basically learned flex by going through the Training from the Source book, it teaches you, sort of tutorial style, how to build a multi media shopping cart application The programming flex book is useful as a more detailed reference Also there is much free online documentation from Adobe themselves that is great Tony Hi people, My name's Gustavo and I'm new on Flex. I'd like to know your opinion about good books I can buy. Thank you!
Re: [flexcoders] Context menu is not working for Flash Player 10
Two things to verify before that. 1 - Did you instantiate correctly to call the warpper js? 2 - When you debug what erros you got? Regards Igor On Tue, May 5, 2009 at 3:26 PM, Dharmendra Chauhan chauhan_i...@yahoo.comwrote: Hi, My Application is working fine with Flash Player9 but with FP10,it's somewhat broken.I am calling some external method throw ExternalInterFace on Context Menu Select event.None of the method is getting called with FP 10 ie call is not being made. Everything is working fine in FP9 have anybody encountered this issue ? what would be the possible workaround for it ? -- Igor Costa www.igorcosta.com www.igorcosta.org
[flexcoders] Re: Data changed in xml file does not updated in mx:xml
From the docs for mx:XML: The source property specifies an external source, such as a file, for the data model. The external source can contain static data and data binding expressions. The compiler reads the source value and compiles the source into the application; the source value is not read at runtime. -TH --- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote: If not, you'll have to use URLLoader or HTTPService to load the xml. -TH --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Hi Hery, You probably have the Copy non-embedded files to output folder compiler option selected. So, the xml file that your application is referencing is in the bin-debug folder. If you change that file directly, you should be able to get the new data without re-compiling the application. Of course, this file will be replaced each time that you DO recompile; so be careful. -TH --- In flexcoders@yahoogroups.com, jam35bond jam35bond@ wrote: Hi all, mx:XML id=trendyXML source=data/casual.xml / Some where in my source code: imageRepeater.dataProvider=trendyXML.image; The result is the repeater display all records in the xml files. However, I need to keep update xml file and RECOMPILE the app with flex builder in order for the xml updates to take effect. I would like to get the data updated by only editing the xml file without recpmpile the program. Anyway how I can fix this? henry
Re: [flexcoders] VBox that scrolls without a scrollbar
Charles As Alex said, you have to write your own VBox Class to update the scroll position. And other thing to keep in mind is that the default mouse wheel behavior in Mac OS doesn`t work correctly, look at google for a replacement for that. Hope you enjoy! Igor On Tue, May 5, 2009 at 5:00 PM, Charles Parcell pokemonkil...@gmail.comwrote: I have a VBox and I want it to scroll using the mouse wheel and some arrow buttons that I will build. The problem is, if I set the verticalScrollPolicy = off then the VBox does not scroll at all. How can I visually turn off the scrollbar and keep the ability to scroll? Thanks, Charles P. -- Igor Costa www.igorcosta.com www.igorcosta.org
[flexcoders] Designing Flex application
Hi all, i need to design my flex application.I need free flash editable template for this purpose.how to get this flash template. Or any other idea ,to design flex application... Thanks Regards, S.Senthilkumar
[flexcoders] Re: how open .doc (words )file
How would you gain access to the .doc XML? --- In flexcoders@yahoogroups.com, Weyert de Boer w...@... wrote: I would think that using the Word COM+ objects would be the easiest way to read Word documents. Of course, you can also only support the XML-based version of Word documents Office 2007. On 6/05/2009, at 6:23 PM, farid wl wrote: Hi Dear friends anybody knows how we can read and open .doc files in flex and convert it to pdf on fly with action scripts or php . I use of AMF to transfer value object between flex and php. PLease help me . BR farid valipour
Re: [flexcoders] re: Books - Flex
The O'Reilly Flex 3 Cookbook (Noble Anderson) is very good, too. On Wed, May 6, 2009 at 18:54, Tony Obermeit t...@tamborine.to wrote: 2 books that I've found to be a big help are: Adobe Flex, Training from the Source, by Adobe Press Programming Flex, O'Reilly, Kazoun and Lott I basically learned flex by going through the Training from the Source book, it teaches you, sort of tutorial style, how to build a multi media shopping cart application The programming flex book is useful as a more detailed reference Also there is much free online documentation from Adobe themselves that is great Tony Hi people, My name's Gustavo and I'm new on Flex. I'd like to know your opinion about good books I can buy. Thank you!
[flexcoders] Re: TileList dataprovider change bug?
--- In flexcoders@yahoogroups.com, Ritu Raj Tiwari rituraj.tiw...@... wrote: I am seeing some strange behaviour with TileList. I am hoping someone can shed some light on this: I have a TileList where I assign it an ArrayCollection for its dataProvider. As I add objects to this collection, the tile list updates faithfully. The problem happens when I switch the dataProvider to a new one. I start with an empty array collection and sure enough, the tile list is empty. When I add the first item to the new dataProvider, I see the last item from the previous dataProvider as the first entry in the list. As I add more items, I see more items from the previous data provider. Has someone else encountered this? It is definitely a bug, I am wondering if there is an easy workaround, like, say, creating my own TileList subclass that clears the right thing? http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf Q2
[flexcoders] Read pdf file
Hi all. I see that AIR can access pdf file and display it by htmlloader. But to manipulate with it, firstly I need to write javascript function and add to each pdf file like http://www.adobe.com/devnet/air/flex/quickstart/scripting_pdf.html What I want is manipulate with random pdf file and do some action (copy all text to clipboard, or convert pdf file to text file). The reason is I want to read information from pdf file then get important data. So how to write external javascript which can do it and don't need write any added javascript on pdf file. Thank advanced any help Hai Anh
[flexcoders] Tracking a sprite's position
Hey flexers, I have Sprite C which is inside of Sprite B which is inside of Sprite A which is inside of UIComponent A. UIComponent A and UIComponent B are both children of a common Canvas. I need UIComponentB to always be positioned over the top-left of Sprite C (so it appears to be stuck to Sprite C). ALWAYS. So if Sprite C is scaled or moved, if Sprite B is scaled or moved, if Sprite A is scaled or moved, if UIComponent A is scaled or moved or ANYTHING happens that would affect Sprite C's position, I need UIComponent B to always follow its position. Is there a good way to do this? My first thought is to poll SpriteC's coordinates on every enterFrame event, but it seems like it might be overkill. Thoughts? Thanks! Aaron
[flexcoders] How to do a function/method in a Tree for the label
Hello all, I am having some troubles with the tree control and an array collection. I have this tree and the data provider is pointing to an array collection. This is working great, I now have to create a label function for the labelField. So this is what I did: public function TreeNodeLabel(obj:Object):String { return obj.name; } Here is my MXML code: mx:Tree x=510 y=271 dataProvider={this._ac} labelField={this.TreeNodeLabel()}/mx:Tree What am I supposed to use as the argument in the mxml code for the this.TreeNodeLabel() ? Thanks, timgerr
Re: [flexcoders] Books - Flex
Hi Gustavo, well, that highly depends on what are your immediate needs for this knowledge and how much time you have. Others here will advise you to simply look for internet tutorials, which are indeed great and enough. But I just like to buy and read books :) Right after I found out that I would need to learn flex, first book I read was Learning Flex 3 http://oreilly.com/catalog/9780596517328/, in my opinion it's the best book for absolute beginners, covers all the important fundaments. I read it within a week, and soon after I was able to do some tinkering in some projects at my job. After this, I've read AdvancED Flex 3http://www.friendsofed.com/book.html?isbn=9781430210276, also a very good one in my opinion. From then on I pretty much stood with internet resources. Specially in light of the fact that there's no books on BlazeDS, red5, especific frameworks, or many other technologies you may need to use. Att, Leonardo 2009/5/6 axcdnt axc...@gmail.com Hi people, My name's Gustavo and I'm new on Flex. I'd like to know your opinion about good books I can buy. Thank you!
[flexcoders] Re: How to do a function/method in a Tree for the label
See labelFunction. -TH --- In flexcoders@yahoogroups.com, timgerr tgallag...@... wrote: Hello all, I am having some troubles with the tree control and an array collection. I have this tree and the data provider is pointing to an array collection. This is working great, I now have to create a label function for the labelField. So this is what I did: public function TreeNodeLabel(obj:Object):String { return obj.name; } Here is my MXML code: mx:Tree x=510 y=271 dataProvider={this._ac} labelField={this.TreeNodeLabel()}/mx:Tree What am I supposed to use as the argument in the mxml code for the this.TreeNodeLabel() ? Thanks, timgerr