[flexcoders] round only two corners of the text input component
Hi, I want to round only two corners of the text input component(upper- left and upper-right)could some1 help me plz??? Thanx, sam
[flexcoders] 3.1/3.0.1 Update very confused?
I saw there weere threads about a 3.1 update last week so decide today was a time to try it. From FB Standalone I ran Seach for FB Updates but that got me nothing (actually when I checked preferences it seems that just checks for Adobe Reader updates and has no way to add any other Adobe app so I assume it will never actually find FB updates despite what it says) So I went to the FB support site but there the updater is not for 3.1 but 3.0.1 ?? When I checked my current version from the about menu it says FB 3.0.194161. So that means I am at least up to date if not ahead of the 3.0.1 update??? I am confused as to whether I am up to date or not. tks
RE: [flexcoders] Re: Horrible performance problems...Need some ideas on improving
And if your data was pre-ordered, you could even use page demand loading Not fantastically, the ADG doesn't deal with paged data at all well. The code in HierarchicalCollecitonView tries to count the entire dataprovider, so you end up either having to load up the entire data set, or adding dummy objects into the DP. And Woe betide you if you have a null in your DP https://bugs.adobe.com/jira/browse/FLEXDMV-1755 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 [EMAIL PROTECTED]
[flexcoders] how to give focus to a new browser window
Hi: In my AIR project I need to pop a browser window and give it focus. The current code is: private function launchAFile():void{ var theURL:String = resourceContentsList.selectedItem.path; navigateToURL(new URLRequest(theURL)); } Is there a way to give that new window focus? At the moment, on some platforms, it pops up behind the application, and if the user has resized the app, it is easy to miss the new window. Thanks in advance! Alpha release on Monday!! a
Re: [flexcoders] how to give focus to a new browser window
Have you tried the following? navigateToURL(new URLRequest(theURL), _blank); Ian IMiJ Software http://www.imijsoft.com http://www.ianmjones.net (blog) On 5 Sep 2008, at 09:42, Andrew Wetmore wrote: Hi: In my AIR project I need to pop a browser window and give it focus. The current code is: private function launchAFile():void{ var theURL:String = resourceContentsList.selectedItem.path; navigateToURL(new URLRequest(theURL)); } Is there a way to give that new window focus? At the moment, on some platforms, it pops up behind the application, and if the user has resized the app, it is easy to miss the new window. Thanks in advance! Alpha release on Monday!! a
[flexcoders] What wrong ? CtrlLeft and Left
System can detect MoveRight() but not Control Key ! this.addEventListener(KeyboardEvent.KEY_DOWN, fxKeyDn, true); private function fxKeyDn(evt:KeyboardEvent):void{ switch (evt.keyCode){ case Keyboard.RIGHT: evt.stopImmediatePropagation(); if (evt.ctrlKey) { horizontalScrollPosition=horizontalScrollPosition+100; } else { MoveRight(); } break; }
Re: [flexcoders] round only two corners of the text input component
On Friday 05 Sep 2008, samata wrote: I want to round only two corners of the text input component(upper- left and upper-right)could some1 help me plz??? http://www.wabysabi.com/flex/enhancedbuttonskin/ -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Got Error #2032: Stream Error invoking web service for IE6 and IE7
so any solution ? I've same problem too --- In flexcoders@yahoogroups.com, Douglas Knudsen [EMAIL PROTECTED] wrote: welcome to 2032 hell :) as you should have run across, this is a generic error thrown when th ebrowser says there is something wrong, but the browser does not tell FP what is wrong. I've seen this afflict IE with some webservices. It would happen randomly and with the same exact call/returned data pattern too, so I ruled out bad data. Implement a retry n times maybe, icky yes, but can drop the probability of total failure down. DK On Fri, Jul 25, 2008 at 11:37 AM, thuvu03 [EMAIL PROTECTED] wrote: Anyone? I still have not found a solution to this problem. I have searched the web that there is an issue related to this that has to do with ssl and caching in IE. But I am not using ssl. It's very frustrating as my UI works fine if I have only one IE browser up. As soon as I bring up another IE browser, one of my UIs gets this Stream Error. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, thuvu03 thuvu03@ wrote: I am using Flex 2.0. I have been getting Error #2032: Stream Error on both IE6 and IE7 (but not Firefox) when I have mulitple UIs up in multiple IE browsers that invoke an operation of a web service. My web service uses Apache Axis 1.2 and it's deployed to jboss server. Here are the steps that will reproduce the #2032 error: 1. Bring up my Flex UI on one IE browser and login successfully. Once logged in sucessfully, the UI will call the getEvents() webservice call with a timeout of 10s. If the server has any updates it will return the results right away. Else, it will wait for 10s to be up and returns with no data to update. After the UI receives the response it will then call getEvents() again. This will just go on indefintely for the UI to get new updates. 2. Bring up my Flex UI on another new IE browser (on the same machine as in step 1) and login succesfully again. Same as in step 1, the UI will call the getEvents() webservice call to get new server updates if any. 3. Using any of the UI (either in step 1 or 2), make some modifications to the data and submit to the server. The modified data got submitted sucessfully. When one of the UIs calls getEvents() it will get Error #2032 in the fault handler. Notes: I used Charles, TCP Monitor, and WireShark and I saw the getEvents() response coming back successfullly with valid SOAP response and the status code is 200 OK. I have searched the web with nothing relevant to this. I have read that maybe it has to do with the famous browser limitation of 2 http connections. If it is, it works fine with Firefox even if I have 5 browsers up. Isn't Firefox has 2 connections limit as well? It works perfectly fine if I have one and only one IE browser per client host.I even changed the http connections limit for IE to 10 and still experiencing the same problem when I have 2 IEs up on the same machine. Any helps/suggestions is greatly APPRECIATED for I have banged my head on this problem for the past 4 days. Thanks, Thu -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it?
[flexcoders] setting up development
Hi! I am trying to get up to speed with Flex development but I am sure I am doing things awkwardly, first of all; How would you set up developing a Flex-from-flash component ? the way I do it is to do all the development in Flash, using the wonderfully crafted code editor in Flash, exporting the swc file, i then need to clean the project in flexbuilder in order for itto recognize any change made to the component, repeat-- My two main problems with this setup are, For some reason i dont particularly like the code editor in flash it seems unnecessary time consuming to have to clean the project each time i want to update the component secondly; when doing amfphp development i am really off track using localhost i write my php code in dreamweaver, i dont like the code editing here either, and more importantly, there is no way to debug the code. what are you people using in order to be able to debug and step thru code etc? TIA -- niklas wörmann +46 70 760 0099 [EMAIL PROTECTED]
[flexcoders] Re: What wrong ? CtrlLeft and Left
I found that my code can work in Ctrl-Up Up Ctrl-Dn Dn but not Ctrl-Left Left Ctrl-Right Right
[flexcoders] Reg:Data Tranfer
To transfer data between Flex and Java, Which would be better, either Http-Service or Remote Object? Pls help me, its urgent.. Thanks in advance.
Re: [flexcoders] Reg:Data Tranfer
On Friday 05 Sep 2008, vidhuparthi wrote: To transfer data between Flex and Java, Which would be better, either Http-Service or Remote Object? RO will normally be a smaller packet size. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: how to give focus to a new browser window
I will try that right now. Will be back weeping in a few minutes if it doesn't work, of course. Thanks! a --- In flexcoders@yahoogroups.com, Ian M. Jones [EMAIL PROTECTED] wrote: Have you tried the following? navigateToURL(new URLRequest(theURL), _blank); Ian IMiJ Software http://www.imijsoft.com http://www.ianmjones.net (blog) On 5 Sep 2008, at 09:42, Andrew Wetmore wrote: Hi: In my AIR project I need to pop a browser window and give it focus. The current code is: private function launchAFile():void{ var theURL:String = resourceContentsList.selectedItem.path; navigateToURL(new URLRequest(theURL)); } Is there a way to give that new window focus? At the moment, on some platforms, it pops up behind the application, and if the user has resized the app, it is easy to miss the new window. Thanks in advance! Alpha release on Monday!! a
[flexcoders] Re: how to give focus to a new browser window
As it turns out, I already have that in use in a couple of places, and it does not give focus to the new window in tabbed browser systems. Seems to be okay if you don't already have a browser window open, or if you do not use tabbed browser windows. Any other thoughts? a --- In flexcoders@yahoogroups.com, Ian M. Jones [EMAIL PROTECTED] wrote: Have you tried the following? navigateToURL(new URLRequest(theURL), _blank); Ian IMiJ Software http://www.imijsoft.com http://www.ianmjones.net (blog)
Re: [flexcoders] Reg:Data Tranfer
HTTP Service is the better one,,, compare to Remote Object - Original Message From: vidhuparthi [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, 5 September, 2008 4:05:07 PM Subject: [flexcoders] Reg:Data Tranfer To transfer data between Flex and Java, Which would be better, either Http-Service or Remote Object? Pls help me, its urgent.. Thanks in advance. Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/
Re: [flexcoders] Reg:Data Tranfer
On Friday 05 Sep 2008, raj balaji wrote: HTTP Service is the better one Why ? -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Reg:Data Tranfer
according to the Webserver it will be differ. If we use webORB technology RemoteObject will be better., else httpService when compare to HTTPService RemoteObject will be faster. - Original Message From: Tom Chiverton [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, 5 September, 2008 4:39:56 PM Subject: Re: [flexcoders] Reg:Data Tranfer On Friday 05 Sep 2008, raj balaji wrote: HTTP Service is the better one Why ? -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links Connect with friends all over the world. Get Yahoo! India Messenger at http://in.messenger.yahoo.com/?wm=n/
Re: [flexcoders] clipContent doesn't always clip content
Hi Guy, Are you actually measuring the graphics that you draw (in a sub component, the child of the canvas)? Is there a possibility that canvas is not knowing if the graphics are extending passed what it THINKS is the measured width and height? Mike On Thu, Sep 4, 2008 at 7:43 PM, Guy Morton [EMAIL PROTECTED] wrote: I have a problem in that clipContent seems to intermittently not clip the content in a layer as I imagine it should. The graphics in the layer are drawn using the graphics class and the layer is inside another Canvas, eg mx:Canvas clipContent=true id=containerLayer bottom=0 left=350 top=0 right=0 horizontalScrollPolicy=off verticalScrollPolicy=off mx:Canvas id=dynamicLayer clipContent=true width=100% height=100% horizontalScrollPolicy=off verticalScrollPolicy=off / /mx:Canvas MOST of the time the content drawn in the nested canvas is clipped correctly, but sometimes it spills over the content to the left of the containing canvas. Anyone got any ideas as to why this happens and how to prevent it? TIA Guy -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'.
[flexcoders] Extends vs Implement EventDispatcher
Is there a performance difference between having a class extend EventDispatcher vs implementing IEventDispatcher. Reason for the question is I have a class which currently extends EventDispatcher and now it needs to extend another class that is not an EventDispatcher. This will get properly fixed up in a few days but temporarily the answer is to have it implement IEventDispatcher but I was wondering if it is going to effect performance in any way ... tks
[flexcoders] Re: Hiding a row in an AdvancedDataGrid
--- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Well, you hide a row by removing it from the dataProvider. There is no direct relationship between a DG row and a dataProvider item. Or you can use a filterFunction, which doesn't remove the row, but makes it temporarily inaccessible. Not sure how well filters work on HierarchicalData. HTH; Amy
[flexcoders] Re: Streaming Video to Flex
You can attach a camera to Flex and stream video - I'm sure your camera is quite a bit more sophisticated than your typical webcam though Livedocs: http://livedocs.adobe.com/flex/3/html/help.html? content=Working_with_Video_18.html Hope this helps! :D --- In flexcoders@yahoogroups.com, Phil Heinz [EMAIL PROTECTED] wrote: Hi everyone, Can Flex 3 VideoDisplay or any other component display LIVE streaming video from any other format than FLV? We are trying to go straight to the camera from Flex. Many cameras will stream motion JPEG or MPEG4 for instance. Second question - does anyone know of a camera that streams FLV? Thanks! Phil
[flexcoders] Re: Help with runtime shared libraries
I had to add a MIME type to my server to be able to use the SWZ. I can't recall exactly what it is but the actual mime type was the same for SWZ as it was for SWF. Otherwise my server itself didn't know how to serve the file and it would roll over to the SWF. As for your first question, how to dictate where to look for RSLs - in FB3, go to the panel where you can select to use RSLs rather than Merged into Code. (Project-Preferences-Flex Build Path - Library Path tab) - There's a list of build path libraries. For the framework rsl, you'd dive into the first (Flex 3.0.0 - or whatever framework you're using), and open the framework.swc dropdown. Select the RSL URL. On the right hand side there's an Edit button you need to click next. It'll open up a panel to be able to choose where to find the RSL from! And you'd do the same for the rest of your RSLs. It should be noted however, changing the path of the framework RSLs seems to have an issue if you choose the option to Copy to deployment path. It DOES put a SWZ and a SWF to your deployment path, and also both in the root of where your main SWF is (when building). The SWZ/SWF from your deployment path will NOT match your main SWF - those output in the same folder as your main SWF DO match. So an additional step you'll need to do is move these files to the correct location. One sure way to verify this is to see when the SWZ/SWFs were created. If they're created at the same time as your main SWF, they're good, if the date is one from several months ago - it's the actual file used to deploy off of. It's kind of a pain and may possibly be a bug or some other issue - not real sure. Hopefully this helps get everything straightened out! :D -Nathan D. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: You said you build the framework into an RSL, so I thought that meant you built a new RSL. The way you set up the options in MXMLC dictate the location of the RSLs and the order it will look for them. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of whatabrain Sent: Thursday, September 04, 2008 3:00 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Help with runtime shared libraries It is signed by Adobe. This is the standard framework swz that FlexBuilder creates when you tell it to use an RSL. --- In flexcoders@yahoogroups.commailto:flexcoders% 40yahoogroups.com, Alex Harui aharui@ wrote: You won't be able to publish a SWZ only Adobe can do that. They have to be signed by Adobe. From: flexcoders@yahoogroups.commailto:flexcoders% 40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders% 40yahoogroups.com] On Behalf Of whatabrain Sent: Thursday, September 04, 2008 2:32 PM To: flexcoders@yahoogroups.commailto:flexcoders% 40yahoogroups.com Subject: [flexcoders] Help with runtime shared libraries I made the flex framework into an RSL, and I put both the swf and swz versions in servername.com/subdir/. This is the same location where the Flex app itself is located. Then I load the page, using the latest version of Flash 9. I get the following error: Error #2032: Steam Error. URL: http://servername.com/framework_3_0_0.477.swf Now I can obviously fix this by putting the swf in the root htdocs directory, but I have two questions: 1) How can I get Flash to look in the app's subdirectory for the framework files? I'm using FlexBuilder 3, if that helps. 2) Why is the browser requesting the swf instead of the swz? Thanks.
[flexcoders] Re: [ann] Data Management for Flex and PHP
WOW! excellent..sooo glad to see this is moving along.. cant wait for the Data SYNC feature! (do you think that be ready for will happen in 2008? ) thanks
Re: [flexcoders] foreign keys in value objects
i get it, thanks doug! On Wed, Sep 3, 2008 at 10:49 AM, Douglas Knudsen [EMAIL PROTECTED]wrote: I suppose it depends. Bet you never heard that answer before! IMHO, if you are just displaying data in a DG or something, just use some XML and go for it. If you need to actually interact with the data, use the VOs in a architected model. Suppose your use case is that a user needs to add a department to a employee, code would be something like myEmployeeInstance.department = chosenDepartment where chosenDepartment is a Department instance. Your objects on the server would be modeled this way, model them in your RIA this way too, less work. You may not be doing anythign wrong with your apporach, you know your use case best, eh? YMMV greatly here. It may be that having the departmentID and a lookup table is all you need really. But what about next week when suddenly a employee needs to be in two departments? I used to work with PeopleSoft data a lot, trust me rules get broken all the time :) Or maybe next month the client wants to see more info about the department? I will note that you do not need to query for the department on each employee interation in your server code. Just make your SQL return the all the (flat) data properly and while interating over it create both the Employee instance and the Department instance. DK On Tue, Sep 2, 2008 at 2:23 PM, Derrick Anderson [EMAIL PROTECTED] wrote: well it has a department ID, not another object. If I'm bringing back 1000 employee records for my datagrid, I already have to loop over that query on the backend to create the array of 1000 VOs. I don't want to have to query to get a Department VO for each iteration as well, when all I need is that name and it already exists in my BO by way of a lookup table. I store these lookups in my business logic and use them in comboboxes and such (this collection populates the Department dropdown on the Employee). usually i only bring them back with ID and Name. I want to use these collections to get the name for an ID at any time I need it. The list of departments is a list of simple objects, I didn't see the need to create VO's for such things. However I'm obviously doing something wrong. I imagined I would have to write renderers for the datagrid and that would be easy enough, but that's not the only place I display data from lookup tables. In Labels, Tab Headers, all sorts of places need to get the department name from the department ID in the employee VO (for one example). Should I just bring the department name back in the employee VO? I'd rather not, it doesn't seem right- but if that's the way to do it I will. D. On Tue, Sep 2, 2008 at 10:34 AM, Douglas Knudsen [EMAIL PROTECTED] wrote: So, your Employee class 'has a' Department, eh? Smells of composition. Employee should maybe have a public var department:Department; inside it. YMMV though, if you really need your VO to be flat for say easy DG only use or some such. DK On Tue, Sep 2, 2008 at 5:01 AM, Derrick Anderson [EMAIL PROTECTED] wrote: Hi, I've been going thru my app now that I know the magic of VO's and converting most things to value objects- loading my VO's into datagrids, forms, all is great. I do have 1 question though, let's say I have a 'employee' value object that has the property 'departmentID'. Is it common practice to also include the 'departmentName' in the value object? I already have a collection of departments (departmentID,departmentName) value objects, I want to be able to at any point find the corresponding department record so I can display the name. Keeping it in the VO seems like a hack though, sounds like it would leave the application open to display sync issues (name in department vo is updated but the customer vo is not). I know I can write a renderer for the datagrids to show the related values from other collections, but there are other display situations too and I don't want this getting out of hand. So I guess the question is, what's the best way to handle foreign key values when dealing with VO's? Include the related values in the VO, or look them up each time? thanks, d. -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it?
Re: [flexcoders] Re: how to give focus to a new browser window
Maybe minimize the application if it's still the front most application, possibly after showing an alert to say what you're up to? Or maybe just throw up a dialog to say you've opened up a browser window, again maybe only if you're still front most? Just some ideas. Ian On 5 Sep 2008, at 11:58, Andrew Wetmore wrote: As it turns out, I already have that in use in a couple of places, and it does not give focus to the new window in tabbed browser systems. Seems to be okay if you don't already have a browser window open, or if you do not use tabbed browser windows. Any other thoughts? a --- In flexcoders@yahoogroups.com, Ian M. Jones [EMAIL PROTECTED] wrote: Have you tried the following? navigateToURL(new URLRequest(theURL), _blank); Ian IMiJ Software http://www.imijsoft.com http://www.ianmjones.net (blog)
Re: [flexcoders] clipContent doesn't always clip content
Hi Mike I know for sure that the graphics are being drawn outside the enclosing canvas, because the child canvas is drawing x values 0 and these aren't being clipped but are visible outside the map area. Guy On 05/09/2008, at 9:51 PM, Michael Schmalle wrote: Hi Guy, Are you actually measuring the graphics that you draw (in a sub component, the child of the canvas)? Is there a possibility that canvas is not knowing if the graphics are extending passed what it THINKS is the measured width and height? Mike On Thu, Sep 4, 2008 at 7:43 PM, Guy Morton [EMAIL PROTECTED] wrote: I have a problem in that clipContent seems to intermittently not clip the content in a layer as I imagine it should. The graphics in the layer are drawn using the graphics class and the layer is inside another Canvas, eg mx:Canvas clipContent=true id=containerLayer bottom=0 left=350 top=0 right=0 horizontalScrollPolicy=off verticalScrollPolicy=off mx:Canvas id=dynamicLayer clipContent=true width=100% height=100% horizontalScrollPolicy=off verticalScrollPolicy=off / /mx:Canvas MOST of the time the content drawn in the nested canvas is clipped correctly, but sometimes it spills over the content to the left of the containing canvas. Anyone got any ideas as to why this happens and how to prevent it? TIA Guy -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'.
[flexcoders] noob question, css to swf, stylemanager
by accident I posted on flexcomponents* I saw a tutorial online, yet I can't make it work...@@ My css: /** ChangeBG.css **/ Application{ background-alpha:0.1; background-image: Embed(source=water.jpg); } All my files are in the src package and then I just run the option Compile css to swf. I do see that generated swf in my bin So, now in my creationComplete function. I have StyleManager.loadStyleDeclarations( 'ChangeBG.swf',true ,true); But my background never updates. @@
Re: [flexcoders] Reg:Data Tranfer
On Friday 05 Sep 2008, raj balaji wrote: according to the Webserver it will be differ. If we use webORB technology RemoteObject will be better., else httpService when compare to HTTPService RemoteObject will be faster. The OP mentions Java, so BlazeDS is the obvious answer here. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] [ann] Data Management for Flex and PHP
Hi Mark, Thank you! im already using v3.0. I wonder if new version of this data management will be the same as LCDS. How is it interacting with database? is there any docs about these process? thank you again. Juan. On Thu, Sep 4, 2008 at 5:20 PM, Mark Piller [EMAIL PROTECTED]wrote: Hey guys, This is an announcement and I apologize for spamming your inboxes if you have no interest in this subject. However, if you are working with Flex and PHP and would like to try out our new data management implementation, please contact me off the list (mark [at] themidnightcoders.com). You can see a video overview of the new functionality at: http://www.themidnightcoders.com/weborb/php/videos/wdmf/overview There are also a few more tidbits in the blog: http://www.themidnightcoders.com/blog/ Cheers, Mark
Re: [flexcoders] Reg:Data Tranfer
Okay no issues... - Original Message From: Tom Chiverton [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, 5 September, 2008 7:05:08 PM Subject: Re: [flexcoders] Reg:Data Tranfer On Friday 05 Sep 2008, raj balaji wrote: according to the Webserver it will be differ. If we use webORB technology RemoteObject will be better., else httpService when compare to HTTPService RemoteObject will be faster. The OP mentions Java, so BlazeDS is the obvious answer here. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/
Re: [flexcoders] noob question, css to swf, stylemanager
On Friday 05 Sep 2008, dsds99 wrote: So, now in my creationComplete function. I have StyleManager.loadStyleDeclarations( 'ChangeBG.swf',true ,true); Does the load go OK ? What does the web server log say ? Did you attach success and error handlers to the load event ? -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] clipContent doesn't always clip content
Does clipContent clip the Graphics object or just DisplayObject children? On Fri, Sep 5, 2008 at 8:37 AM, Guy Morton [EMAIL PROTECTED] wrote: Hi Mike I know for sure that the graphics are being drawn outside the enclosing canvas, because the child canvas is drawing x values 0 and these aren't being clipped but are visible outside the map area. Guy On 05/09/2008, at 9:51 PM, Michael Schmalle wrote: Hi Guy, Are you actually measuring the graphics that you draw (in a sub component, the child of the canvas)? Is there a possibility that canvas is not knowing if the graphics are extending passed what it THINKS is the measured width and height? Mike On Thu, Sep 4, 2008 at 7:43 PM, Guy Morton [EMAIL PROTECTED] wrote: I have a problem in that clipContent seems to intermittently not clip the content in a layer as I imagine it should. The graphics in the layer are drawn using the graphics class and the layer is inside another Canvas, eg mx:Canvas clipContent=true id=containerLayer bottom=0 left=350 top=0 right=0 horizontalScrollPolicy=off verticalScrollPolicy=off mx:Canvas id=dynamicLayer clipContent=true width=100% height=100% horizontalScrollPolicy=off verticalScrollPolicy=off / /mx:Canvas MOST of the time the content drawn in the nested canvas is clipped correctly, but sometimes it spills over the content to the left of the containing canvas. Anyone got any ideas as to why this happens and how to prevent it? TIA Guy -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'.
Re: [flexcoders] Reg:Data Tranfer
check the cowboy's app at http://www.jamesward.com/census/ for some comparisons Besides speed, consider other angles as well. Interop, dev time, etc DK On Fri, Sep 5, 2008 at 10:22 AM, raj balaji [EMAIL PROTECTED] wrote: Okay no issues... - Original Message From: Tom Chiverton [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, 5 September, 2008 7:05:08 PM Subject: Re: [flexcoders] Reg:Data Tranfer On Friday 05 Sep 2008, raj balaji wrote: according to the Webserver it will be differ. If we use webORB technology RemoteObject will be better., else httpService when compare to HTTPService RemoteObject will be faster. The OP mentions Java, so BlazeDS is the obvious answer here. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Unlimited freedom, unlimited storage. Get it nowhttp://in.rd.yahoo.com/tagline_mail_2/*http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/ -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it?
[flexcoders] Re: Streaming Video to Flex
Thanks Nathan. Problem is, camera is not attached to computer with the Flex app. I want one of 10 Flex apps around the Intranet to be able to attach to any camera's stream, and I don't want to use FMS. I have looked high and low and can't find a camera that puts out FLV. And from what I gather from Flex, streaming can only be done from an FMS source or some other software that supports RTMP. Any thoughts? Thanks, Phil --- In flexcoders@yahoogroups.com, nathanpdaniel [EMAIL PROTECTED] wrote: You can attach a camera to Flex and stream video - I'm sure your camera is quite a bit more sophisticated than your typical webcam though Livedocs: http://livedocs.adobe.com/flex/3/html/help.html? content=Working_with_Video_18.html Hope this helps! :D --- In flexcoders@yahoogroups.com, Phil Heinz phil@ wrote: Hi everyone, Can Flex 3 VideoDisplay or any other component display LIVE streaming video from any other format than FLV? We are trying to go straight to the camera from Flex. Many cameras will stream motion JPEG or MPEG4 for instance. Second question - does anyone know of a camera that streams FLV? Thanks! Phil
Re: [flexcoders] noob question, css to swf, stylemanager
Your not actually calling it are you? cause I tested it out and It works fine, ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=library:adobe/flex/halo xmlns=http://ns.adobe.com/mxml/2009; xmlns:ns=library:adobe/flex/gumbo xmlns:local=* creationComplete=initApp() Script ![CDATA[ private function initApp():void { StyleManager.loadStyleDeclarations( 't.swf',true ,true); } ]] /Script /mx:Application -- Sherif Abdou http://VadexFX.com http://Sherifabdou.com - Original Message - From: dsds99 To: flexcoders@yahoogroups.com Sent: Friday, September 05, 2008 8:34 AM Subject: [flexcoders] noob question, css to swf, stylemanager by accident I posted on flexcomponents* I saw a tutorial online, yet I can't make it work...@@ My css: /** ChangeBG.css **/ Application{ background-alpha:0.1; background-image: Embed(source=water.jpg); } All my files are in the src package and then I just run the option Compile css to swf. I do see that generated swf in my bin So, now in my creationComplete function. I have StyleManager.loadStyleDeclarations( 'ChangeBG.swf',true ,true); But my background never updates. @@
[flexcoders] Switching between Cameras in Flex
Ok so I am building a Flex app that is using the Camera Class to show the user in a VideoDisplay using whatever camera that is attached to the users computer. What I would like to do is allow the user to switch between more than one camera if they have more than one hooked up. I know the user can do this using the Flash Security Panel but I would like a better interface for doing this. Currently I have a ComboBox that has a list of available cameras. I am able to find this by saying Camera.names; I am using Caringorm so I have a Referance to my camera variable in the Model so that I can get to it from the component that I am building for switching the camera. Currently I am trying to do this. _modelLocator._cam = Camera.getCamera(combobox.selectedItem.toString); this does not switch the camera to the newly selected camera. Wondering how you guys would make this work? -Matthew
[flexcoders] Memory Thrashing during PRINT operations.
Hello, I'm running into some trouble that I hope you guys can offer some insight on. When using FlexPrintJob to print a document with multiple pages (typically, anything more than 2 or so), I'm seeing a bunch of trace messages that APPEAR to suggest that objects in memory are being loaded/unloaded, or that memory is otherwise getting thrashed around... FOR EXAMPLE.. The following code.. (page is a UIComponent) trace(+); myPrintJob.addObject(page, FlexPrintJobScaleType.MATCH_WIDTH) ; trace(-); is producing the following result.. + [SWF] /htdocs/main.swf - 1,805 bytes after decompression [SWF] /htdocs/main.swf - 2,441 bytes after decompression [SWF] /htdocs/main.swf - 2,346 bytes after decompression [SWF] /htdocs/main.swf - 2,389 bytes after decompression [SWF] /htdocs/main.swf - 2,156 bytes after decompression [SWF] /htdocs/main.swf - 1,861 bytes after decompression - As you can see, I'm putting the +/- traces in to confirm that these other messages are being output DURING the addObject call. For EVERY page I add (after the first two), I see this EXACT sequence of [SWF] messages (including the exact bytecounts). In addition to just being annoying, this sequence takes 2-3 seconds per page, which obviously limits the total number of pages I can print before the 15 second timeout occurs.. SO, here's the question... Does anyone have any insights into this? Are there any settings that I can use to alert the machine running my app that it needs to allocate more memory to the SWF's version of a heap? When I originally wrote the print wrapper dialog for this application (in Flex 2), I don't remember seeing any of this, and it was tested with HUNDREDS of pages per printJob, so I SUSPECT that this is a new behavior in Flex 3. Thanks in Advance for any assistance. Steve
Re: [flexcoders] noob question, css to swf, stylemanager
you can listen for failures, eh? //load styles var e:IEventDispatcher; e = StyleManager.loadStyleDeclarations('my.swf',true); e.addEventListener(StyleEvent.COMPLETE, onUpdateStylesComplete); e.addEventListener(StyleEvent.ERROR, onStyleEventError ); DK On Fri, Sep 5, 2008 at 11:25 AM, Sherif Abdou [EMAIL PROTECTED] wrote: Your not actually calling it are you? cause I tested it out and It works fine, ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=library:adobe/flex/halo xmlns=http://ns.adobe.com/mxml/2009; xmlns:ns=library:adobe/flex/gumbo xmlns:local=* creationComplete= initApp() Script ![CDATA[ private function initApp():void { StyleManager.loadStyleDeclarations( 't.swf',true ,true); } ]] /Script /mx:Application -- Sherif Abdou http://VadexFX.com http://Sherifabdou.com - Original Message - *From:* dsds99 [EMAIL PROTECTED] *To:* flexcoders@yahoogroups.com *Sent:* Friday, September 05, 2008 8:34 AM *Subject:* [flexcoders] noob question, css to swf, stylemanager by accident I posted on flexcomponents* I saw a tutorial online, yet I can't make it work...@@ My css: /** ChangeBG.css **/ Application{ background-alpha:0.1; background-image: Embed(source=water.jpg); } All my files are in the src package and then I just run the option Compile css to swf. I do see that generated swf in my bin So, now in my creationComplete function. I have StyleManager.loadStyleDeclarations( 'ChangeBG.swf',true ,true); But my background never updates. @@ -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it?
Re: [flexcoders] clipContent doesn't always clip content
Guy, your inner cnavas takes up 100% width, so as far as yourouter canvas knows, it doesn't need to clip the children. clipContent doesn't force clipping, it simply turns it on if needed, and the Canvas determines if it needs clipping based on whether any of the children are placed outside of the visible bounds. I usually just add a dummy UIComponent object and place it at -1,-1 in the canvas. So try this: mx:Canvas clipContent=true id=containerLayer bottom=0 left=350 top=0 right=0 horizontalScrollPolicy=off verticalScrollPolicy=off mx:Canvas id=dynamicLayer clipContent=true width=100% height=100% horizontalScrollPolicy=off verticalScrollPolicy=off mx:UIComponent x=-'1 y=-1 / /mx:Canvas /mx:Canvas On Fri, Sep 5, 2008 at 7:40 AM, Danny Gold [EMAIL PROTECTED] wrote: Does clipContent clip the Graphics object or just DisplayObject children? On Fri, Sep 5, 2008 at 8:37 AM, Guy Morton [EMAIL PROTECTED] wrote: Hi Mike I know for sure that the graphics are being drawn outside the enclosing canvas, because the child canvas is drawing x values 0 and these aren't being clipped but are visible outside the map area. Guy On 05/09/2008, at 9:51 PM, Michael Schmalle wrote: Hi Guy, Are you actually measuring the graphics that you draw (in a sub component, the child of the canvas)? Is there a possibility that canvas is not knowing if the graphics are extending passed what it THINKS is the measured width and height? Mike On Thu, Sep 4, 2008 at 7:43 PM, Guy Morton [EMAIL PROTECTED] wrote: I have a problem in that clipContent seems to intermittently not clip the content in a layer as I imagine it should. The graphics in the layer are drawn using the graphics class and the layer is inside another Canvas, eg mx:Canvas clipContent=true id=containerLayer bottom=0 left=350 top=0 right=0 horizontalScrollPolicy=off verticalScrollPolicy=off mx:Canvas id=dynamicLayer clipContent=true width=100% height=100% horizontalScrollPolicy=off verticalScrollPolicy=off / /mx:Canvas MOST of the time the content drawn in the nested canvas is clipped correctly, but sometimes it spills over the content to the left of the containing canvas. Anyone got any ideas as to why this happens and how to prevent it? TIA Guy -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'.
Re: [flexcoders] clipContent doesn't always clip content
sorry, first part of my message wasn't really applicable, since you were trying to use the inner canvas for clipping, not the outer, but the code should work OK. On Fri, Sep 5, 2008 at 8:51 AM, Doug McCune [EMAIL PROTECTED] wrote: Guy, your inner cnavas takes up 100% width, so as far as yourouter canvas knows, it doesn't need to clip the children. clipContent doesn't force clipping, it simply turns it on if needed, and the Canvas determines if it needs clipping based on whether any of the children are placed outside of the visible bounds. I usually just add a dummy UIComponent object and place it at -1,-1 in the canvas. So try this: mx:Canvas clipContent=true id=containerLayer bottom=0 left=350 top=0 right=0 horizontalScrollPolicy=off verticalScrollPolicy=off mx:Canvas id=dynamicLayer clipContent=true width=100% height=100% horizontalScrollPolicy=off verticalScrollPolicy=off mx:UIComponent x=-'1 y=-1 / /mx:Canvas /mx:Canvas On Fri, Sep 5, 2008 at 7:40 AM, Danny Gold [EMAIL PROTECTED] wrote: Does clipContent clip the Graphics object or just DisplayObject children? On Fri, Sep 5, 2008 at 8:37 AM, Guy Morton [EMAIL PROTECTED] wrote: Hi Mike I know for sure that the graphics are being drawn outside the enclosing canvas, because the child canvas is drawing x values 0 and these aren't being clipped but are visible outside the map area. Guy On 05/09/2008, at 9:51 PM, Michael Schmalle wrote: Hi Guy, Are you actually measuring the graphics that you draw (in a sub component, the child of the canvas)? Is there a possibility that canvas is not knowing if the graphics are extending passed what it THINKS is the measured width and height? Mike On Thu, Sep 4, 2008 at 7:43 PM, Guy Morton [EMAIL PROTECTED] wrote: I have a problem in that clipContent seems to intermittently not clip the content in a layer as I imagine it should. The graphics in the layer are drawn using the graphics class and the layer is inside another Canvas, eg mx:Canvas clipContent=true id=containerLayer bottom=0 left=350 top=0 right=0 horizontalScrollPolicy=off verticalScrollPolicy=off mx:Canvas id=dynamicLayer clipContent=true width=100% height=100% horizontalScrollPolicy=off verticalScrollPolicy=off / /mx:Canvas MOST of the time the content drawn in the nested canvas is clipped correctly, but sometimes it spills over the content to the left of the containing canvas. Anyone got any ideas as to why this happens and how to prevent it? TIA Guy -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'.
Re: [flexcoders] Extends vs Implement EventDispatcher
Unless Flex is doing something really crazy, that should be fine. The only caveat is that, of course, you'll have to implement all the IEventDispatcher methods yourself, but you can just pass these off to a nested EventDispatcher object. In theory, you've got an additional function call, but in practice, that will not make a difference. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com On Fri, 2008-09-05 at 12:17 +, reflexactions wrote: Is there a performance difference between having a class extend EventDispatcher vs implementing IEventDispatcher. Reason for the question is I have a class which currently extends EventDispatcher and now it needs to extend another class that is not an EventDispatcher. This will get properly fixed up in a few days but temporarily the answer is to have it implement IEventDispatcher but I was wondering if it is going to effect performance in any way ... tks
Re: [flexcoders] Extends vs Implement EventDispatcher
In theory, you've got an additional function call, but in practice, that will not make a difference. Do you? I mean he does not have to over head (what little it may be) of the super classes methods and calls. I'm sure this is a trivial answer of it doesn't matter. :) Mike On Fri, Sep 5, 2008 at 12:04 PM, Maciek Sakrejda [EMAIL PROTECTED]wrote: Unless Flex is doing something really crazy, that should be fine. The only caveat is that, of course, you'll have to implement all the IEventDispatcher methods yourself, but you can just pass these off to a nested EventDispatcher object. In theory, you've got an additional function call, but in practice, that will not make a difference. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com On Fri, 2008-09-05 at 12:17 +, reflexactions wrote: Is there a performance difference between having a class extend EventDispatcher vs implementing IEventDispatcher. Reason for the question is I have a class which currently extends EventDispatcher and now it needs to extend another class that is not an EventDispatcher. This will get properly fixed up in a few days but temporarily the answer is to have it implement IEventDispatcher but I was wondering if it is going to effect performance in any way ... tks -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'.
[flexcoders] Re: noob question, css to swf, stylemanager
The complete event does trigger I do see the alpha change from my css. But the background image still remains the same Thanks, for pointing out the StyleManager events --- In flexcoders@yahoogroups.com, Douglas Knudsen [EMAIL PROTECTED] wrote: you can listen for failures, eh? //load styles var e:IEventDispatcher; e = StyleManager.loadStyleDeclarations('my.swf',true); e.addEventListener(StyleEvent.COMPLETE, onUpdateStylesComplete); e.addEventListener(StyleEvent.ERROR, onStyleEventError ); DK On Fri, Sep 5, 2008 at 11:25 AM, Sherif Abdou [EMAIL PROTECTED] wrote: Your not actually calling it are you? cause I tested it out and It works fine, ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=library:adobe/flex/halo xmlns=http://ns.adobe.com/mxml/2009; xmlns:ns=library:adobe/flex/gumbo xmlns:local=* creationComplete= initApp() Script
Re: [flexcoders] 3.1/3.0.1 Update very confused?
Flex SDK is named 3.1, Flex Builder is 3.0.1. Sorry, we know it's confusing but we're not allowed to name Flex Builder 3.1 as well because of internal Adobe rules (my life is complicated). You want 3.0.1 for Builder, available here: http://www.adobe.com/support/flex/downloads_updaters.html On 9/4/08 11:41 PM, reflexactions [EMAIL PROTECTED] wrote: I saw there weere threads about a 3.1 update last week so decide today was a time to try it. From FB Standalone I ran Seach for FB Updates but that got me nothing (actually when I checked preferences it seems that just checks for Adobe Reader updates and has no way to add any other Adobe app so I assume it will never actually find FB updates despite what it says) So I went to the FB support site but there the updater is not for 3.1 but 3.0.1 ?? When I checked my current version from the about menu it says FB 3.0.194161. So that means I am at least up to date if not ahead of the 3.0.1 update??? I am confused as to whether I am up to date or not. tks
[flexcoders] Re: Hiding a row in an AdvancedDataGrid
When I try this, the filter function isn't called for top-level items. It's called for all child nodes in the dataProvider, but not for the parent node. Any idea why this might be, or do you need a code sample? --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: ICollectionView or a filterFuncton can work for this; if you don't want to mess with the underlying source. -TH --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: Well, you hide a row by removing it from the dataProvider. There is no direct relationship between a DG row and a dataProvider item. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of whatabrain Sent: Thursday, September 04, 2008 8:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Hiding a row in an AdvancedDataGrid How do you hide a row in an AdvancedDataGrid? I can't find any method that lets you get a row by index or item.
Re: [flexcoders] Extends vs Implement EventDispatcher
True, but I was under the impression that a virtual method lookup was cheaper than a whole new method call. Not to mention the bytes and bytes of overhead from having to keep another object (the nested EventDispatcher) on the heap ;). I think Michael A. Jackson said it best: The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com On Fri, 2008-09-05 at 12:07 -0400, Michael Schmalle wrote: In theory, you've got an additional function call, but in practice, that will not make a difference. Do you? I mean he does not have to over head (what little it may be) of the super classes methods and calls. I'm sure this is a trivial answer of it doesn't matter. :) Mike On Fri, Sep 5, 2008 at 12:04 PM, Maciek Sakrejda [EMAIL PROTECTED] wrote: Unless Flex is doing something really crazy, that should be fine. The only caveat is that, of course, you'll have to implement all the IEventDispatcher methods yourself, but you can just pass these off to a nested EventDispatcher object. In theory, you've got an additional function call, but in practice, that will not make a difference. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com On Fri, 2008-09-05 at 12:17 +, reflexactions wrote: Is there a performance difference between having a class extend EventDispatcher vs implementing IEventDispatcher. Reason for the question is I have a class which currently extends EventDispatcher and now it needs to extend another class that is not an EventDispatcher. This will get properly fixed up in a few days but temporarily the answer is to have it implement IEventDispatcher but I was wondering if it is going to effect performance in any way ... tks -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'.
[flexcoders] Re: Hiding a row in an AdvancedDataGrid
Interesting, I would think that the opposite would occur; if you're using something like: return item.myfield==whatever;. Sure, post your filterFunction; as well as a basic idea of the collection's structure. -TH --- In flexcoders@yahoogroups.com, whatabrain [EMAIL PROTECTED] wrote: When I try this, the filter function isn't called for top-level items. It's called for all child nodes in the dataProvider, but not for the parent node. Any idea why this might be, or do you need a code sample? --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: ICollectionView or a filterFuncton can work for this; if you don't want to mess with the underlying source. -TH --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: Well, you hide a row by removing it from the dataProvider. There is no direct relationship between a DG row and a dataProvider item. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of whatabrain Sent: Thursday, September 04, 2008 8:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Hiding a row in an AdvancedDataGrid How do you hide a row in an AdvancedDataGrid? I can't find any method that lets you get a row by index or item.
[flexcoders] Re: Hiding a row in an AdvancedDataGrid
My filter function is really simple. Something along these lines: private function filterFunc(item:Object):Boolean { return item is ChildObj; } The dataProvider is an ArrayCollection containing ParentObjs. ParentObj extends ArrayCollection, and contains ChildObjs. I call ArrayCollection.addItem() to add either ParentObj or ChildObj to the tree, and both are called after the filter is defined. In fact, I call the ChildObj insert right after the ParentObj insert. Basically, I want to hide all top-level nodes in the tree, but the filter function isn't even called for those nodes. --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Interesting, I would think that the opposite would occur; if you're using something like: return item.myfield==whatever;. Sure, post your filterFunction; as well as a basic idea of the collection's structure. -TH --- In flexcoders@yahoogroups.com, whatabrain junk1@ wrote: When I try this, the filter function isn't called for top-level items. It's called for all child nodes in the dataProvider, but not for the parent node. Any idea why this might be, or do you need a code sample? --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: ICollectionView or a filterFuncton can work for this; if you don't want to mess with the underlying source. -TH --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: Well, you hide a row by removing it from the dataProvider. There is no direct relationship between a DG row and a dataProvider item. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of whatabrain Sent: Thursday, September 04, 2008 8:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Hiding a row in an AdvancedDataGrid How do you hide a row in an AdvancedDataGrid? I can't find any method that lets you get a row by index or item.
[flexcoders] Custom state not visible in Design view
I have tried to extend State (mx.states.State). package org.test { import mx.states.State; public class MyState extends State { public function MyState() { //TODO: implement function super(); } public function myFunction():void{ trace(test); } } } Then, I tried to use custom state in application: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:t=org.test.* layout=absolute mx:states mx:State id=one name=start mx:AddChild mx:Button label=Hi There! x=144.5 y=97 /mx:Button /mx:AddChild /mx:State t:MyState id=two name=my mx:AddChild mx:Button label=Me too! x=144.5 y=97 /mx:Button /mx:AddChild /t:MyState /mx:states mx:Button x=74 y=78 label=Button/ /mx:Application When I open the Design view, no components in State is shown and I get an error: com.adobe.flexbuilder.mxmlmodel.NonVisualComponentInstance Any workarounds for this?
[flexcoders] VideoDisplay Object
Hi People,I'm resizing video display object in my app and the video itself isn't being resized...just the component...how can i change the size of the video itself. percy
[flexcoders] Re: Hiding a row in an AdvancedDataGrid
and both are called after the filter is defined Are you calling ArrayCollection.refresh() after you finish adding the parent and children objects? -TH --- In flexcoders@yahoogroups.com, whatabrain [EMAIL PROTECTED] wrote: My filter function is really simple. Something along these lines: private function filterFunc(item:Object):Boolean { return item is ChildObj; } The dataProvider is an ArrayCollection containing ParentObjs. ParentObj extends ArrayCollection, and contains ChildObjs. I call ArrayCollection.addItem() to add either ParentObj or ChildObj to the tree, and both are called after the filter is defined. In fact, I call the ChildObj insert right after the ParentObj insert. Basically, I want to hide all top-level nodes in the tree, but the filter function isn't even called for those nodes. --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Interesting, I would think that the opposite would occur; if you're using something like: return item.myfield==whatever;. Sure, post your filterFunction; as well as a basic idea of the collection's structure. -TH --- In flexcoders@yahoogroups.com, whatabrain junk1@ wrote: When I try this, the filter function isn't called for top-level items. It's called for all child nodes in the dataProvider, but not for the parent node. Any idea why this might be, or do you need a code sample? --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: ICollectionView or a filterFuncton can work for this; if you don't want to mess with the underlying source. -TH --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: Well, you hide a row by removing it from the dataProvider. There is no direct relationship between a DG row and a dataProvider item. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of whatabrain Sent: Thursday, September 04, 2008 8:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Hiding a row in an AdvancedDataGrid How do you hide a row in an AdvancedDataGrid? I can't find any method that lets you get a row by index or item.
Re: [flexcoders] Problem importing FlexLib
Thanks Sherif I made that working. Anuj On Thu, Sep 4, 2008 at 5:52 PM, Sherif Abdou [EMAIL PROTECTED] wrote: I don't think You can import it, if you want to see the code you need to create a Flex Project--(Keep Hitting Next)--Source Path--Add Folder--Point to FlexLib folder. -- Sherif Abdou http://VadexFX.com http://Sherifabdou.com - Original Message - *From:* anuj181 [EMAIL PROTECTED] *To:* flexcoders@yahoogroups.com *Sent:* Thursday, September 04, 2008 7:04 PM *Subject:* [flexcoders] Problem importing FlexLib Hi Guys I am trying to embed FlexLib in my Flex Project using following link http://code.google.com/p/flexlib/ I am trying to import downloaded file in my FLEX devlopment environment but is not letting me do that. When i imported the complete project folder. it says The folder does not contain a valid Flex Builder Project. And when i am trying to import zipped file it is giving following message Not a valid archived project. If the zip was not created via Export Flex Project, use Import General Existing Projects into Workspace. I am using Flex 3.0 for my development. I am curious to see the code of FlexLib and may need its help in my project. Any body has any idea how would i import Flexlib in Flex. Thanks in advance for your help Anuj
[flexcoders] Re: Switching between Cameras in Flex
so I found out that what you have to do after choosing a new Camera is you have to reattach the camera to the VideoDisplay and if you are attaching your camer to a NetStream you also have to run the command to attach the camera to that again as well. Once you do that all is good. --- In flexcoders@yahoogroups.com, flashalisious [EMAIL PROTECTED] wrote: Ok so I am building a Flex app that is using the Camera Class to show the user in a VideoDisplay using whatever camera that is attached to the users computer. What I would like to do is allow the user to switch between more than one camera if they have more than one hooked up. I know the user can do this using the Flash Security Panel but I would like a better interface for doing this. Currently I have a ComboBox that has a list of available cameras. I am able to find this by saying Camera.names; I am using Caringorm so I have a Referance to my camera variable in the Model so that I can get to it from the component that I am building for switching the camera. Currently I am trying to do this. _modelLocator._cam = Camera.getCamera(combobox.selectedItem.toString); this does not switch the camera to the newly selected camera. Wondering how you guys would make this work? -Matthew
[flexcoders] RE: Datagrid: cellPress vs. cellEdit
Yes, we are on an old version of Flex, 1.5. We are trying to get an application implemented that has been in development for years. After we get the app implemented (soon, I hope), we will look at upgrading. I put some displays in the mxml and found out that the the cellpress event is fired before the cellFocusIn event when focus is gained on a cell. Can I depend on that fact? Or, could the cellFocusIn event be fired first? Can I determine whether or not the clicked portion of the DataGrid is editable? On a different subject, to upgrade, should we upgrade to Flex 2, or directly to the latest version? I appreciate your help! Dee A. Chilcoat Enterprise Web Application Development University of California San Diego [EMAIL PROTECTED] (858) 534-0719 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Tuesday, September 02, 2008 9:52 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] RE: Datagrid: cellPress vs. cellEdit Which version of Flex are you using? That's pretty old stuff that I'd have to dig through layers of dust to get an answer. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chilcoat, Dee Sent: Tuesday, September 02, 2008 4:16 PM To: 'flexcoders@yahoogroups.com' Subject: [flexcoders] Datagrid: cellPress vs. cellEdit I have looked through the documentation, and have not found an answer to the following: Are cellPress and cellEdit events mutually exclusive? In other words, if the cellPress event is fired, can I assume that an un-editable portion of the DataGrid has been clicked? If the answer is that they are not mutually exclusive, how can I determine whether or not the clicked portion of the DataGrid is editable? Any help will be appreciated. Dee A. Chilcoat Enterprise Web Application Development University of California San Diego [EMAIL PROTECTED] (858) 534-0719
RE: [flexcoders] Memory Thrashing during PRINT operations.
Is you swf main.swf or could it be loading some sort of small main.swf? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of steve_kellogg_davita Sent: Friday, September 05, 2008 8:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Memory Thrashing during PRINT operations. Hello, I'm running into some trouble that I hope you guys can offer some insight on. When using FlexPrintJob to print a document with multiple pages (typically, anything more than 2 or so), I'm seeing a bunch of trace messages that APPEAR to suggest that objects in memory are being loaded/unloaded, or that memory is otherwise getting thrashed around... FOR EXAMPLE.. The following code.. (page is a UIComponent) trace(+); myPrintJob.addObject(page, FlexPrintJobScaleType.MATCH_WIDTH) ; trace(-); is producing the following result.. + [SWF] /htdocs/main.swf - 1,805 bytes after decompression [SWF] /htdocs/main.swf - 2,441 bytes after decompression [SWF] /htdocs/main.swf - 2,346 bytes after decompression [SWF] /htdocs/main.swf - 2,389 bytes after decompression [SWF] /htdocs/main.swf - 2,156 bytes after decompression [SWF] /htdocs/main.swf - 1,861 bytes after decompression - As you can see, I'm putting the +/- traces in to confirm that these other messages are being output DURING the addObject call. For EVERY page I add (after the first two), I see this EXACT sequence of [SWF] messages (including the exact bytecounts). In addition to just being annoying, this sequence takes 2-3 seconds per page, which obviously limits the total number of pages I can print before the 15 second timeout occurs.. SO, here's the question... Does anyone have any insights into this? Are there any settings that I can use to alert the machine running my app that it needs to allocate more memory to the SWF's version of a heap? When I originally wrote the print wrapper dialog for this application (in Flex 2), I don't remember seeing any of this, and it was tested with HUNDREDS of pages per printJob, so I SUSPECT that this is a new behavior in Flex 3. Thanks in Advance for any assistance. Steve
[flexcoders] Binding warnings - per instance suppression?
I like wiring things together in MXML, and I like having no warnings. Is there any way to suppress binding warnings on a per-line basis? In the following case, module and services really aren't going to change: controller:MyController id=controller hostContainer={this} services={this.module.services} / The references are interfaces, and using custom events, I can add binding support to those interfaces, but it's a bit unnecessary. I suppose I could also set controller.services in a Script block, but I'm not crazy about that either.
[flexcoders] Need help with Logout and then Logging back into Flex App
After each of the different forms have been opened (via the button toolbar), the forms have been initialized and created. I recently added a logout button which just takes you back to the login form. If you login as a different user, some of the charts and forms don't update because they were created via creationComplete() At the main section of the Flex app (where the login page is), is there a way to reset all creationComplete's so the app will recreate the pages when they are re-selected? I tried invalidating all the properties and displaylists. If there isn't a quick and easy way I could do one of the following: - The logout page takes them to a screen that says Press the Browser Refresh Button to log back in. - The logout link does the Browser Refresh automatically. Is this an option, and if so what is the command to reload the flex app within flex? What's is best practices and/or best approach?
RE: [flexcoders] Re: What wrong ? CtrlLeft and Left
Depending on what has focus and what browser you are in, other components may be eating the keystroke, or the browser may be eating the keystroke. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of itdanny2002 Sent: Friday, September 05, 2008 3:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: What wrong ? CtrlLeft and Left I found that my code can work in Ctrl-Up Up Ctrl-Dn Dn but not Ctrl-Left Left Ctrl-Right Right
[flexcoders] What event is called after GroupingCollection.refresh()
I want to stop my hour glass after the GroupingCollection.refresh() is completed. Which event is called once it is done?
[flexcoders] Re: Memory Thrashing during PRINT operations.
THANKS for your response. Our swf is called main.swf.. There aren't any modules in my app (yet), so it's just one big SWF. I SUSPECT that it's loading, and unloading resources in the SWF (images, or something?) as needed to keep the movie running. Just to be clear, there aren't ANY images in the document pages that I'm trying to print. Does that make ANY sense from a Flash runtime perspective? Steve --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Is you swf main.swf or could it be loading some sort of small main.swf? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of steve_kellogg_davita Sent: Friday, September 05, 2008 8:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Memory Thrashing during PRINT operations. Hello, I'm running into some trouble that I hope you guys can offer some insight on. When using FlexPrintJob to print a document with multiple pages (typically, anything more than 2 or so), I'm seeing a bunch of trace messages that APPEAR to suggest that objects in memory are being loaded/unloaded, or that memory is otherwise getting thrashed around... FOR EXAMPLE.. The following code.. (page is a UIComponent) trace(+); myPrintJob.addObject(page, FlexPrintJobScaleType.MATCH_WIDTH) ; trace(-); is producing the following result.. + [SWF] /htdocs/main.swf - 1,805 bytes after decompression [SWF] /htdocs/main.swf - 2,441 bytes after decompression [SWF] /htdocs/main.swf - 2,346 bytes after decompression [SWF] /htdocs/main.swf - 2,389 bytes after decompression [SWF] /htdocs/main.swf - 2,156 bytes after decompression [SWF] /htdocs/main.swf - 1,861 bytes after decompression - As you can see, I'm putting the +/- traces in to confirm that these other messages are being output DURING the addObject call. For EVERY page I add (after the first two), I see this EXACT sequence of [SWF] messages (including the exact bytecounts). In addition to just being annoying, this sequence takes 2-3 seconds per page, which obviously limits the total number of pages I can print before the 15 second timeout occurs.. SO, here's the question... Does anyone have any insights into this? Are there any settings that I can use to alert the machine running my app that it needs to allocate more memory to the SWF's version of a heap? When I originally wrote the print wrapper dialog for this application (in Flex 2), I don't remember seeing any of this, and it was tested with HUNDREDS of pages per printJob, so I SUSPECT that this is a new behavior in Flex 3. Thanks in Advance for any assistance. Steve
[flexcoders] VideoDisplay play/pause button
To make a simple play / pause button I bind the selected state of the button to the playing property of the VideoDisplay component. This works fine with progressive video, but for some reason when using streaming video the binding does not work correctly. Most of the time it does not set the selected state when the playing property changes. Anyone know why or how to fix this?
[flexcoders] Getting a reference to a itemRenderer of a chart series
How can I get a reference to a itemRenderer of a chart series? If I use getStyle method, I´ll get the reference of the ClassFactory Ex: Series(chart.series[index]).getStyle(itemRenderer) Looking for any property that I could use, I´ve found in the ColumnSeries a property called _instanceCache. I could get a reference of the objects created by the ClassFactory using _instanceCache.instances, but this attribute is private. So, what should I do to get the reference of the itemRenderes of the series? -- Fernando Benedet Ghisi
[flexcoders] RE: Datagrid: cellPress vs. cellEdit
It's been a while, but it looks like cellPress is guaranteed before cellFocusIn when you click on a cell to start editing. You won't get cellPress when tabbing to the next cell. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chilcoat, Dee Sent: Friday, September 05, 2008 11:03 AM To: 'flexcoders@yahoogroups.com' Subject: [flexcoders] RE: Datagrid: cellPress vs. cellEdit Yes, we are on an old version of Flex, 1.5. We are trying to get an application implemented that has been in development for years. After we get the app implemented (soon, I hope), we will look at upgrading. I put some displays in the mxml and found out that the the cellpress event is fired before the cellFocusIn event when focus is gained on a cell. Can I depend on that fact? Or, could the cellFocusIn event be fired first? Can I determine whether or not the clicked portion of the DataGrid is editable? On a different subject, to upgrade, should we upgrade to Flex 2, or directly to the latest version? I appreciate your help! Dee A. Chilcoat Enterprise Web Application Development University of California San Diego [EMAIL PROTECTED] (858) 534-0719 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Tuesday, September 02, 2008 9:52 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] RE: Datagrid: cellPress vs. cellEdit Which version of Flex are you using? That's pretty old stuff that I'd have to dig through layers of dust to get an answer. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chilcoat, Dee Sent: Tuesday, September 02, 2008 4:16 PM To: 'flexcoders@yahoogroups.com' Subject: [flexcoders] Datagrid: cellPress vs. cellEdit I have looked through the documentation, and have not found an answer to the following: Are cellPress and cellEdit events mutually exclusive? In other words, if the cellPress event is fired, can I assume that an un-editable portion of the DataGrid has been clicked? If the answer is that they are not mutually exclusive, how can I determine whether or not the clicked portion of the DataGrid is editable? Any help will be appreciated. Dee A. Chilcoat Enterprise Web Application Development University of California San Diego [EMAIL PROTECTED] (858) 534-0719
Re: [flexcoders] Need help with Logout and then Logging back into Flex App
You could just reload your app, 'tis the short sweet easy way...go ahead mash that Easy Button! Flex can load a new URL in the browser, so just load itself. DK On Fri, Sep 5, 2008 at 2:06 PM, scottyale2008 [EMAIL PROTECTED]wrote: After each of the different forms have been opened (via the button toolbar), the forms have been initialized and created. I recently added a logout button which just takes you back to the login form. If you login as a different user, some of the charts and forms don't update because they were created via creationComplete() At the main section of the Flex app (where the login page is), is there a way to reset all creationComplete's so the app will recreate the pages when they are re-selected? I tried invalidating all the properties and displaylists. If there isn't a quick and easy way I could do one of the following: - The logout page takes them to a screen that says Press the Browser Refresh Button to log back in. - The logout link does the Browser Refresh automatically. Is this an option, and if so what is the command to reload the flex app within flex? What's is best practices and/or best approach? -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it?
[flexcoders] RE: Datagrid: cellPress vs. cellEdit
Thank you! Dee A. Chilcoat Enterprise Web Application Development University of California San Diego [EMAIL PROTECTED] (858) 534-0719 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Friday, September 05, 2008 11:19 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] RE: Datagrid: cellPress vs. cellEdit It's been a while, but it looks like cellPress is guaranteed before cellFocusIn when you click on a cell to start editing. You won't get cellPress when tabbing to the next cell. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chilcoat, Dee Sent: Friday, September 05, 2008 11:03 AM To: 'flexcoders@yahoogroups.com' Subject: [flexcoders] RE: Datagrid: cellPress vs. cellEdit Yes, we are on an old version of Flex, 1.5. We are trying to get an application implemented that has been in development for years. After we get the app implemented (soon, I hope), we will look at upgrading. I put some displays in the mxml and found out that the the cellpress event is fired before the cellFocusIn event when focus is gained on a cell. Can I depend on that fact? Or, could the cellFocusIn event be fired first? Can I determine whether or not the clicked portion of the DataGrid is editable? On a different subject, to upgrade, should we upgrade to Flex 2, or directly to the latest version? I appreciate your help! Dee A. Chilcoat Enterprise Web Application Development University of California San Diego [EMAIL PROTECTED] (858) 534-0719 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Tuesday, September 02, 2008 9:52 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] RE: Datagrid: cellPress vs. cellEdit Which version of Flex are you using? That's pretty old stuff that I'd have to dig through layers of dust to get an answer. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chilcoat, Dee Sent: Tuesday, September 02, 2008 4:16 PM To: 'flexcoders@yahoogroups.com' Subject: [flexcoders] Datagrid: cellPress vs. cellEdit I have looked through the documentation, and have not found an answer to the following: Are cellPress and cellEdit events mutually exclusive? In other words, if the cellPress event is fired, can I assume that an un-editable portion of the DataGrid has been clicked? If the answer is that they are not mutually exclusive, how can I determine whether or not the clicked portion of the DataGrid is editable? Any help will be appreciated. Dee A. Chilcoat Enterprise Web Application Development University of California San Diego [EMAIL PROTECTED] (858) 534-0719
[flexcoders] effects whn page loads
How to give effects on canvas/button/lables when page loads? ,,, I can not give the effects at the time when the page loads/ plzz/ help me out.. I am new in flex ...
[flexcoders] Help with AS2 from Flex
Hi, I'm new on this group. Greetings to all of you... Well, I'm developing an application that shows a powerpoint converted presentation and should be able to navigate throw the slides (back and next), but, the presentations are converted with openoffice and it puts as2 code into the swf files and these files are loaded with the AMV1 I really need a way to access the nextFrame(), gotoAndPlay(), gotoAndStop() and prevFrame() methods, how can I access to these methods from flex Or does someone knows an open source (or freeware) tool (or API) to converting ppt to flash with actionscript 3.0
RE: [flexcoders] Re: Memory Thrashing during PRINT operations.
I have no idea why you see that output. I'll ask internally From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of steve_kellogg_davita Sent: Friday, September 05, 2008 11:08 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Memory Thrashing during PRINT operations. THANKS for your response. Our swf is called main.swf.. There aren't any modules in my app (yet), so it's just one big SWF. I SUSPECT that it's loading, and unloading resources in the SWF (images, or something?) as needed to keep the movie running. Just to be clear, there aren't ANY images in the document pages that I'm trying to print. Does that make ANY sense from a Flash runtime perspective? Steve --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Is you swf main.swf or could it be loading some sort of small main.swf? From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of steve_kellogg_davita Sent: Friday, September 05, 2008 8:37 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Memory Thrashing during PRINT operations. Hello, I'm running into some trouble that I hope you guys can offer some insight on. When using FlexPrintJob to print a document with multiple pages (typically, anything more than 2 or so), I'm seeing a bunch of trace messages that APPEAR to suggest that objects in memory are being loaded/unloaded, or that memory is otherwise getting thrashed around... FOR EXAMPLE.. The following code.. (page is a UIComponent) trace(+); myPrintJob.addObject(page, FlexPrintJobScaleType.MATCH_WIDTH) ; trace(-); is producing the following result.. + [SWF] /htdocs/main.swf - 1,805 bytes after decompression [SWF] /htdocs/main.swf - 2,441 bytes after decompression [SWF] /htdocs/main.swf - 2,346 bytes after decompression [SWF] /htdocs/main.swf - 2,389 bytes after decompression [SWF] /htdocs/main.swf - 2,156 bytes after decompression [SWF] /htdocs/main.swf - 1,861 bytes after decompression - As you can see, I'm putting the +/- traces in to confirm that these other messages are being output DURING the addObject call. For EVERY page I add (after the first two), I see this EXACT sequence of [SWF] messages (including the exact bytecounts). In addition to just being annoying, this sequence takes 2-3 seconds per page, which obviously limits the total number of pages I can print before the 15 second timeout occurs.. SO, here's the question... Does anyone have any insights into this? Are there any settings that I can use to alert the machine running my app that it needs to allocate more memory to the SWF's version of a heap? When I originally wrote the print wrapper dialog for this application (in Flex 2), I don't remember seeing any of this, and it was tested with HUNDREDS of pages per printJob, so I SUSPECT that this is a new behavior in Flex 3. Thanks in Advance for any assistance. Steve
[flexcoders] RE: Datagrid: cellPress vs. cellEdit
And move to Flex 3 as soon as possible. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chilcoat, Dee Sent: Friday, September 05, 2008 11:24 AM To: 'flexcoders@yahoogroups.com' Subject: [flexcoders] RE: Datagrid: cellPress vs. cellEdit Thank you! Dee A. Chilcoat Enterprise Web Application Development University of California San Diego [EMAIL PROTECTED] (858) 534-0719 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Friday, September 05, 2008 11:19 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] RE: Datagrid: cellPress vs. cellEdit It's been a while, but it looks like cellPress is guaranteed before cellFocusIn when you click on a cell to start editing. You won't get cellPress when tabbing to the next cell. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chilcoat, Dee Sent: Friday, September 05, 2008 11:03 AM To: 'flexcoders@yahoogroups.com' Subject: [flexcoders] RE: Datagrid: cellPress vs. cellEdit Yes, we are on an old version of Flex, 1.5. We are trying to get an application implemented that has been in development for years. After we get the app implemented (soon, I hope), we will look at upgrading. I put some displays in the mxml and found out that the the cellpress event is fired before the cellFocusIn event when focus is gained on a cell. Can I depend on that fact? Or, could the cellFocusIn event be fired first? Can I determine whether or not the clicked portion of the DataGrid is editable? On a different subject, to upgrade, should we upgrade to Flex 2, or directly to the latest version? I appreciate your help! Dee A. Chilcoat Enterprise Web Application Development University of California San Diego [EMAIL PROTECTED] (858) 534-0719 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Tuesday, September 02, 2008 9:52 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] RE: Datagrid: cellPress vs. cellEdit Which version of Flex are you using? That's pretty old stuff that I'd have to dig through layers of dust to get an answer. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chilcoat, Dee Sent: Tuesday, September 02, 2008 4:16 PM To: 'flexcoders@yahoogroups.com' Subject: [flexcoders] Datagrid: cellPress vs. cellEdit I have looked through the documentation, and have not found an answer to the following: Are cellPress and cellEdit events mutually exclusive? In other words, if the cellPress event is fired, can I assume that an un-editable portion of the DataGrid has been clicked? If the answer is that they are not mutually exclusive, how can I determine whether or not the clicked portion of the DataGrid is editable? Any help will be appreciated. Dee A. Chilcoat Enterprise Web Application Development University of California San Diego [EMAIL PROTECTED] (858) 534-0719
[flexcoders] Re: Need help with Logout and then Logging back into Flex App
Thanks! Since app can run on different servers (URL's), the following three lines did the trick! var myUrl:String = mx.core.Application.application.url; var webPageURL:URLRequest = new URLRequest( myUrl ); navigateToURL(webPageURL);
[flexcoders] RE: Datagrid: cellPress vs. cellEdit
Directly to Flex 3, or should we move to Flex 2 first? Which would be easier? Dee A. Chilcoat Enterprise Web Application Development University of California San Diego [EMAIL PROTECTED] (858) 534-0719 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Friday, September 05, 2008 11:30 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] RE: Datagrid: cellPress vs. cellEdit And move to Flex 3 as soon as possible. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chilcoat, Dee Sent: Friday, September 05, 2008 11:24 AM To: 'flexcoders@yahoogroups.com' Subject: [flexcoders] RE: Datagrid: cellPress vs. cellEdit Thank you! Dee A. Chilcoat Enterprise Web Application Development University of California San Diego [EMAIL PROTECTED] (858) 534-0719 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Friday, September 05, 2008 11:19 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] RE: Datagrid: cellPress vs. cellEdit It's been a while, but it looks like cellPress is guaranteed before cellFocusIn when you click on a cell to start editing. You won't get cellPress when tabbing to the next cell. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chilcoat, Dee Sent: Friday, September 05, 2008 11:03 AM To: 'flexcoders@yahoogroups.com' Subject: [flexcoders] RE: Datagrid: cellPress vs. cellEdit Yes, we are on an old version of Flex, 1.5. We are trying to get an application implemented that has been in development for years. After we get the app implemented (soon, I hope), we will look at upgrading. I put some displays in the mxml and found out that the the cellpress event is fired before the cellFocusIn event when focus is gained on a cell. Can I depend on that fact? Or, could the cellFocusIn event be fired first? Can I determine whether or not the clicked portion of the DataGrid is editable? On a different subject, to upgrade, should we upgrade to Flex 2, or directly to the latest version? I appreciate your help! Dee A. Chilcoat Enterprise Web Application Development University of California San Diego [EMAIL PROTECTED] (858) 534-0719 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Tuesday, September 02, 2008 9:52 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] RE: Datagrid: cellPress vs. cellEdit Which version of Flex are you using? That's pretty old stuff that I'd have to dig through layers of dust to get an answer. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Chilcoat, Dee Sent: Tuesday, September 02, 2008 4:16 PM To: 'flexcoders@yahoogroups.com' Subject: [flexcoders] Datagrid: cellPress vs. cellEdit I have looked through the documentation, and have not found an answer to the following: Are cellPress and cellEdit events mutually exclusive? In other words, if the cellPress event is fired, can I assume that an un-editable portion of the DataGrid has been clicked? If the answer is that they are not mutually exclusive, how can I determine whether or not the clicked portion of the DataGrid is editable? Any help will be appreciated. Dee A. Chilcoat Enterprise Web Application Development University of California San Diego [EMAIL PROTECTED] (858) 534-0719
[flexcoders] eclipse print selection on mac
I just switched from PC eclipse to mac eclipse, At the same time I also upgraded to ganymede from an older version of eclipse. I am not sure whether it is the version change or the platform change but I can no longer print selection, which is a huge bummer. Does anybody know what the deal is? Thanks, Hank -- blog: whydoeseverythingsuck.com
[flexcoders] Re: Hiding a row in an AdvancedDataGrid
No, I never call refresh(). Here's the sequence: 1) Set the filter function. 2) Add a parent object [filter function is not called] 3) Add a child object [filter function IS called] I've tried adding parents and children later on too, and the filter function is still only called for children. --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: and both are called after the filter is defined Are you calling ArrayCollection.refresh() after you finish adding the parent and children objects? -TH --- In flexcoders@yahoogroups.com, whatabrain junk1@ wrote: My filter function is really simple. Something along these lines: private function filterFunc(item:Object):Boolean { return item is ChildObj; } The dataProvider is an ArrayCollection containing ParentObjs. ParentObj extends ArrayCollection, and contains ChildObjs. I call ArrayCollection.addItem() to add either ParentObj or ChildObj to the tree, and both are called after the filter is defined. In fact, I call the ChildObj insert right after the ParentObj insert. Basically, I want to hide all top-level nodes in the tree, but the filter function isn't even called for those nodes. --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Interesting, I would think that the opposite would occur; if you're using something like: return item.myfield==whatever;. Sure, post your filterFunction; as well as a basic idea of the collection's structure. -TH --- In flexcoders@yahoogroups.com, whatabrain junk1@ wrote: When I try this, the filter function isn't called for top- level items. It's called for all child nodes in the dataProvider, but not for the parent node. Any idea why this might be, or do you need a code sample? --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: ICollectionView or a filterFuncton can work for this; if you don't want to mess with the underlying source. -TH --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: Well, you hide a row by removing it from the dataProvider. There is no direct relationship between a DG row and a dataProvider item. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of whatabrain Sent: Thursday, September 04, 2008 8:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Hiding a row in an AdvancedDataGrid How do you hide a row in an AdvancedDataGrid? I can't find any method that lets you get a row by index or item.
RE: [flexcoders] Help with AS2 from Flex
http://www.gskinner.com/blog/archives/2007/07/swfbridge_easie.html There also links in there to other solutions From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tloqueh Sent: Friday, September 05, 2008 11:24 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Help with AS2 from Flex Hi, I'm new on this group. Greetings to all of you... Well, I'm developing an application that shows a powerpoint converted presentation and should be able to navigate throw the slides (back and next), but, the presentations are converted with openoffice and it puts as2 code into the swf files and these files are loaded with the AMV1 I really need a way to access the nextFrame(), gotoAndPlay(), gotoAndStop() and prevFrame() methods, how can I access to these methods from flex Or does someone knows an open source (or freeware) tool (or API) to converting ppt to flash with actionscript 3.0
[flexcoders] Re: Hiding a row in an AdvancedDataGrid
Anytime that you use a filterFunction or sort on an ArrayCollection, it won't be executed until you use call the refresh method. Basically you're saying, ok filter and sort my collection now. It doesn't happen automatically. After #3, and anytime that items are added/changed/removed in the collection, execute the refresh method to re-filter/sort the collection. I'm not sure if this is going to solve your problem, because filtering the parent objects will probably take out the children as well. You may have to just create a new collection, from the original (excluding the parents), and use that as the DataProvider. But, give refresh a try first. -TH --- In flexcoders@yahoogroups.com, whatabrain [EMAIL PROTECTED] wrote: No, I never call refresh(). Here's the sequence: 1) Set the filter function. 2) Add a parent object [filter function is not called] 3) Add a child object [filter function IS called] I've tried adding parents and children later on too, and the filter function is still only called for children. --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: and both are called after the filter is defined Are you calling ArrayCollection.refresh() after you finish adding the parent and children objects? -TH --- In flexcoders@yahoogroups.com, whatabrain junk1@ wrote: My filter function is really simple. Something along these lines: private function filterFunc(item:Object):Boolean { return item is ChildObj; } The dataProvider is an ArrayCollection containing ParentObjs. ParentObj extends ArrayCollection, and contains ChildObjs. I call ArrayCollection.addItem() to add either ParentObj or ChildObj to the tree, and both are called after the filter is defined. In fact, I call the ChildObj insert right after the ParentObj insert. Basically, I want to hide all top-level nodes in the tree, but the filter function isn't even called for those nodes. --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Interesting, I would think that the opposite would occur; if you're using something like: return item.myfield==whatever;. Sure, post your filterFunction; as well as a basic idea of the collection's structure. -TH --- In flexcoders@yahoogroups.com, whatabrain junk1@ wrote: When I try this, the filter function isn't called for top- level items. It's called for all child nodes in the dataProvider, but not for the parent node. Any idea why this might be, or do you need a code sample? --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: ICollectionView or a filterFuncton can work for this; if you don't want to mess with the underlying source. -TH --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: Well, you hide a row by removing it from the dataProvider. There is no direct relationship between a DG row and a dataProvider item. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of whatabrain Sent: Thursday, September 04, 2008 8:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Hiding a row in an AdvancedDataGrid How do you hide a row in an AdvancedDataGrid? I can't find any method that lets you get a row by index or item.
[flexcoders] Re: Streaming Video to Flex
My only suggestion would be to look into the messaging service. I don't know that that will solve your issue though - but there are examples around which show how to create a video conferencing application using Flex messaging service. Otherwise you may be stuck with having to use FMS (or some other service of the sort)... --- In flexcoders@yahoogroups.com, Phil Heinz [EMAIL PROTECTED] wrote: Thanks Nathan. Problem is, camera is not attached to computer with the Flex app. I want one of 10 Flex apps around the Intranet to be able to attach to any camera's stream, and I don't want to use FMS. I have looked high and low and can't find a camera that puts out FLV. And from what I gather from Flex, streaming can only be done from an FMS source or some other software that supports RTMP. Any thoughts? Thanks, Phil --- In flexcoders@yahoogroups.com, nathanpdaniel ndaniel@ wrote: You can attach a camera to Flex and stream video - I'm sure your camera is quite a bit more sophisticated than your typical webcam though Livedocs: http://livedocs.adobe.com/flex/3/html/help.html? content=Working_with_Video_18.html Hope this helps! :D --- In flexcoders@yahoogroups.com, Phil Heinz phil@ wrote: Hi everyone, Can Flex 3 VideoDisplay or any other component display LIVE streaming video from any other format than FLV? We are trying to go straight to the camera from Flex. Many cameras will stream motion JPEG or MPEG4 for instance. Second question - does anyone know of a camera that streams FLV? Thanks! Phil
[flexcoders] File uploader / downloader suggestions
Hey y'all, I'm hoping to get some opinions from you all. I would like to create an upload / download app for fun / practice. Basicaly, people log in, get a directory listing of files on the server and can upload and download to the directories. I'm gonna use a MySQL database to keep track of the files, who uploaded what file and when. Any other suggestions of what I can / should track. I've just started playing with Coldfusion, is that really applicable? I've been using AMFPHP and WebOrb and want to try something else. What is the best way to visually show a servers directory listing. Any ideas on how I would 'scan' a directory and show that in a component. Now that I think of, perhaps it wold be best not to think of it as a simple FTP thing, but rather an interface where options are presented to 'tag' a file with keywords, and then one can search for those keywords and then choose file to dl that match the key words. Anyone have any ideas / tfeatures they think would be cool to have?
[flexcoders] Re: Hiding a row in an AdvancedDataGrid
Calling refresh() did nothing. Note that if I choose to filter out all the child nodes, it works perfectly. It's only the parent nodes I can't filter, because the filter is never called for them. --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Anytime that you use a filterFunction or sort on an ArrayCollection, it won't be executed until you use call the refresh method. Basically you're saying, ok filter and sort my collection now. It doesn't happen automatically. After #3, and anytime that items are added/changed/removed in the collection, execute the refresh method to re-filter/sort the collection. I'm not sure if this is going to solve your problem, because filtering the parent objects will probably take out the children as well. You may have to just create a new collection, from the original (excluding the parents), and use that as the DataProvider. But, give refresh a try first. -TH --- In flexcoders@yahoogroups.com, whatabrain junk1@ wrote: No, I never call refresh(). Here's the sequence: 1) Set the filter function. 2) Add a parent object [filter function is not called] 3) Add a child object [filter function IS called] I've tried adding parents and children later on too, and the filter function is still only called for children. --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: and both are called after the filter is defined Are you calling ArrayCollection.refresh() after you finish adding the parent and children objects? -TH --- In flexcoders@yahoogroups.com, whatabrain junk1@ wrote: My filter function is really simple. Something along these lines: private function filterFunc(item:Object):Boolean { return item is ChildObj; } The dataProvider is an ArrayCollection containing ParentObjs. ParentObj extends ArrayCollection, and contains ChildObjs. I call ArrayCollection.addItem() to add either ParentObj or ChildObj to the tree, and both are called after the filter is defined. In fact, I call the ChildObj insert right after the ParentObj insert. Basically, I want to hide all top-level nodes in the tree, but the filter function isn't even called for those nodes. --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Interesting, I would think that the opposite would occur; if you're using something like: return item.myfield==whatever;. Sure, post your filterFunction; as well as a basic idea of the collection's structure. -TH --- In flexcoders@yahoogroups.com, whatabrain junk1@ wrote: When I try this, the filter function isn't called for top- level items. It's called for all child nodes in the dataProvider, but not for the parent node. Any idea why this might be, or do you need a code sample? --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: ICollectionView or a filterFuncton can work for this; if you don't want to mess with the underlying source. -TH --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: Well, you hide a row by removing it from the dataProvider. There is no direct relationship between a DG row and a dataProvider item. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of whatabrain Sent: Thursday, September 04, 2008 8:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Hiding a row in an AdvancedDataGrid How do you hide a row in an AdvancedDataGrid? I can't find any method that lets you get a row by index or item.
[flexcoders] Re: Hiding a row in an AdvancedDataGrid
You know that the filterFunction is being called because you have a breakpoint and trace insde it and are running in debug mode right? Also, is the filterFunction on the correct ArrayCollection (the main one and not the extended one)? The correct order would be: 1.) Add parent object to main ArrayCollection 2.) Add children objects to the parent ArrayCollection 3.) Repeat 1 2 for all parents and children 4.) Set filterFunction for main ArrayCollection 5.) Execute refresh() on main ArrayCollection That's about all that I have; without poking through the code. -TH --- In flexcoders@yahoogroups.com, whatabrain [EMAIL PROTECTED] wrote: Calling refresh() did nothing. Note that if I choose to filter out all the child nodes, it works perfectly. It's only the parent nodes I can't filter, because the filter is never called for them. --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Anytime that you use a filterFunction or sort on an ArrayCollection, it won't be executed until you use call the refresh method. Basically you're saying, ok filter and sort my collection now. It doesn't happen automatically. After #3, and anytime that items are added/changed/removed in the collection, execute the refresh method to re-filter/sort the collection. I'm not sure if this is going to solve your problem, because filtering the parent objects will probably take out the children as well. You may have to just create a new collection, from the original (excluding the parents), and use that as the DataProvider. But, give refresh a try first. -TH --- In flexcoders@yahoogroups.com, whatabrain junk1@ wrote: No, I never call refresh(). Here's the sequence: 1) Set the filter function. 2) Add a parent object [filter function is not called] 3) Add a child object [filter function IS called] I've tried adding parents and children later on too, and the filter function is still only called for children. --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: and both are called after the filter is defined Are you calling ArrayCollection.refresh() after you finish adding the parent and children objects? -TH --- In flexcoders@yahoogroups.com, whatabrain junk1@ wrote: My filter function is really simple. Something along these lines: private function filterFunc(item:Object):Boolean { return item is ChildObj; } The dataProvider is an ArrayCollection containing ParentObjs. ParentObj extends ArrayCollection, and contains ChildObjs. I call ArrayCollection.addItem() to add either ParentObj or ChildObj to the tree, and both are called after the filter is defined. In fact, I call the ChildObj insert right after the ParentObj insert. Basically, I want to hide all top-level nodes in the tree, but the filter function isn't even called for those nodes. --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: Interesting, I would think that the opposite would occur; if you're using something like: return item.myfield==whatever;. Sure, post your filterFunction; as well as a basic idea of the collection's structure. -TH --- In flexcoders@yahoogroups.com, whatabrain junk1@ wrote: When I try this, the filter function isn't called for top- level items. It's called for all child nodes in the dataProvider, but not for the parent node. Any idea why this might be, or do you need a code sample? --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote: ICollectionView or a filterFuncton can work for this; if you don't want to mess with the underlying source. -TH --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote: Well, you hide a row by removing it from the dataProvider. There is no direct relationship between a DG row and a dataProvider item. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of whatabrain Sent: Thursday, September 04, 2008 8:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Hiding a row in an AdvancedDataGrid How do you hide a row in an AdvancedDataGrid? I can't find any method that lets you get a row by index or item.
Re: [flexcoders] VideoDisplay Object
Hi percy, I used its width and height property and everything resize fine... --- On Fri, 9/5/08, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: From: [p e r c e p t i c o n] [EMAIL PROTECTED] Subject: [flexcoders] VideoDisplay Object To: flexcoders@yahoogroups.com Date: Friday, September 5, 2008, 12:07 PM Hi People,I'm resizing video display object in my app and the video itself isn't being resized...just the component... how can i change the size of the video itself. percy
[flexcoders] Jigsaw Puzzle Component
Hi! Im trying to build a jigsaw but Im not very successfull. What I tried to do was to load a Bitmap and then use BitmapData and FlexSprite. Unfortunelly the way I was using (Graphics API), didn't worked, so, I would like to ask a few sugestions about it. Thanks in advance
[flexcoders] Help on Visual Design, Graphic Designers, Firms, Consultants
Hi All, We are building an enterprise Flex app and it is time to make this thing look good. The UI is in various states of completion and some areas are not designed. We basically need: - icons - visual design framework and style guide What are people's experiences in the Visual Design aspects of their flex projects? Ideally we can find a contractor or firm that can actually edit CSS files. But somehow I think this is unlikely. Should we go with a firm of find some random designer people? What deliverables can we expect? Will any designers know how to deal with Flex and CSS? Thanks
[flexcoders] Best approach for playback of live session with remote shared objects?
I have an application that records live audio/video and throughout the session data is changed in remote shared objects which trigger certain events. Different people will change the information in the shared object at different times. I'd like to playback the video and have the information in the shared objects trigger the same events in synch with the .flv. I'm thinking I will just timestamp the information that goes into the shared and store it in a database. Then during playback just make the same changes to the shared object again based on the video's position. I'm new to Flex and wondering if there isn't a better way. Any ideas would be very much appreciated. Thanks, sr
Re: [flexcoders] VideoDisplay Object
So am i. I made it smaller and the video itself stays the same size but the component shrinks and displays scrollbars Percy Sent via BlackBerry by ATT -Original Message- From: Mario Falomir [EMAIL PROTECTED] Date: Fri, 5 Sep 2008 12:12:40 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] VideoDisplay Object Hi percy, I used its width and height property and everything resize fine... --- On Fri, 9/5/08, [p e r c e p t i c o n] [EMAIL PROTECTED] wrote: From: [p e r c e p t i c o n] [EMAIL PROTECTED] Subject: [flexcoders] VideoDisplay Object To: flexcoders@yahoogroups.com Date: Friday, September 5, 2008, 12:07 PM Hi People,I'm resizing video display object in my app and the video itself isn't being resized...just the component... how can i change the size of the video itself. percy
[flexcoders] describeType vs DescribeTypeCache
I have read that you should use DescribeTypeCache as it is much faster than calling describeType directly. I wondered how big an issue this is becuase... I noticed that the ADG uses describeType everytime it sets the value of a cell into the dataProvider at the end of an edit, so it is getting hit an awful lot, so is it going to be a significant benefit if I override the function and change to using DescribeTypeCache? tks
Re: [flexcoders] Jigsaw Puzzle Component
Hi! Im trying to build a jigsaw but Im not very successfull. What I tried to do was to load a Bitmap and then use BitmapData and FlexSprite. Unfortunelly the way I was using (Graphics API), didn't worked, so, I would like to ask a few sugestions about it. Thanks in advance I can't find a link right now, but if you google for Flash and Jigsaw puzzles you'll find a tutorial on building a jigsaw puzzle in Flash. It's not Flex, but the logic would be the same. I successfully used it to jumpstart a more robust jigsaw puzzle engine (in AS3). I'd share, but it was for a client. Troy.
[flexcoders] Datagrid - Sort Error
I am getting the following error when attempting to run a sort on a datagrid's dataprovider (which is an XMLListCollection). It doesn't occur the first time I run the sort, however all subsequent runs result in an error: Error: Find criteria must contain at least one sort field value Here is the sort code: // sort on date var sortA:Sort = new Sort(); var sortByDate:SortField = new SortField(@date,false,false) sortA.fields=[sortByDate]; // Refresh the collection view to show the sort. modelLocator.projectData.projectData_xlc.sort = sortA; modelLocator.projectData.projectData_xlc.refresh(); Any ideas as to where the error might be? Thanks for any and all replies.
[flexcoders] Re: FlexLivedocs Module chart example has scroll bars ....
Thanks Alex! --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: ColumnChartModule.mxml mx:Module xmlns:mx=http://www.adobe.com/2006/mxml; percentWidth=100 percentHeight=100 minHeight=0 minWidth=0 mx:Script![CDATA[ import mx.collections.ArrayCollection; [Bindable] public var expenses:ArrayCollection = new ArrayCollection([ {Month:Jan, Profit:2000, Expenses:1500}, {Month:Feb, Profit:1000, Expenses:200}, {Month:Mar, Profit:1500, Expenses:500} ]); ]]/mx:Script mx:ColumnChart id=myChart dataProvider={expenses} width=100% height=100% minWidth=0 minHeight=0 MainApp.mxml: mx:ModuleLoader url=ColumnChartModule.swf width=100% height=100% minHeight=0 minWidth=0/ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mic Sent: Sunday, August 31, 2008 12:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] FlexLivedocs Module chart example has scroll bars http://livedocs.adobe.com/flex/3/html/help.html?content=modular_5.html Can anyone show me how to fix this simple example so the chart shrinks to fit its container like it normally does? TIA, Mic.
[flexcoders] How do I move a child? from one container to another?
Hi, I'm trying to use States and removing(RemoveChild) a child (mx:Text id='mytext') and trying to add it to a different container with addchild, but I get an error - ' identifier 'mytext' used more than once I can do this in actionscript, but how do I do this in mxml, keeping the same id of 'mytext' on the text field?? mx:State name=moveit mx:RemoveChild target={mytext}/ mx:AddChild relativeTo={myhbox} position=firstChild mx:Text id=mytext paddingTop=0 fontSize=16 width=100%/ /mx:AddChild /mx:State thanks,
[flexcoders] Re: Binding warnings - per instance suppression?
--- In flexcoders@yahoogroups.com, Richard Rodseth [EMAIL PROTECTED] wrote: I like wiring things together in MXML, and I like having no warnings. Is there any way to suppress binding warnings on a per-line basis? In the following case, module and services really aren't going to change: controller:MyController id=controller hostContainer={this} services={this.module.services} / The references are interfaces, and using custom events, I can add binding support to those interfaces, but it's a bit unnecessary. I suppose I could also set controller.services in a Script block, but I'm not crazy about that either. I think Rick Winscott posted a link to his blog that showed how to filter your warnings. I don't think I bookmarked it, but it may be in the archives. HTH; Amy
RE: [flexcoders] Re: Binding warnings - per instance suppression?
As Alex likes to advise, you can / should avoid binding when it is not necessary. You can do this assignment in-line, like this: controller:MyController id=controller hostContainer={this} creationComplete= controller.services=this.module.services / Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Friday, September 05, 2008 6:20 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Binding warnings - per instance suppression? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Richard Rodseth [EMAIL PROTECTED] wrote: I like wiring things together in MXML, and I like having no warnings. Is there any way to suppress binding warnings on a per-line basis? In the following case, module and services really aren't going to change: controller:MyController id=controller hostContainer={this} services={this.module.services} / The references are interfaces, and using custom events, I can add binding support to those interfaces, but it's a bit unnecessary. I suppose I could also set controller.services in a Script block, but I'm not crazy about that either. I think Rick Winscott posted a link to his blog that showed how to filter your warnings. I don't think I bookmarked it, but it may be in the archives. HTH; Amy
[flexcoders] Re: Getting a reference to a itemRenderer of a chart series
So, nobody can help me? 2008/9/5 Fernando Ghisi [EMAIL PROTECTED]: How can I get a reference to a itemRenderer of a chart series? If I use getStyle method, I´ll get the reference of the ClassFactory Ex: Series(chart.series[index]).getStyle(itemRenderer) Looking for any property that I could use, I´ve found in the ColumnSeries a property called _instanceCache. I could get a reference of the objects created by the ClassFactory using _instanceCache.instances, but this attribute is private. So, what should I do to get the reference of the itemRenderes of the series? -- Fernando Benedet Ghisi -- Fernando Benedet Ghisi
[flexcoders] Re: Getting a reference to a itemRenderer of a chart series
Assuming chart is a ColumnChart, chart.series[0].items[0] will get you a rference to the first ColumnSeriesItem. Charts don't have itemRenderers and an itemRenderer is not a style. -TH --- In flexcoders@yahoogroups.com, Fernando Ghisi [EMAIL PROTECTED] wrote: So, nobody can help me? 2008/9/5 Fernando Ghisi [EMAIL PROTECTED]: How can I get a reference to a itemRenderer of a chart series? If I use getStyle method, I´ll get the reference of the ClassFactory Ex: Series(chart.series[index]).getStyle(itemRenderer) Looking for any property that I could use, I´ve found in the ColumnSeries a property called _instanceCache. I could get a reference of the objects created by the ClassFactory using _instanceCache.instances, but this attribute is private. So, what should I do to get the reference of the itemRenderes of the series? -- Fernando Benedet Ghisi -- Fernando Benedet Ghisi
Re: [flexcoders] VideoDisplay Object
You are using the Flex 3 VideoDisplay component ? Weirdit works fine with me.. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute initialize=init(event) mx:VideoDisplay x=146.5 y=157 width=395 height=258 id=videoObj/ mx:Script ![CDATA[ import mx.events.SliderEvent; private var iniW:Number; private var iniH:Number; private function init(e:Event):void { iniW = videoObj.width; iniH = videoObj.height; try { videoObj.source = http://localhost/surf.flv;; } catch (e:Error) { output_txt.text = e.message; } sizeSlider.addEventListener(SliderEvent.CHANGE, resizeVideo); } private function resizeVideo(e:SliderEvent):void { var nw:Number = iniW + (sizeSlider.value * 25); var nh:Number = iniH + (sizeSlider.value * 25); videoObj.setActualSize( nw, nh ); } ]] /mx:Script mx:HSlider x=264 y=131 id=sizeSlider liveDragging=true minimum=0 maximum=20 snapInterval=1/ /mx:Application --- On Fri, 9/5/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] [EMAIL PROTECTED] Subject: Re: [flexcoders] VideoDisplay Object To: flexcoders@yahoogroups.com Date: Friday, September 5, 2008, 4:04 PM So am i. I made it smaller and the video itself stays the same size but the component shrinks and displays scrollbars PercySent via BlackBerry by ATTFrom: Mario Falomir mario_falomir@ yahoo.com Date: Fri, 5 Sep 2008 12:12:40 -0700 (PDT) To: [EMAIL PROTECTED] ups.com Subject: Re: [flexcoders] VideoDisplay Object Hi percy, I used its width and height property and everything resize fine... --- On Fri, 9/5/08, [p e r c e p t i c o n] percepticon@ gmail.com wrote: From: [p e r c e p t i c o n] percepticon@ gmail.com Subject: [flexcoders] VideoDisplay Object To: [EMAIL PROTECTED] ups.com Date: Friday, September 5, 2008, 12:07 PM Hi People,I'm resizing video display object in my app and the video itself isn't being resized...just the component... how can i change the size of the video itself. percy
[flexcoders] HTTPService Synchronization
Hi All, Is there any framework in place to make multiple HTTPService requests synchronous. Also, does making concurrency=last helps? Regards,
Re: [flexcoders] How do I move a child? from one container to another?
I made this example, hope it helps :) ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:states mx:State name=moveit mx:RemoveChild target={text1}/ mx:AddChild relativeTo={myPanel} target={text1}/ /mx:State mx:State name=init/ /mx:states mx:Panel width=188 height=178 x=250 y=53 id=myPanel /mx:Panel mx:Text x=329 y=27 text=Text id=text1/ mx:Script ![CDATA[ private function changeView(e:MouseEvent):void { if ( currentState != moveit ) currentState = moveit; } ]] /mx:Script mx:Button x=278 y=239 label=Change View State height=50 click=changeView(event)/ /mx:Application --- On Fri, 9/5/08, luvfotography [EMAIL PROTECTED] wrote: From: luvfotography [EMAIL PROTECTED] Subject: [flexcoders] How do I move a child? from one container to another? To: flexcoders@yahoogroups.com Date: Friday, September 5, 2008, 5:03 PM Hi, I'm trying to use States and removing(RemoveChil d) a child (mx:Text id='mytext') and trying to add it to a different container with addchild, but I get an error - ' identifier 'mytext' used more than once I can do this in actionscript, but how do I do this in mxml, keeping the same id of 'mytext' on the text field?? mx:State name=moveit mx:RemoveChild target={mytext} / mx:AddChild relativeTo= {myhbox} position=firstChil d mx:Text id=mytext paddingTop= 0 fontSize=16 width=100% / /mx:AddChild /mx:State thanks,
Re: [flexcoders] How do I move a child? from one container to another?
Why to trying that? I mean there's no reson for it. You better use as3 instead of states. Even States are wrong way uses. Regards Igor Costa www.igorcosta.org On Fri, Sep 5, 2008 at 8:33 PM, Mario Falomir [EMAIL PROTECTED]wrote: I made this example, hope it helps :) ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:states mx:State name=moveit mx:RemoveChild target={text1}/ mx:AddChild relativeTo={myPanel} target={text1}/ /mx:State mx:State name=init/ /mx:states mx:Panel width=188 height=178 x=250 y=53 id=myPanel /mx:Panel mx:Text x=329 y=27 text=Text id=text1/ mx:Script ![CDATA[ private function changeView(e:MouseEvent):void { if ( currentState != moveit ) currentState = moveit; } ]] /mx:Script mx:Button x=278 y=239 label=Change View State height=50 click=changeView(event)/ /mx:Application --- On *Fri, 9/5/08, luvfotography [EMAIL PROTECTED]* wrote: From: luvfotography [EMAIL PROTECTED] Subject: [flexcoders] How do I move a child? from one container to another? To: flexcoders@yahoogroups.com Date: Friday, September 5, 2008, 5:03 PM Hi, I'm trying to use States and removing(RemoveChil d) a child (mx:Text id='mytext') and trying to add it to a different container with addchild, but I get an error - ' identifier 'mytext' used more than once I can do this in actionscript, but how do I do this in mxml, keeping the same id of 'mytext' on the text field?? mx:State name=moveit mx:RemoveChild target={mytext} / mx:AddChild relativeTo= {myhbox} position=firstChil d mx:Text id=mytext paddingTop= 0 fontSize=16 width=100% / /mx:AddChild /mx:State thanks, -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] HTTPService Synchronization
Rupal The Flex CookBook could help you at here. http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetailsproductId=2postId=7184 Regards Igor Costa www.igorcosta.org On Fri, Sep 5, 2008 at 7:02 PM, rupal_2381 [EMAIL PROTECTED] wrote: Hi All, Is there any framework in place to make multiple HTTPService requests synchronous. Also, does making concurrency=last helps? Regards, -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] VideoDisplay Object
Is more easy for anyone to help you if you post part of your attempt and we see how we could help. Regards Igor Costa www.igorcosta.org On Fri, Sep 5, 2008 at 7:42 PM, Mario Falomir [EMAIL PROTECTED]wrote: You are using the Flex 3 VideoDisplay component ? Weirdit works fine with me.. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute initialize=init(event) mx:VideoDisplay x=146.5 y=157 width=395 height=258 id=videoObj/ mx:Script ![CDATA[ import mx.events.SliderEvent; private var iniW:Number; private var iniH:Number; private function init(e:Event):void { iniW = videoObj.width; iniH = videoObj.height; try { videoObj.source = http://localhost/surf.flv;; } catch (e:Error) { output_txt.text = e.message; } sizeSlider.addEventListener(SliderEvent.CHANGE, resizeVideo); } private function resizeVideo(e:SliderEvent):void { var nw:Number = iniW + (sizeSlider.value * 25); var nh:Number = iniH + (sizeSlider.value * 25); videoObj.setActualSize( nw, nh ); } ]] /mx:Script mx:HSlider x=264 y=131 id=sizeSlider liveDragging=true minimum=0 maximum=20 snapInterval=1/ /mx:Application --- On *Fri, 9/5/08, [EMAIL PROTECTED] [EMAIL PROTECTED]* wrote: From: [EMAIL PROTECTED] [EMAIL PROTECTED] Subject: Re: [flexcoders] VideoDisplay Object To: flexcoders@yahoogroups.com Date: Friday, September 5, 2008, 4:04 PM So am i. I made it smaller and the video itself stays the same size but the component shrinks and displays scrollbars Percy Sent via BlackBerry by ATT -- *From*: Mario Falomir mario_falomir@ yahoo.com *Date*: Fri, 5 Sep 2008 12:12:40 -0700 (PDT) *To*: [EMAIL PROTECTED] ups.com *Subject*: Re: [flexcoders] VideoDisplay Object Hi percy, I used its width and height property and everything resize fine... --- On *Fri, 9/5/08, [p e r c e p t i c o n] percepticon@ gmail.com*wrote: From: [p e r c e p t i c o n] percepticon@ gmail.com Subject: [flexcoders] VideoDisplay Object To: [EMAIL PROTECTED] ups.com Date: Friday, September 5, 2008, 12:07 PM Hi People,I'm resizing video display object in my app and the video itself isn't being resized...just the component... how can i change the size of the video itself. percy -- Igor Costa www.igorcosta.com www.igorcosta.org
Re: [flexcoders] Re: Getting a reference to a itemRenderer of a chart series
ItemRenders are not part of Style even is not the way we could get a reference into a render for Charts. Try this. http://www.flex888.com/699/the-illusive-itemrenderer.html Maybe will help you to figure out how. Regards Igor Costa www.igorcosta.org On Fri, Sep 5, 2008 at 9:12 PM, Tim Hoff [EMAIL PROTECTED] wrote: Assuming chart is a ColumnChart, chart.series[0].items[0] will get you a rference to the first ColumnSeriesItem. Charts don't have itemRenderers and an itemRenderer is not a style. -TH --- In flexcoders@yahoogroups.com, Fernando Ghisi [EMAIL PROTECTED] wrote: So, nobody can help me? 2008/9/5 Fernando Ghisi [EMAIL PROTECTED]: How can I get a reference to a itemRenderer of a chart series? If I use getStyle method, I´ll get the reference of the ClassFactory Ex: Series(chart.series[index]).getStyle(itemRenderer) Looking for any property that I could use, I´ve found in the ColumnSeries a property called _instanceCache. I could get a reference of the objects created by the ClassFactory using _instanceCache.instances, but this attribute is private. So, what should I do to get the reference of the itemRenderes of the series? -- Fernando Benedet Ghisi -- Fernando Benedet Ghisi -- Igor Costa www.igorcosta.com www.igorcosta.org