[flexcoders] mxmlc slowdown when embedding mp3s
Hi, I'm not sure where to being looking - one of our dev machines takes an unspeakably long time to embed mp3 files (a mxml with embedded 2.7MB file takes more than 30 minutes and still not yet done) It only happens on one machine. The only thing we know so far is that this machine is Chinese windows XP. I'm unsure if it's a problem with the compiler on Chinese XP only (as we only have 1 such machine here). It seems to work fine on our test machines with Chinese Windows 2000 and Chinese Vista. Are there any other known issues with the speed of mp3 embedding? Thanks! Roy
Re: [flexcoders] Re: RadioButton's label - truncateToFit = false?
Thanks for your help guys! :-) I used Alex's example which he posted on his blog here: http://blogs.adobe.com/aharui/2007/04/multiline_buttons.html He seems to use the solution you suggested rueter007. It works great. On 29/01/2008, rueter007 [EMAIL PROTECTED] wrote: textField will not be created in the constructor. your app will throw an exception if you do so. if you like to do what sherif said, you will have to do it in the createChildren method after you called super.createChildren or some other method that occurs after the textField is created.. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Sherif Abdou [EMAIL PROTECTED] wrote: Try this, extend the RadioButton then in the constructor of the new Class do textField.multiline=true; - Original Message From: Sherif Abdou [EMAIL PROTECTED] To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Sent: Tuesday, January 29, 2008 11:14:23 AM Subject: Re: [flexcoders] RadioButton's label - truncateToFit = false? u have a bit of code to show what ur trying to do or a picture at least - Original Message From: bjorn - [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com Sent: Tuesday, January 29, 2008 11:01:36 AM Subject: Re: [flexcoders] RadioButton' s label - truncateToFit = false? That didn't fix it, they're still truncated ... On 29/01/2008, Sherif Abdou [EMAIL PROTECTED] com wrote: just call the invalidateSize( ); - Original Message From: bjorn - [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com Sent: Tuesday, January 29, 2008 6:58:30 AM Subject: [flexcoders] RadioButton' s label - truncateToFit = false? I have a problem with the label used by RadioButton - it truncates the text. Ideally I'd like to to have the text over several lines if there is no room for it (like mx:Text does). Is this possible? -- = === http://www.juicabil ity.com - flex blog http://www.43min. com - funny movies Never miss a thing. Make Yahoo your homepage. -- = === http://www.juicabil ity.com - flex blog http://www.43min. com - funny movies Looking for last minute shopping deals? Find them fast with Yahoo! Search. __ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs -- http://www.juicability.com - flex blog http://www.43min.com - funny movies
RE: [flexcoders] Dictionary weakKeys feature or it's a GC bug
Yes, I normally do not take the time to run examples especially when I'm really busy with my real job. Your test case was more complex than it needed to be which let to confusion and forced me to take the time to actually run the code. I have reproduced your results in a simpler scenario and will investigate further. Please file a bug so we can track this issue. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of iiley Sent: Tuesday, January 29, 2008 10:09 PM To: flexcoders@yahoogroups.com Cc: [EMAIL PROTECTED] Subject: Re: [flexcoders] Dictionary weakKeys feature or it's a GC bug NO, the code does not generat new TestDic, but it keep DicCase instances in an array, but did you see dic = new Dictionary(true);? it is the ComplexObj instances container. Yes, i use FB3 profiler, do you see this picture: http://demo.aswing.org/dictionary.gif http://demo.aswing.org/dictionary.gif Thank you for keeping help me, but I think you haven't read the whole code, haven't test the code and then made conclusion... -- iiley AsWing http://www.aswing.org http://www.aswing.org Personal http://www.iiley.com http://www.iiley.com
Re: [flexcoders] ViewStack + ButtonBar combo layout problem
Thank you yigit .. I decided to go for this solution, although it was a bit of a hack ;-). It does work though so I'm happy. On 29/01/2008, yigit [EMAIL PROTECTED] wrote: an extension to quick solution : if you can handle the cost of setting creationPolicy all in veiwStack ; use: mx:ViewStack width={vbox.selectedItem.dataProvider.length * 30} / bjorn - wrote On 01/29/2008 03:32 PM: Thanks for that - but each buttonbar contains dynamic data, so it's not given that the first should be smaller than the second etc. I guess I could count the data, and then do some calculation on the height -- but it seems a bit hackish On 29/01/2008, *yigit* [EMAIL PROTECTED] yboyar%40gmail.com mailto: [EMAIL PROTECTED] yboyar%40gmail.com wrote: a quick solution : mx:ViewStack width={vbox.selectedIndex == 0 ? 200 : 500} id=vbox / bjorn - wrote On 01/29/2008 02:56 PM: I've got three ButtonBars in a ViewStack, but this doesn't seem to work too well. The problem is that if I don't specify a height on the ViewStack all the ButtonBar's take the height of the first one. If the first one only has two elements while the next ones have ten, that's a problem. If I do specify a height the first one doesn't look good since it will add spacing between the two buttons to make it fill the whole height. I also tried calling .invalidateSize() on the selected ButtonBar to make it resize itself but to no avail .. Can I tell it to align at top or something with less spacing between each button? (verticalAlign=top didn't do much ..) -- http://www.juicability.com http://www.juicability.com/ http://www.juicability.com http://www.juicability.com/ - flex blog http://www.43min.com http://www.43min.com/ http://www.43min.com http://www.43min.com/ - funny movies -- http://www.juicability.com http://www.juicability.com - flex blog http://www.43min.com http://www.43min.com - funny movies -- http://www.juicability.com - flex blog http://www.43min.com - funny movies
[flexcoders] LCDS and log4J
Is there any way to log LCDS through log4j instead of my Tomcat catalina.out? - Kevin
[flexcoders] Re: Image cache behind the scenes
Thank you. This is exactly what I need. I put the following method in my objects and can now get the DisplayObject if it exists: public function getImageFromCache():DisplayObject{ //check to see if this image is loaded in the cache if( ContentCache.getCache('').hasContent(this.displayImage.url) ){ return ContentCache.getCache('').getContent(this.displayImage.url); } return null; } --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Look at SuperImage: http://www.quietlyscheming.com/blog/2007/01/23/some-thoughts-on-doubt-on -flex-as-the-best-option-orhow-i-made-my-flex-images-stop-dancing/ I think I am going to be using it myself soon. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Sent: Tuesday, January 29, 2008 9:01 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Image cache behind the scenes Is it possible to load and cache images without displaying them on the screen. I need to load images for use in my alivepdf scripts, but I don't really need to display them on the screen. I was wondering if I can still load the image class and store the image data on my model using ImageSnapshot.captureImage(...) or something like that. Thanks, Kevin
[flexcoders] Re: mxmlc slowdown when embedding mp3s
Was finally able to confirm that it's not specific to Chinese Windows XP. Anyone have any idea what are the factors that may cause the slowdown? Memory/CPU usage seem comparable to other machines that don't have the problem. --- In flexcoders@yahoogroups.com, Stephen Roy J. Tang [EMAIL PROTECTED] wrote: Hi, I'm not sure where to being looking - one of our dev machines takes an unspeakably long time to embed mp3 files (a mxml with embedded 2.7MB file takes more than 30 minutes and still not yet done) It only happens on one machine. The only thing we know so far is that this machine is Chinese windows XP. I'm unsure if it's a problem with the compiler on Chinese XP only (as we only have 1 such machine here). It seems to work fine on our test machines with Chinese Windows 2000 and Chinese Vista. Are there any other known issues with the speed of mp3 embedding? Thanks! Roy
RE: [flexcoders] flex Outlook integration
Thanks Tom,you made my day Rafi -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Behalf Of Tom Chiverton Sent: Tuesday, January 29, 2008 10:41 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] flex Outlook integration On Tuesday 29 Jan 2008, Mohammad, Rafi wrote: hi, I have developed a flex application.Now there is a button Email , which , when clicked has to open a new outlook email window with to pointing to specific fields... naviagateToUrl() using the mailto:; syntax. -- Tom Chiverton Helping to efficiently pursue one-to-one portals on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] New technique to Export to Excel, feasible?
Hi Flex Coders, If I have to copy the contents of a datagrid to an excel sheet, one way I am aware is copying the contents of the datagrid to the Clipboard and open an excel sheet and paste the contents. However I was wondering of another technique where I have a button called Export to Excel, which will copy all the contents of the data grid and pass them as parameters to a WebService then the webservice can invoke an Excel sheet and paste the contents from clipboard Is this possible to accomplish? If yes, kindly share some gyan or a Blog where this is explained. Thanx in advance. Pratap
Re: [flexcoders] Dictionary weakKeys feature or it's a GC bug
OK, thank you Alex. -- iiley AsWing http://www.aswing.org Personal http://www.iiley.com
Re: [flexcoders] Dictionary weakKeys feature or it's a GC bug
I'v posted a bug report at http://www.adobe.com/cfusion/mmform/index.cfm?name=wishformproduct=17 Thanks -- iiley AsWing http://www.aswing.org Personal http://www.iiley.com
Re: [flexcoders] Flex Applicatin and Theme/CSS
On Tuesday 29 Jan 2008, Jehanzeb Musani wrote: What I know about StyleManager is that it can load only styles SWF not CSS text files. I dont want to complie the CSS file into SWF file. The users of my application are familiar with CSS files so they want to edit it using text editors and want the application to update as per the updated CSS file. Have your app server compile them on the fly then. -- Tom Chiverton Helping to assertively conquer strategic solutions on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Bar chart and labelUnits - help needed please
On Tuesday 29 Jan 2008, Mark wrote: Thanks Tom, but I'm not sure what you mean, can you expand on that a little? When the range is updated, change the labelUnits property to be one that's correct for that range. -- Tom Chiverton Helping to economically revolutionize advanced deliverables on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Working with maps / latitude / longditude data
Hi All I'm considering doing a project that involves displaying latitude / longitude data on a map. For example: displaying different colors on each lat / long square with a popup showing number of pelicans per bananas squared in that location. Does anyone have any experience in this sort of app? COuld I use graphics.draw rectangle for this (potentially lots of data) or should I directly play with bitmap data? How do I match up data I am receiving with lat / long to the map that I'll be drawing these squares onto? Are there any examples or anything out there like this? Just looking for some ideas about the best way of doing this at the moment. Thanks Giles.
Re: [flexcoders] New technique to Export to Excel, feasible?
just create a csv file, you are making it way more complex than needed On Jan 30, 2008 5:13 AM, Ramanujam, Pratap [EMAIL PROTECTED] wrote: Hi Flex Coders, If I have to copy the contents of a datagrid to an excel sheet, one way I am aware is copying the contents of the datagrid to the Clipboard and open an excel sheet and paste the contents. However I was wondering of another technique where I have a button called Export to Excel, which will copy all the contents of the data grid and pass them as parameters to a WebService then the webservice can invoke an Excel sheet and paste the contents from clipboard Is this possible to accomplish? If yes, kindly share some gyan or a Blog where this is explained. Thanx in advance. Pratap -- j:pn \\no comment
[flexcoders] Re: DragManager question
Thanks, Alex - you rock! --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: I would add a listener for DRAG_COMPLETE on the dragInitiator in the event when you get a DRAG_ENTER, and remove the listener on DRAG_EXIT or DRAG_COMPLETE. BTW, the dragproxy gets the mouseUp. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dmitri Girski Sent: Tuesday, January 29, 2008 9:24 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] DragManager question Hi all, I am performing my own Drag-n-Drop actions on the custom List component and I wondering - how to figure out that drop operation actually never happened? If I drag the object within the same list and while dragOverHandler is not allowing the drop by setting the feedback to NONE there is no way to catch the moment when user releases the mouse button and object returns to its original location. DragExit event comes only if you drag the object outside the boundaries of the list. DragComplete DragDrop come only if operation successully ends up. List itself somehow does not receive the mouseUp event, but it gets the mouseDown at the beginning of the Drag operation. (this is the most weird moment) So, how can I catch the moment when drag operation is cancelled and it is time to clear the list selection? Thanks in advance!
[flexcoders] Water Mark on Application like Flex Charting Trial
Hello, I am distributing a trial version of my flex application. On my trial version of the application I want to put a water mark on the middle of the application which will indicate that it is a trial version. As an example- Flex charting trial version also has water mark on the middle of every chart. How do I put my own water mark on my application? Regards
Re: [flexcoders] Re: Executing local java
On Wednesday 30 Jan 2008, Jhonny Everson wrote: Thanks. I was looking for a simpler way but i guess it's the only one... Well, you can exchange data by dropping files in a monitored directory on the file system, for instance, but that's not as nice. -- Tom Chiverton Helping to ambassadorially grow cross-media synergies on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] New technique to Export to Excel, feasible?
On Wednesday 30 Jan 2008, Johannes Nel wrote: just create a csv file, you are making it way more complex than needed Unless he needs the things you can't get in CSV like style information, formula etc. -- Tom Chiverton Helping to enormously utilize efficient infrastructures on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Water Mark on Application like Flex Charting Trial
Create the watermark, and set it as the background image! I read somewhere that all Flex Components are semi-transparent by default so that the backgronud shows through. hworke wrote: Hello, I am distributing a trial version of my flex application. On my trial version of the application I want to put a water mark on the middle of the application which will indicate that it is a trial version. As an example- Flex charting trial version also has water mark on the middle of every chart. How do I put my own water mark on my application? Regards -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
[flexcoders] Re: RichTextEditor - format preservation
Have you read up on the Cairngorm Microarchitecture? You may want to consider using this framework cuz what you are describing will handle that use case... updating multiple views when your data model changes. Here is the main page...there is also information in Adobe Labs as well. We've used Cairngorm and have found it to have a learning curve. It also may not be suitable for small applications. www.cairngormdocs.org/ Bob I. --- In flexcoders@yahoogroups.com, Richard Rodseth [EMAIL PROTECTED] wrote: Bob, The point is to separate the model and view and automatically update the view(s) when the model changes (perhaps in response to a server call). Hence the binding. The bindable variable would be in a separate ActionScript class. In the bug report, I just made it a local variable for simplicity. Feel free to vote for the bug, anyone.
[flexcoders] Re: New technique to Export to Excel, feasible?
We do something very similar in that we bounce text data back to the client via a jsp page which sets the mime type of the response to automatically invoke excel. This gives the user the impression that they press button and are asked to open or save as an excel file, which we have found to be enough. It is true that the text document will not support formatting or formulae, but then neither does the datagrid, so unless you have a spreadsheet application written in ActionScript then that point may well be moot. If you do, then please share your spreadsheet with us, we'd all love to have one. If you do need to preserve formatting then the other approach we have taken is to have an xsl template on the server which creates an MS Office open xml document and respond with the correct mime type. We do that for MS Word but you could just as easily do it for Excel. Again the user's impression is that they press a button and are asked to save or open an MS Word file. PowerPoint is more difficult. HTH --- In flexcoders@yahoogroups.com, Johannes Nel [EMAIL PROTECTED] wrote: just create a csv file, you are making it way more complex than needed On Jan 30, 2008 5:13 AM, Ramanujam, Pratap [EMAIL PROTECTED] wrote: Hi Flex Coders, If I have to copy the contents of a datagrid to an excel sheet, one way I am aware is copying the contents of the datagrid to the Clipboard and open an excel sheet and paste the contents. However I was wondering of another technique where I have a button called Export to Excel, which will copy all the contents of the data grid and pass them as parameters to a WebService then the webservice can invoke an Excel sheet and paste the contents from clipboard Is this possible to accomplish? If yes, kindly share some gyan or a Blog where this is explained. Thanx in advance. Pratap -- j:pn \\no comment
[flexcoders] Re: Module hell... Flex 3 - Solved, but strange
I had tried moving my statements in just about every sequence I could think of and always the same issue. I realize it had to be some sort of timing issue since about one out of every 5th or 6th time it would work on the first click. I decided to move my implementation to use ModuleManager instead as it gave a bit better control and actually dispatched a ready event that I could listen to, unlike ModuleLoader. Once I move to ModuleManager I still had the same issues though. In simply taking guesses and trying different things here is what solved the issue and I have no idea why. My original class name that held loading code was: public class ModuleHelper {} I simply changed the definition to: public class ModuleHelper extends Sprite {...} And for some reason completely unknown to me, that change worked. I have yet to reproduce my problem when the class is defined this way. Take the extends off and I go back to the same issue. I'm not sure if there is a rule that the modules have to be loaded inside of some sort of ui object or not, but this is what fixed my issue. If anyone has any information as to why this worked, I'd love to know why. Thanks for your help and suggestions, Dale --- In flexcoders@yahoogroups.com, Gaurav Jain [EMAIL PROTECTED] wrote: It sounds like in the first load the eventListener is not getting registered before the loadModule() method. Subsequent calls work because of the event listener added from the first attempt. I suggest you move moduleLoader.id = moduleName; moduleLoader.url = moduleName; to the very end. Thanks, Gaurav
Re: [flexcoders] Working with maps / latitude / longditude data
On Wednesday 30 Jan 2008, Giles Roadnight wrote: graphics.draw rectangle for this (potentially lots of data) or should I directly play with bitmap data? It'll probably perfrom OK, but the world is a (nearly) a sphere, so it depends on what you map projection is, as to a box a degree on a side is really square on screen. How do I match up data I am receiving with lat / long to the map that I'll be drawing these squares onto? Complicated :-) If you have a google for WGS84 you should be able to find some examples, though for all I know Google may offer a web service for all this. -- Tom Chiverton Helping to enthusiastically cultivate B2C content on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] text background color on textarea
Hi all, Is there a way to change the background color of some text in a textarea? I have tried a style with backgroundColor=#00 and does not work. Any ideas? Thanks, Jesus
[flexcoders] Re: Symmetric Key Encryption in Flex Client C# WebServices
Hi Kaleb Thanks for the example. I'll give it a try. regards Bod --- In flexcoders@yahoogroups.com, kaleb_pederson [EMAIL PROTECTED] wrote: I wrote one up for testing earlier, so I'll post it below. It's a bit long, and definitely not well structured, but it does work. As C# uses Rijndael, you'll need to make sure to restrict it to something that will work with the actionscript version. Specifically, the block size must be 128. The key size can be 128, 192, or 256. It actually doesn't look like they (c# and Hurlant's crypto lib) have matching padding schemes, but that's easy to fix. Here's some ActionScript code that implements (I hope -- untested) the zero's padding scheme, which is probably the least secure of them, but is the easiest implement: package com.hurlant.crypto.symmetric { import flash.utils.ByteArray; public class ZeroPad implements IPad { private var blockSize:uint; public function PKCS5(blockSize:uint=0) { this.blockSize = blockSize; } public function pad(a:ByteArray):void { var c:uint = blockSize-a.length%blockSize; for (var i:uint=0;ic;i++){ a[a.length] = 0; } } public function unpad(a:ByteArray):void { var c:uint = a.length%blockSize; if (c!=0) throw new Error(ZeroPad::unpad: ByteArray.length isn't a multiple of the blockSize); c = a.length-1; while (a[c] == 0) { a.length--; c--; } } public function setBlockSize(bs:uint):void { blockSize = bs; } } } That's about it for the actionscript part. If the above items match, everything should work great for you. Details about the padding scheme's are here: http://technet.microsoft.com/en- us/library/system.security.cryptography.paddingmode(VS.80).aspx I would recommend implementing the ISO10126 padding scheme as it's going to be the most secure. And here's the more offtopic piece: using System; using System.Collections.Generic; using System.Text; using System.Security.Cryptography; using System.IO; namespace AesTest { class Program { static string getStringRep(byte[] arr) { string result = ; for (int i = 0; i arr.Length; i++) { result += arr[i].ToString(x2); } return result; } static void Main(string[] args) { RijndaelManaged aes = new RijndaelManaged(); byte[] key = { 0x12, 0x34, 0x12, 0x34, 0x12, 0x34, 0x12, 0x34, 0x12, 0x34, 0x12, 0x34, 0x12, 0x34, 0x12, 0x34, 0x12, 0x34, 0x12, 0x34, 0x12, 0x34, 0x12, 0x34, 0x12, 0x34, 0x12, 0x34, 0x12, 0x34, 0x12, 0x34 }; byte[] IV = { 0x12, 0x34, 0x12, 0x34, 0x12, 0x34, 0x12, 0x34, 0x12, 0x34, 0x12, 0x34, 0x12, 0x34, 0x12, 0x34 }; byte[] ciphertext; byte[] plaintext_output; byte[] plaintext = { 0x12, 0x34, 0x12, 0x34, 0x12, 0x34, 0x12, 0x34, 0x12, 0x34, 0x12, 0x34, 0x12, 0x34, 0x12, 0x34 }; // set the various parameters // 1) make sure it's compatible with AES which requires 128 bit block sizes // 2) key size can be 128, 192, or 256 (automatically detected when setting the key) // 3) Set the padding mode to something useful (ANSIX923, ISO10126, None, PKCS7, Zeros) aes.BlockSize = 128; aes.KeySize = 256; aes.Mode = CipherMode.CBC; aes.Padding = PaddingMode.ANSIX923; aes.Key = key; aes.IV = IV; // Create an encryptor object ICryptoTransform encryptor = aes.CreateEncryptor(key, IV); // Encrypt the data MemoryStream msEncrypt = new MemoryStream(); CryptoStream csEncrypt = new CryptoStream(msEncrypt, encryptor, CryptoStreamMode.Write); // Write all data to the crypto stream and flush it. csEncrypt.Write(plaintext, 0, plaintext.Length); csEncrypt.FlushFinalBlock(); // Get ciphertext array of bytes. ciphertext = msEncrypt.ToArray(); // purposefully change the padding mode so that I can see what actually // the actual padding bits were aes.Padding = PaddingMode.None; // create a decryption stream CryptoStream csDecrypt = new CryptoStream( new MemoryStream(ciphertext), aes.CreateDecryptor(), CryptoStreamMode.Read); plaintext_output = new byte[ciphertext.Length]; // Read the data out of the crypto stream. csDecrypt.Read(plaintext_output, 0, plaintext_output.Length);
[flexcoders] Re: Working with maps / latitude / longditude data
Where I work we use a number of methods for plotting map data. As for a Flex specific implementation, you might try: http://modestmaps.com/ Yahoo's AS3 connection kit is another option, but the support on that front has been spotty at best. ESRI has a Flex API coming out soon as well: http://weblog.cahlan.com/2006/09/yahoo-maps-in-flex-2-as3.html http://www.esri.com/news/releases/07_3qtr/aws-flex-api-beta.html If you're just doing USA plotting, someone rolled their own map component: http://www.keaura.com/blog/ For projection calculations (i.e. a roll your own solution), you might want to check out the Proj4 library: http://proj.maptools.org/ If you do roll your own, you will need to know the bounds of your map both in pixels and in lat, lon. Then you'll want to be able to convert from x,y to lat, lon and vice versa. Proj4 or a quick Google for the projection might help, or just use Modest Maps with Zoomify and there's a tool to get the projection numbers already available. I hope that helps, -- William --- In flexcoders@yahoogroups.com, Giles Roadnight [EMAIL PROTECTED] wrote: Hi All I'm considering doing a project that involves displaying latitude / longitude data on a map. For example: displaying different colors on each lat / long square with a popup showing number of pelicans per bananas squared in that location. Does anyone have any experience in this sort of app? COuld I use graphics.draw rectangle for this (potentially lots of data) or should I directly play with bitmap data? How do I match up data I am receiving with lat / long to the map that I'll be drawing these squares onto? Are there any examples or anything out there like this? Just looking for some ideas about the best way of doing this at the moment. Thanks Giles.
[flexcoders] Re: New technique to Export to Excel, feasible?
What I do for Excel export is all handled on the server side. In my case I am using php for the backend, so I use a library call PHPExcel to build the spreadsheet and then I either attach it to an email, or pass it back to the browser. There are good libraries available for most backend languages (I have used Java, Python and .Net versions), so that puts you back in the religious wars... I have also done the formatting in the Flex App and passed the complete text of an Excel 2003 file to the app server to have it turned around and sent back in a new window. That is the same basic idea as putting it in to the clipboard, but a bit more transparent to the user. In any case, I prefer formatting the data on the app server, not the client for excel and I get the added benefit of being able to send reports by email as excel attachments. If anyone wants the code, I'd be happy to give it away... Thanks, Ben --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 30 Jan 2008, Johannes Nel wrote: just create a csv file, you are making it way more complex than needed Unless he needs the things you can't get in CSV like style information, formula etc. -- Tom Chiverton Helping to enormously utilize efficient infrastructures on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] The lowest prices on web
The lowest prices on web Online Software Store http://softwarestore.secure2u.com
[flexcoders] Air DragDrop images between windows?
Hi Coders, Does anyone have an example on dragout and image from one window to another? Thanks Berkay
Re: [flexcoders] Working with maps / latitude / longditude data
Giles - I have done this with Google Maps, but no Flex involved... I assume you are using the Yahoo maps Flex API? Anyway... with Google what I needed to do was figure out where to hook in a new map layer (layer of tiles like satellite, hybrid, etc.), then write a class that implemented the expected functions to return an image to overlay. The API then called me passing the bounding rectangle (in map coordinates) of the tile that it needed an image for. I then formatted the correct query for Univ. of MN MapServer (mapping back end... had to pass the coordinates and projection information along with which data layers I wanted rendered on the URL) which was hooked to my PostGIS database that had my data in it... MapServer accessed the database, rendered the appropriate image, and returned an image (png I think, but can't recall). The returned image was then overlayed in the desired tile location. Everything lined up because I passed the tile coords and projection information to MapServer. I am guessing there are about a thousand ways to do what you are asking about. But, I found MapServer and PostGIS to be more than up to the task, well documented, and efficient. I have not looked at the Flex mapping stuff. But, I'd bet it would not be too hard to get MapServer rendered tiles overlaying. hth Scott Scott Melby Founder, Fast Lane Software LLC http://www.fastlanesw.com Giles Roadnight wrote: Hi All I'm considering doing a project that involves displaying latitude / longitude data on a map. For example: displaying different colors on each lat / long square with a popup showing number of pelicans per bananas squared in that location. Does anyone have any experience in this sort of app? COuld I use graphics.draw rectangle for this (potentially lots of data) or should I directly play with bitmap data? How do I match up data I am receiving with lat / long to the map that I'll be drawing these squares onto? Are there any examples or anything out there like this? Just looking for some ideas about the best way of doing this at the moment. Thanks Giles.
[flexcoders] Events and performance
I was wondering if I could get some input about events and performance. The exact situation I have is I'm using the HashMap class from Copyright (c) 2006 Eric J. Feminella. I've modified the class so that on put/remove/clear/reset functions it will dispatch a dataChanged event. This way I can set listeners on the class. This will obviously create many events. We use this class in several places in our app, but only a couple need to listen to changes. Will this create any type of performance issues since the bulk of the HashMap instances will be dispatching events that nothing is listening to? I'm not sure if Flex is optimized to see that an event is being dispatched that nothing is listening to so handle it efficiently. The other choice I was going to make was to modify the HashMap class and remove the final from the class. Then extend it to a ManagedHashMap class and have the HashMap not dispatch, but have the ManagedHashMap dispatch. Looking forward to hearing some other input. Thanks, Dale
[flexcoders] Image list using Tilelist
Hi all, I want to create for image list.The list will be initially empty. On an event -button click, I am creating new Image having source path given in texinput. After that i am pushing that Image to array. I am using Tilelist for that. This is my first encounter with tileList and images, so i may be missing many obvious things. Is ItemRenderer must for every tilelist ? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:TileList x=195 y=10 width=113 dataProvider={TileListdp} height=292 id=myList rowCount=1/mx:TileList mx:Button x=52 y=170 label=Button click=dodo();/ mx:TextInput x=32 y=122 width=85 id=test_txt/ mx:Script ![CDATA[ import mx.controls.Image; import mx.collections.ArrayCollection; [Bindable] public var TileListdp:ArrayCollection; private var myArray:Array = new Array; public function dodo():void { var image1:Image = new Image; image1.source = test_txt.text; myArray.push(image1); } private function initData():void { TileListdp = new ArrayCollection(myArray); } ]] /mx:Script /mx:Application -- Regards, Yogesh
[flexcoders] Text component drag bug
Hi ! Have someone managed to fix the dragging bug in the Text component ? If you click in the text and drag it down, the text scrolls although no scrolling is needed. The first line becomes invisible - very annoying ! I found this bug in the flex bug database but it is marked as resolved and closed there but it is not ... Just try the code snippet there and try to drag the text on the _left_ side of the textfield: https://bugs.adobe.com/jira/browse/SDK-484 Any ideas ? Thank you !
[flexcoders] How to stop form losing focus?
I was wondering if there is any way to retain the focus on a field on a form if the user clicks off the browser containing the application and then back on it, or minimizes and maximises it etc. When these events occur the focus seems to be reset and the user will have to click or tab back to the field they were on before, is there any way to stop this? Thanks Danny
[flexcoders] flex.messaging.cluster.ClusterException: Unable to broadcast a replicated svc
Throughout the day I see the following message posted on my logs, and can't seem to track the root cause, or how to fix it. We have a 2-node JBoss cluster, but only really using the Flex cache replication piece of the framework. We use UDP protocol and plan to make the change to using TCP instead in the near future. Tried searching on this forum and expanded my research to other sites, but came up empty. Any recommendations on how to proceed? 15:00:49,253 ERROR [STDERR] Exception in thread pool-2-thread-16 15:00:49,253 ERROR [STDERR] flex.messaging.cluster.ClusterException: Unable to broadcast a replicated service operation to the service peers for cluster id 'default-cluster'. 15:00:49,254 ERROR [STDERR] at flex.messaging.cluster.JGroupsCluster.broadcastOperation (JGroupsCluster.java:388) 15:00:49,254 ERROR [STDERR] at flex.messaging.cluster.JGroupsCluster.broadcastServiceOperation (JGroupsCluster.java:309) 15:00:49,254 ERROR [STDERR] at flex.messaging.cluster.ClusterManager.invokeServiceOperation (ClusterManager.java:101) 15:00:49,254 ERROR [STDERR] at flex.data.DataService.sendPeerSyncAndPush(DataService.java:253) 15:00:49,254 ERROR [STDERR] at flex.data.DataServiceTransaction.syncClients (DataServiceTransaction.java:1209) 15:00:49,254 ERROR [STDERR] at flex.data.DataServiceTransaction.doCommit (DataServiceTransaction.java:965) 15:00:49,254 ERROR [STDERR] at flex.data.DataServiceTransaction.commit (DataServiceTransaction.java:348) 15:00:49,254 ERROR [STDERR] at com.firstbest.underwriting.audit.AuditLogAssembler.onEvent (AuditLogAssembler.java:107) 15:00:49,254 ERROR [STDERR] at com.firstbest.event.JXPathEventEngine.sendEvent (JXPathEventEngine.java:78) 15:00:49,254 ERROR [STDERR] at com.firstbest.event.EventServiceImpl.dispatchAsyncEvent (EventServiceImpl.java:52) 15:00:49,254 ERROR [STDERR] at com.firstbest.event.async.SimpleEventQueueListener$EventDispatchTask.r un(SimpleEventQueueListener.java:102) 15:00:49,254 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask (ThreadPoolExecutor.java:650) 15:00:49,254 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:675) 15:00:49,254 ERROR [STDERR] at java.lang.Thread.run (Thread.java:595) Thanks in advance for any replies.
[flexcoders] What's your strategy for handling Errors in WebService.as and WSDL.as?
Is there a way to underride the default functionality of WebService.as? I can't find the source code in the SDK, so I'm assuming this part of Flex isn't Open Source. I find that using WebServices that there are a lot of errors that potentially occur that I can't capture in the UI. Or, let me rephrase that, that I haven't been able to figure out how to capture in the UI. For example, the following Could not load WSDL error occurs. Now, I could probably devise a strategy around checking that the connection is alive and such, but then I've seen other errors that occur in the WebService base classes that are all fired asyncronously. Is there a way to add a default handler that capures these types of errors? (They're not captures by FaultHandlers). I can't have a UI that displays the big white box to end users with a stack trace. Thanks. [RPC Fault faultString=Could not load WSDL faultCode=Server.NoServicesInWSDL faultDetail=No wsdl:service elements found in WSDL at .] at mx.rpc.wsdl::WSDL/getService()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\wsdl\WSDL.as:256] at mx.rpc.wsdl::WSDL/getPort()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\wsdl\WSDL.as:182] at mx.rpc.soap::WebService/http://www.adobe.com/2006/flex/mx/internal::wsdlHandler()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\soap\WebService.as:267] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc.wsdl::WSDLLoader/checkLoadsOutstanding()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\wsdl\WSDLLoader.as:195] at mx.rpc.wsdl::WSDLLoader/resultHandler()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\wsdl\WSDLLoader.as:173] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:175] at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:198] at mx.rpc::Responder/result()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\Responder.as:48] at mx.rpc::AsyncRequest/acknowledge()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:81] at DirectHTTPMessageResponder/completeHandler()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:387] at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/onComplete()
Re: [flexcoders] Re: Flex 3 Beta 3 Debugger Doesnt Connect
Hi, I have the same problem with nod32, is there a solution to configure nod32 without uninstalling it? On Dec 27, 2007 4:09 AM, Sheriff [EMAIL PROTECTED] wrote: I have no reason, just read alot of good reviews on it and decided to try it. I had to uninstall it though and download another antivirus/secuirty program and everything worked after. - Original Message From: Mike Morearty [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, December 26, 2007 6:55:12 PM Subject: [flexcoders] Re: Flex 3 Beta 3 Debugger Doesnt Connect Oops, I missed your followup saying that NOD 32 Antivirus caused the problem. Glad to see you figured it out. I have to ask, though -- I occasionally see references to this sort of problem, only to have it always come down to NOD 32 Antivirus. I have never, ever heard of that program in any context other than the cause of the Flex Builder debugger not working. Can you tell me a little about it? E.g. is it popular in certain circles? I'm thinking maybe we should have a tech note warning that NOD 32 blocks the Flex Builder debugger. Thanks - Mike Morearty, Adobe Flex Builder team --- In [EMAIL PROTECTED] ups.com flexcoders%40yahoogroups.com, Mike Morearty mike.morearty@ ... wrote: Which component caused it to stop working -- the new Flex Builder, or the new Flash player? In other words, if you run the old beta 2 with the new player 115, does it work? If you run the new beta 3 with the old player that came out with beta 2 (whatever version that was), does it work? By the way, for the record, the port used by the debugger is 7935, not the port mentioned by mydarkspoon. But as you have already figured out, that doesn't seem to be the problem here... - Mike Morearty, Adobe Flex Builder team --- In [EMAIL PROTECTED] ups.com flexcoders%40yahoogroups.com, Sheriff sherif626@ wrote: reverted back to Flex 3 Beta 2 and installed the older flash player and everything works again so i am guessing it has to do with the flash 9.0115 and Windows Vista Home Premium or something with the Flex 3 Beta 3 not connecting. Any Advise? - Original Message From: Sheriff sherif626@ To: [EMAIL PROTECTED] ups.com flexcoders%40yahoogroups.com Sent: Tuesday, December 25, 2007 4:34:08 PM Subject: [flexcoders] Flex 3 Beta 3 Debugger Doesnt Connect Anyone having this problem? I am running Windows Vista Home and the Debugger always times out. Flash Player used is the one that comes with the Stand Alone Flex Builder. I cleaned/Uninstalled /reinstalled and nothing works it always times out. I even tried the plugin version and same problem. The build is the 115 one Never miss a thing. Make Yahoo your homepage. _ _ _ _ _ _ Never miss a thing. Make Yahoo your home page. http://www.yahoo. com/r/hs http://www.yahoo.com/r/hs -- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Re: [flexcoders] The limit of [ResourceBundle] and @Embed
On Wednesday 30 Jan 2008, luke_lee1124 wrote: It seems like we cannot use too many [resoucebundle] and @Embed in one file Do you have a simple test case, with one MXML file, two bundles and one @Embed'ed image ? -- Tom Chiverton Helping to enthusiastically deliver open-source designs on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] got any good air styling references?
The best method I've found is to just remove all native controls (by uncommenting a directive in the air xml file, and adding showChrome=false to your WindowedApplication). From there, it's pretty trivial to mimic native functions. Here's the ones used for beta 3 (they changed it, so googling around gets confusing): this.nativeWindow.minimize(); // minimizes the window this.nativeWindow.close(); // closes the window this.nativeWindow.startResize(); // call this within a MouseDown event on your resizing handle this.nativeWindow.startMove(); // call this within a MouseDown event on your moving handle (title bar) All assuming this is the current window. - Kyle
Re: [flexcoders] What's your strategy for handling Errors in WebService.as and WSDL.as?
On Wednesday 30 Jan 2008, Todd wrote: I can't have a UI that displays the big white box to end users with a stack trace. Thanks. Only people with the debug player i.e. developers i.e. probably not your users see this. -- Tom Chiverton Helping to conveniently disseminate virtual convergence on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] got any good air styling references?
anybody know any good sites about skinning air apps, specifically ways to skin air windows? or have any good tips?
[flexcoders] Re: Executing local java
You might try looking into the javax.xml.ws.Endpoint class described here: http://today.java.net/pub/a/today/2007/07/03/jax-ws-web- services-without-ee-containers.html Looks like a lighter-weight solution than deploying Jetty. -James --- In flexcoders@yahoogroups.com, Jhonny Everson [EMAIL PROTECTED] wrote: Thanks. I was looking for a simpler way but i guess it's the only one... On Jan 30, 2008 3:53 AM, andrii_olefirenko [EMAIL PROTECTED] wrote: you could write a local service to access your java code. that's how i did it: along with AIR app, the Jetty web server is installed with all needed java libs and interfaces to access it (web services or AMF3). then my AIR app will just connect to localhost and execute local java code as remote one. voilia :) Andrii Olefirenko
[flexcoders] Bitmap: Please, please help.
I want to be able to drag and drop multiple images onto one object - and have the images layer one on top of the other (see one through the other). Can that be done? _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kyle Neath Sent: Wednesday, January 30, 2008 11:53 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] got any good air styling references? The best method I've found is to just remove all native controls (by uncommenting a directive in the air xml file, and adding showChrome=false to your WindowedApplication). From there, it's pretty trivial to mimic native functions. Here's the ones used for beta 3 (they changed it, so googling around gets confusing): this.nativeWindow.minimize(); // minimizes the window this.nativeWindow.close(); // closes the window this.nativeWindow.startResize(); // call this within a MouseDown event on your resizing handle this.nativeWindow.startMove(); // call this within a MouseDown event on your moving handle (title bar) All assuming this is the current window. - Kyle
RE: [flexcoders] Re: DataServices (LCDS) Java Heap error
These are Java options you set on the Java command line - not specific or related to LC DS. Usually in your server's startup.bat or something it lets you add additional Java args so that's where these would go. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Sent: Tuesday, January 29, 2008 6:03 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: DataServices (LCDS) Java Heap error I am assuming this is done in my server-config.xml file. I will take a look later tonight. Thanks, Kevin --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeff Vroom [EMAIL PROTECTED] wrote: The server log ought to have more detail. The first thing I do when dealing with heap issues is to turn on the heap space debug logging. -verbose:gc this will show you the free heap space. You might just need to increase the max heap size a bit. Jeff From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Kevin Sent: Tuesday, January 29, 2008 3:32 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] DataServices (LCDS) Java Heap error I had a crash today with my data services apps and got the following error: body = (null) clientId = B1A21AEB-7FB2-0022-31DE-C79FF87CB391 correlationId = 8819D347-6D27-31D1-65CB-C79FFBA81DFD destination = contacts extendedData = (null) faultCode = Server.Processing faultDetail = (null) faultString = There was an unhandled failure on the server. Java heap space headers = (Object)#1 messageId = E5DE7DBF-F0F7-7E52-B2B3-F9837BBF444D rootCause = (null) timestamp = 1201645034863 timeToLive = 0 Any idea what could cause this or how to handle it. I am not compiling on the server, just running Tomcat. I am also having an interesting problem where one specific user crashes the entire system every time she gets on. I have no idea how a user would have that much influence or what it could be one her machine that crashes Hibernate/LCDS so if anyone can shed some like on this as well that would be much appreciated. The app is only serving about 7 or 8 concurrent users right now. Thanks, - Kevin
[flexcoders] WebOrb + Jasper4Flex compilation problem
Hi y'all! I've been unsuccessfuly trying to solve this problem in the past days and I can't seem to find a solution for it; I was hoping someone in the list would have some advice or tip. Firstly a quick outline of the situation: BackEnd: Java/Hibernate AppServer: WebOrb (Java) FrontEnd: Flex 2 Reporter: Jasper Reports / Jasper4Flex The problem is this: When from the flex frontend a request is made to Jasper to generate a report through jasper4flex (i.e.: Flex-WebOrb-Java-Jasper) the Flex compiler throws an exception when compiling the report to SWF. The caught exception holds no additional description. On the other hand, if I don't use the Flex frontend or WebOrb and directly call the Java report generation method, it all works well and the SWF report is generated correctly. As an additional comment, when using the full app (Flex + WebOrb + Java + Jasper) i DO get it to work, buy only if y request jasper to export to PDF instead, not to SWF. If anyone has any insight on how to make this work, I'd really appreciate it. Here's some code, although it is my understanding that the error is thrown by the Flex compiler. FLEX CODE: report.mxml: mx:Button x=296 y=65 label=Cliente click=reporter.getReporteSujetos ();/ ReportMan.as -- class ReportMan public function ReportMan (unLoader : SWFLoader) { remoteReporter = new RemoteObject (GenericDestination); remoteReporter.source = test.TestReportFlex; remoteReporter.addEventListener(FaultEvent.FAULT, RPCHANDLER_fault); remoteReporter.generarReporte.addEventListener(ResultEvent.RESULT, RPCHANDLER_generatReporte); loader = unLoader; } public function getReporteSujetos () : void { remoteReporter.generarReporte(reporte_sujeto); } public function RPCHANDLER_generarReporte (resultado : ResultEvent) : void { loader.source = reporte_sujeto; } JAVA CODE: package ar.com.aufiero.lascanhas.test; import java.io.File; import java.util.HashMap; import net.sf.jasperreports.engine.JRExporterParameter; import net.sf.jasperreports.engine.JasperCompileManager; import net.sf.jasperreports.engine.JasperFillManager; import net.sf.jasperreports.engine.JasperPrint; import net.sf.jasperreports.engine.JasperReport; import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource; import net.sf.jasperreports.engine.design.JasperDesign; import net.sf.jasperreports.engine.xml.JRXmlLoader; import net.sf.jasperreports.export.flex.JRSwfExporter; import ar.com.aufiero.lascanhas.reports.test.ReportTestSujeto; public class TestReportFlex { public static void generarReporte (String fileName) throws Exception { try { JasperDesign jasperDesign = JRXmlLoader.load (C:\\Reporte\\+fileName+.jrxml); JasperReport report = JasperCompileManager.compileReport(jasperDesign); JasperPrint jasperPrint = JasperFillManager.fillReport(report,new HashMap(), new JRBeanCollectionDataSource( ReportTestSujeto.createBeanCollection())); JRSwfExporter exporter = new JRSwfExporter(); exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, new File(C:\\weborb\\webapp\\lascanhas\\, jasperPrint.getName() + .swf).getAbsolutePath()); exporter.exportReport(); } catch(Exception e) { //I know this is horrible, just testing. throw e; } } /* public static void main(String[] args) { try { TestReportFlex.generarReporte(reporte_sujeto); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } }*/ } Thanks in advace! Guido.
Re: [flexcoders] Re: Flex 3 Beta 3 Debugger Doesnt Connect
there probably is but i didnt feel like tinkering with it. I just got avast instead - Original Message From: Paolo Bernardini [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, January 30, 2008 10:12:31 AM Subject: Re: [flexcoders] Re: Flex 3 Beta 3 Debugger Doesnt Connect Hi, I have the same problem with nod32, is there a solution to configure nod32 without uninstalling it? On Dec 27, 2007 4:09 AM, Sheriff [EMAIL PROTECTED] com wrote: I have no reason, just read alot of good reviews on it and decided to try it. I had to uninstall it though and download another antivirus/secuirty program and everything worked after. - Original Message From: Mike Morearty mike.morearty@ adobe.com To: [EMAIL PROTECTED] ups.com Sent: Wednesday, December 26, 2007 6:55:12 PM Subject: [flexcoders] Re: Flex 3 Beta 3 Debugger Doesnt Connect Oops, I missed your followup saying that NOD 32 Antivirus caused the problem. Glad to see you figured it out. I have to ask, though -- I occasionally see references to this sort of problem, only to have it always come down to NOD 32 Antivirus. I have never, ever heard of that program in any context other than the cause of the Flex Builder debugger not working. Can you tell me a little about it? E.g. is it popular in certain circles? I'm thinking maybe we should have a tech note warning that NOD 32 blocks the Flex Builder debugger. Thanks - Mike Morearty, Adobe Flex Builder team --- In [EMAIL PROTECTED] ups.com, Mike Morearty mike.morearty@ ... wrote: Which component caused it to stop working -- the new Flex Builder, or the new Flash player? In other words, if you run the old beta 2 with the new player 115, does it work? If you run the new beta 3 with the old player that came out with beta 2 (whatever version that was), does it work? By the way, for the record, the port used by the debugger is 7935, not the port mentioned by mydarkspoon. But as you have already figured out, that doesn't seem to be the problem here... - Mike Morearty, Adobe Flex Builder team --- In [EMAIL PROTECTED] ups.com, Sheriff sherif626@ wrote: reverted back to Flex 3 Beta 2 and installed the older flash player and everything works again so i am guessing it has to do with the flash 9.0115 and Windows Vista Home Premium or something with the Flex 3 Beta 3 not connecting. Any Advise? - Original Message From: Sheriff sherif626@ To: [EMAIL PROTECTED] ups.com Sent: Tuesday, December 25, 2007 4:34:08 PM Subject: [flexcoders] Flex 3 Beta 3 Debugger Doesnt Connect Anyone having this problem? I am running Windows Vista Home and the Debugger always times out. Flash Player used is the one that comes with the Stand Alone Flex Builder. I cleaned/Uninstalled /reinstalled and nothing works it always times out. I even tried the plugin version and same problem. The build is the 115 one Never miss a thing. Make Yahoo your homepage. _ _ _ _ _ _ Never miss a thing. Make Yahoo your home page. http://www.yahoo. com/r/hs Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
Re: [flexcoders] Bitmap: Please, please help.
do u mean sort of like this but you want to be able to drag and drop? http://www.tileui.com/ just warp the mouse around all of them, is that kinda it?. - Original Message From: Noyes, Jeff [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, January 30, 2008 11:44:43 AM Subject: [flexcoders] Bitmap: Please, please help. I want to be able to drag and drop multiple images onto one object - and have the images layer one on top of the other (see one through the other). Can that be done? From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Kyle Neath Sent: Wednesday, January 30, 2008 11:53 AM To: [EMAIL PROTECTED] ups.com Subject: Re: [flexcoders] got any good air styling references? The best method I've found is to just remove all native controls (by uncommenting a directive in the air xml file, and adding showChrome= false to your WindowedApplication ). From there, it's pretty trivial to mimic native functions. Here's the ones used for beta 3 (they changed it, so googling around gets confusing): this.nativeWindow. minimize( ); // minimizes the window this.nativeWindow. close(); // closes the window this.nativeWindow. startResize( ); // call this within a MouseDown event on your resizing handle this.nativeWindow. startMove( ); // call this within a MouseDown event on your moving handle (title bar) All assuming this is the current window. - Kyle Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
[flexcoders] Re: What's your strategy for handling Errors in WebService.as and WSDL.as?
OK, that I can see. So then will my default FaultHandler be fired then when the debug player isn't being used? BTW, I may be having bigger issues with my WSDL and service defenitions using namespaces on teh nodes and the WebServices base class not finding the service defeniton. --Todd --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 30 Jan 2008, Todd wrote: I can't have a UI that displays the big white box to end users with a stack trace. Thanks. Only people with the debug player i.e. developers i.e. probably not your users see this. -- Tom Chiverton Helping to conveniently disseminate virtual convergence on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Re: What is the most permissive crossdomain.xml policy file?
Ok, so I've learned that if I host the SWF on an HTTPS server, then it works. Which brings me to two questions: 1) Is there any way to have an HTTP-hosted SWF access HTTPS resources? 2) Is there any way to have a filesystem-hosted SWF access HTTPS resources? If so, what are the compiler and crossdomain settings I need to use to accomplish this? Thanks! -david PS: I'm posting my lessons as I go to http://bottomupflash.com; feel free to follow along. --- In flexcoders@yahoogroups.com, David_M_Barrett [EMAIL PROTECTED] wrote: What need I do to allow a SWF to access my web service? I have a web service here: https://data.expensify.com I've configured it to respond with the absolute maximally-permissive crossdomain.xml: https://data.expensify.com/crossdomain.xml HTTP/1.1 200 OK Content-Type: text/x-cross-domain-policy X-Permitted-Cross-Domain-Policies: all Content-Length: 299 ?xml version=1.0 encoding=UTF-8? cross-domain-policy xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:noNamespaceSchemaLocation=http://www.adobe.com/xml/schemas/PolicyFile.xsd; allow-access-from domain=*/ site-control permitted-cross-domain-policies=all/ /cross-domain-policy I have a SWF I'm hosting on http://127.0.0.1/Expensify.swf. I've configured my mm.cfg to enable policy-file logging, and it logs: OK: Root-level SWF loaded: http://127.0.0.1/Expensify.swf OK: Policy file accepted: https://data.expensify.com/crossdomain.xml Error: Request for resource at https://data.expensify.com/x by requestor from http://127.0.0.1/Expensify.swf is denied due to lack of policy file permissions. Any clues what I need to do? It was working just fine before, but now is broken with the switch to the latest Flash player. Basically, how can I configure data.expensify.com to say really, seriously, *ANYBODY* from *ANYWHERE* at *ANY TIME* can call me. *REALLY*. -david
[flexcoders] Problems using Flex modules
I'm building my first Flex modules-based app with my own MVC implementation. I have my main.mxml instantiating my controller just fine and the controller building a map of the modules (flex modules) that it can load dynamically. However, I am running into a wall when the most basic attempt to load a module fails. I've tried more advanced methods and stepped through the ModuleLoader, ModuleInfo.load classes and I get anything from a local SWF can't use the securityDomain property of a loaderContext object to the SWF is not a loadable module errors based on the changes I've made to try and address the problem of not being able to load and display the most basic module within a host. Can someone give me the basics on how to create a local build and test environment that will address the security/sandbox restrictions of local SWFs loading (my MVC host app) other local SWFs (my module SWFs). Here's my setup: - have a basic flex project that outputs a build in the \bin directory. When I attempt to load a module, also in that same \bin directory, I can see the loading progress event handler being called but when the cast to loader.content as IFlexFactoryBlah runs, the loaded module isn't a real module per SWF is not loadable module. Although, my module SWF is a mx:Module based SWF that contains only one ui element, a label. - then I thought maybe it wouldn't work b/c I wasn't loading the module SWF over HTTP, so I put my view.swf module in the root directory of my localhost-based HTTP server. Then I ran into the a local SWF can't set the securityDomain property in LoaderContect error. I tried to manually load the module using the following and placing a crossdomain.xml into the root of my server with access set to all allowed via *: import mx.events.ModuleEvent; import mx.modules.ModuleManager; import mx.modules.IModuleInfo; var info:IModuleInfo; Security.allowDomain(localhost); Security.loadPolicyFile(http://localhost/crossdomain.xml;); var request:URLRequest = new URLRequest (http://localhost/crossdomain.xml;); var loader:URLLoader = new URLLoader(); loader.load(request); info = ModuleManager.getModule(view.swf); info.addEventListener(ModuleEvent.READY, onModuleReady); info.load (ApplicationDomain.currentDomain,securityDomain.currentDomain); This produced the You can't use securityDomain property of LoaderContext from a local SWF type error. Anyway, where do you normally store module SWFs and the host app that uses and loads them when you're in dev mode and trying to debug on your local box??? Here's some of the code: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=onInit(); width=532 height=428 mx:Button x=10 y=10 id=btn label=Load Flex SWF / mx:Panel x=10 y=78 width=341 height=281 layout=absolute title=Loaded Module mx:ModuleLoader id=modLoader width=100% height=100% x=0 y=0 /mx:ModuleLoader /mx:Panel mx:Script ![CDATA[ // in my first iteration of this file, i would just try modLoader.url = objModuleInfo.swf; //where objModuleInfo is an object containing a property, swf, that //is a string containing the path to my module //the module SWF was in the same directory as the host.swf initially, //then i moved it into my webserver Here's the module: mx:Module xmlns:mx=http://www.adobe.com/2006/mxml; height=164 backgroundColor=#ff width=189 layout=absolute mx:Panel width=169 height=99 layout=absolute title=Module x=10 y=24 mx:Label x=10 y=31 text=View SWF color=#400040 fontWeight=bold/ /mx:Panel /mx:Module This started as an mx:Application but I switched it to a mx:Module per the latest Flex Modules docs recommendation how to create a runnable/buildable module SWF. Any thoughts would be GREATLY appreciated. Thanks!
[flexcoders] Flex Developer Opportunity in Houston, TX
I am looking for a Flex developer to work in Houston TX. If you are interested, you can reach me at (713)278-1414 or email me your information including pay requirements. Here are the job requirements: Must Haves: Flex, ActionScript, Java , J2EE, Web Service, RDBMS(Oracle, SQL Server) At least 5 years of overall IT experience with 1+ years of extensive experience in Flex technology including the following: Flex/Actionscript : o Action Script 3.0 o AIR o Flex Builder o Remote objects o Flex data services(LCDS, BlazeDS); Java/J2EE: o Core Java (1.4/1.5) o SWING o MVC Framework o JSP/JSF Nice to have: * Java/J2EE technology including Webservices(Axis), Struts, Spring, XML, SAX/DOM Parsers * Experience in Flex technology (e.g. Integrating Webservices, HTTP Services), familiarity with Hibernate and JSP Thank you, Sean Pulnik Insight Global, Inc. [EMAIL PROTECTED] (713) 278-1414 (W) 10260 Westheimer Road Suite 340 Houston, TX 77042
[flexcoders] Re: Picnik photo functions/features RD
Thanks for the input. Would anyone else have any idea on how to accomplish this? So many great minds in here common! thanks alex --- In flexcoders@yahoogroups.com, Jon Bradley [EMAIL PROTECTED] wrote: On Jan 29, 2008, at 10:27 PM, Alexander Tsoukias wrote: Given the nature of picnik, i wouldnt think they go back and forth as the manipulation happens instantly as you drag a slider or pick a color. I think that's accurate. Some of the simpler operations are able to be done in Flash because of the color matrix filter. You might be right about final processing (compiling) of the final image, but possibly giving the user a preview of how the image will look without going back and forth to the server for processing. It does depend on usage. For high resolution photo editing - and relatively accurate color work, it's best to do that outside of AS. Things like a 'filmic' sepia conversion isn't possible with a simple transformation that Flash can handle (not without per-pixel operations that is). That said, with Hydra and the new advancements Adobe is making to get Photoshop online marketable, I think we'll be seeing some pretty nice capabilities in the Player in the near future. good luck on your project if you're heading down that road. :) cheers, jon
[flexcoders] Can't get font apostophe to embed
I have a css file with this code and apostrophe is not embedding for me. I thought the unicode value was U+0027 and but it's still now showing up. Can anyone help? It's driving me crazy! Thanks @font-face { src: url(assets/VectoraODisp-Bold.ttf); fontFamily: vectora; fontWeight:bold; advancedAntiAliasing: true; unicode-range: U+0021-U+007B, U+0020-U+0040, /* Punctuation, Numbers */ U+0021-U+002F, /* Punctuation and Symbols */ U+0041-U+005A, /* Upper-Case A-Z */ U+005B-U+0060, /* Punctuation and Symbols */ U+0061-U+007A, /* Lower-Case a-z */ U+007B-U+007E; /* Punctuation and Symbols */ } @font-face { src: url(assets/VectoraODisp-BoldItalic.ttf); fontFamily: vectora; fontWeight:bold; fontStyle:italic; advancedAntiAliasing: true; unicode-range: U+0021-U+007B, U+0020-U+0040, /* Punctuation, Numbers */ U+0021-U+002F, /* Punctuation and Symbols */ U+0041-U+005A, /* Upper-Case A-Z */ U+005B-U+0060, /* Punctuation and Symbols */ U+0061-U+007A, /* Lower-Case a-z */ U+007B-U+007E; /* Punctuation and Symbols */ }
[flexcoders] How to compile a library using Ant and mxmlc.jar
Wonder if you have a sample Ant script to share, which compiles a bunch of .AS classes into a library (.SWC) Thanks!
[flexcoders] Re: How to compile a library using Ant and mxmlc.jar
You can use the flexTasks that ship with the Flex SDK to achieve this. The flexTasks.jar is sdk home/ant/lib folder. For the reference doc, see here http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks#Using_the_compc_task Thanks, Gaurav
[flexcoders] backgroundImage
So i have -keep-generated-actionscript and i saw that in ApplicationStyle the backgroundImage was pointed to mx.skins.halo.ApplicationBackground so i tried extendning the programattingSkin class and did setStyle('backgroundImage',custom.halo.skins.NewAppBackground'); and it didnt do anything so is the ApplicationBackground serving a purpose? Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
Re: [flexcoders] problem with parallel
Ok, I did with the targets, instead of target and the result was: error 1120: Access of undefined property port_Folio and so on for the next states names, there is something I did wrong? regards Gustavo On Jan 25, 2008, at 11:12 PM, Sherif Abdou wrote: mx:transitions mx:Transition fromState=* toState=* mx:Parallel target={[contact, who_We, port_Folio]} mx:Move duration=200/ /mx:Parallel /mx:Transition /mx:transitions Gustavo A. Duenas Creative Director LEFT AND RIGHT SOLUTIONS 904. 265 0330 - 904. 386 7958 www.leftandrightsolutions.com Jacksonville - Florida
[flexcoders] Re: summaryFunction for alphabetical strings or chronological dates
Perhaps I didn't describe this well. Has anyone played enough with the AdvancedDatagrid to get into the SummaryFunction? Or maybe it just needs a bump... *BUMP* :) --- In flexcoders@yahoogroups.com, ryanharlin [EMAIL PROTECTED] wrote: Anyone know how to use the summaryFunction in the new AdvancedDatagrid (ADG) to return the first alphabetical occurrence in a group? date would be cool too, but I'll stick to alpha if it helps explain the summaryFunction. THANKS!
RE: [flexcoders] Re: Picnik photo functions/features RD
I wonder if you can't use actionscript alongside something like Processing. I don't believe I've seen them used together yet though, that may not be possible. But I'm almost sure picnic uses server-side code to edit pictures. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alexander Tsoukias Sent: Wednesday, January 30, 2008 1:18 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Picnik photo functions/features RD Thanks for the input. Would anyone else have any idea on how to accomplish this? So many great minds in here common! thanks alex --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jon Bradley [EMAIL PROTECTED] wrote: On Jan 29, 2008, at 10:27 PM, Alexander Tsoukias wrote: Given the nature of picnik, i wouldnt think they go back and forth as the manipulation happens instantly as you drag a slider or pick a color. I think that's accurate. Some of the simpler operations are able to be done in Flash because of the color matrix filter. You might be right about final processing (compiling) of the final image, but possibly giving the user a preview of how the image will look without going back and forth to the server for processing. It does depend on usage. For high resolution photo editing - and relatively accurate color work, it's best to do that outside of AS. Things like a 'filmic' sepia conversion isn't possible with a simple transformation that Flash can handle (not without per-pixel operations that is). That said, with Hydra and the new advancements Adobe is making to get Photoshop online marketable, I think we'll be seeing some pretty nice capabilities in the Player in the near future. good luck on your project if you're heading down that road. :) cheers, jon
[flexcoders] Array vs ArrayCollection
We have recently made some big performance gains in our product by replacing the use of ArrayCollections with Arrays in some data calculation algorithms. It appears that even iterating through an ArrayCollection is significantly slower than an Array. My question to you all is... what have you found to be the best place to use one of the other in your applications? Ryan
[flexcoders] Re: got any good air styling references?
thanks, but i was looking more for resources on css styling of the windows. i have an air app that uses WindowedApplication, but it is also spawning other windows using new Window(). i wanted to be able to use css styling on those Windows, but it seems as though the default close, minimize, restore buttons are difficult to assign styles to. was just wondering if anyone had any good inspiration or resources for how to go about this? --- In flexcoders@yahoogroups.com, Kyle Neath [EMAIL PROTECTED] wrote: The best method I've found is to just remove all native controls (by uncommenting a directive in the air xml file, and adding showChrome=false to your WindowedApplication). From there, it's pretty trivial to mimic native functions. Here's the ones used for beta 3 (they changed it, so googling around gets confusing): this.nativeWindow.minimize(); // minimizes the window this.nativeWindow.close(); // closes the window this.nativeWindow.startResize(); // call this within a MouseDown event on your resizing handle this.nativeWindow.startMove(); // call this within a MouseDown event on your moving handle (title bar) All assuming this is the current window. - Kyle
[flexcoders] DataGrid data insertion/custom editing
In my app, the user enters data which gets stored into a class. I then wish to display this info in a DataGrid with three columns corresponding to the data entered (2 strings and 1 number). Is there an easy way to get this into the DataGrid by using binding or do I have to do manual insertion of the data? Also, I'd like to let the user edit the DataGrid. But I don't want him to be able to just type whatever he wants, I'd rather give him a pop-up or combobox with the relevant options. Any suggestions about this approach?
[flexcoders] Puzzling Drag Drop Issues/Bug??
This is a little complicated to explain, so please bear with me. Run the example AIR app below, drag the button to see what happens, and then read on. I can't seem to calculate the place where the item was actually dropped in the Canvas? I tried calculate the position in the dragDropHandler based on the canvas mouseY + verticalScrollPosition, but the mouseY position value oddly gets fixed to the mouse position where the drag started, not the current mouseY position. Is this a bug? ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute initialize=initApp(); mx:Script ![CDATA[ import mx.controls.Button; import mx.events.DragEvent; import mx.core.DragSource; import mx.managers.DragManager; private function initApp():void{ maximize(); var myButton:Button = new Button; myButton.y = 1355; myButton.x = 60; myButton.label = Drag Me; myButton.addEventListener (MouseEvent.MOUSE_MOVE, mouseMoveHandler,false,0,true); myDropCanvas.addChild(myButton); myDropCanvas.verticalScrollPosition = 1255; } private function mouseMoveHandler (event:MouseEvent):void { if (event.currentTarget is Button){ var myProxy:Button = event.currentTarget as Button var dragInitiator:Button=Button(event.currentTarget); var ds:DragSource = new DragSource(); ds.addData (dragInitiator,dragAppt); DragManager.doDrag (dragInitiator, ds, event, myProxy, 0, 0,1.0,true); txtDragMouseY.text = myDropCanvas.mouseY.toString(); } trace (Mouse Move Trace: + myDropCanvas.mouseY); } private function dragEnterHandler (event:DragEvent):void{ if (event.dragSource.hasFormat(dragAppt)) { DragManager.acceptDragDrop(Canvas (event.currentTarget)); } } private function dragDropHandler (event:DragEvent):void{ Button(event.dragInitiator).y = Canvas (event.currentTarget).mouseY; trace (Drag Drop Trace: + myDropCanvas.mouseY); } ]] /mx:Script mx:Canvas id=myDropCanvas top=5 bottom=0 width=100% verticalScrollPolicy=on dragEnter=dragEnterHandler(event); dragDrop=dragDropHandler(event); click=trace (stage.mouseY); left=180 mx:VRule left=53 top=16 width=5 height=2875 styleName=gridVerticalLines/ /mx:Canvas mx:Label x=0 y=10 text=Canvas Mouse Y During Drag fontWeight=bold/ mx:Text left=10 top=36 id=txtDragMouseY/ /mx:WindowedApplication
[flexcoders] Re: How to compile a library using Ant and mxmlc.jar
Thank you, how will I use a library as RSL when building (using Ant task mxmlc), what's the syntax here? --- In flexcoders@yahoogroups.com, Gaurav Jain [EMAIL PROTECTED] wrote: You can use the flexTasks that ship with the Flex SDK to achieve this. The flexTasks.jar is sdk home/ant/lib folder. For the reference doc, see here http://labs.adobe.com/wiki/index.php/Flex_Ant_Tasks#Using_the_compc_task Thanks, Gaurav
[flexcoders] Binding to proxy class
Hi, is there a way to avoid compiler warnings Data binding will not be able to detect assignments to myVar when binding to properties of Proxy class? My class goes something like this: import vegas.data.map.ArrayMap; dynamic public class MyProxyClass extends Proxy implements IEventDispatcher { private var _fields:Map; _fields = new ArrayMap(); override flash_proxy function getProperty(name:*):* { var val:Object=_fields.get(String(name)); return _fields.get(String(name)); } override flash_proxy function setProperty(name:*, value:*):void { if (_fields.get(String(name)) !== value) { var oldValue:String = _fields.get(String(name)); _fields.put(String(name), value); this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this, String(name), oldValue, value)); } } } Thanks, Tomislav -- View this message in context: http://www.nabble.com/Binding-to-proxy-class-tp15191361p15191361.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Re: Embedded image and static variable problem.....
Ok,I see I did exactly like that :) --- In flexcoders@yahoogroups.com, Troy Gilbert [EMAIL PROTECTED] wrote: Yeah, you could do arrays, something like this: [Embed('myimage1.png')] private var myimage1:Class; [Embed('myimage2.png')] private var myimage2:Class; public var myimages:Array = [myimage1, myimage2]; In fact, I wrote a PHP script to generate just this kind of stuff once. You'd point the PHP script at a folder and it would create an SWF that contained all of the assets in that folder embedded and retrievable by filename. The PHP script just automated the process above, with the addition of some API that used a dictionary to associate filenames with the asset classes. I discuss it in more detail on my blog, http://troygilbert.com/. Troy.
[flexcoders] Re: How to compile a library using Ant and mxmlc.jar
Lets say you compiled the swc (SwcOutput) to directory instead of a .swc You can use it as rsl in the mxmlc compilation. Here is the example: mxmlc file=main.mxml output=${output}/main.swf el dir=${flexlib}/libs/player include name=playerglobal.swc/ /el el dir=${basedir} include name=SwcOutput/ /el rsl url=../SwcOutput/library.swf/ /mxmlc Thanks, Gaurav
[flexcoders] Re: Flex 3 Beta 3 Debugger Doesnt Connect
I don't have NOD32 so I can't try it, but I can take a guess: Try configuring NOD32's firewall to allow port 7935 through. That is the port that is used to communicate between Flex Builder and the Flash player. - Mike Morearty, Adobe Flex Builder team --- In flexcoders@yahoogroups.com, Paolo Bernardini [EMAIL PROTECTED] wrote: Hi, I have the same problem with nod32, is there a solution to configure nod32 without uninstalling it? On Dec 27, 2007 4:09 AM, Sheriff [EMAIL PROTECTED] wrote: I have no reason, just read alot of good reviews on it and decided to try it. I had to uninstall it though and download another antivirus/secuirty program and everything worked after. - Original Message From: Mike Morearty [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, December 26, 2007 6:55:12 PM Subject: [flexcoders] Re: Flex 3 Beta 3 Debugger Doesnt Connect Oops, I missed your followup saying that NOD 32 Antivirus caused the problem. Glad to see you figured it out. I have to ask, though -- I occasionally see references to this sort of problem, only to have it always come down to NOD 32 Antivirus. I have never, ever heard of that program in any context other than the cause of the Flex Builder debugger not working. Can you tell me a little about it? E.g. is it popular in certain circles? I'm thinking maybe we should have a tech note warning that NOD 32 blocks the Flex Builder debugger. Thanks - Mike Morearty, Adobe Flex Builder team --- In [EMAIL PROTECTED] ups.com flexcoders%40yahoogroups.com, Mike Morearty mike.morearty@ ... wrote: Which component caused it to stop working -- the new Flex Builder, or the new Flash player? In other words, if you run the old beta 2 with the new player 115, does it work? If you run the new beta 3 with the old player that came out with beta 2 (whatever version that was), does it work? By the way, for the record, the port used by the debugger is 7935, not the port mentioned by mydarkspoon. But as you have already figured out, that doesn't seem to be the problem here... - Mike Morearty, Adobe Flex Builder team --- In [EMAIL PROTECTED] ups.com flexcoders%40yahoogroups.com, Sheriff sherif626@ wrote: reverted back to Flex 3 Beta 2 and installed the older flash player and everything works again so i am guessing it has to do with the flash 9.0115 and Windows Vista Home Premium or something with the Flex 3 Beta 3 not connecting. Any Advise? - Original Message From: Sheriff sherif626@ To: [EMAIL PROTECTED] ups.com flexcoders%40yahoogroups.com Sent: Tuesday, December 25, 2007 4:34:08 PM Subject: [flexcoders] Flex 3 Beta 3 Debugger Doesnt Connect Anyone having this problem? I am running Windows Vista Home and the Debugger always times out. Flash Player used is the one that comes with the Stand Alone Flex Builder. I cleaned/Uninstalled /reinstalled and nothing works it always times out. I even tried the plugin version and same problem. The build is the 115 one Never miss a thing. Make Yahoo your homepage. _ _ _ _ _ _ Never miss a thing. Make Yahoo your home page. http://www.yahoo. com/r/hs http://www.yahoo.com/r/hs -- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
[flexcoders] Re: Executing local java
http://artemis.effectiveui.com/ --- In flexcoders@yahoogroups.com, Jhonny Everson [EMAIL PROTECTED] wrote: Hi, Can Adobe Air run a local java application? Like System.exec()? We are building a multi-agent system using Jade. I was thinking about doing the front-end using Air. -- Jhonny Everson
Re: [flexcoders] Array vs ArrayCollection
Well, I suspect binding has a lot to do with choosing ArrayCollection (simply because it can generate the change events), but for performance, even if you use an ArrayCollection you can always do the speed calculations on the source array. Paul - Original Message - From: rmarples [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, January 30, 2008 8:05 PM Subject: [flexcoders] Array vs ArrayCollection We have recently made some big performance gains in our product by replacing the use of ArrayCollections with Arrays in some data calculation algorithms. It appears that even iterating through an ArrayCollection is significantly slower than an Array. My question to you all is... what have you found to be the best place to use one of the other in your applications? Ryan -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
RE: [flexcoders] The limit of [ResourceBundle] and @Embed
Are you seeing this problem in Flex 2 or Flex 3? Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of luke_lee1124 Sent: Tuesday, January 29, 2008 5:41 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] The limit of [ResourceBundle] and @Embed Hi, All, I asked this question before but now, i can explain it more clearly. I am using [ResourceBundle] as following: [Bindable] public var rb:ResourceBundle; [ResourceBundle(EmbeddedClassesBundle)] //english version public var rb1:ResourceBundle; [ResourceBundle(EmbeddedClassesBundle_sp)] //spanish version public var rb2:ResourceBundle; [ResourceBundle(EmbeddedClassesBundle_ge)] //german version public var rb3:ResourceBundle; and i also have two image controls in main application: mx:Image id=image2 source = @Embed(source='assets/btn_sales.png') / mx:Image id=image3 source = @Embed(source='assets/btn_training.png') / it works, but my problem is when i adding one more resourcebundle, such as [ResourceBundle(EmbeddedClassesBundle_cn)] //chinese version public var rb4:ResourceBundle; the image2 or image3 will not display, but if image2 and image3 are not using embeded assets, they can display without problem. what is more instersting, when i add rb5 for japanese version, neither image2 or image3 will display. It seems like we cannot use too many [resoucebundle] and @Embed in one file Thanks
RE: [flexcoders] Bitmap: Please, please help.
First, trying arranging mx:Images inside an mx:Canvas to overlap and set their 'alpha' to something like 0.5 to make them semitransparent. Then look at drag-drop examples. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Noyes, Jeff Sent: Wednesday, January 30, 2008 9:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Bitmap: Please, please help. I want to be able to drag and drop multiple images onto one object - and have the images layer one on top of the other (see one through the other). Can that be done? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kyle Neath Sent: Wednesday, January 30, 2008 11:53 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] got any good air styling references? The best method I've found is to just remove all native controls (by uncommenting a directive in the air xml file, and adding showChrome=false to your WindowedApplication). From there, it's pretty trivial to mimic native functions. Here's the ones used for beta 3 (they changed it, so googling around gets confusing): this.nativeWindow.minimize(); // minimizes the window this.nativeWindow.close(); // closes the window this.nativeWindow.startResize(); // call this within a MouseDown event on your resizing handle this.nativeWindow.startMove(); // call this within a MouseDown event on your moving handle (title bar) All assuming this is the current window. - Kyle
[flexcoders] Re: Puzzling Drag Drop Issues/Bug??
So it is a bug, http://bugs.adobe.com/jira/browse/SDK-13227. This seems quite impossible to workaround, as you can't capture any drop location positioning information about the item being dragged/dropped. Any ideas? JF --- In flexcoders@yahoogroups.com, jmfillman [EMAIL PROTECTED] wrote: This is a little complicated to explain, so please bear with me. Run the example AIR app below, drag the button to see what happens, and then read on. I can't seem to calculate the place where the item was actually dropped in the Canvas? I tried calculate the position in the dragDropHandler based on the canvas mouseY + verticalScrollPosition, but the mouseY position value oddly gets fixed to the mouse position where the drag started, not the current mouseY position. Is this a bug? ?xml version=1.0 encoding=utf-8? mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute initialize=initApp(); mx:Script ![CDATA[ import mx.controls.Button; import mx.events.DragEvent; import mx.core.DragSource; import mx.managers.DragManager; private function initApp():void{ maximize(); var myButton:Button = new Button; myButton.y = 1355; myButton.x = 60; myButton.label = Drag Me; myButton.addEventListener (MouseEvent.MOUSE_MOVE, mouseMoveHandler,false,0,true); myDropCanvas.addChild(myButton); myDropCanvas.verticalScrollPosition = 1255; } private function mouseMoveHandler (event:MouseEvent):void { if (event.currentTarget is Button){ var myProxy:Button = event.currentTarget as Button var dragInitiator:Button=Button(event.currentTarget); var ds:DragSource = new DragSource(); ds.addData (dragInitiator,dragAppt); DragManager.doDrag (dragInitiator, ds, event, myProxy, 0, 0,1.0,true); txtDragMouseY.text = myDropCanvas.mouseY.toString(); } trace (Mouse Move Trace: + myDropCanvas.mouseY); } private function dragEnterHandler (event:DragEvent):void{ if (event.dragSource.hasFormat(dragAppt)) { DragManager.acceptDragDrop(Canvas (event.currentTarget)); } } private function dragDropHandler (event:DragEvent):void{ Button(event.dragInitiator).y = Canvas (event.currentTarget).mouseY; trace (Drag Drop Trace: + myDropCanvas.mouseY); } ]] /mx:Script mx:Canvas id=myDropCanvas top=5 bottom=0 width=100% verticalScrollPolicy=on dragEnter=dragEnterHandler(event); dragDrop=dragDropHandler(event); click=trace (stage.mouseY); left=180 mx:VRule left=53 top=16 width=5 height=2875 styleName=gridVerticalLines/ /mx:Canvas mx:Label x=0 y=10 text=Canvas Mouse Y During Drag fontWeight=bold/ mx:Text left=10 top=36 id=txtDragMouseY/ /mx:WindowedApplication
[flexcoders] Re: How to compile a library using Ant and mxmlc.jar
Thanks, it will really help, one more question, hopefully the last one: is there anything specific to set in compc to indicate the SWC that's being built is a RSL? I have fear this is a dumb question. Can't I rather use compc to generate a RSL directly (SWF file) to be used by the main application? --- In flexcoders@yahoogroups.com, Gaurav Jain [EMAIL PROTECTED] wrote: Lets say you compiled the swc (SwcOutput) to directory instead of a .swc You can use it as rsl in the mxmlc compilation. Here is the example: mxmlc file=main.mxml output=${output}/main.swf el dir=${flexlib}/libs/player include name=playerglobal.swc/ /el el dir=${basedir} include name=SwcOutput/ /el rsl url=../SwcOutput/library.swf/ /mxmlc Thanks, Gaurav
[flexcoders] Re: Binding data and custom components
creationComplete getting called doesn't mean that the dataProvider was also getting set. showData was getting called between creation complete and the assignment to dataProvider. I made few changes to your code, hopefully it will resolve the issue. package components { import flash.events.Event; import mx.containers.Canvas; import mx.controls.TextArea; public class BindableListTextAS extends Canvas { [Bindable] private var _dataProvider:Array; private var tf:TextArea; public function BindableListTextAS() { tf = new TextArea(); addChild(tf) // addEventListener(creationComplete, showData); } public function set dataProvider (_dp :Array) :void { _dataProvider = _dp; showData(); } private function showData():void { var dpLen:int = _dataProvider.length; tf.text = ; for(var i:int = 0; idpLen; i++) { tf.text += _dataProvider[i].label; } } } } Thanks, Gaurav --- In flexcoders@yahoogroups.com, Merrill, Jason [EMAIL PROTECTED] wrote: My head is swimming reading the archives and Flex help docs about binding data to a custom component. In the simplest form, it's easy enough for me to do data binding: i.e. set a repeater's dataProvider to a [Bindable] property. That works. The repeater which repeats a series of Flex checkboxes and auto-updates the number of checkboxes when the data changes. Great. The part I'm struggling with is binding data to custom components. My question is really 2-in-1: 1) How to get the custom AS3-written component I wrote to respond to changes in the data 2) How to get the inital data into the component without getting the error: Cannot access a property or method of a null object reference. which seems to occur because the method which uses the data is being called before the data is set. As you will see in the code below, I tried setting the data after the creationComplete event is heard, but that was not enough: Surely this has been done a gazillion times before. Below is my lame attempt to do #2, and only half-way to do #1 since I'm not sure what to do. My MXML file is shown first, and then the custom AS3 component (both are written strictly for simplicity): ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:c=components.* creationComplete=init() mx:Script ![CDATA[ [Bindable] private var dataArr:Array; private function init():void { dataArr = new Array( {label:Here}, {label:is}, {label:some}, {label:data.}) } private function changeArray():void { dataArr = [ {label:Now}, {label:there}, {label:is}, {label:a}, {label:new}, {label:set}, {label:of}, {label:data.}]; } ]] /mx:Script mx:Button label=change click=changeArray()/ c:BindableListTextAS dataProvider={dataArr} x=590 y=100 backgroundColor=0x66 width=500 height=400/ /mx:Application / The BindableListTextAS component: */ package components { import flash.events.Event; import mx.containers.Canvas; import mx.controls.TextArea; public class BindableListTextAS extends Canvas { [Bindable] public var dataProvider:Array; private var tf:TextArea; public function BindableListTextAS() { tf = new TextArea(); addChild(tf) addEventListener(creationComplete, showData); } private function showData(e:Event):void { var dpLen:int = dataProvider.length; for(var i:int = 0; idpLen; i++) { tf.text += dataProvider[i].label; } } } } Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community
[flexcoders] Re: How to compile a library using Ant and mxmlc.jar
You can not use compc to generate a swf file directly. You can generate a .swc or output to the directory. The directory contains the library.swf or you can also extract the library.swf from the .swc file. See this link for more details. http://livedocs.adobe.com/labs/flex3/html/help.html?content=rsl_04.html Thanks, Gaurav
[flexcoders] Binding data and custom components
My head is swimming reading the archives and Flex help docs about binding data to a custom component. In the simplest form, it's easy enough for me to do data binding: i.e. set a repeater's dataProvider to a [Bindable] property. That works. The repeater which repeats a series of Flex checkboxes and auto-updates the number of checkboxes when the data changes. Great. The part I'm struggling with is binding data to custom components. My question is really 2-in-1: 1) How to get the custom AS3-written component I wrote to respond to changes in the data 2) How to get the inital data into the component without getting the error: Cannot access a property or method of a null object reference. which seems to occur because the method which uses the data is being called before the data is set. As you will see in the code below, I tried setting the data after the creationComplete event is heard, but that was not enough: Surely this has been done a gazillion times before. Below is my lame attempt to do #2, and only half-way to do #1 since I'm not sure what to do. My MXML file is shown first, and then the custom AS3 component (both are written strictly for simplicity): ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:c=components.* creationComplete=init() mx:Script ![CDATA[ [Bindable] private var dataArr:Array; private function init():void { dataArr = new Array( {label:Here}, {label:is}, {label:some}, {label:data.}) } private function changeArray():void { dataArr = [ {label:Now}, {label:there}, {label:is}, {label:a}, {label:new}, {label:set}, {label:of}, {label:data.}]; } ]] /mx:Script mx:Button label=change click=changeArray()/ c:BindableListTextAS dataProvider={dataArr} x=590 y=100 backgroundColor=0x66 width=500 height=400/ /mx:Application / The BindableListTextAS component: */ package components { import flash.events.Event; import mx.containers.Canvas; import mx.controls.TextArea; public class BindableListTextAS extends Canvas { [Bindable] public var dataProvider:Array; private var tf:TextArea; public function BindableListTextAS() { tf = new TextArea(); addChild(tf) addEventListener(creationComplete, showData); } private function showData(e:Event):void { var dpLen:int = dataProvider.length; for(var i:int = 0; idpLen; i++) { tf.text += dataProvider[i].label; } } } } Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community
RE: [flexcoders] Re: Binding data and custom components
Gaurav, You're awesome. That simple setter was it, thank you! Jason Merrill Bank of America GTO LLD Solutions Design Development eTools Multimedia Bank of America Flash Platform Developer Community
[flexcoders] rotated images lose x position when container is hidden/reshown
If I rotate an image 90 degrees in a container, then set visibility and includeInLayout for that container to false, then set those back to true, the image is now outside of the container. This is using Flex 2. I've made a sample app that shows this problem, but you'll have to add an image named triangle.png for it to work. For me this is simply a 10x10 png picture of a triangle (used for a disclosable view). To reproduce the problem: 1. click on the image to rotate it 3. toggle the view to the second view 4. toggle the view back to the first view Code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:VBox borderStyle=solid width=100 height=40 mx:HBox id=firstBox width=100% height=100% mx:Image source=@Embed('/triangle.png') id=rotateTarget click=rotateMe()/ mx:Text text=first/ /mx:HBox mx:HBox id=secondBox visible=false includeInLayout=false width=100% height=100% mx:Text text=second/ /mx:HBox /mx:VBox mx:Button click=toggleVisibility() label=swap view/ mx:Script ![CDATA[ import mx.effects.Rotate; private var _rotated:Boolean = false; private function rotateMe():void { var rotateEffect:Rotate = new Rotate(); rotateEffect.duration = 1; if (_rotated) { rotateEffect.angleFrom = 90; rotateEffect.angleTo = 0; } else { rotateEffect.angleFrom = 0; rotateEffect.angleTo = 90; } _rotated = !_rotated; rotateEffect.play([rotateTarget]); } private function toggleVisibility():void { firstBox.visible = !firstBox.visible; firstBox.includeInLayout = !firstBox.includeInLayout; secondBox.visible = !secondBox.visible; secondBox.includeInLayout = !secondBox.includeInLayout; } ]] /mx:Script /mx:Application
[flexcoders] Autocenter a form
Is there a way to center a form horizontally? Here is my code: mx:Canvas label=Cause width=100% height=100% id=cause mx:HBox horizontalAlign=center accidents:causes id=Cause/ /mx:HBox /mx:Canvas where causes is an mxml component based on a form. When I run this code the form is positioned on the left side of the box. Thanks
RE: [flexcoders] backgroundImage
Should work. Debug into it and make sure it got set in time and is being instantiated, etc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sherif Abdou Sent: Wednesday, January 30, 2008 11:40 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] backgroundImage So i have -keep-generated-actionscript and i saw that in ApplicationStyle the backgroundImage was pointed to mx.skins.halo.ApplicationBackground so i tried extendning the programattingSkin class and did setStyle('backgroundImage',custom.halo.skins.NewAppBackground'); and it didnt do anything so is the ApplicationBackground serving a purpose? http://geo.yahoo.com/serv?s=97359714/grpId=12286167/grpspId=1705007207/ msgId=100774/stime=1201717801/nc1=4507179/nc2=3848642/nc3=4990220 Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://us.rd.yahoo.com/evt=51733/*http:/mobile.yahoo.com/;_ylt=Ahu06i62 sR8HDtDypao8Wcj9tAcJ%20
RE: [flexcoders] Problems using Flex modules
Local swfs can't get to remote modules. Either the whole thing has to be local or remote. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of innovativecode Sent: Wednesday, January 30, 2008 9:13 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Problems using Flex modules I'm building my first Flex modules-based app with my own MVC implementation. I have my main.mxml instantiating my controller just fine and the controller building a map of the modules (flex modules) that it can load dynamically. However, I am running into a wall when the most basic attempt to load a module fails. I've tried more advanced methods and stepped through the ModuleLoader, ModuleInfo.load classes and I get anything from a local SWF can't use the securityDomain property of a loaderContext object to the SWF is not a loadable module errors based on the changes I've made to try and address the problem of not being able to load and display the most basic module within a host. Can someone give me the basics on how to create a local build and test environment that will address the security/sandbox restrictions of local SWFs loading (my MVC host app) other local SWFs (my module SWFs). Here's my setup: - have a basic flex project that outputs a build in the \bin directory. When I attempt to load a module, also in that same \bin directory, I can see the loading progress event handler being called but when the cast to loader.content as IFlexFactoryBlah runs, the loaded module isn't a real module per SWF is not loadable module. Although, my module SWF is a mx:Module based SWF that contains only one ui element, a label. - then I thought maybe it wouldn't work b/c I wasn't loading the module SWF over HTTP, so I put my view.swf module in the root directory of my localhost-based HTTP server. Then I ran into the a local SWF can't set the securityDomain property in LoaderContect error. I tried to manually load the module using the following and placing a crossdomain.xml into the root of my server with access set to all allowed via *: import mx.events.ModuleEvent; import mx.modules.ModuleManager; import mx.modules.IModuleInfo; var info:IModuleInfo; Security.allowDomain(localhost); Security.loadPolicyFile(http://localhost/crossdomain.xml http://localhost/crossdomain.xml ); var request:URLRequest = new URLRequest (http://localhost/crossdomain.xml http://localhost/crossdomain.xml ); var loader:URLLoader = new URLLoader(); loader.load(request); info = ModuleManager.getModule(view.swf); info.addEventListener(ModuleEvent.READY, onModuleReady); info.load (ApplicationDomain.currentDomain,securityDomain.currentDomain); This produced the You can't use securityDomain property of LoaderContext from a local SWF type error. Anyway, where do you normally store module SWFs and the host app that uses and loads them when you're in dev mode and trying to debug on your local box??? Here's some of the code: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute creationComplete=onInit(); width=532 height=428 mx:Button x=10 y=10 id=btn label=Load Flex SWF / mx:Panel x=10 y=78 width=341 height=281 layout=absolute title=Loaded Module mx:ModuleLoader id=modLoader width=100% height=100% x=0 y=0 /mx:ModuleLoader /mx:Panel mx:Script ![CDATA[ // in my first iteration of this file, i would just try modLoader.url = objModuleInfo.swf; //where objModuleInfo is an object containing a property, swf, that //is a string containing the path to my module //the module SWF was in the same directory as the host.swf initially, //then i moved it into my webserver Here's the module: mx:Module xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml height=164 backgroundColor=#ff width=189 layout=absolute mx:Panel width=169 height=99 layout=absolute title=Module x=10 y=24 mx:Label x=10 y=31 text=View SWF color=#400040 fontWeight=bold/ /mx:Panel /mx:Module This started as an mx:Application but I switched it to a mx:Module per the latest Flex Modules docs recommendation how to create a runnable/buildable module SWF. Any thoughts would be GREATLY appreciated. Thanks!
RE: [flexcoders] How to stop form losing focus?
No known way to do it on all browsers From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dannytab69 Sent: Wednesday, January 30, 2008 7:41 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to stop form losing focus? I was wondering if there is any way to retain the focus on a field on a form if the user clicks off the browser containing the application and then back on it, or minimizes and maximises it etc. When these events occur the focus seems to be reset and the user will have to click or tab back to the field they were on before, is there any way to stop this? Thanks Danny
RE: [flexcoders] Events and performance
The player is optimized to know if there are listeners. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dbronk Sent: Wednesday, January 30, 2008 6:44 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Events and performance I was wondering if I could get some input about events and performance. The exact situation I have is I'm using the HashMap class from Copyright (c) 2006 Eric J. Feminella. I've modified the class so that on put/remove/clear/reset functions it will dispatch a dataChanged event. This way I can set listeners on the class. This will obviously create many events. We use this class in several places in our app, but only a couple need to listen to changes. Will this create any type of performance issues since the bulk of the HashMap instances will be dispatching events that nothing is listening to? I'm not sure if Flex is optimized to see that an event is being dispatched that nothing is listening to so handle it efficiently. The other choice I was going to make was to modify the HashMap class and remove the final from the class. Then extend it to a ManagedHashMap class and have the HashMap not dispatch, but have the ManagedHashMap dispatch. Looking forward to hearing some other input. Thanks, Dale
[flexcoders] Delay Data Binding, Sorts Filters on LargeCollections (using DMS)
I am trying to figure out a elegant way to delay my data binding, sorts and filters on an arraycollection while a collection is lazy loading from a LCDS autosync call. Currently, it seems like the bindings and filters are getting call multiple times while the collection is loading from the server and I often see two or three duplicate rows before the whole thing settles down. (I can send a screen capture of the load if that helps...it's ugly.) Is there an event that i can catch or some other way to know when this server dump is finished so then I can call a sort and filter on my collection at that point? Any thoughts on how to tune this better? I realize this may be a similar post to: http://tech.groups.yahoo.com/group/flexcoders/message/94923 But unfortunately, I wasn't clear on whether a solution was found especially for not explicit DMS calls. Thanks, Kevin
Re: [flexcoders] backgroundImage
got it, so is there like an invalidateStyle sort of method that updates the styles at runtime again? - Original Message From: Alex Harui [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, January 30, 2008 4:41:10 PM Subject: RE: [flexcoders] backgroundImage Should work. Debug into it and make sure it got set in time and is being instantiated, etc. From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Sherif Abdou Sent: Wednesday, January 30, 2008 11:40 AM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] backgroundImage So i have -keep-generated- actionscript and i saw that in ApplicationStyle the backgroundImage was pointed to mx.skins.halo. ApplicationBackg round so i tried extendning the programattingSkin class and did setStyle('backgroun dImage',custom. halo.skins. NewAppBackground '); and it didnt do anything so is the ApplicationBackgrou nd serving a purpose? Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Re: [flexcoders] Re: Picnik photo functions/features R
Thanks for the input. Would anyone else have any idea on how to accomplish this? So many great minds in here common! For any manipulation I've seen on the Picnik site I'd do it on the client-side in AS3. As far as I know, Picnik does everything client-side... you'd have to be doing some sophisticated manipulations for it to be faster to send an image over the network, have the server do the processing, then re-download it. That'd only make sense if you had a really fast network connection. Even then, it'd be hell on your server if you had any kind of substantial user base. If you get a bitmap as a byte array you can scan through it and apply all sorts of traditional per-pixel manipulations. Sure, maybe not real-time in a video game sense (multiple frames per second), but certainly real-time in the web app sense (a few seconds, about like a network request). And if the refresh to the user isn't fast enough, you can always preview with a lower-resolution version. Halve your resolution and for most filters you'll get a 4x speed-up... and most user's won't notice the difference, or won't care given the quick feedback. Troy.
Re: [flexcoders] Re: Picnik photo functions/features RD
But I'm almost sure picnic uses server-side code to edit pictures. Really? I've not investigated the HTTP traffic recently, but I'd be surprised if they were doing that considering the turn-around time on the previews. Troy.
[flexcoders] Re: Picnik photo functions/features R
Troy, your response has been the most reasonable, their preview is instant, and if there were sending it back to server and bring it back again so fast they would be the next bill gates. If you get a bitmap as a byte array you can scan through it and apply all sorts of traditional per-pixel manipulations. Sure, maybe not real-time in a video game sense (multiple frames per second), but certainly real-time in the web app sense (a few seconds, about like a network request). In terms of applying traditional per-pixel manipulations - can you be more specific in possibly which and how? As much as you can tell. Alex
Re: [flexcoders] backgroundImage
never mind, i guess styleIntialized() does the trick. - Original Message From: Sherif Abdou [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, January 30, 2008 5:09:03 PM Subject: Re: [flexcoders] backgroundImage got it, so is there like an invalidateStyle sort of method that updates the styles at runtime again? - Original Message From: Alex Harui [EMAIL PROTECTED] com To: [EMAIL PROTECTED] ups.com Sent: Wednesday, January 30, 2008 4:41:10 PM Subject: RE: [flexcoders] backgroundImage Should work. Debug into it and make sure it got set in time and is being instantiated, etc. From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of Sherif Abdou Sent: Wednesday, January 30, 2008 11:40 AM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] backgroundImage So i have -keep-generated- actionscript and i saw that in ApplicationStyle the backgroundImage was pointed to mx.skins.halo. ApplicationBackg round so i tried extendning the programattingSkin class and did setStyle('backgroun dImage',custom. halo.skins. NewAppBackground '); and it didnt do anything so is the ApplicationBackgrou nd serving a purpose? Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. Looking for last minute shopping deals? Find them fast with Yahoo! Search. Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
[flexcoders] Losing validation red border on custom skinning
I have skinned my components using custom skinning and now when they go through validation and fail (INVALID) the red border does not appear around the textinput/combobox. any ideas?
[flexcoders] mx:dropshadowfilter f3 only??
Hi, Having some issues (as usual) Back story: I got a beta expired message on compile, which led me to discover that I was targeting the v3 SDK for some reason. Anyway, I changed it, and now I can't use the drop shadow filter? Is this a Fx3 exclusive? I'm sure I've seen drop shadow filters in Fx2... Is there older syntax, or do you need to do it programmatically or something? Cheers, -Josh -- Good people will do good things, and bad people will do bad things. But for good people to do bad things—that takes religion. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
[flexcoders] LCDS Error Translation
I am getting some pretty consistent Errors in my LCDS project (I have narrowed it down to 4!). If anyone can translate these for me (and anyone else who would encounters these) that would be great. I also would love to know which of these are serious and which I can not worry so much about for now. ERROR 1:14:47:42,424ERROR LazyInitializationException:19 - could not initialize proxy - the owning Session was closedorg.hibernate.LazyInitializationException: could not initialize proxy - the owning Session was closed ERROR 2: ** NOTICE THERE IS JUST A BLANK STRING AS AN id ??[Flex] 01/30/2008 15:08:09.879 [ERROR] [Message.General] Error handling message: flex.messaging.MessageException: No destination with id '' is registered with any service. incomingMessage: Flex Message (flex.messaging.messages.CommandMessage) ERROR 3: [Flex] 01/30/2008 14:45:52.266 [ERROR] [Service.Data.General] Attempt to subscribe to null sequence: 1 clientId: 409BD25D-C844-71CD-4B39-CC3BDABD409D[Flex] 01/30/2008 14:45:52.266 [DEBUG] [Service.Data.General] createProxyInfoMap - sequence proxy id is stale seqId: 1 item id: {id=34} property: eventGroup[Flex] 01/30/2008 14:45:52.266 [ERROR] [Service.Data.General] Attempt to subscribe to null sequence: 1 clientId: 409BD25D-C844-71CD-4B39-CC3BDABD409D[Flex] 01/30/2008 14:45:52.266 [DEBUG] [Service.Data.General] createProxyInfoMap - sequence proxy id is still stale after refresh seqId: 1 item id: {id=34} property: eventGroup[Flex] 01/30/2008 14:45:52.267 [DEBUG] [Message.Data.page_items] After invoke service: data-service ERROR 4: ** This is similar to the first error, but this one references a class. I have looked at these classes in Java as well as their destinations and don't see anything too funky. I guess I am wondering what are the things to look for when these type of errors happen consistently.18:15:57,787ERROR LazyInitializationException:19 - failed to lazily initialize a collection of role: com.onefoot.dbocl.vo.events.EventGroupEntityVO.credOwners, no session or session was closed org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: com.onefoot.dbocl.vo.events.EventGroupEntityVO.credOwners, no session or session was closed at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializ\ ationException(AbstractPersistentCollection.java:358) at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializ\ ationExceptionIfNotConnected(AbstractPersistentCollection.java:350) at org.hibernate.collection.AbstractPersistentCollection.readSize(AbstractP\ ersistentCollection.java:97) Sorry to bombard the list with this LCDS stuff, but I haven't found too many other resources than this list to educate myself on debugging these errors. Hopefully, down the road it will help someone else as well. Thanks,- Kevin
[flexcoders] Re: container width parent container's width when vertical scrollbar present
I finally got around to testing this in Flex 3. Even with Flex 3 and setting minheight/minwidth, I still get those scrollbars. Any other possible fixes (preferably Flex 2)? Thanks --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: There's a couple of older threads in the archives on this topic. Setting minHeight/minWIdth=0 often helps From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dfalling Sent: Wednesday, January 16, 2008 2:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] container width parent container's width when vertical scrollbar present I've run into a really annoying issue... If I have a container that is higher than its parent container, it will add not only a vertical scrollbar, but also a horizontal scrollbar. It does this even if its width is set to 100% and it has plenty of room to display its contents. The really frustrating thing about this is that no matter how wide you resize the container, it will never be able to fit its contents...it's always missing the same amount of space. To test, simply use the following code. Note the horizontal scrollbar that will not go away. mx:Canvas width=90% height=400 mx:Canvas width=100% height=440/ /mx:Canvas
Re: [flexcoders] Re: Picnik photo functions/features R
In terms of applying traditional per-pixel manipulations - can you be more specific in possibly which and how? As much as you can tell. It's been a long time since I've done post-processing on an array of bytes (mode 13h, anyone?), but the basic idea is this: 1. Start at the beginning of the array. 2. Scan left to right, top to bottom. 3. With each pixel, calculate it's new color based on it's current color and the color of it's neighbors to the left, right, above and below. 4. Write the new pixel value into a new buffer. 5. Repeat. This basic approach manifests itself as the generic convolution filter where you supply a grid of values (3x3, 4x4, 5x5, etc.) where each value is multiplied and/or added (scale and shift) and then combined (summed, averaged, min, max) to get the final pixel. Wikipedia should be able to fill in some details. As far as specific formulas... look for some classic graphics programming books, mostly from the 80's or early 90's when this stuff was done in software and not hardware (though if you really want, some modern pixel shader stuff is applicable though it may be a bit heavy). Troy.
[flexcoders] Re: Autocenter a form
Try: mx:Canvas label=Cause width=100% height=100% id=cause mx:HBox width=100% horizontalAlign=center accidents:causes id=Cause/ /mx:HBox /mx:Canvas --- In flexcoders@yahoogroups.com, markgoldin_2000 [EMAIL PROTECTED] wrote: Is there a way to center a form horizontally? Here is my code: mx:Canvas label=Cause width=100% height=100% id=cause mx:HBox horizontalAlign=center accidents:causes id=Cause/ /mx:HBox /mx:Canvas where causes is an mxml component based on a form. When I run this code the form is positioned on the left side of the box. Thanks
Re: [flexcoders] Re: Executing local java
Thank you guys, Artemis looks like it is what I wanted. Using javax.xml.ws.Endpoint looks good too. -- Jhonny Everson
[flexcoders] How do I alternate labeling tickmarks on a linechart?
I want the x-axis to have tickmark labels every 3 tickmarks like this: _60636669727578_ What I get now by default is this: __60_61_62_63_64_65_66_67_68_69_70_71_72_73_74_75_76_77_78 Any help would be appreciated Tony
Re: [flexcoders] Re: container width parent container's width when vertical scrollbar present
I've found the same as you, I tried all sorts of things and couldn't really find a nice solution. Perhaps there's some way I don't know of to get the equivalent of HTML's clientWidth and use that like width={ parent.clientWidth} instead of width=100%... I usually either set a verticalscrollbarpolicy of either off or on where I butt up against this problem. -Josh On Jan 31, 2008 9:55 AM, dfalling [EMAIL PROTECTED] wrote: I finally got around to testing this in Flex 3. Even with Flex 3 and setting minheight/minwidth, I still get those scrollbars. Any other possible fixes (preferably Flex 2)? Thanks --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: There's a couple of older threads in the archives on this topic. Setting minHeight/minWIdth=0 often helps From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of dfalling Sent: Wednesday, January 16, 2008 2:43 PM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] container width parent container's width when vertical scrollbar present I've run into a really annoying issue... If I have a container that is higher than its parent container, it will add not only a vertical scrollbar, but also a horizontal scrollbar. It does this even if its width is set to 100% and it has plenty of room to display its contents. The really frustrating thing about this is that no matter how wide you resize the container, it will never be able to fit its contents...it's always missing the same amount of space. To test, simply use the following code. Note the horizontal scrollbar that will not go away. mx:Canvas width=90% height=400 mx:Canvas width=100% height=440/ /mx:Canvas -- Good people will do good things, and bad people will do bad things. But for good people to do bad things—that takes religion. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]