Re: [flexcoders] Flex RAM memory use - (probably a question for the player engineers?)
Thanks - yes turned out to be that. Much appreciated! On Thu, Feb 26, 2009 at 4:35 PM, Alex Harui aha...@adobe.com wrote: Are you using SWFObject? http://groups.google.com/group/swfobject/browse_thread/thread/d94bc23037ddc714 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 *Ashish Verma *Sent:* Thursday, February 26, 2009 5:27 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Flex RAM memory use - (probably a question for the player engineers?) For the first problem I don't have clue but for second problem I can say that it's due to weird behaviour of Flash Garbage Collector. On Thu, Feb 26, 2009 at 2:48 PM, nwebb neilw...@gmail.com wrote: Hi, we're having 2 issues with memory in Flex: 1) Part way through our Flex application we open an external HTML page (3rd party page). The user selects items from this page and then closes the page the control is then returned to the Flex application. This 3rd party page is heavy in terms of memory, and that memory is never getting released once the page is closed. Is it at all possible that Flex is holding on to a handle to that page and if so is there any way to release it, or is this definitely not a Flex problem, and more a browser issues or issue with the external page as I expect? 2) The Flex app is one part of a much larger website. When we proceed past the Flex app (ie the user proceeds to a page where the app isn't embedded), again much of the memory Flex was using doesn't seem to be getting released. A browser issue? Needless to say IE seems to be much more of a memory hog, but we've been looking at this in both IE and FireFox. Any help much appreciated. Cheers, Neil
Re: [flexcoders] RSL Error after changing to 3.3
On Thursday 05 Mar 2009, azona26 wrote: Flex Error #1001: Digest mismatch with RSL http://127.0.0.1/framework_3.2.0.3958.swf. Redeploy the matching RSL or relink your application with the matching library. Looks like the app is trying to use old versions of the RSL. The ones I have here are: 1b5bc2b38f959de94f3e8d4f695d2c65 /opt/flex-sdk-3.3_withMatchingChartingRelease_and_AIR-1.5.1/frameworks/rsls/framework_3.3.0.4852.swf 51734ac9ad178e47cb012998d8228bb2 /opt/flex-sdk-3.3_withMatchingChartingRelease_and_AIR-1.5.1/frameworks/rsls/framework_3.3.0.4852.swz Have you done a clean rebuild and deploy ? -- Tom Chiverton Helping to autoschediastically embrace value-added eyeballs as part of the IT team of the year, '09 and '08 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] Lazy loading in AdvancedDataGrid using RemoteObject
Hi guys, I am strugeling to figure out lazy loading in my AdvancedDataGrid. I didnt find any relevant document on that. If I'm using ItemRenderer for my columns to do manipulation on the data, it is executed when I click on the grouped (branch )column. This is good if I ahve a dataprovider with all data. But if I want lazy loading, When or where should I create my RemoteObject to fetch the relevant data from the server? Can I do it in my ItemRenderer? Other option, If I catch a click from my AdvancedDataGrid and figure out the parentId, and fetch the relevant data from the server, how can I activate the Itemrenderer that I need to manipulate with this new data? Many questions regard this Lazy loading, can you guide me here please? Thanks a lot Jo
[flexcoders] server side swf compilation
I'm looking at making a client side swf slightly more secure (I know that you should never trust the client, but in this case it's not needed to be 100% watertight and logging in, getting session ID's etc isn't an option). What I'm thinking of is passing a swf from the server to the main app swf running in the browser. This part is fine, but what I'm not sure on is if I want the server to pass in a variable to the swf that's getting passed up to the app what is the best way to do this. I was thinking of using the web-tier compiler and each time we need to pass up the unique swf modify a mxml/as file which will make that swf unique. The server will at the same time keep track of what unique value it passed in so that it can use it later when the main app responds. (the swf will be some form of puzzle, think CAPTCHA - unique value used to generate problem, user solves it and their request is accepted). Anyone else done something similar, ideas, pointers? Any docs on the performance of the web-tier compiler? Thanks in advance Kenneth. 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] Open Source Library for Draw Graph
Hi, someone know an open source library for writing VISUALLY graph ?? Thanks.
[flexcoders] Re: Embedding Flash Player
Just a quick note to say we recently released a version of Shu http://shu-player.com that is compatible with the standard AIR redistribution license from Adobe. We created this version specifically for developers concerned about gettting a 'custom' license from Adobe. As of yesterday, we also changed the prices of each of the three versions of Shu. --- In flexcoders@yahoogroups.com, Jules Suggate julian.sugg...@... wrote: Hi list, long-time-no-post :) I've a gnarly one here. I contract to a VC funded startup formed to create a cross-platform desktop client. Unfortunately AIR's APIs are not low-level enough (e.g. you can't burn a CD with AIR). We've looked at Zinc, Shu Player, Janus and the rest but Zinc and Janus don't support MacOS very well and the legal issues around Shu Player make us wary of using it. This is a consumer-facing app and needs to be squeaky clean. How about embedding the NPAPI FP10 in a Java process? That would be cross-platform, and we could use NPRuntime to interact seamlessly from Java. The Flash Player license allows us to automate download of the FP10 installer, however these are the problems we still face: - If a user doesn't have the player installed, there will be a two-step install process (one for the player, one for our app), which is sooo 90s - We can't legally change the install location of the NPAPI plugin, so if we automate downloads of the NPAPI FP10 and the user doesn't have Mozilla installed it's unclear what we should do - Not sure if we can specify the kind of Player (NPAPI vs ActiveX) to download from adobe.com if the user is on Windows Even for the base case (a user with Mozilla and the NPAPI FP10 plugin installed prior to install of our app), should we talk this over with Adobe legal? Has anyone heard of Adobe entering into custom licensing agreements for this kind of thing (and I mean, actual bonafide true stories, not conjecture based on Adobe's licensing page making passing reference)? Hope this hits someone's cache! Cheers, Jules -- Jules Suggate Owner and Technical Lead Uphill Sprint Limited +64-21-157-8562
[flexcoders] Module unload GC
Hi, I'm using a module in my app. And I'm profiling the app to see if unloading cleans after itself... The thing is the first time I unload nothing happens all the instances are still there in the Profiler. Now if I load the module again, the memory increases and the insatnces no. doubles. However when I unload the second time, the cleaning happens and I'm getting the memory and instances no from before the load. Is this normal, it looks to me like I'm having a module in there all the time after the first load... I'm pretty sure I do my internal cleaning OK before unloading the module, fact proved by the second, third forth load/unload Has anyone bumped into this? How reliable is the Profiler on this? Any input is appreciated. TIA, Claudiu
Re: [flexcoders] Open Source Library for Draw Graph
Have a look at BirdEye: http://code.google.com/p/birdeye Hi, someone know an open source library for writing VISUALLY graph ?? Thanks.
Re: [flexcoders] Launching Air application from ASP .NET
It might be due to the fact that the ASP.NET process does not run in an interactive account, i.e. able to display anything on screen. Try using the runas command from the command prompt and see what it does there. On 3/5/09, akila_ksri akila_k...@yahoo.co.in wrote: The app is already written in Flex and I need to reuse it. I do not want to duplicate the code in ASP .NET. To answer your first question, I want to write the file to the local disk (wherever the ASP .NET app is running). Although I do not think security should be an issue here, I have given complete access to the ASPNET user. --- In flexcoders@yahoogroups.com, Sam Lai samuel@... wrote: ASP.NET executes applications as a different user with a different set of permissions. If you are writing to local storage, it would be in a different location than what you would expect if you are running the app as yourself. Where are you writing to? Can I ask why you are doing this? What does AIR offer that you can't do using ASP.NET on the server? 2009/3/4 akila_ksri akila_k...@...: I have an AIR application that I need to run from an ASP.NET page. I use System.Diagonistics.Process to launch the exe file (on installing the .air file). My application does not seem to working though. It appears in the task manager but does not seem to run properly. On start of the application itself, I write a file to disk. But when I launch this through the Process, no file gets written. Any response is greatly appreciated. Thanks, Akila -- 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
Re: [flexcoders] Launching Air application from ASP .NET
Why would you want to run the AIR application on the webserver where the ASP.NET project is deployed on?
RE: [flexcoders] Re: Flex 3.3 and Flash Player 10.0.22 coming?
Which Flex blog? Not http://blogs.adobe.com/flex/? Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Matt Chotin Sent: 04 March 2009 17:21 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flex 3.3 and Flash Player 10.0.22 coming? No license change, just a change in how we provided the bits since we didn't update FB. I blogged the 3 DMV bug fixes on the Flex team blog. On 3/4/09 12:09 AM, Gregor Kiddie gkid...@inpses.co.uk wrote: I think I missed this one! Does this release of the DMV code mean that we don't need a license for it anymore? Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Matt Chotin Sent: 03 March 2009 17:33 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flex 3.3 and Flash Player 10.0.22 coming? Rollout wasn't so smooth but everything's up now. http://www.adobe.com/products/flex/flexdownloads/ http://www.adobe.com/products/flex/flexdownloads/ The DMV bits are there too. SDK bug fixes are here: https://bugs.adobe.com/jira/secure/IssueNavigator.jspa?mode=hiderequest Id=12020 https://bugs.adobe.com/jira/secure/IssueNavigator.jspa?mode=hidereques tId=12020 I'll get one for DMV too, though you can search the bugbase yourself. Reminder that there is no associated 3.0.3 Flex Builder coming. Also I didn't write an article for this one since it's mostly bug fixes, many of them related to Marshall Plan. Also it obviously has the new Players. Have fun! Matt On 3/3/09 8:33 AM, tntomek tnto...@yahoo.com wrote: --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tianzhen Lin tang...@... wrote: Not sure if this is old news, I just noticed a massive commit of Flex framework classes on Flex framework's repository, along with a nifty comment Merge 3.x revisions 5042,5072-5073,5090-5091 - trunk This includes the latest released player 10.0.22.87 Coincidentally, I also noticed the Flex online documentation is now referring Flex 3.3, http://livedocs.adobe.com/flex/3/langref/mx/effects/Sequence.html http://livedocs.adobe.com/flex/3/langref/mx/effects/Sequence.html Something new are definitely around the corner... (rubbing hands) - T. Looks like 3.3 is out officially. Still no mention about how the separate DMV is supposed to ship since there is no FB 3.03 to go with this release. Feb 5 build http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3 http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3
[flexcoders] Re: Compressing messages/data: What binary/compression formats are workable in Flex?
What kind of server do you have? I was fairly sure there was an implementation of AMF for every server out there. --- In flexcoders@yahoogroups.com, David Adams dpad...@... wrote: * Use AMF. Can't. It's not supported on the server and a project constraint is thou shalt not implement binary protocols by hand.
[flexcoders] Re: Menubar sub menu pop up orientation
Take a look at... http://dougmccune.com/blog/2007/01/25/vertical-menubar-component/ It looks like someone has already modified that component to do what you want (See comment from Brian M). --- In flexcoders@yahoogroups.com, Sefi Ninio sefi.ni...@... wrote: Bump... Anyone? On Mon, Mar 2, 2009 at 3:12 PM, Sefi Ninio sefi.ni...@... wrote: Hmm... No-one can think of a way? I have tried everything I can think of, but nothing makes the menu bar open upwards instead of downwards... I am desperate! Any help would be greatly appreciated. Thanks, Sefi On Sun, Mar 1, 2009 at 9:38 AM, Sefi Ninio sefi.ni...@... wrote: Bump... Anyone? On Thu, Feb 26, 2009 at 11:41 AM, Sefi Ninio sefi.ni...@...wrote: OK, some updates: What caused me to ask this, was that when I tried it, the sub menu appears to flow off the bottom of the screen. I tried it again, and it seems it only does this for the first time the sub menu appears. The second time, it kinda found out that it was flowing off the screen, and on consecutive clicks after the first the sub menu appears as it should (upwards instead of downwards). I hope I am making sense... :) So, an altered question: Any thoughts on how to control the direction the MenuBar sub menu appears (up or down)? Thanks, Sefi On Thu, Feb 26, 2009 at 10:37 AM, Sefi Ninio sefi.ni...@...wrote: Hi. I have a working MenuBar, with sub menus - all working exactly as I need it to. I was wondering, however, if there was a way to force the sub menu to open upwards instead of downwards in relation to the menu bar. I plan to place the MenuBar on the bottom of the component, and would like to make sure that if the component is placed near the bottom of the screen, that the sub menu pop up won't disappear from lack of screen space. Thanks, Sefi
[flexcoders] Different filtered dataProviders for the same data ?
I have several lookup tables, some of which refer to or are relationships between others. For instance, I have `membership type included inventory` which has Membership ID and Inventory Type ID and is the amount of each Inventory Type that one gets when one gets a specific type of membership. When the user is reviewing an Inventory Type, I want them to see the amounts that go with each Membership Type; when the user is reviewing a Membership Type, I want them to see what inventory that membership would get. Can I use a only one ArrayCollection for InvetoryType instances and only one ArrayCollection for MembershipType instances and somehow create filters to get different views of the data? Each view would need its own cursor, sorting sequence, filter, etc. Cheers
[flexcoders] Web service, parameters, errors... Help please
I'm new to Flex and web services. I've created a web service in PeopleSoft and successfully imported the WSDL into Flex so that it has contacted the PS server and returned data (using mx:WebService and mx:Operation code I found examples of). However, I have been unable to pass a parameter to the service from Flex using that code. I then discovered and followed the sample code in the Flex-generated package, but no matter what I do I cannot successfully supply the myValue in the sample shown below. Here is Flex's own text in my GetInfo.as file built by Flex: * MXML sample code: * First you need to map the package where the files were generated to a namespace, usually on the mx:Application tag, like this: xmlns:ws=com.draper.* * Define the service and within its tags set the request wrapper for the desired operation * ws:GetInfo id=myService * ws:FindID_request_varws:FindID_request Find__CompIntfc__DL_TREE_IB_CI=myValue/ * /ws:FindID_request_var * /ws:GetInfo * Then call the operation for which you have set the request wrapper value above, like this: * mx:Button id=myButton label=Call operation click=myService.FindID_send() / My code is: ws:GetInfo id=userRequest ws:findID_request_varws:FindID_request Find__CompIntfc__DL_TREE_IB_CI=X/ /ws:findID_request_var /ws:GetInfo When I try to run it, Flex is unhappy with the value I am assigning (X above) no matter what I put there. If I omit the double quotes and try to assign a text input field value (which is my goal here), it complains that it expects a double quote. If I put almost anything else there, it complains either: Initializer for 'Find__CompIntfc__DL_TREE_IB_CI'; values of type com.draper.Find__CompIntfc__DL_TREE_IB_CITypeShape cannot be represented as text. or, if I try this line, where I attempt to pass a text input field: ws:FindID_request Find__CompIntfc__DL_TREE_IB_CI={compID.text}/ then I get: 1067: Implicit coercion of a value of type String to an unrelated type com.draper:Find__CompIntfc__DL_TREE_IB_CITypeShape Can anyone help with this please? Thanks Jim
[flexcoders] Newbie : Video Capture and Streaming Questions
Good Day. I hope you'll forgive my very basic questions. I've googled, read FAQ's, and built a few tutorials, and have a very basic app that displays video. But I still have a very basic question. Must I have Flash Media Server in order to capture and save video from a webcam to a server? Is there *any* way I can build a small development, recording app on my existing http://domain? I am a PHP / MySQL developer, so this is all very new to me. Like I said, I can display video, but I'm having a hard time figuring out NetStream.connect() -- unless it's indeed true I need FMS. Thank you in advance for your time and any pointers.
Re: [flexcoders] Recommended MVC for Flex/AS?
Take a look at the attached link http://www.summa-tech.com/blog/2009/01/14/selecting-the-right-flex-application-framework/ On Tue, Mar 3, 2009 at 11:38 AM, Adrian Williams adri...@familytreedna.comwrote: Hi All, I'm curious as to what our overall community would recommend, why and the pros/cons of the various MVC's that are out there for Flex/AS. Thanks, Adrian
[flexcoders] Problem in sorting XMLList collection as a dataProvider for the list
Hi Guys I am trying to sort the xmllist collection which is the dataprovider for the list. As the implementation of name-value pairs, i am displaying the entries in form of string in List and would like to sort all the data displayed in the List alphabetically, I am making a call through amfphp call to grab data from backend and populate XMLListCollection but now I need to sort the data in the list. Below is the code,Can anyone please help me where I am messing things up. Also please let me know if there is any question regarding the code and if there is better way of doing it. Thanks /**CODE/ mx:RemoteObject id=amfSetup source=Setup destination=amfphp mx:method name=getList result=getListHandler(event); fault=getListFault(event);/ /mx:RemoteObject [Bindable] private var entriesXmlListFull:XMLList; [Bindable] private var entriesXmlCollection:XMLListCollection; public function getListHandler(event:ResultEvent):void { entriesXmlListFull = XML(event.result).device; populateEntries(); } private function getListFault(event:FaultEvent):void { Alert.Show(Error retreiving Data); } //Displaying names need to be displayed in the List box private function entriesLabelFunc(item:Object):String { var xmlItem:XML = item as XML; return xmlItem..attribute.(@name==friendlyname); } //Populating List with XML Objects private function populateEntries():void { entriesXmlCollection = new XMLListCollection(); for each(var item:XML in entriesXmlListFull) { var friendlyName:String = item..attribute.(@name==friendlyname); //Only add camera type if ( !recordValue hasFriendlyName (itemType.toUpperCase() == CAMERA) ) { entriesXmlCollection.addItem(item); } } //Calling Sort on XMLList collection entriesXmlCollection.sort = sortList; entriesXmlCollection.refresh(); } mx:Sort id=sortList mx:fields mx:SortField name=* caseInsensitive=true / /mx:fields /mx:Sort mx:List id=listData dataProvider={entriesXmlCollection} labelFunction=entriesLabelFunc/
[flexcoders] Best way to send variable among MXML page
Hi, what the best way to send variable request (for java Develper like ServletRequest.getParameter) among MXML page ? I send parameters trough the SharedObject API but I think is not the best way. Anyone has any advice on this? Thanks.
Re: [flexcoders] Recommended MVC for Flex/AS?
Hi Alex, Thanks so much for the link! That was exactly the kind of information I was looking for. Thanks, Adrian Alex Ninan wrote: Take a look at the attached link http://www.summa-tech.com/blog/2009/01/14/selecting-the-right-flex-application-framework/ http://www.summa-tech.com/blog/2009/01/14/selecting-the-right-flex-application-framework/ On Tue, Mar 3, 2009 at 11:38 AM, Adrian Williams adri...@familytreedna.com mailto:adri...@familytreedna.com wrote: Hi All, I'm curious as to what our overall community would recommend, why and the pros/cons of the various MVC's that are out there for Flex/AS. Thanks, Adrian
Re: [flexcoders] Restricting characters in User input controls
Hi, Thanks this is working good. From: Alex Harui aha...@adobe.com To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Sent: Wednesday, March 4, 2009 11:17:10 AM Subject: RE: [flexcoders] Restricting characters in User input controls Try: mx:Script ![CDATA[ Private function setRestrict( ):void { txtInput.restrict =^’\; } ]] /mx:Script mx:TextArea id=txtInput initialize=”setRestrict( )” Alex Harui Flex SDK Developer Adobe Systems Inc. Blog: http://blogs. adobe.com/ aharui From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of kotha poornima Sent: Tuesday, March 03, 2009 8:59 PM To: flexcoders Subject: Fw: [flexcoders] Restricting characters in User input controls Hi All, Can anyone give me an idea how i can solve this. Thanks in Advance, Poornima - Forwarded Message From: kotha poornima poorni_agile@ yahoo.com To: flexcoders flexcod...@yahoogro ups.com Sent: Tuesday, March 3, 2009 5:20:18 PM Subject: [flexcoders] Restricting characters in User input controls Hi, I want to exclude single quotes and double quotes in the user input So i coded the statement like this: mx:TextArea id=txtInput restrict=^’\ / But iam getting error like this:(Iam not able to exclude double quotes) Element type mx:TextArea must be followed by either attribute specifications, or / Can anyone help me out of this. Thanks in Advance, Poornima
Re: [flexcoders] Restricting characters in User input controls
Hi, Initially thanks for responding but quot; is not working. This is how i solved the issue. private function setRestrict():void{ txtInput.restrict = ^'\; } mx:TextInput id=txtInput initialize=setRestrict()/ Thanks Poornima From: Tracy Spratt tspr...@lariatinc.com To: flexcoders@yahoogroups.com Sent: Wednesday, March 4, 2009 11:40:33 AM Subject: RE: [flexcoders] Restricting characters in User input controls The problem is the quote is causing the msml compile problems. Try using an entity string like quot; Tracy From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of kotha poornima Sent: Tuesday, March 03, 2009 11:59 PM To: flexcoders Subject: Fw: [flexcoders] Restricting characters in User input controls Hi All, Can anyone give me an idea how i can solve this. Thanks in Advance, Poornima - Forwarded Message From: kotha poornima poorni_agile@ yahoo.com To: flexcoders flexcod...@yahoogro ups.com Sent: Tuesday, March 3, 2009 5:20:18 PM Subject: [flexcoders] Restricting characters in User input controls Hi, I want to exclude single quotes and double quotes in the user input So i coded the statement like this: mx:TextArea id=txtInput restrict=^’\ / But iam getting error like this:(Iam not able to exclude double quotes) Element type mx:TextArea must be followed by either attribute specifications, or / Can anyone help me out of this. Thanks in Advance, Poornima
[flexcoders] Location of datavisualization_3.3.0.4589.swz?
Anyone know where this can be found on opensource.adobe.com - or if it exists? I'm hoping that this build addresses a particular font rendering issue. Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c)
[flexcoders] Using sessions in flex
Hi All, Iam getting some issues in Flex. I have two pages in my project one is for non-admin and another for admin users. A link will be shown for non-admin users and not for admin users. While the user is logging in, if the username and password are wrong then it will automatically redirected to non-admin page and a link is showing up there. This is the actual scenario. This working fine when we are executing admin or non-admin at a single time. If in Mozilla if i first execute non-admin page in the first tab so a link will come for me. And in the other tab i am executing admin page. Now the link will not be shown in admin page. So its not showing any link in the admin page but its also not showing in non-admin page also. Non-admin page is affecting by admin page data. Admin and non-admin pages are identified based on Admin flag coming from the database. For admin page admin flag is 1 and non-admin page admin flag is 0. If admin flag is 0 only that link ll be shown. So at the first time if the user execute non-admin page admin flag is 0 and link ll be shown. If the user execute admin page admin flag is 1 and link ll not be shown. So the admin flag is changing to 1 and the link is also not showing in non-admin page also.. So here the problem is how can i save the admin flag value according to the session. Are we able to use sessions in Flex so that i can save the admin flag in the session and i access it based on the session id. Hope u got my problem!! Plzzz help me if anyone faced this issue before.. Thanks in Advance, poornima
Re: [flexcoders] Re: Restricting characters in User input controls
Hi, Initially thanks for responding but ' #034; is not working. This is how i solved the issue. private function setRestrict():void{ txtInput.restrict = ^'\; } mx:TextInput id=txtInput initialize=setRestrict()/ Thanks Poornima From: pavan kumar srinivasan_pa...@yahoo.com To: flexcoders@yahoogroups.com Sent: Wednesday, March 4, 2009 11:37:43 AM Subject: [flexcoders] Re: Restricting characters in User input controls Try using ' #034;' instead of the double quote char Regards, Pavan Kumar S --- On Tue, 3/3/09, kotha poornima poorni_agile@ yahoo.com wrote: From: kotha poornima poorni_agile@ yahoo.com Subject: Fw: [flexcoders] Restricting characters in User input controls To: flexcoders flexcod...@yahoogro ups.com Date: Tuesday, 3 March, 2009, 11:59 PM Hi All, Can anyone give me an idea how i can solve this. Thanks in Advance, Poornima - Forwarded Message From: kotha poornima poorni_agile@ yahoo.com To: flexcoders flexcod...@yahoogro ups.com Sent: Tuesday, March 3, 2009 5:20:18 PM Subject: [flexcoders] Restricting characters in User input controls Hi, I want to exclude single quotes and double quotes in the user input So i coded the statement like this: mx:TextArea id=txtInput restrict=^’\ / But iam getting error like this:(Iam not able to exclude double quotes) Element type mx:TextArea must be followed by either attribute specifications, or / Can anyone help me out of this. Thanks in Advance, Poornima Unlimited freedom, unlimited storage. Get it now, on http://help. yahoo.com/ l/in/yahoo/ mail/yahoomail/ tools/tools- 08.html/
[flexcoders] Images
Ok I am stuck and I am sure it is simple. I have a HBox and I am I have a image in there, now I want to put another image in there and have it butt up against the first so it will look like one, but it puts a space between the images? Also how can I take a slice of a image (say a bar) and have it stretch to a certain width? thanks
Re: [flexcoders] Images
for your first question try horizontalGap=0 property on the hbox I do not understand your second question... On Thu, Mar 5, 2009 at 4:30 PM, Darrin Kay dar...@stop-ing.com wrote: Ok I am stuck and I am sure it is simple. I have a HBox and I am I have a image in there, now I want to put another image in there and have it butt up against the first so it will look like one, but it puts a space between the images? Also how can I take a slice of a image (say a bar) and have it stretch to a certain width? thanks -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
Re: [flexcoders] Images
the space is probably caused by the default horizontal spacing in the HBox. Take that down to 0 and it'll probably work fine. Darrin Kay wrote: Ok I am stuck and I am sure it is simple. I have a HBox and I am I have a image in there, now I want to put another image in there and have it butt up against the first so it will look like one, but it puts a space between the images? Also how can I take a slice of a image (say a bar) and have it stretch to a certain width? thanks
[flexcoders] summaryFunction in Editable AdvancedDatagrid
Hi all, I am using Advanced Data grid for the first time. It is editable in nature. I am unable to display the 'SUM' of the grouped collections corrected after i edit the Text Inputs in the grid. This is my code: MainFile.mxml: ?xml version=1.0 encoding=utf-8 ? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical initialize=init() mx:Script ![CDATA[ import mx.collections.ArrayCollection; import mx.events.AdvancedDataGridEvent; import mx.events.DataGridEvent; import mx.events.ListEvent; import mx.controls.List; import mx.events.ItemClickEvent; import mx.collections.IViewCursor; import mx.controls.Alert; import mx.controls.TextInput; [Bindable]public var num1:Number; [Bindable]public var num2:Number; [Bindable]public var num3:Number; [Bindable]public var num4:Number; [Bindable]public var num5:Number; [Bindable]public var num6:Number; public var newVal:String; [Bindable] public var myArrayCollection:ArrayCollection; private function func(itr:IViewCursor,field:String, str:String=null):Object { myArrayCollection.refresh(); var sum:Number=0; while(!itr.afterLast) { //trace(itr.current) var value:Number = Number(itr.current.Profit); //Alert.show(Number(itr.current.Profit)+); if(!isNaN(value)) { sum+= value; //Alert.show(sum+); } itr.moveNext() } //Alert.show(sum+sum); return sum; } public function init():void { myArrayCollection = new ArrayCollection(arr); } private function getCellInfo(event:AdvancedDataGridEvent):void { myArrayCollection.refresh(); summaryField.summaryFunction=func;// i m trying to call the function to update the sum(total) of the grouped collection after user edits it. } ]] /mx:Script mx:Array id=arr mx:Object From=a1 Subject=a Date=12/08/06 Profit={num1}/ mx:Object From=b1 Subject=b Date=12/08/06 Profit={num2}/ mx:Object From=c1 Subject=c Date=12/08/06 Profit={num3}/ mx:Object From=d1 Subject=d Date=12/08/06 Profit={num4}/ mx:Object From=a1 Subject=e Date=12/07/06Profit={num5}/ mx:Object From=f1 Subject=f Date=12/07/06 ={num6}/ /mx:Array mx:AdvancedDataGrid id=adg displayItemsExpanded=true creationComplete=gc.refresh(); height=300 editable=true itemEditEnd=getCellInfo(event); mx:dataProvider mx:GroupingCollection id=gc source={myArrayCollection} mx:Grouping mx:GroupingField name=From mx:SummaryRow summaryPlacement=last mx:fields mx:SummaryField dataField=Profit label=summary summaryFunction=func id=summaryField/ /mx:fields /mx:SummaryRow /mx:GroupingField /mx:Grouping /mx:GroupingCollection /mx:dataProvider mx:columns mx:AdvancedDataGridColumn id=col1 dataField=From/ mx:AdvancedDataGridColumn dataField=Subject / mx:AdvancedDataGridColumn dataField=Date / mx:AdvancedDataGridColumn dataField=CC / mx:AdvancedDataGridColumn dataField=Profit/ /mx:columns mx:rendererProviders mx:AdvancedDataGridRendererProvider column={col1} columnSpan=0 depth=2 dataField=summary renderer=SummaryRenderer / /mx:rendererProviders /mx:AdvancedDataGrid /mx:Application SummaryRenderer.mxml: ?xml version=1.0 encoding=utf-8 ? mx:Label xmlns:mx=http://www.adobe.com/2006/mxml; textAlign=center mx:Script ![CDATA[ import mx.controls.Alert; import mx.collections.GroupingCollection; import mx.collections.IHierarchicalCollectionView; import mx.controls.AdvancedDataGrid; override public function set data(value:Object):void { super.data = value; var userName:String = ;
Re: [flexcoders] Images
Ok I was given a jpg image to use as the header, and I broke to 3 images, the left logo and right logo. Now in the original image there was a bar that connected the two to make it look like one. But I want the image to move with the size of the screen so the left and right are on the edges. So I cut a slice of the bar and what it to stretch to breach the distance. so it will look like one image no matter what the screen res. Does that make it clearer? On Mar 5, 2009, at 2:33 PM, Fotis Chatzinikos wrote: for your first question try horizontalGap=0 property on the hbox I do not understand your second question... On Thu, Mar 5, 2009 at 4:30 PM, Darrin Kay dar...@stop-ing.com wrote: Ok I am stuck and I am sure it is simple. I have a HBox and I am I have a image in there, now I want to put another image in there and have it butt up against the first so it will look like one, but it puts a space between the images? Also how can I take a slice of a image (say a bar) and have it stretch to a certain width? thanks -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
Re: [flexcoders] Images
width = 100% ? On Thu, Mar 5, 2009 at 4:45 PM, Darrin Kay dar...@stop-ing.com wrote: Ok I was given a jpg image to use as the header, and I broke to 3 images, the left logo and right logo. Now in the original image there was a bar that connected the two to make it look like one. But I want the image to move with the size of the screen so the left and right are on the edges. So I cut a slice of the bar and what it to stretch to breach the distance. so it will look like one image no matter what the screen res. Does that make it clearer? On Mar 5, 2009, at 2:33 PM, Fotis Chatzinikos wrote: for your first question try horizontalGap=0 property on the hbox I do not understand your second question... On Thu, Mar 5, 2009 at 4:30 PM, Darrin Kay dar...@stop-ing.com wrote: Ok I am stuck and I am sure it is simple. I have a HBox and I am I have a image in there, now I want to put another image in there and have it butt up against the first so it will look like one, but it puts a space between the images? Also how can I take a slice of a image (say a bar) and have it stretch to a certain width? thanks -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com, -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
Re: [flexcoders] Images
I tried that, and it did not stretch it out, the img is 1px wide and just puts blank space On Mar 5, 2009, at 2:47 PM, Fotis Chatzinikos wrote: width = 100% ? On Thu, Mar 5, 2009 at 4:45 PM, Darrin Kay dar...@stop-ing.com wrote: Ok I was given a jpg image to use as the header, and I broke to 3 images, the left logo and right logo. Now in the original image there was a bar that connected the two to make it look like one. But I want the image to move with the size of the screen so the left and right are on the edges. So I cut a slice of the bar and what it to stretch to breach the distance. so it will look like one image no matter what the screen res. Does that make it clearer? On Mar 5, 2009, at 2:33 PM, Fotis Chatzinikos wrote: for your first question try horizontalGap=0 property on the hbox I do not understand your second question... On Thu, Mar 5, 2009 at 4:30 PM, Darrin Kay dar...@stop-ing.com wrote: Ok I am stuck and I am sure it is simple. I have a HBox and I am I have a image in there, now I want to put another image in there and have it butt up against the first so it will look like one, but it puts a space between the images? Also how can I take a slice of a image (say a bar) and have it stretch to a certain width? thanks -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com, -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
Re: [flexcoders] Newbie : Video Capture and Streaming Questions
Hi, Yes you need Streaming server like FMS or Red 5 to use NetStream.connect() method. Netconnection Creates a bidirectional connection between a Flash Player or AIR application and a Flash Media Server application. Regards, Pravin 2009/3/5 toejamnyc jtho...@yahoo.com Good Day. I hope you'll forgive my very basic questions. I've googled, read FAQ's, and built a few tutorials, and have a very basic app that displays video. But I still have a very basic question. Must I have Flash Media Server in order to capture and save video from a webcam to a server? Is there *any* way I can build a small development, recording app on my existing http://domain? I am a PHP / MySQL developer, so this is all very new to me. Like I said, I can display video, but I'm having a hard time figuring out NetStream.connect() -- unless it's indeed true I need FMS. Thank you in advance for your time and any pointers.
RE: [flexcoders] Web service, parameters, errors... Help please
The value you want to pass needs to be in the text node, not in an attribute. Something like: Find__CompIntfc__DL_TREE_IB_CIX/Find__CompIntfc__DL_TREE_IB_CI Also, this declarative syntax is hard to debug. I suggest invoking your call in an as function: var sValue:String = X: var oRequest:Object ={ Find__CompIntfc__DL_TREE_IB_CI : sValue }; myService.send(oRequest); Tracy _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jim Sent: Thursday, March 05, 2009 8:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Web service, parameters, errors... Help please I'm new to Flex and web services. I've created a web service in PeopleSoft and successfully imported the WSDL into Flex so that it has contacted the PS server and returned data (using mx:WebService and mx:Operation code I found examples of). However, I have been unable to pass a parameter to the service from Flex using that code. I then discovered and followed the sample code in the Flex-generated package, but no matter what I do I cannot successfully supply the myValue in the sample shown below. Here is Flex's own text in my GetInfo.as file built by Flex: * MXML sample code: * First you need to map the package where the files were generated to a namespace, usually on the mx:Application tag, like this: xmlns:ws=com.draper.* * Define the service and within its tags set the request wrapper for the desired operation * ws:GetInfo id=myService * ws:FindID_request_varws:FindID_request Find__CompIntfc__DL_TREE_IB_CI=myValue/ * /ws:FindID_request_var * /ws:GetInfo * Then call the operation for which you have set the request wrapper value above, like this: * mx:Button id=myButton label=Call operation click=myService.FindID_send() / My code is: ws:GetInfo id=userRequest ws:findID_request_varws:FindID_request Find__CompIntfc__DL_TREE_IB_CI=X/ /ws:findID_request_var /ws:GetInfo When I try to run it, Flex is unhappy with the value I am assigning (X above) no matter what I put there. If I omit the double quotes and try to assign a text input field value (which is my goal here), it complains that it expects a double quote. If I put almost anything else there, it complains either: Initializer for 'Find__CompIntfc__DL_TREE_IB_CI'; values of type com.draper.Find__CompIntfc__DL_TREE_IB_CITypeShape cannot be represented as text. or, if I try this line, where I attempt to pass a text input field: ws:FindID_request Find__CompIntfc__DL_TREE_IB_CI={compID.text}/ then I get: 1067: Implicit coercion of a value of type String to an unrelated type com.draper:Find__CompIntfc__DL_TREE_IB_CITypeShape Can anyone help with this please? Thanks Jim
[flexcoders] URLStream readObject error 2006 when trying to read larger amounts of data
I was wondering if anyone could help me fill in some of the details about how URLStreamer works. Here's what im trying to do: I have a Java back end server that establishes a long lived connection to my Flex front end. I am using URLStreamer to do this. I am then serializing Java objects into AMF and sending these down to the Flex client. Once the data gets to the Flex client I am getting a progressEvent. I then use the readObject method if there are bytes available to be read. This works absolutely fine from small objects, but when I try to send down any object with some actual data in it (probably more than 65535 bytes) i get this Error:#2006 Range Error. Also I get array index out of bounds. Both of these I get on the actual: urlStreamer.readObject() call! My theory is that my message is actually too big and is being split among several different firings of the progressEvent. Here's where I need help: Is my theory correct? If so, how am I supposed to know when I should actually be trying to readObject()? If readObject() is supposed to read the object from the stream...shouldn't it handle these larger objects for me? IE: shouldnt urlStreamer buffer the partial data for me...and only let me readObject when there's a complete object to be read? or should I be buffering the binary that comes in...trying to read object each time there are bytesAvailable and if there are errorsjust swallow them and wait for more bytes? Any help would be appreciated. I've searched these forums, but it seems like no one has been running into things like this. Thanks in advance
Re: [flexcoders] Images
To set an explicit height or width for an imported image, set its height and width properties of the Imagehttp://livedocs.macromedia.com/flex/201/langref/mx/controls/Image.htmlcontrol. Setting the height or width property prevents the parent from resizing it. The scaleContent property has a default value of true, therefore, Flex scales the image as it resizes it to fit the specified height and width. The aspect ratio is maintained by default, so the image may not completely fill the designated space. Set the scaleContent property to false to disable scaling. Set the maintainAspectRatio property to false to allow an image to fill all available space regardless of its dimensions. For more information about image aspect ratios, see Maintaining aspect ratio when sizinghttp://livedocs.adobe.com/flex/201/html/controls_059_19.html#468369 . Maybe try maintainAspectRatio = false? or explicitly set its width to what you want... On Thu, Mar 5, 2009 at 4:51 PM, Darrin Kay dar...@stop-ing.com wrote: I tried that, and it did not stretch it out, the img is 1px wide and just puts blank space On Mar 5, 2009, at 2:47 PM, Fotis Chatzinikos wrote: width = 100% ? On Thu, Mar 5, 2009 at 4:45 PM, Darrin Kay dar...@stop-ing.com wrote: Ok I was given a jpg image to use as the header, and I broke to 3 images, the left logo and right logo. Now in the original image there was a bar that connected the two to make it look like one. But I want the image to move with the size of the screen so the left and right are on the edges. So I cut a slice of the bar and what it to stretch to breach the distance. so it will look like one image no matter what the screen res. Does that make it clearer? On Mar 5, 2009, at 2:33 PM, Fotis Chatzinikos wrote: for your first question try horizontalGap=0 property on the hbox I do not understand your second question... On Thu, Mar 5, 2009 at 4:30 PM, Darrin Kay dar...@stop-ing.com wrote: Ok I am stuck and I am sure it is simple. I have a HBox and I am I have a image in there, now I want to put another image in there and have it butt up against the first so it will look like one, but it puts a space between the images? Also how can I take a slice of a image (say a bar) and have it stretch to a certain width? thanks -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com, -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com, -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
Re: [flexcoders] Using sessions in flex
Flex doesn't have the concept of pages the same way that an HTML application does. Store your session state as part of the Flex App (AKA in the client). And you can hide/unhide sections of the app based on the login credentials. kotha poornima wrote: Hi All, Iam getting some issues in Flex. I have two pages in my project one is for non-admin and another for admin users. A link will be shown for non-admin users and not for admin users. While the user is logging in, if the username and password are wrong then it will automatically redirected to non-admin page and a link is showing up there. This is the actual scenario. This working fine when we are executing admin or non-admin at a single time. If in Mozilla if i first execute non-admin page in the first tab so a link will come for me. And in the other tab i am executing admin page. Now the link will not be shown in admin page. So its not showing any link in the admin page but its also not showing in non-admin page also. Non-admin page is affecting by admin page data. Admin and non-admin pages are identified based on Admin flag coming from the database. For admin page admin flag is 1 and non-admin page admin flag is 0. If admin flag is 0 only that link ll be shown. So at the first time if the user execute non-admin page admin flag is 0 and link ll be shown. If the user execute admin page admin flag is 1 and link ll not be shown. So the admin flag is changing to 1 and the link is also not showing in non-admin page also.. So here the problem is how can i save the admin flag value according to the session. Are we able to use sessions in Flex so that i can save the admin flag in the session and i access it based on the session id. Hope u got my problem!! Plzzz help me if anyone faced this issue before.. Thanks in Advance, poornima -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
RE: [flexcoders] Problem in sorting XMLList collection as a dataProvider for the list
I would use a sort function, so I could debug any problems. I'd also suggest an e4x expression instead of the loop. Tracy _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of anuj181 Sent: Wednesday, March 04, 2009 6:51 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem in sorting XMLList collection as a dataProvider for the list Hi Guys I am trying to sort the xmllist collection which is the dataprovider for the list. As the implementation of name-value pairs, i am displaying the entries in form of string in List and would like to sort all the data displayed in the List alphabetically, I am making a call through amfphp call to grab data from backend and populate XMLListCollection but now I need to sort the data in the list. Below is the code,Can anyone please help me where I am messing things up. Also please let me know if there is any question regarding the code and if there is better way of doing it. Thanks /**CODE/ mx:RemoteObject id=amfSetup source=Setup destination=amfphp mx:method name=getList result=getListHandler(event); fault=getListFault(event);/ /mx:RemoteObject [Bindable] private var entriesXmlListFull:XMLList; [Bindable] private var entriesXmlCollection:XMLListCollection; public function getListHandler(event:ResultEvent):void { entriesXmlListFull = XML(event.result).device; populateEntries(); } private function getListFault(event:FaultEvent):void { Alert.Show(Error retreiving Data); } //Displaying names need to be displayed in the List box private function entriesLabelFunc(item:Object):String { var xmlItem:XML = item as XML; return xmlItem..attribute.(@name==friendlyname); } //Populating List with XML Objects private function populateEntries():void { entriesXmlCollection = new XMLListCollection(); for each(var item:XML in entriesXmlListFull) { var friendlyName:String = item..attribute.(@name==friendlyname); //Only add camera type if ( !recordValue hasFriendlyName (itemType.toUpperCase() == CAMERA) ) { entriesXmlCollection.addItem(item); } } //Calling Sort on XMLList collection entriesXmlCollection.sort = sortList; entriesXmlCollection.refresh(); } mx:Sort id=sortList mx:fields mx:SortField name=* caseInsensitive=true / /mx:fields /mx:Sort mx:List id=listData dataProvider={entriesXmlCollection} labelFunction=entriesLabelFunc/
[flexcoders] Re: Images
Try using style... mx:Style .testImage { background-image: Embed(assets/images/testBg.png); background-size: 100%; } /mx:Style mx:HBox width=100% mx:Label text=test/ mx:Canvas styleName=testImage width=100% height=100%/ mx:Label text=testEnd/ /mx:HBox
[flexcoders] Re: Newbie : Video Capture and Streaming Questions
You need FMS or other Flash Media Server, like RED5 (open source) http://osflash.org/red5 or Wowsa http://www.wowzamedia.com/. --- In flexcoders@yahoogroups.com, toejamnyc jtho...@... wrote: Good Day. I hope you'll forgive my very basic questions. I've googled, read FAQ's, and built a few tutorials, and have a very basic app that displays video. But I still have a very basic question. Must I have Flash Media Server in order to capture and save video from a webcam to a server? Is there *any* way I can build a small development, recording app on my existing http://domain? I am a PHP / MySQL developer, so this is all very new to me. Like I said, I can display video, but I'm having a hard time figuring out NetStream.connect() -- unless it's indeed true I need FMS. Thank you in advance for your time and any pointers.
[flexcoders] Re: Selected item/index in ComboBox
Thanks Tim! callLater() is the solution. - Todd --- In flexcoders@yahoogroups.com, Tim Hoff timh...@... wrote: Hi Todd, Sounds like a timing issue. The popup is instantiated first, then the ComboBox's dataProvider is being set. 1) Best practice would be to use a getter/setter for the ComboBox's dataProvider. In the setter, invalidateProperties(). Then in commitProperties(), run the code that sets the selectedItem. 2) If you just want to use a public var, you can listen for the ArrayCollection's collectionChange event. 3) Try using callLater() -TH --- In flexcoders@yahoogroups.com, twcrone70 twcrone70@ wrote: I recently moved a form into a pop up window. One of the form items is a ComboBox of countries. If you are 'editing' and existing record I preselect (selectedItem) the one associated with the record already. This worked before but now since the form is being populated with countries (bindable ArrayCollection) as the form is created, the selectedItem no longer seems to select anything. Is there some event I can listen to so I know the ComboBox's selectedItem property can be set and show visually. If I run the logic for preselecting manually after the pop up is there, the item is selected. But even if I put the code in 'creationComplete' it still does not select anything visually. - Todd
Re: [flexcoders] try, catch, finally ...
This sounds like the try-catch is not being used as ( how I see ) intended. As Alex mentioned, they are costly so unless you need it, skip it. I suggest just adding an IOErrorEvent listener/handler to the caller, and if/when the call is complete then remove the listener(s) for GC. In the try, catch¹ scenario, your code is always checking¹ for the error. Alan Try-Catch blocks are an absolute necessity as without them, you are putting the operation of your software into the hands of user input errors, http errors, unintended consequences as well as the myriad of things that exist outside the ³Happy Path².
[flexcoders] adobe TV - QR code reader
I'm trying to track down an episode describing how to create a QR code reader with a web cam (the little square barcodes). I know I've watched a video tutorial on this in adobe TV, but I can't find it. Tried multiple searches in Adobe TV and using Google but nothing. Has anyone got a link to the tutorial. 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: Images
You have the three images you mentioned earlier, let's name them imgLogoLeft, imgCenter, imgLogoRight. Take an HBox, (imagine a table in HTML that has 3 columns) placing the imgLogoLeft first, a Spacer to push the logo images apart from one another, and imgLogoRight. With each logo image, you may wish to set the attribute scaleContent to false so the image doesn't scale to the size of the mx:Image/ container. The mx:HBox container's background is set to your small 1 pixel image and then set the backgroundSize attribute to 100% to stretch it to the size of the HBox. mx:HBox width=100% backgroundSize=100% backgroundImage=imgCenter.jpg mx:Image source=imgLogoLeft.jpg scaleContent=false width=50 height=50/ mx:Spacer width=95%/ mx:Image source=imgLogoRight.jpg width=50 height=50 scaleContent=false/ /mx:HBox --- In flexcoders@yahoogroups.com, Darrin Kay dar...@... wrote: I tried that, and it did not stretch it out, the img is 1px wide and just puts blank space On Mar 5, 2009, at 2:47 PM, Fotis Chatzinikos wrote: width = 100% ? On Thu, Mar 5, 2009 at 4:45 PM, Darrin Kay dar...@... wrote: Ok I was given a jpg image to use as the header, and I broke to 3 images, the left logo and right logo. Now in the original image there was a bar that connected the two to make it look like one. But I want the image to move with the size of the screen so the left and right are on the edges. So I cut a slice of the bar and what it to stretch to breach the distance. so it will look like one image no matter what the screen res. Does that make it clearer? On Mar 5, 2009, at 2:33 PM, Fotis Chatzinikos wrote: for your first question try horizontalGap=0 property on the hbox I do not understand your second question... On Thu, Mar 5, 2009 at 4:30 PM, Darrin Kay dar...@... wrote: Ok I am stuck and I am sure it is simple. I have a HBox and I am I have a image in there, now I want to put another image in there and have it butt up against the first so it will look like one, but it puts a space between the images? Also how can I take a slice of a image (say a bar) and have it stretch to a certain width? thanks -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@..., -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@...,
[flexcoders] Cannot upload files using Filereference /PHP returns
I am trying to create a very simple flex/Air app that can load content such as small jpg or text file from a local directory to a content server (ISP using Apache) using the file refernce Class. I am using a simple php script to handle the server side processing, and which is referenced in the url of the URLRequest object. However when ran an IOErrorEvent is fired generated with the code #2038 - stream error. Inspection of responserHeaders provided by the the StatusEvent.HTTP_RESPONSE_STATUS object returns a http status code of 403 (403 Forbidden)and the message You don't have permission to access /MyCMS/uploader.php on this server. I have tested the php script and server directory paths which appears to be correct. Do you have any ideas?
RE: [flexcoders] Location of datavisualization_3.3.0.4589.swz?
I see the new SDK release on adobe.com - thanks. -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Battershall, Jeff Sent: Thursday, March 05, 2009 9:23 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Location of datavisualization_3.3.0.4589.swz? Anyone know where this can be found on opensource.adobe.com - or if it exists? I'm hoping that this build addresses a particular font rendering issue. Jeff Battershall Application Architect Dow Jones Indexes jeff.battersh...@dowjones.com (609) 520-5637 (p) (484) 477-9900 (c) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] how to close a titlewindow that was not created as a popup
hi how can one how to close a titlewindow that was not created as a popup?
[flexcoders] Re: amfphp problem - Client.Error.DeliveryInDoubt - when trying to export image
I had the same problem with Client.Error.DeliveryInDoubt with AMFPHP. I tried everything I could find but could not find a solution. Finally, I tried WebORB and all my problems disappeared. I now use WebORB exclusively and have not had a problem. --- In flexcoders@yahoogroups.com, Rico Leuthold rleuth...@... wrote: Hi, I have a really annoying, randomly occuring, problem with amfphp when I want to export an image file. The application is sending a byteArray (png encoded) to php over amfphp, where the png file is created and the image file is served for download. Sometimes that works perfect, but the suddenly I get the error Message: Client.Error.DeliveryInDoubt - Channel disconnected. When I debug the data flow with Charles I get: The class {Amf3Broker} could not be found under the class path {[...]/ amfphp/services/amfphp/Amf3Broker.php I searched through the web to find a solution to this and tried out every thing I could find. A huge problem is, that this happens just from time to time. Usually I can just reload my app to get rid of th problem. Did somebody have the same problem and found a solution to this, or can you give me hint on how to go on? Thank's rico
Re: [flexcoders] Preventing HSlider from moving forward
On Friday 27 Feb 2009, Daman Dogra wrote: I have this requirement in a project where I need to block a slider from moving forward after it reaches a certain value. The user should still be able to move the slider backwards though. Just set the maximum property ? -- Tom Chiverton Helping to economically utilize dynamic intuitive interactive niches as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] adobe TV - QR code reader
It's the session by Mario Klinggemann. He did that session during Aral's online conference. -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:flexcoders-dig...@yahoogroups.com mailto:flexcoders-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: flexcoders-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] mx:MenuBar - How to choose or trigger on click
I am working on a couple AIR apps that would best be served with a menu bar. Problem is, as where I do understand how to make menu items, I cannot figure out how to trigger a function or switch a viewstack when a menu item is clicked. Lets say I have this: mx:MenuBar x=0 y=80 width=100% id=mainMB click=menuHandler(event) labelField=@label mx:XMLList menuitem label=Practice Tests menuitem label=Load Test data=load/ menuitem label=End Test data=cancel/ /menuitem /mx:XMLList /mx:MenuBar I want to trigger a function when either the load or cancel is selected. How?
[flexcoders] HTTPService vs URLRequest
Surprisingly, I am having a very difficult time finding any discussion on the advantages of using HTTPService instead of URLRequest. I've always used URLRequest to handle my web API calls. What are some of the benefits of using the HTTPService instead? I like URLLoader because my network libraries aren't dependant on flex, but I don't quite understand why Adobe makes very little mention of URLLoader in their Flex documentation, and also doesn't have any articles comparing HTTPService to URLLoader.
[flexcoders] Re: Adding verticalaxis(es) via actionscript
--- In flexcoders@yahoogroups.com, Trefalgar Bain trefal...@... wrote: --- In flexcoders@yahoogroups.com, Amy amyblankenship@ wrote: --- In flexcoders@yahoogroups.com, Trefalgar Bain trefalgar@ wrote: --- In flexcoders@yahoogroups.com, Amy amyblankenship@ wrote: I think you just need to play with the dataFunctions and/or labelfunctions on the axes until you get what you want. DataFunction sets the data up to be graphed on the line (sets the yField and xField). The lines are graphing fine, just not on the right axis. Do you have a dataFunction on the axes? Negative. The xField and yField are defined globally within the data returned to the flex application: There you go. Try using matching data functions on your axes and serieses.
Re: [flexcoders] Preventing HSlider from moving forward
On Friday 27 Feb 2009, Daman Dogra wrote: I have this requirement in a project where I need to block a slider from moving forward after it reaches a certain value. The user should still be able to move the slider backwards though. Just set the maximum property ? -- Tom Chiverton Helping to economically utilize dynamic intuitive interactive niches as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
RE: [flexcoders] adobe TV - QR code reader
Thanks that one step closer but the search on Adobe TV is quite rubbish. Don't suppose you have a link. I found the guys blog site but searching that didn't turn up a URL. Cheers. -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Weyert de Boer Sent: 05 March 2009 15:52 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] adobe TV - QR code reader It's the session by Mario Klinggemann. He did that session during Aral's online conference. -- 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 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] mx:MenuBar - How to choose or trigger on click - Never Mind
Never mind. Found it From: Wally Kolcz wko...@isavepets.com Sent: Thursday, March 05, 2009 7:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] mx:MenuBar - How to choose or trigger on click I am working on a couple AIR apps that would best be served with a menu bar. Problem is, as where I do understand how to make menu items, I cannot figure out how to trigger a function or switch a viewstack when a menu item is clicked. Lets say I have this: mx:MenuBar x=0 y=80 width=100% id=mainMB click=menuHandler(event) labelField=@label mx:XMLList menuitem label=Practice Tests menuitem label=Load Test data=load/ menuitem label=End Test data=cancel/ /menuitem /mx:XMLList /mx:MenuBar I want to trigger a function when either the load or cancel is selected. How?
RE: [flexcoders] adobe TV - QR code reader
Got it, eventually. If anyone is interested it's a presentation called 'here be pixels' and was recorded at max 2008. http://tv.adobe.com/#vi+f15384v1012 phew, that seems to take forever to find. Thanks. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Kenneth Sutherland Sent: 05 March 2009 16:20 To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] adobe TV - QR code reader Thanks that one step closer but the search on Adobe TV is quite rubbish. Don't suppose you have a link. I found the guys blog site but searching that didn't turn up a URL. Cheers. -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Weyert de Boer Sent: 05 March 2009 15:52 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] adobe TV - QR code reader It's the session by Mario Klinggemann. He did that session during Aral's online conference. -- 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 Disclaimer This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. Disclaimer --- This electronic message contains information which may be privileged and confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone on 0131 476 6000 and delete the material from your computer. Registered in Scotland number: SC 172507. Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. This email message has been scanned for viruses by Mimecast. ---
Re: [flexcoders] adobe TV - QR code reader
http://tv.adobe.com/#vi+f15384v1012 -- 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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:flexcoders-dig...@yahoogroups.com mailto:flexcoders-fullfeatu...@yahoogroups.com * To unsubscribe from this group, send an email to: flexcoders-unsubscr...@yahoogroups.com * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Web service, parameters, errors... Help please
Tracy, The value you want to pass needs to be in the text node, not in an attribute. Something like: Find__CompIntfc__DL_TREE_IB_CIX/Find__CompIntfc__DL_TREE_IB_CI The above line won't work; it gets the error message about Initializer for 'Find__CompIntfc__DL_TREE_IB_CI'; values of type com.draper.Find__CompIntfc__DL_TREE_IB_CITypeShape cannot be represented as text. with or without quotes. I wonder if you would be willing to help me flesh out the function path (As I said, I'm pretty new to this, both Flex and ActionScript). private function betterway (): void { var myService:GetInfo = new GetInfo();(is that right for myService?) var sValue:String = something; var oRequest:Object ={ Find__CompIntfc__DL_TREE_IB_CI : sValue }; myService.send(); If I try this, I get an error that there is no send() method for GetInfo. If I switch it to myService.findID(oRequest) I get an error that type Object is being coerced to possibly unrelated type com.draper:Find__CompIntfc__DL_TREE_IB_CITypeShape. Thanks for any light you can shed. Also, this declarative syntax is hard to debug. I suggest invoking your call in an as function: var sValue:String = X: var oRequest:Object ={ Find__CompIntfc__DL_TREE_IB_CI : sValue }; myService.send(oRequest); Tracy _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jim Sent: Thursday, March 05, 2009 8:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Web service, parameters, errors... Help please I'm new to Flex and web services. I've created a web service in PeopleSoft and successfully imported the WSDL into Flex so that it has contacted the PS server and returned data (using mx:WebService and mx:Operation code I found examples of). However, I have been unable to pass a parameter to the service from Flex using that code. I then discovered and followed the sample code in the Flex-generated package, but no matter what I do I cannot successfully supply the myValue in the sample shown below. Here is Flex's own text in my GetInfo.as file built by Flex: * MXML sample code: * First you need to map the package where the files were generated to a namespace, usually on the mx:Application tag, like this: xmlns:ws=com.draper.* * Define the service and within its tags set the request wrapper for the desired operation * ws:GetInfo id=myService * ws:FindID_request_varws:FindID_request Find__CompIntfc__DL_TREE_IB_CI=myValue/ * /ws:FindID_request_var * /ws:GetInfo * Then call the operation for which you have set the request wrapper value above, like this: * mx:Button id=myButton label=Call operation click=myService.FindID_send() / My code is: ws:GetInfo id=userRequest ws:findID_request_varws:FindID_request Find__CompIntfc__DL_TREE_IB_CI=X/ /ws:findID_request_var /ws:GetInfo When I try to run it, Flex is unhappy with the value I am assigning (X above) no matter what I put there. If I omit the double quotes and try to assign a text input field value (which is my goal here), it complains that it expects a double quote. If I put almost anything else there, it complains either: Initializer for 'Find__CompIntfc__DL_TREE_IB_CI'; values of type com.draper.Find__CompIntfc__DL_TREE_IB_CITypeShape cannot be represented as text. or, if I try this line, where I attempt to pass a text input field: ws:FindID_request Find__CompIntfc__DL_TREE_IB_CI={compID.text}/ then I get: 1067: Implicit coercion of a value of type String to an unrelated type com.draper:Find__CompIntfc__DL_TREE_IB_CITypeShape Can anyone help with this please? Thanks Jim
[flexcoders] How do you populate a DTO from view components?
Hi, I'm looking for a better solution for it. I have two solutions: 1- With a model declared with a DTO(MXML) user:User id=user login={inputLogin.text} password={inputPassword.text}/ 2- With custom components, like it: apolloti:TextInputBindable text={model.user.login} entity={model.user} attribute=login/ But I'm not happy. Does anybody has an another solution? The problem is that the [Bindable] doesn't have a bind bi-direcional, like Seam Thanks
[flexcoders] How to show the web image in Flex?
Hi, I want to something like html in Flex img src=http://www.somecompany.com/img/test.gif; / I also want to show the image in Flex without downloading it to local. mx:Image can show a local image and how to show web image. Thanks Mark
[flexcoders] Re: mx:MenuBar - How to choose or trigger on click
Use the itemClick event instead of the click event. vis... ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.events.MenuEvent; private function menuHandler(event:MenuEvent):void { trace(event.it...@data); } ]] /mx:Script mx:MenuBar x=0 y=80 width=100% id=mainMB itemClick=menuHandler(event) labelField=@label mx:XMLList menuitem label=Practice Tests menuitem label=Load Test data=load/ menuitem label=End Test data=cancel/ /menuitem /mx:XMLList /mx:MenuBar /mx:Application --- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote: I am working on a couple AIR apps that would best be served with a menu bar. Problem is, as where I do understand how to make menu items, I cannot figure out how to trigger a function or switch a viewstack when a menu item is clicked. Lets say I have this: mx:MenuBar x=0 y=80 width=100% id=mainMB click=menuHandler(event) labelField=@label mx:XMLList menuitem label=Practice Tests menuitem label=Load Test data=load/ menuitem label=End Test data=cancel/ /menuitem /mx:XMLList /mx:MenuBar I want to trigger a function when either the load or cancel is selected. How?
Re: [flexcoders] How to show the web image in Flex?
mx:image source=the web image source? On Thu, Mar 5, 2009 at 6:45 PM, markflex2007 markflex2...@yahoo.com wrote: Hi, I want to something like html in Flex img src=http://www.somecompany.com/img/test.gif; / I also want to show the image in Flex without downloading it to local. mx:Image can show a local image and how to show web image. Thanks Mark -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation fotis.chatzini...@gmail.com,
Re: [flexcoders] How do you populate a DTO from view components?
You can get 2-way binding in MXML using the mx:binding tag. I'm not sure if that would be cleaner / better than your current approach, though. Rodrigo Pereira Fraga wrote: Hi, I'm looking for a better solution for it. I have two solutions: 1- With a model declared with a DTO(MXML) user:User id=user login={inputLogin.text} password={inputPassword.text}/ 2- With custom components, like it: apolloti:TextInputBindable text={model.user.login} entity={model.user} attribute=login/ But I'm not happy. Does anybody has an another solution? The problem is that the [Bindable] doesn't have a bind bi-direcional, like Seam Thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Jeffry Houser, Technical Entrepreneur Adobe Community Expert: http://tinyurl.com/684b5h http://www.twitter.com/reboog711 | Phone: 203-379-0773 -- Easy to use Interface Components for Flex Developers http://www.flextras.com?c=104 -- http://www.theflexshow.com http://www.jeffryhouser.com -- Part of the DotComIt Brain Trust
[flexcoders] AsyncToken with special chars
Hi there, I've run into an issue that I am sure others have, but I cannot find a solution. I am using cairngorm with a webservice. I need to send in my soap body the less than and greater than characters. In my mxml based on user input, I use lt;gt;. I follow the call and flex converts the lt;gt; to until the AsyncToken gets a hold of it. It should convert it back to lt;gt; for the soap call, however it takes the first and converts that too.. so the outgoing soap looks like this amp;lt;gt; instead of lt;gt;. Anyone know why this is happening or a solution? Thanks in advance
[flexcoders] [Tree][move scrollbar to selectedIndex] how to ?
Hello everybody, after much search on programatically opening a tree node, openItems, selectedIndex, and calllater magic, I managed to open AND select a node deep inside an mx:tree. The problem? this node might be lower in the tree than is visible (scrollbars appear as needed). Any ideas how to move the scrollbar where the selected node is? TIA, Fotis
Re: [flexcoders] How do you populate a DTO from view components?
Can ChangeWatcher be used in your case ? -- Anggie Bratadinata | www.masputih.com | Indonesia On Thu, Mar 5, 2009 at 11:39 PM, Rodrigo Pereira Fraga rpf...@gmail.comwrote: Hi, I'm looking for a better solution for it. I have two solutions: 1- With a model declared with a DTO(MXML) user:User id=user login={inputLogin.text} password={inputPassword.text}/ 2- With custom components, like it: apolloti:TextInputBindable text={model.user.login} entity={model.user} attribute=login/ But I'm not happy. Does anybody has an another solution? The problem is that the [Bindable] doesn't have a bind bi-direcional, like Seam Thanks
RE: [flexcoders] Preventing HSlider from moving forward
How are your users interacting with the slider? Be sure to cover all interactions - i.e. clicking on the track to move the slider, dragging the thumb, etc. You can listen for the change, thumbPress, thumbRelease, and thumbDrag events and provide your functionality there. In the thumbDrag handler you could check the value against the one you are limiting the position to, and kill the event there. HTH, Ryan From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Tom Chiverton Sent: Thursday, March 05, 2009 9:13 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Preventing HSlider from moving forward On Friday 27 Feb 2009, Daman Dogra wrote: I have this requirement in a project where I need to block a slider from moving forward after it reaches a certain value. The user should still be able to move the slider backwards though. Just set the maximum property ? -- Tom Chiverton Helping to economically utilize dynamic intuitive interactive niches as part of the IT team of the year, '09 and '08 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 http://www.halliwells.com/ . This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.
Re: [flexcoders] AsyncToken with special chars
This sounds like your problem: https://bugs.adobe.com/jira/browse/SDK-18326 Fixed in the 3.0.3 that recently went out, according to the release notes. -Original Message- From: thibodeau.alain thibodeau.al...@yahoo.com Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] AsyncToken with special chars Date: Thu, 05 Mar 2009 16:58:59 - Hi there, I've run into an issue that I am sure others have, but I cannot find a solution. I am using cairngorm with a webservice. I need to send in my soap body the less than and greater than characters. In my mxml based on user input, I use lt;gt;. I follow the call and flex converts the lt;gt; to until the AsyncToken gets a hold of it. It should convert it back to lt;gt; for the soap call, however it takes the first and converts that too.. so the outgoing soap looks like this amp;lt;gt; instead of lt;gt;. Anyone know why this is happening or a solution? Thanks in advance
Re: [flexcoders] Re: Flex 3.3 and Flash Player 10.0.22 coming?
Oops, I screwed up and forgot to set it to publish. Should go live in a sec. Note that we screwed up the symlinks for AIR that are used by the Mac. We have a script available at http://bugs.adobe.com/jira/browse/SDK-19707 that can fix this and we'll be updating the bits in the next day or so. Matt On 3/5/09 5:06 AM, Gregor Kiddie gkid...@inpses.co.uk wrote: Which Flex blog? Not http://blogs.adobe.com/flex/? Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Matt Chotin Sent: 04 March 2009 17:21 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flex 3.3 and Flash Player 10.0.22 coming? No license change, just a change in how we provided the bits since we didn't update FB. I blogged the 3 DMV bug fixes on the Flex team blog. On 3/4/09 12:09 AM, Gregor Kiddie gkid...@inpses.co.uk wrote: I think I missed this one! Does this release of the DMV code mean that we don't need a license for it anymore? Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk blocked::http://www.inps.co.uk/ The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Matt Chotin Sent: 03 March 2009 17:33 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flex 3.3 and Flash Player 10.0.22 coming? Rollout wasn't so smooth but everything's up now. http://www.adobe.com/products/flex/flexdownloads/ The DMV bits are there too. SDK bug fixes are here: https://bugs.adobe.com/jira/secure/IssueNavigator.jspa?mode=hiderequestId=12020 I'll get one for DMV too, though you can search the bugbase yourself. Reminder that there is no associated 3.0.3 Flex Builder coming. Also I didn't write an article for this one since it's mostly bug fixes, many of them related to Marshall Plan. Also it obviously has the new Players. Have fun! Matt On 3/3/09 8:33 AM, tntomek tnto...@yahoo.com wrote: --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tianzhen Lin tang...@... wrote: Not sure if this is old news, I just noticed a massive commit of Flex framework classes on Flex framework's repository, along with a nifty comment Merge 3.x revisions 5042,5072-5073,5090-5091 - trunk This includes the latest released player 10.0.22.87 Coincidentally, I also noticed the Flex online documentation is now referring Flex 3.3, http://livedocs.adobe.com/flex/3/langref/mx/effects/Sequence.html Something new are definitely around the corner... (rubbing hands) - T. Looks like 3.3 is out officially. Still no mention about how the separate DMV is supposed to ship since there is no FB 3.03 to go with this release. Feb 5 build http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3
RE: [flexcoders] how to close a titlewindow that was not created as a popup
Listen for the close event, then removeChild(). HTH, Ryan From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of stinasius Sent: Thursday, March 05, 2009 8:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] how to close a titlewindow that was not created as a popup hi how can one how to close a titlewindow that was not created as a popup? This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.
[flexcoders] Passing reference to a custom class
Ok I'm not sure that this is possible BUT: I have written a class to simplify our data transfers for my developers, but what I wanted to achieve was a single line call to the class that would do everything: var dlAccounts:DataLoader = new DataLoader(php/index.php, vars, model.xmlAccounts, true, pbrLoadProgress); That model.xmlAccounts variable is actually the variable I want to end up having the data in it. What I've seen though is that once it's passed to the class the reference to it is broken, so any data put into the class variable that holds it does not end up in model.xmlAccounts. I know that I SHOULD create an event that gets run when the data is loaded, which I've done and it works great there, but I was hoping to accomplish this all with 1 single call considering nothing really needs to happen after the load is completed everything from there works on bindings. I guess one idea is that I could potentially declare model.xmlAccounts as my class instead of an XML object, which would mean that class handles everything for that variable. Anyone wanna scream at me for doing something that silly? :P Thanks, Deane
Re: [flexcoders] Module unload GC
Garbage Collection happens when it needs to happen. You have no control over it. This is from Grant Skinner's blog: *Deferred GC and Indeterminacy* A *very* important thing to understand about the Garbage Collector in FP9 is that it's operations are deferred. Your objects will not be removed immediately when all active references are deleted, instead they will be removed at some indeterminate time in the future (from a developer standpoint). The GC uses a set of heuristics that look at RAM allocation and the size of the memory stack (among other things) to determine when to run. As a developer, you must accept that fact that you will have no way of knowing when (or even if) your inactive objects will get deallocated. You must also be aware that inactive objects will continue to execute indefinitely (until the GC deallocates it), so code will keep running (ex. enterFrames), sounds will keep playing, loads will keep happening, events will keep firing, etc. It's very important to remember that you have no control over when your objects will be deallocated, so you must make them as inert as possible when you are finished with them. Strategies to manage this will be the focus for a future article. On Thu, Mar 5, 2009 at 3:58 AM, Claudiu Ursica the_bran...@yahoo.comwrote: Hi, I'm using a module in my app. And I'm profiling the app to see if unloading cleans after itself... The thing is the first time I unload nothing happens all the instances are still there in the Profiler. Now if I load the module again, the memory increases and the insatnces no. doubles. However when I unload the second time, the cleaning happens and I'm getting the memory and instances no from before the load. Is this normal, it looks to me like I'm having a module in there all the time after the first load... I'm pretty sure I do my internal cleaning OK before unloading the module, fact proved by the second, third forth load/unload Has anyone bumped into this? How reliable is the Profiler on this? Any input is appreciated. TIA, Claudiu -- Cheers, Nate http://blog.natebeck.net
RE: [flexcoders] HTTPService vs URLRequest
Of course HTTPService uses URLLoader when you are using a direct connection to your server. HTTPService supports resultFormats, data binding, proxying with blazeDS, channel set failover, MXML tag definition, and AsyncToken's for more flexible code notification. URLLoader is well covered in the flash documentation but there's no reason you can't use it for Flex too. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Osman Ullah Sent: Thursday, March 05, 2009 7:57 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] HTTPService vs URLRequest Surprisingly, I am having a very difficult time finding any discussion on the advantages of using HTTPService instead of URLRequest. I've always used URLRequest to handle my web API calls. What are some of the benefits of using the HTTPService instead? I like URLLoader because my network libraries aren't dependant on flex, but I don't quite understand why Adobe makes very little mention of URLLoader in their Flex documentation, and also doesn't have any articles comparing HTTPService to URLLoader. inline: image001.jpginline: image002.jpg
Re: [flexcoders] Module unload GC
I read this too, however when watching in profiler the gc runs a removes a set of the instances, the thing that bothers me is that after first load/unload the memory looks like the module is there. After the second load looks like 2 modules are load I get duplicate instances ... After the second unload and forcing running gc a few times from profilet a set of instances is collected, but i still have the memory looking like I have one module in there. I don't get it how come that on set of instances are removed and one is there for good... It seems there is no way to see if my cleaning is actually hapenning ... One could say is happening since the second, third, forth load/unload are actually cleaned but there's still a set of instances in the memory ... From: Nate Beck n...@tldstudio.com To: flexcoders@yahoogroups.com Sent: Thursday, March 5, 2009 7:55:01 PM Subject: Re: [flexcoders] Module unload GC Garbage Collection happens when it needs to happen. You have no control over it. This is from Grant Skinner's blog: Deferred GC and Indeterminacy A *very* important thing to understand about the Garbage Collector in FP9 is that it's operations are deferred. Your objects will not be removed immediately when all active references are deleted, instead they will be removed at some indeterminate time in the future (from a developer standpoint). The GC uses a set of heuristics that look at RAM allocation and the size of the memory stack (among other things) to determine when to run. As a developer, you must accept that fact that you will have no way of knowing when (or even if) your inactive objects will get deallocated. You must also be aware that inactive objects will continue to execute indefinitely (until the GC deallocates it), so code will keep running (ex. enterFrames) , sounds will keep playing, loads will keep happening, events will keep firing, etc. It's very important to remember that you have no control over when your objects will be deallocated, so you must make them as inert as possible when you are finished with them. Strategies to manage this will be the focus for a future article. On Thu, Mar 5, 2009 at 3:58 AM, Claudiu Ursica the_braniak@ yahoo.com wrote: Hi, I'm using a module in my app. And I'm profiling the app to see if unloading cleans after itself... The thing is the first time I unload nothing happens all the instances are still there in the Profiler. Now if I load the module again, the memory increases and the insatnces no. doubles. However when I unload the second time, the cleaning happens and I'm getting the memory and instances no from before the load. Is this normal, it looks to me like I'm having a module in there all the time after the first load... I'm pretty sure I do my internal cleaning OK before unloading the module, fact proved by the second, third forth load/unload Has anyone bumped into this? How reliable is the Profiler on this? Any input is appreciated. TIA, Claudiu -- Cheers, Nate - - - - http://blog. natebeck. net
[flexcoders] Problem in Sorting XMLListCollection (which is dataProvider for) the List
Hi Guys I am trying to sort the dataProvider in the list which is in the form of XMLListCollection, I am using amfPHP for grabbing data in the form of XMLListCollection and for the display purpose I am using labelfunction to display just the friendly name of my entries which is the specific attribute from the XMLListCollection. I went through few tutorials online for sorting and came up with the following code but some how this is not working, Can any one please help me in figruing out whats going on here and why sorting of the list is not working, Thanks /**CODE*/ mx:RemoteObject id=amfSetup source=Setup destination=amfphp mx:method name=getList result=getListHandler(event); fault=getListFault(event);/ /mx:RemoteObject [Bindable] private var entriesXmlListFull:XMLList; [Bindable] private var entriesXmlCollection:XMLListCollection; public function getListHandler(event:ResultEvent):void { entriesXmlListFull = XML(event.result).device; populateEntries(); } private function getListFault(event:FaultEvent):void { Alert.Show(Error retreiving Data); } //Displaying names need to be displayed in the List box private function entriesLabelFunc(item:Object):String { var xmlItem:XML = item as XML; return xmlItem..attribute.(@name==friendlyname); } //Populating List with XML Objects private function populateEntries():void { entriesXmlCollection = new XMLListCollection(); for each(var item:XML in entriesXmlListFull) { var friendlyName:String = item..attribute.(@name==friendlyname); //Only add camera type if ( !recordValue hasFriendlyName (itemType.toUpperCase() == CAMERA) ) { entriesXmlCollection.addItem(item); } } //Calling Sort on XMLList collection entriesXmlCollection.sort = sortList; entriesXmlCollection.refresh(); } mx:Sort id=sortList mx:fields mx:SortField name=* caseInsensitive=true / /mx:fields /mx:Sort mx:List id=listData dataProvider={entriesXmlCollection} labelFunction=entriesLabelFunc/
[flexcoders] help with httpService Error
Hi, I am using FlexBuilder 3.0.2 and am getting a new error on new projects when using the httpService feature. Here is my httpService control, as copied from an older project which still works: mx:HTTPService id=getmeta method=POST result=gotmeta() contentType=application/x-www-form-urlencoded url=https://www.someserver.edu/myfiles/flexfile.php; useProxy=false fault=show_fault(event.fault) mx:request xmlns= commandgetmetainformation/command idme/id /mx:request /mx:HTTPService When I run the app locally, ctrl+f11 or clicking the run button in eclipse, I get the following error: [RPC Fault faultString=Security error accessing url faultCode=Channel.Security.Error faultDetail=Destination: DefaultHTTP] If I copy the swf file up to the server, it does run correctly there. That exact same httpService control works fine in a project I finished last fall when run locally. The weird thing is that older projects, ones I did as little as a month ago, run just fine when run locally. It's only the new one I started this week. I tried adding site-control permitted-cross-domain-policies=all/ to my crossdomain.xml file, but no go. I am using Flash version 10,0,22,87 within Firefox 3.05 on windows Vista, fully patched. The only thing that I can think that would have changed from a few months ago is that I have a newer version of Flash. Any ideas what might be causing this and how to fix it? Thanks, Bob
[flexcoders] Flash 10 File Chooser
Is there anyway to get the fully qualified path to a selected file rather than just the filename? - Todd
Re: [flexcoders] Module unload GC
Well if we're talking about modules... If you're loading the same module over and over again that might be the problem... A while back I had to modify ModuleLoader and while I was in the code I seem to remember it has some caching built into it. So it may be possible that ModuleLoader is holding on to a reference of a module. I got around the caching issue when loading the same module over and over again by appending a random number to the loaded module. (ex: myModule.swf?uid=123456789). The ModuleLoader stuff I was working on was back in 2.0.1... so it might be very different now. Hope this helps. On Thu, Mar 5, 2009 at 10:08 AM, claudiu ursica the_bran...@yahoo.comwrote: I read this too, however when watching in profiler the gc runs a removes a set of the instances, the thing that bothers me is that after first load/unload the memory looks like the module is there. After the second load looks like 2 modules are load I get duplicate instances ... After the second unload and forcing running gc a few times from profilet a set of instances is collected, but i still have the memory looking like I have one module in there. I don't get it how come that on set of instances are removed and one is there for good... It seems there is no way to see if my cleaning is actually hapenning ... One could say is happening since the second, third, forth load/unload are actually cleaned but there's still a set of instances in the memory ... -- *From:* Nate Beck n...@tldstudio.com *To:* flexcoders@yahoogroups.com *Sent:* Thursday, March 5, 2009 7:55:01 PM *Subject:* Re: [flexcoders] Module unload GC Garbage Collection happens when it needs to happen. You have no control over it. This is from Grant Skinner's blog: *Deferred GC and Indeterminacy* A *very* important thing to understand about the Garbage Collector in FP9 is that it's operations are deferred. Your objects will not be removed immediately when all active references are deleted, instead they will be removed at some indeterminate time in the future (from a developer standpoint). The GC uses a set of heuristics that look at RAM allocation and the size of the memory stack (among other things) to determine when to run. As a developer, you must accept that fact that you will have no way of knowing when (or even if) your inactive objects will get deallocated. You must also be aware that inactive objects will continue to execute indefinitely (until the GC deallocates it), so code will keep running (ex. enterFrames) , sounds will keep playing, loads will keep happening, events will keep firing, etc. It's very important to remember that you have no control over when your objects will be deallocated, so you must make them as inert as possible when you are finished with them. Strategies to manage this will be the focus for a future article. On Thu, Mar 5, 2009 at 3:58 AM, Claudiu Ursica the_braniak@ yahoo.comthe_bran...@yahoo.com wrote: Hi, I'm using a module in my app. And I'm profiling the app to see if unloading cleans after itself... The thing is the first time I unload nothing happens all the instances are still there in the Profiler. Now if I load the module again, the memory increases and the insatnces no. doubles. However when I unload the second time, the cleaning happens and I'm getting the memory and instances no from before the load. Is this normal, it looks to me like I'm having a module in there all the time after the first load... I'm pretty sure I do my internal cleaning OK before unloading the module, fact proved by the second, third forth load/unload Has anyone bumped into this? How reliable is the Profiler on this? Any input is appreciated. TIA, Claudiu -- Cheers, Nate - - - - http://blog. natebeck. net http://blog.natebeck.net -- Cheers, Nate http://blog.natebeck.net
[flexcoders] Re: Different filtered dataProviders for the same data ?
See ICollectionView. -TH --- In flexcoders@yahoogroups.com, Richard C Haven f...@... wrote: I have several lookup tables, some of which refer to or are relationships between others. For instance, I have `membership type included inventory` which has Membership ID and Inventory Type ID and is the amount of each Inventory Type that one gets when one gets a specific type of membership. When the user is reviewing an Inventory Type, I want them to see the amounts that go with each Membership Type; when the user is reviewing a Membership Type, I want them to see what inventory that membership would get. Can I use a only one ArrayCollection for InvetoryType instances and only one ArrayCollection for MembershipType instances and somehow create filters to get different views of the data? Each view would need its own cursor, sorting sequence, filter, etc. Cheers
[flexcoders] Reloading data while navigating a view stack
Using Flex mxml, can you force a reload of data for each module in a viewstack so when the user flips between 'pages' updated data loads?
RE: [flexcoders] help with httpService Error
It's probably something to do with policy file changes in FP9 and 10. Here's some links that explain the changes that may be of help: http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html http://www.adobe.com/devnet/articles/crossdomain_policy_file_spec.html You may want to start troubleshooting with an open crossdomain.xml and start tightening up from there: cross-domain-policy site-control permitted-cross-domain-policies=master-only/ allow-access-from domain=*/ allow-http-request-headers-from domain=* headers=*/ /cross-domain-policy HTH, Ryan From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Ramsey, Robert L Sent: Thursday, March 05, 2009 11:13 AM To: 'flexcoders@yahoogroups.com' Subject: [flexcoders] help with httpService Error Hi, I am using FlexBuilder 3.0.2 and am getting a new error on new projects when using the httpService feature. Here is my httpService control, as copied from an older project which still works: mx:HTTPService id=getmeta method=POST result=gotmeta() contentType=application/x-www-form-urlencoded url=https://www.someserver.edu/myfiles/flexfile.php; useProxy=false fault=show_fault(event.fault) mx:request xmlns= commandgetmetainformation/command idme/id /mx:request /mx:HTTPService When I run the app locally, ctrl+f11 or clicking the run button in eclipse, I get the following error: [RPC Fault faultString=Security error accessing url faultCode=Channel.Security.Error faultDetail=Destination: DefaultHTTP] If I copy the swf file up to the server, it does run correctly there. That exact same httpService control works fine in a project I finished last fall when run locally. The weird thing is that older projects, ones I did as little as a month ago, run just fine when run locally. It's only the new one I started this week. I tried adding site-control permitted-cross-domain-policies=all/ to my crossdomain.xml file, but no go. I am using Flash version 10,0,22,87 within Firefox 3.05 on windows Vista, fully patched. The only thing that I can think that would have changed from a few months ago is that I have a newer version of Flash. Any ideas what might be causing this and how to fix it? Thanks, Bob This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.
Re: [flexcoders] Module unload GC
I'll try that first thing in the morning... For now I'm loading the same module, but in the future there will be more modules, however since we only have one now and still working on it we have to test with one module... The thing I fear the most if that the same thing will happen for different modules, and then I'll have a serious memory leak. The modules will be quite complex with lots of functionality and animations (diffren games loaded on the same shell), that's why cleaning is so important... I was going to duplicate the module into another project to see if that still happens... Right now I'm nullifying manually the url of the module when unloading but whi knows what happens behind the scenes... From: Nate Beck n...@tldstudio.com To: flexcoders@yahoogroups.com Sent: Thursday, March 5, 2009 8:16:52 PM Subject: Re: [flexcoders] Module unload GC Well if we're talking about modules... If you're loading the same module over and over again that might be the problem... A while back I had to modify ModuleLoader and while I was in the code I seem to remember it has some caching built into it. So it may be possible that ModuleLoader is holding on to a reference of a module. I got around the caching issue when loading the same module over and over again by appending a random number to the loaded module. (ex: myModule.swf? uid=123456789) . The ModuleLoader stuff I was working on was back in 2.0.1... so it might be very different now. Hope this helps. On Thu, Mar 5, 2009 at 10:08 AM, claudiu ursica the_braniak@ yahoo.com wrote: I read this too, however when watching in profiler the gc runs a removes a set of the instances, the thing that bothers me is that after first load/unload the memory looks like the module is there. After the second load looks like 2 modules are load I get duplicate instances ... After the second unload and forcing running gc a few times from profilet a set of instances is collected, but i still have the memory looking like I have one module in there. I don't get it how come that on set of instances are removed and one is there for good... It seems there is no way to see if my cleaning is actually hapenning ... One could say is happening since the second, third, forth load/unload are actually cleaned but there's still a set of instances in the memory ... From: Nate Beck n...@tldstudio. com To: flexcod...@yahoogro ups.com Sent: Thursday, March 5, 2009 7:55:01 PM Subject: Re: [flexcoders] Module unload GC Garbage Collection happens when it needs to happen. You have no control over it. This is from Grant Skinner's blog: Deferred GC and Indeterminacy A *very* important thing to understand about the Garbage Collector in FP9 is that it's operations are deferred. Your objects will not be removed immediately when all active references are deleted, instead they will be removed at some indeterminate time in the future (from a developer standpoint). The GC uses a set of heuristics that look at RAM allocation and the size of the memory stack (among other things) to determine when to run. As a developer, you must accept that fact that you will have no way of knowing when (or even if) your inactive objects will get deallocated. You must also be aware that inactive objects will continue to execute indefinitely (until the GC deallocates it), so code will keep running (ex. enterFrames) , sounds will keep playing, loads will keep happening, events will keep firing, etc. It's very important to remember that you have no control over when your objects will be deallocated, so you must make them as inert as possible when you are finished with them. Strategies to manage this will be the focus for a future article. On Thu, Mar 5, 2009 at 3:58 AM, Claudiu Ursica the_braniak@ yahoo.com wrote: Hi, I'm using a module in my app. And I'm profiling the app to see if unloading cleans after itself... The thing is the first time I unload nothing happens all the instances are still there in the Profiler. Now if I load the module again, the memory increases and the insatnces no. doubles. However when I unload the second time, the cleaning happens and I'm getting the memory and instances no from before the load. Is this normal, it looks to me like I'm having a module in there all the time after the first load... I'm pretty sure I do my internal cleaning OK before unloading the module, fact proved by the second, third forth load/unload Has anyone bumped into this? How reliable is the Profiler on this? Any input is appreciated. TIA, Claudiu -- Cheers, Nate - - - - http://blog. natebeck. net -- Cheers, Nate - - - - http://blog. natebeck. net
[flexcoders] Developing Rich Clients with Macromedia Flex - source code?
Hi, I have this book but lost my copy of the source code I originally downloaded. The authors website (http://flexbook.iterationtwo.com/, http://www.flexbook.iterationtwo.com/) is down. Does anyone know how to contact the authors Stephen Webster and Alistair McCleod or maybe has a copy? Thanks, Libby
[flexcoders] problem with a loaded swf
Hi I have this problem probably I'm wrong, but here it is: I have an external swf loaded into flex3, the swf has a button instance named continuar when I load the swf, I make it as MovieClip, but when I try to do this, happens an error. this is the code for the button: var myflash:MovieClip = myFlash.content as MovieClip; myflash.continuar.addEventListener(MouseEvent.CLICK, continuarClick); function continuarClick(e:MouseEvent):void{ currentState=start; } here is the error I'm having all the time. TypeError: Error #1009: Cannot access a property or method of a null object reference. at gusDuenas/init()[/Users/gduenas/Documents/Flex Builder 3/ gusDuenas/src/gusDuenas.mxml:18] at gusDuenas/___gusDuenas_Application1_creationComplete()[/Users/ gduenas/Documents/Flex Builder 3/gusDuenas/src/gusDuenas.mxml:2] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks \projects\framework\src\mx\core\UIComponent.as:9051] at mx.core::UIComponent/set initialized()[E:\dev\3.0.x\frameworks \projects\framework\src\mx\core\UIComponent.as:1167] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x \frameworks\projects\framework\src\mx\managers\LayoutManager.as:698] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x \frameworks\projects\framework\src\mx\core\UIComponent.as:8460] at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks \projects\framework\src\mx\core\UIComponent.as:8403] I hope you can help me out. Regards, Gustavo Duenas
[flexcoders] Re: file.upload() works fine on mac os x, does not work on a PC
bump! is it a headers issue? --- In flexcoders@yahoogroups.com, sunild99 sunilbd...@... wrote: Are you doing this w/an account that does not have the local admin privilege on the Windows workstation? Or does it work when you use HTTP? Just a guess, Sunil --- In flexcoders@yahoogroups.com, tchredeemed apthorp@ wrote: I tried this in all browsers on my mac (firefox, safari, camino), and it uploaded fine. I tried this on all browsers on my pc (firefox, ie6, ie7), and it did not. file.upload( new URLRequest( _appGlobals.serverURL+data/attachment/?order_id=+_appGlobals.order.id ) ); serverURL = https://www.oursite.com/ order_id is set for some reason, it is faulting! any ideas why?
RE: [flexcoders] problem with a loaded swf
If the external swf is another FlexSWF, then a button is at myFlash.document.continuar. If it is a Flash SWF, it is possible that the button hasn't been created yet. 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 Gustavo Duenas Sent: Thursday, March 05, 2009 10:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] problem with a loaded swf Hi I have this problem proba! bly I'm wrong, but here it is: I have an exte! rnal swf loaded into flex3, the swf has a button instance name! d conti nuar when I load the swf, I make it ! as Movie Clip, but when I try to do this, happens an error. this is the code for the button: var myflash:MovieClip = myFlash.content as MovieClip; myflash.continuar.addEventListener(MouseEvent.CLICK, continuarClick); function continuarClick(e:MouseEvent):void{ currentState=start; ! } here is the error I'm having all the time. TypeError: Error #1009: Cannot access a property or method of a null object re! ference. at gusDuenas/init()[/Users/gduenas/Documents/Flex Builder 3/gusDuenas/src/gusDuenas.mxml:18] at gusDuenas/___gusDuenas_Application1_creationComplete()[/Users/gduenas/Documents/Flex Builder 3/gusDuenas/src/gusDuenas.mxml:2] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051] at mx.core::UIComponent/! set init ialized()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1167] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:698] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460] at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projec! ts\framework\src\mx\core\UIComponent.as:8403] I hope you can help me out. Regards, Gustavo Duenas
RE: [flexcoders] Module unload GC
Modules will unload when there are no longer any references to the classes or objects in a module. There is a cache, but it uses weak references and will release the module when using the gc button in the profiler. The browser caches module SWFs but that won't affect this issue. Nate's solution sounded like the solution to the problem where you update a module on the server and want to load the new one. If a module brings in a component that hasn't been loaded before, usually it brings in a CSSStyleDeclaration for it as well which gets registered with the central StyleManager and pins the module. You can check the id in the id column to see if the module that is pinned is the first one loaded. 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 claudiu ursica Sent: Thursday, March 05, 2009 10:26 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Module unload GC I'll try that first thing in the morning... For now I'm loading the same module, but in the future there will be more modules, however since we only have one now and still working on it we have to test with one module... The thing I fear the most if that the same thing will happen for different modules, and then I'll have a serious memory leak. The modules will be quite complex with lots of functionality and animations (diffren games loaded on the same shell), that's why cleaning is so important... I was going to duplicate the module into another project to see if that still happens... Right now I'm nullifying manually the url of the module when unloading but whi knows what happens behind the scenes... From: Nate Beck n...@tldstudio.com To: flexcoders@yahoogroups.com Sent: Thursday, March 5, 2009 8:16:52 PM Subject: Re: [flexcoders] Module unload GC Well if we're talking about modules... If you're loading the same module over and over again that might be the problem... A while back I had to modify ModuleLoader and while I was in the code I seem to remember it has some caching built into it. So it may be possible that ModuleLoader is holding on to a reference of a module. I got around the caching issue when loading the same module over and over again by appending a random number to the loaded module. (ex: myModule.swf? uid=123456789) . The ModuleLoader stuff I was working on was back in 2.0.1... so it might be very different now. Hope this helps. On Thu, Mar 5, 2009 at 10:08 AM, claudiu ursica the_braniak@ yahoo.commailto:the_bran...@yahoo.com wrote: I read this too, however when watching in profiler the gc runs a removes a set of the instances, the thing that bothers me is that after first load/unload the memory looks like the module is there. After the second load looks like 2 modules are load I get duplicate instances ... After the second unload and forcing running gc a few times from profilet a set of instances is collected, but i still have the memory looking like I have one module in there. I don't get it how come that on set of instances are removed and one is there for good... It seems there is no way to see if my cleaning is actually hapenning ... One could say is happening since the second, third, forth load/unload are actually cleaned but there's still a set of instances in the memory ... From: Nate Beck n...@tldstudio. commailto:n...@tldstudio.com To: flexcod...@yahoogro ups.commailto:flexcoders@yahoogroups.com Sent: Thursday, March 5, 2009 7:55:01 PM Subject: Re: [flexcoders] Module unload GC Garbage Collection happens when it needs to happen. You have no control over it. This is from Grant Skinner's blog: Deferred GC and Indeterminacy A *very* important thing to understand about the Garbage Collector in FP9 is that it's operations are deferred. Your objects will not be removed immediately when all active references are deleted, instead they will be removed at some indeterminate time in the future (from a developer standpoint). The GC uses a set of heuristics that look at RAM allocation and the size of the memory stack (among other things) to determine when to run. As a developer, you must accept that fact that you will have no way of knowing when (or even if) your inactive objects will get deallocated. You must also be aware that inactive objects will continue to execute indefinitely (until the GC deallocates it), so code will keep running (ex. enterFrames) , sounds will keep playing, loads will keep happening, events will keep firing, etc. It's very important to remember that you have no control over when your objects will be deallocated, so you must make them as inert as possible when you are finished with them. Strategies to manage this will be the focus for a future article. On Thu, Mar 5, 2009 at 3:58 AM, Claudiu Ursica the_braniak@
[flexcoders] Re: How do you populate a DTO from view components?
mx:Binding and ChangeWatcher don't show me cool, Imagine a DTO with 10 attributes, I'll need to have 10 binds too. Using a ModelLocator to storage data cache, I think that this solution is better: mx:TextInput text={model.user}/ mx:Button click=controller.save(user)/ user:User id=user login={inputLogin.text} password={inputPassword.text}/ .. public var model:MyModel; public var controller:MyController; ... What do you think about it? --- In flexcoders@yahoogroups.com, Anggie Bratadinata anggie.bratadin...@... wrote: Can ChangeWatcher be used in your case ? -- Anggie Bratadinata | www.masputih.com | Indonesia On Thu, Mar 5, 2009 at 11:39 PM, Rodrigo Pereira Fraga rpf...@...wrote: Hi, I'm looking for a better solution for it. I have two solutions: 1- With a model declared with a DTO(MXML) user:User id=user login={inputLogin.text} password={inputPassword.text}/ 2- With custom components, like it: apolloti:TextInputBindable text={model.user.login} entity={model.user} attribute=login/ But I'm not happy. Does anybody has an another solution? The problem is that the [Bindable] doesn't have a bind bi-direcional, like Seam Thanks
RE: [flexcoders] problem with a loaded swf
Document is a Flex thing. I don't recall the scoping rules in Flash, but it may be that the variable is not public or not declared on myFlash. You might also try waiting for frame 206 if there is one. 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 Gustavo Duenas Sent: Thursday, March 05, 2009 11:07 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] problem with a loaded swf yes, is a swf from flash, how could I've possibly known when it is created?, in the timeline of the flash movie it appears on the frame 205, how could I have this on flex, I read something like this. but is still giving me the same error: if(myflash.currentFrame == 205){ myflash.continuar.addEventListener and so on, but it is still giving me the same error, should I use document in the flash swf as well. Regards, Gustavo On Mar 5, 2009, at 1:55 PM, Alex Harui wrote: If the external swf is another FlexSWF, then a button is at myFlash.document.continuar. If it is a Flash SWF, it is possible that the button hasn't been created yet. 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 Gustavo Duenas Sent: Thursday, March 05, 2009 10:33 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] problem with a loaded swf Hi I have this problem proba! bly I'm wrong, but here it is: I have an exte! rnal swf loaded into flex3, the swf has a button instance name! d conti nuar when I load the swf, I make it ! as Movie Clip, but when I try to do this, happens an error. this is the code for the button: var myflash:MovieClip = myFlash.content as MovieClip; myflash.continuar.addEventListener(MouseEvent.CLICK, continuarClick); function continuarClick(e:MouseEvent):void{ currentState=start; ! } here is the error I'm having all the time. TypeError: Error #1009: Cannot access a property or method of a null object re! ference. at gusDuenas/init()[/Users/gduenas/Documents/Flex Builder 3/gusDuenas/src/gusDuenas.mxml:18] at gusDuenas/___gusDuenas_Application1_creationComplete()[/Users/gduenas/Documents/Flex Builder 3/gusDuenas/src/gusDuenas.mxml:2] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051] at mx.core::UIComponent/! set init ialized()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:1167] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:698] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460] at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projec! ts\framework\src\mx\core\UIComponent.as:8403] I hope you can help me out. Regards, Gustavo Duenas
RE: [flexcoders] Problem in sorting XMLList collection as a dataProvider for the list
If you have a labelfunction, you'll probably need a custom sortcompare function 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 anuj181 Sent: Wednesday, March 04, 2009 3:51 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problem in sorting XMLList collection as a dataProvider for the list Hi Guys I am trying to sort the xmllist collection which is the dataprovider for the list. As the implementation of name-value pairs, i am displaying the entries in form of string in List and would like to sort all the data displayed in the List alphabetically, I am making a call through amfphp call to grab data from backend and populate XMLListCollection but now I need to sort the data in the list. Below is the code,Can anyone please help me where I am messing things up. Also please let me know if there is any question regarding the code and if there is better way of doing it. Thanks /**CODE/ mx:RemoteObject id=amfSetup source=Setup destination=amfphp mx:method name=getList result=getListHandler(event); fault=getListFault(event);/ /mx:RemoteObject [Bindable] private var entriesXmlListFull:XMLList; [Bindable] private var entriesXmlCollection:XMLListCollection; public function getListHandler(event:ResultEvent):void { entriesXmlListFull = XML(event.result).device; populateEntries(); } private function getListFault(event:FaultEvent):void { Alert.Show(Error retreiving Data); } //Displaying names need to be displayed in the List box private function entriesLabelFunc(item:Object):String { var xmlItem:XML = item as XML; return xmlItem..attribute.(@name==friendlyname); } //Populating List with XML Objects private function populateEntries():void { entriesXmlCollection = new XMLListCollection(); for each(var item:XML in entriesXmlListFull) { var friendlyName:String = item..attribute.(@name==friendlyname); //Only add camera type if ( !recordValue hasFriendlyName (itemType.toUpperCase() == CAMERA) ) { entriesXmlCollection.addItem(item); } } //Calling Sort on XMLList collection entriesXmlCollection.sort = sortList; entriesXmlCollection.refresh(); } mx:Sort id=sortList mx:fields mx:SortField name=* caseInsensitive=true / /mx:fields /mx:Sort mx:List id=listData dataProvider={entriesXmlCollection} labelFunction=entriesLabelFunc/
RE: [flexcoders] RSL Error after changing to 3.3
I'm not sure existing projects get their settings upgraded so you may have to update the swz options yourself 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 Tom Chiverton Sent: Thursday, March 05, 2009 1:23 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] RSL Error after changing to 3.3 On Thursday 05 Mar 2009, azona26 wrote: Flex Error #1001: Digest mismatch with RSL http://127.0.0.1/framework_3.2.0.3958.swf. Redeploy the matching RSL or relink your application with the matching library. Looks like the app is trying to use old versions of the RSL. The ones I have here are: 1b5bc2b38f959de94f3e8d4f695d2c65 /opt/flex-sdk-3.3_withMatchingChartingRelease_and_AIR-1.5.1/frameworks/rsls/framework_3.3.0.4852.swf 51734ac9ad178e47cb012998d8228bb2 /opt/flex-sdk-3.3_withMatchingChartingRelease_and_AIR-1.5.1/frameworks/rsls/framework_3.3.0.4852.swz Have you done a clean rebuild and deploy ? -- Tom Chiverton Helping to autoschediastically embrace value-added eyeballs as part of the IT team of the year, '09 and '08 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.comhttp://www.halliwells.com/.
[flexcoders] LCDS Upgrade Problems
I am upgrading LCDS from 2.5.1 to 2.6. I have quite a few assemblers that extend the Hibernate assembler and use the Spring factory. On start up the MessageBroker is croaking because of a Null pointer exception in HibernateAssembler line 211. Is the Hibernate assembler code provided in 2.6 as it previously was? (I didn't see it in the install) Has anyone seen this problem or know of any thing to try?
[flexcoders] Word Wrap on the FormItem label
I was wondering if it is possible to word wrap the label that is part of the FormItem. So if I have FormItem label=Some really long label text goes here. Is there a way to make that wrap?
Re: [flexcoders] AsyncToken with special chars
Hmmm, thanks Maciek, but that did not solve it. I updated my sdk and it still does the same? can anyone confirm or deny that this is still a bug? From: Maciek Sakrejda msakre...@truviso.com To: flexcoders@yahoogroups.com Sent: Thursday, March 5, 2009 12:20:43 PM Subject: Re: [flexcoders] AsyncToken with special chars This sounds like your problem: https://bugs. adobe.com/ jira/browse/ SDK-18326 Fixed in the 3.0.3 that recently went out, according to the release notes. -Original Message- From: thibodeau.alain thibodeau.alain@ yahoo.com Reply-To: flexcod...@yahoogro ups.com To: flexcod...@yahoogro ups.com Subject: [flexcoders] AsyncToken with special chars Date: Thu, 05 Mar 2009 16:58:59 - Hi there, I've run into an issue that I am sure others have, but I cannot find a solution. I am using cairngorm with a webservice. I need to send in my soap body the less than and greater than characters. In my mxml based on user input, I use lt;gt;. I follow the call and flex converts the lt;gt; to until the AsyncToken gets a hold of it. It should convert it back to lt;gt; for the soap call, however it takes the first and converts that too.. so the outgoing soap looks like this amp;lt;gt; instead of lt;gt;. Anyone know why this is happening or a solution? Thanks in advance __ Looking for the perfect gift? Give the gift of Flickr! http://www.flickr.com/gift/
Re: [flexcoders] AsyncToken with special chars
For the record, the workaround explained here: https://bugs. adobe.com/ jira/browse/ SDK-18326 worked. TestWS.xmlSpecialCharsFilter = function(value:Object):String { return value.toString(); } Not sure I like the workaround much, but it's all I got for now. If anyone can comfirm the same issues are happening to them in SDK 3.3 and FP 10, that would be great. thanks! From: Alain Thibodeau thibodeau.al...@yahoo.com To: flexcoders@yahoogroups.com Sent: Thursday, March 5, 2009 3:02:50 PM Subject: Re: [flexcoders] AsyncToken with special chars Hmmm, thanks Maciek, but that did not solve it. I updated my sdk and it still does the same? can anyone confirm or deny that this is still a bug? From: Maciek Sakrejda msakre...@truviso. com To: flexcod...@yahoogro ups.com Sent: Thursday, March 5, 2009 12:20:43 PM Subject: Re: [flexcoders] AsyncToken with special chars This sounds like your problem: https://bugs. adobe.com/ jira/browse/ SDK-18326 Fixed in the 3.0.3 that recently went out, according to the release notes. -Original Message- From: thibodeau.alain thibodeau.alain@ yahoo.com Reply-To: flexcod...@yahoogro ups.com To: flexcod...@yahoogro ups.com Subject: [flexcoders] AsyncToken with special chars Date: Thu, 05 Mar 2009 16:58:59 - Hi there, I've run into an issue that I am sure others have, but I cannot find a solution. I am using cairngorm with a webservice. I need to send in my soap body the less than and greater than characters. In my mxml based on user input, I use lt;gt;. I follow the call and flex converts the lt;gt; to until the AsyncToken gets a hold of it. It should convert it back to lt;gt; for the soap call, however it takes the first and converts that too.. so the outgoing soap looks like this amp;lt;gt; instead of lt;gt;. Anyone know why this is happening or a solution? Thanks in advance Instant message from any web browser! Try the new Yahoo! Canada Messenger for the Web BETA __ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now at http://ca.toolbar.yahoo.com.
[flexcoders] Facebook fires up head-to-head battle with Twitter
Facebook fires up head-to-head battle with Twitter Twitter Inc. is at a critical juncture now that the popular Facebook Inc. has redesigned its services to, well, be a lot more like Twitter, according to analysts. http://xrl.us/beif5g _ Mozilla patches eight Firefox bugs, six critical Firefox 3.0.7, the second security update this year to the open-source browser, fixes about the same number of bugs that Mozilla patched a month ago. http://xrl.us/beif4j _ Windows 7 leaks continue as new build hits BitTorrent A second post-beta build of Windows 7 has leaked to file-sharing sites on the Web, according to searches at BitTorrent trackers. http://xrl.us/beifz7 _ Obama's Stimulus Package - Are Your Skills Needed? It was in late November of 2008 when US president-elect Barack Obama announced his economic stimulus package, which aimed to provide millions of new jobs to Americans. This ambitious but seemingly possible approach to the current recession in the country is estimated to have a budget of over $1 trillion. http://xrl.us/beh9xt _
[flexcoders] New with Flex: Problem with data binding
Hi people, I'm starting with Flex technology and have some doubts on how datadinding between client-side objects work. After reading Adobe's Flex3 and playing with some samples I ended up with the following situation: Created a Product.as class declared as bindable. Created a product.mxml in which I declare the following: ... Product id=p name={nameControl.text}/ ... mx:text id=nameControl text={p.name}/ ... For what I understand the first binding is to make sure that the product's name is set to what the user entered in the textControl and the second binding can be used to load an initial value in the textControl from an existing product. right? Now, my Product class actually has a Dimensions(width, height, etc) attribute, where Dimensions is another as class created by me and declared bindable. How can I bind, for example the width of my Product to another textControl? Can I nest a Dimensions tag inside the Product tag? or add to the Product tag an attribute like dimensions.width={widthControl.text}? I'd also like to achieve the same binding by creating the Product instance in actionScript and not using mxml tags. Is this possible? Any example on how to do these will be aprreciated as I tried different ways but couln't get what I want. Any example on the web or open source project that I can use as a guide for this case? (trying to create a list-create-modify-delete screen and want to reuse the Product form for creation and modification) because I found Adobe's examples on this theme to be too simplistic. Thanks in advanced, Martin
[flexcoders] problem with HTTPS
A business requirement for our company is to upload sensitive files over SSL. We have got the uploads working fine over HTTP but are recieving the following error over HTTPS: [IOErrorEvent type=ioError bubbles=false cancelable=false eventPhase=2 text=Error #2038: File I/O Error. URL: https://www.elitehealth.com/secure/patient/eliteonline/webService/upload.php;]. We are aware that the issue is probably due to a misconfiguration with our cross-domain-policy, but are inexperienced with this specific requirement. Any thoughts? We're open to hiring someone to help us with this problem if the solution is fairly complex. Thanks, John
RE: [flexcoders] LCDS Upgrade Problems
I think the problem is that the HibernateAssembler.initialize is not getting called. If you are using the SpringFactory you probably just need a new version of that. I tried putting this up on the adobe component exchange a long time ago but apparently it never made it as I just checked and they still have the old version.I'll try to get that resolved but in the meantime, I put up a copy of the new source file here: http://www.jvroom.com/SpringFactory.java Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of foobone9 Sent: Thursday, March 05, 2009 11:34 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] LCDS Upgrade Problems I am upgrading LCDS from 2.5.1 to 2.6. I have quite a few assemblers that extend the Hibernate assembler and use the Spring factory. On start up the MessageBroker is croaking because of a Null pointer exception in HibernateAssembler line 211. Is the Hibernate assembler code provided in 2.6 as it previously was? (I didn't see it in the install) Has anyone seen this problem or know of any thing to try? inline: image001.jpginline: image002.jpg