[flexcoders] How to implement HTTPService? and when to use it?
Hi, Can anyone tell me how to implement HTTPService and when to use it. My requirement is i am developing an web application which is used in salesforce.com. for each page i have created login method and accessing the salesforce connection object, i want to restrict multiple login. For that i have tried implementing Singleton class, but unfortunetly it is working in test project but not in actual project is there anyway to restrict multiple logins in each page. In main application i created the login method and displaying the another mxml component based on the roles and rights. I want to reuse the salesforce connection object in each mxml component. how to achieve it.. Thanks in advance Regards Girish Get the freedom to save as many mails as you wish. To know how, go to http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html
Re: [flexcoders] Re: Actionscript: Copy an Object or Dictionary
On Friday 30 Nov 2007, polestar11 wrote: for each(item in myDictionary) { newDict[?] = item; } newDict[item]=myDict[item]; -- Tom Chiverton Helping to continually reinvent essential channels on: http://thefalken.livejournal.com Please note, as of 10th December 2007 the registered office address of Halliwells LLP will be at 3 Hardman Square, Spinningfields, Manchester, M3 3EB 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 St James's Court Brown Street Manchester M2 2JF. 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] How to improve BitmapData processing speed?
Hello all, I am processing a bitmap data in Flex 3 beta 2. I want to do something to the pixels so I need to get them all and add my action to them. But I found it is very slow if I get pixels one by one by using two for loop and getPixel() method. Of course the setPixel() method is also slow. Then I try the getPixels() to gain a byteArray. It's fast but I still need to loop the byte array and readUnsignedInt() to get every color pixel and set them back. This also takes me much time. Is there any way to make it faster or I just use the wrong method to do such things? Thanks. == Make Every Day Count Larry Zhang
[flexcoders] Flex Preloader, not displaying immediately
Hi There I'm experiencing some issues with the default Flex preloader. It used to display immediately in our application but now recently as the app loads there is a blank white screen for the bulk of of the upload the preloader displays for a short instance just before the app load completes. I used Charles to simulate a slow download speed - although not sure how accurate an experience it will present - and it shows a white screen while downloading the bulk of the main swf. I have tried initializing adding the main view to the stage in the onComplete event, but there isnt much difference. Our app is quite large (2mb+) and there are a lot of data connections being made in the app's initialize event. The only things that have changed since we noticed the preloader not appearing immediately is upgrading to FlexBuilder 3 beta 2 and our app getting slightly bigger. Any suggestions? Cheers Tracy
Re: [flexcoders] Verifing URL before setting it to the source of VideoDisplay
I've actually had so much problems with this that I decided to replace my VideoDisplay instance each time I load a video (and delete the old one). If you go this route it's important that you: - remove all event listeners from it - set .source = - call .load() on the empty source .. before removing the instance .. or else it may start sending events or continue loading in the background. - Bjørn On 03/12/2007, Nadeem Manzoor [EMAIL PROTECTED] wrote: hello All I am in a big trouble, problem is i have developed a video player in flex. It works fine. But an incorrect URL is passed to the player , it troughs an error (connection Error) but after that it does not even load a correct flv. how can i solve this problem .. I know there must be a simple solution for that .. Can i verify a url before setting it to the source property of videoDisplay Thanks in Advance, -- Regards, Nadeem Manzoor -- http://www.juicability.com - flex blog http://www.43min.com - funny movies
[flexcoders] how does import statement,work? a possible fb bug
hi all; in my cairngrom application, i have many classes and some of them has the same name but of course diffrent packages. i autogenerate code, so to not to let ambiguity, i alway use classes with their packages. e.g. instead of writing var foo:Foo; i write var foo:tr.com.sth.vo.Foo; the compiler give and interesting error, saying that con not recognize tr (my initial package name); but when i go to the end of tr.com.sth.vo.Foo and press ctrl+space after waiting seconds, and rebuilt; the error goes! (without any change in the source). i'm using beta2 on eclipse. i think the compiler gets confused, but what can be the reason for this, are there tips to overcome?? thanks...
Re: [flexcoders] creationComplete Not Firing
On Friday 30 Nov 2007, urmacboy wrote: We're experiencing an interesting problem where the function in the creationComplete attribute in the Application tag fails to run. You've verified this how ? By setting a breakpoint on the first line in the debugger ? -- Tom Chiverton Helping to adaptively facilitate second-generation information on: http://thefalken.livejournal.com Please note, as of 10th December 2007 the registered office address of Halliwells LLP will be at 3 Hardman Square, Spinningfields, Manchester, M3 3EB 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 St James's Court Brown Street Manchester M2 2JF. 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] Rails routes and Flex module, relative path?
On Friday 30 Nov 2007, nxzone wrote: The module.swf is not found because he look in the wrong folder. Main.swf and Module.swf are in the root folder. Post Your Code. -- Tom Chiverton Helping to dynamically promote granular metrics on: http://thefalken.livejournal.com Please note, as of 10th December 2007 the registered office address of Halliwells LLP will be at 3 Hardman Square, Spinningfields, Manchester, M3 3EB 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 St James's Court Brown Street Manchester M2 2JF. 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] Accessing Microsoft XLS from Flex.
Hi Guys I have a Microsoft Excel file with 2000 rows of data, which I want to load in a Flex app. Basically it is something like a shopping cart, where a user can say that I want to search for products with certain costs and certain features.So the Flex app will load all the data at the client side and then will apply filters on the data. My questions are: 1. Is there someway that I can read the XLS file directly into the Flex app? 2. What is the best practice if you have large set of data on which you want to apply filtering in the Flex app? 3. Am I better off by writing some server side Java code to query the XLS file (or should I convert it into a database)? Any ideas would be greatly appreciated. Regards -- Prayank Swaroop http://www.prayank.net Loving is Living!
[flexcoders] Embedded SWFs and Fonts
Hi Flexcoders, I've got a slightly obscure objective concerning Embedded SWFs and Fonts in ActionScript 3 Projects. Basically I want to be able to create several SWFs (probably in Flash) which can be embedded in ActionScript 3 projects and styled. I.e. I want to be able to change the fonts used in the SWF. The tricky part is, I don't want to embed the fonts directly inside the embedded SWFs — I want to embed them in the parent application so they can be shared across the embedded SWFs. The goal is to keep all SWFs as small as possible. Can this be done with SWFs created in Flash 8? What about Flash 9 CS 3? Cheers, Lach smime.p7s Description: S/MIME cryptographic signature
[flexcoders] Populating data into Treeview from salesforce database
Hi I am using salesforce as database. I want to populate treeview same as [ Forecast hirarchy in salesforce database]. My question is what is the best way to populate the treeview with those forecast hirarchy values. User RolesRights are in one table and the corresponding UserNames are in another table. Example: There can be multiple adminPersons, for each adminPerson there will be reporting managers for each manager there can be subreporting persons etc., etc., sample structure given below Admin1 |-- Manager1 |-- ReportingPerson1 |-- ReportingPerson2 |-- Manager2 |-- ReportingPerson3 |-- ReportingPerson4 |-- ReportingPerson5 |-- Manager3 |-- ReportingPerson1 |-- ReportingPerson6 |-- ReportingPerson7 |-- ReportingPerson8 |-- Manager4 |-- ReportingPerson2 Admin2 |-- Manager5 |-- ReportingPerson1 |-- ReportingPerson2 |-- Manager6 |-- ReportingPerson3 |-- ReportingPerson4 |-- ReportingPerson5 Regards Girish Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/
[flexcoders] Red5 chat - clients do not get notified when server is changing data in the SO
I use this chat here : http://renaun.com/blog/2006/10/13/111/ I have a problem : when I update the shared object on the serverside, the clients connected do not receive notifications in the SyncEvent.SYNC handler. so.beginUpdate(); so.setAttribute(testAttribute, testValue); so.removeAttribute(Three); so.endUpdate(); PS: if I edit the shared object's data content on the client side, I receive notifications on all users in the SyncEvent.SYNC handler. so.data.testClient = testValue; so.setDirty(testClient); can somebody help? thx! :D
[flexcoders] Sorting XML
var FiltersXML:XML = Filters Filter id=102 NameImpact Analysis/Name Category0/Category DerivedFrom2/DerivedFrom /Filter Filter id=100 NameNo Filter/Name Category0/Category DerivedFrom0/DerivedFrom /Filter Filter id=101 NameRoot Cause Analysis/Name Category0/Category DerivedFrom1/DerivedFrom /Filter Filter id=103 NameTrace relation/Name Category0/Category DerivedFrom3/DerivedFrom /Filter Filter id=104 NameShortest Path/Name Category0/Category DerivedFrom4/DerivedFrom /Filter /Filters; How can i sort this XML based on Category, DerivedFrom in the sucessive order. Thanks, Srikanth
Re: [flexcoders] Verifing URL before setting it to the source of VideoDisplay
Thanks bjorn Its hard to implement what you have suggested as i have created some states and there are alot of listener attached to videoDisplay. Do i need to change the instance name of the videoDisplay every time. ? I will give it a shot but i am still looking for a simple solution Thanks On 12/3/07, bjorn - [EMAIL PROTECTED] wrote: I've actually had so much problems with this that I decided to replace my VideoDisplay instance each time I load a video (and delete the old one). If you go this route it's important that you: - remove all event listeners from it - set .source = - call .load() on the empty source .. before removing the instance .. or else it may start sending events or continue loading in the background. - Bjørn On 03/12/2007, Nadeem Manzoor [EMAIL PROTECTED] wrote: hello All I am in a big trouble, problem is i have developed a video player in flex. It works fine. But an incorrect URL is passed to the player , it troughs an error (connection Error) but after that it does not even load a correct flv. how can i solve this problem .. I know there must be a simple solution for that .. Can i verify a url before setting it to the source property of videoDisplay Thanks in Advance, -- Regards, Nadeem Manzoor -- http://www.juicability.com - flex blog http://www.43min.com - funny movies -- Regards, Nadeem Manzoor
[flexcoders] Re: Red5 chat - clients do not get notified when server is changing data in the
my bad ! I forgot to take the scope each time.. the code before setting the attribute should look something like this : IConnection conn = Red5.getConnectionLocal(); IScope scope = conn.getScope(); ISharedObject so = getSharedObject(scope, CHAT_SO);
Re: [flexcoders] Advice on AS3 and Flex map project
Have a look at the Flex_Component_Kit_for_Flash_CS3: http://labs.adobe.com/wiki/index.php/Flex_Component_Kit_for_Flash_CS3 http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetailloc=en_usextid=1273018 - Original Message - From: bebethschenk [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, December 03, 2007 12:59 PM Subject: [flexcoders] Advice on AS3 and Flex map project I recently inherited some code for a basic mapping project that the client wants done in Flex. The previous programmer created all the artwork for the map and classes for the symbols in AS3. I've done projects where you import symbols from .swfs but never where there's code/classes associated with those symbols. So, my question is how to best proceed. A lot of work has been done, so I'd like to reuse the code, but I'm not sure how. From my reading it seems that importing .swfs with actionscript 3.0 code is not easy. Any suggestions? many thanks, bebeth -- 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] Re: Preserving History when leaving and returning to Flex
While working on a small test case for this, I realized what was happening. The pages beyond the Login screen have a security check that looks for a user_id variable (stored in the application model). When the user leaves the Flex app and then returns, the model variables are lost and so trying to go directly back to the page results in the user being redirected to the Login page. So, I'm now storing some session info in the database then passing the session id back into the Flex app and having that re-establish the necessary model variables so that the user ends up back on the correct page. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Flex should reload the saved state. Can you create a small test case? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of byte.sensei Sent: Wednesday, November 28, 2007 2:37 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Preserving History when leaving and returning to Flex I have History Management working on a Flex app (ViewStack), but then I've got a NavigateToURL() call that leaves the Flex app and opens an external URL. The problem is, when you click Back after leaving Flex, it looks like the History Manager no longer works and it just returns you to the default/initial state instead of the saved/history state. I noticed the URL still has the state URL variables/data in it (e.g. #app=a1ceeac2-selectedIndex=4) but Flex seems to be ignoring this URL data and just loads the default/initial state. Is there a way to have Flex reload the saved state when returning from an external URL? To say this another way, assume the following path of a User: 1) Login Page 2) Main Menu Page 3) Product Category Page 4) Product Detail Page 5) External Product Link [NOT Flex -- uses NavigateToURL()] The forward/back buttons work fine between #1 and #4, but once the user navigates to #5, the back button returns them to #1 instead of #4 -- but I want to take the user back to #4. Note: one workaround to this would be to open a new window by using _blank for the target of NavigateToURL(), but in my scenario this is undesirable.
[flexcoders] Advice on AS3 and Flex map project
I recently inherited some code for a basic mapping project that the client wants done in Flex. The previous programmer created all the artwork for the map and classes for the symbols in AS3. I've done projects where you import symbols from .swfs but never where there's code/classes associated with those symbols. So, my question is how to best proceed. A lot of work has been done, so I'd like to reuse the code, but I'm not sure how. From my reading it seems that importing .swfs with actionscript 3.0 code is not easy. Any suggestions? many thanks, bebeth
[flexcoders] How to set the modal popup not change the screen to some grayish color?
Hello all: I used the modal popup to require user to do something. But the default grayish setting that changed the screen make the system not look nice in some situation. In Flash8, the popup window (for example, Alert, Window) does not have that grayish color setting when modal popup is created. So, how to change that in Flex2? Thanks a lot! - Get easy, one-click access to your favorites. Make Yahoo! your homepage.
[flexcoders] How to make the modal popup not set the rest of the screen gray out color?
Hello all: When use the PopUpManager.createPopUp, if I set the modal to false, everything on screen not change, just popup the new window. When I set the modal to true, the popup success, and modal is also what I want, but it set the rest of the screen kind of grayish color to indicate it's disabled for access. But, I want a modal popup window, but I do not want that grayish color, any solutions? Thanks a LOT!!
[flexcoders] Re: AMF question
You can try GraniteDS : http://www.graniteds.org It is a free, open-source alternative to Adobe LiveCycle Data Services. --- In flexcoders@yahoogroups.com, jovialrandor [EMAIL PROTECTED] wrote: I am currently using J2EE as the server side language. --- In flexcoders@yahoogroups.com, Ryan Campbell ryan@ wrote: What do you currently use for your server-side language? On 2-Dec-07, at 1:51 PM, jovialrandor wrote: I have an application that imports various data from various data sources. I have about 14 httpservice calls. Apparently this has slowed down my app significantly. I heard that using the messaging framework AMF can get large amounts of data in binary format which is quicker. However I have not found any good example online to learn from. Does anyone know where I can get started with AMF?
[flexcoders] Re: Runtime MXML compiler
Hi, Yes, I will compile mxml at runtime. After some testing, MXMLCompilerServlet from Graniteds works well with simple mxml file, so with an open source Flex3 compiler, it should be ok. Is there a more precise date than early 2008 ? Allan, if it is possible, can you give more details on how you implemented it ? If it is possible, could you give a look on the org.granite.messaging.webapp.MXMLCompilerServlet implementation (http://www.graniteds.org) and say us how different yours is ? --- In flexcoders@yahoogroups.com, DreamCode [EMAIL PROTECTED] wrote: Hey Sebastien/Gordon I'm not sure I understand what you're asking mxml compilation at runtime? Are you going to compile a page when a request comes in? As for the dynamic creation of content based on custom xml, that is quite nice. It's a big part of my current spare time project. The only real issue so far I have had, is that in order for me to generate the UI, all custom components needed to be referenced once inside my code. So even though I have this: import dc.digr.ui.comp.*; I still need this: *var* a:digrButton = *new* digrButton (); *var* b:digrButtonLarge = *new* digrButtonLarge(); *var* c:digrButtonIconOnly = *new* digrButtonIconOnly(); *var* d:digrButtonMini = *new* digrButtonMini(); for all the custom ui components in the beginning of my code to avoid a runtime error . Gordon, if you have some wisdom on this . Spread the joy! J
[flexcoders] Re: Runtime MXML compiler
Hi, It seems my previous answer has never been received, so I send it again. You are right, my need is to compile a page when a request comes in. GraniteDS (http://www.graniteds.org) provide a MXMLCompilerServlet that compile MXML at runtime if the swf does not exist. I did some simple test, and it works (source code is available on this page : http://code.google.com/p/igenko/wiki/RuntimeMxmlCompiler). Allan, could you say me how this solution is different from yours ? Gordon, I plan to improve this MXMLCompilerServlet in order to use it in Igenko. Could you give me your advice on how it could be improved : - Currently, mxmlc is ran as an external java program. Where could I find some information/samples to run it directly in the servlet container ? - I have asked to the GraniteDS project leader what was the major issue with this mxmlc runtime compiler, and he answered me (http://tech.groups.yahoo.com/group/graniteds/message/832) that he couldn't find any way to ask mxmlc to list imports in as or mxml files. Do you have any idea for that ? - Any other idea ? Regards, Sébastien Deleuze --- In flexcoders@yahoogroups.com, DreamCode [EMAIL PROTECTED] wrote: I don't think the result of that is inside the acceptable levels for a content management system. but hey... what do I know I would. and I did for my project choose creating it in AS3 based on database/xml content. --Allan On Dec 2, 2007 7:26 PM, Gordon Smith [EMAIL PROTECTED] wrote: Are you going to compile a page when a request comes in? That's the impression I got of what Sébastien wants to do. all custom components needed to be referenced once inside my code If you're creating components via their class name, with code like var someClass:Class = Class(getDefinitionByName(someClassName)); var instanceOfSomeClass:Object = new someClass(); there is no way that the MXML compiler/linker can be smart enough to figure out what class names might be encountered at runtime. Therefore it can't include these classes in the SWF unless you give it some help. One way is to use vars like you show to create dependencies. Another way is to use the -include-classes compilation option. For some reason that I don't understand, this is only an option for compc when you make a SWC, not for mxml when you make a SWF. But you can make a SWC with all your custom classes and then link that SWC in with -include-libraries. Another possibility is to put all your custom classes into a module and load it. Gordon Smith Adobe Flex SDK Team -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *DreamCode *Sent:* Sunday, December 02, 2007 2:38 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Runtime MXML compiler Hey Sebastien/Gordon I'm not sure I understand what you're asking mxml compilation at runtime? Are you going to compile a page when a request comes in? As for the dynamic creation of content based on custom xml, that is quite nice. It's a big part of my current spare time project. The only real issue so far I have had, is that in order for me to generate the UI, all custom components needed to be referenced once inside my code. So even though I have this: import dc.digr.ui.comp.*; I still need this: *var *a:digrButton = *new* digrButton (); *var *b:digrButtonLarge = *new* digrButtonLarge(); *var *c:digrButtonIconOnly = *new* digrButtonIconOnly(); *var* d:digrButtonMini = *new* digrButtonMini(); for all the custom ui components in the beginning of my code to avoid a runtime error . Gordon, if you have some wisdom on this . Spread the joy! J
[flexcoders] customizing flex download progress bar.
Anyone have any good resources / examples of how you can completely overhaul what the download progress bar looks like / functions. I'm able to hook into some of the progress events but haven't found a good example of how to change what it actually looks like.. ?? Thanks ..
RE: [flexcoders] Application without MXML: Is it possible?
I'd be happy to share that information with you. My main reasons for preferring straight Actionscript over MXML are: 1. My editor of choice, Visual SlickEdit, which I've used since my C days in the last millenium, does not have an MXML mode. It provides nice code completion, syntax highlighting, autoindent, etc. for XML or Actionscript separately, but not together. So when I have to work with MXML, I usually pull the Actionscript out into a separate include file. 2. I don't like to fuss with namespaces and manifest files to use my own components in MXML, especially for one-offs. 3. As a matter of personal preference, I prefer working with code, with all of its curly braces, parentheses, function calls, etc., over XML. As far as the extra verbosity of code goes, I have some utility functions which make it comparable to MXML. For example, I have a utility function that will add a UIComponent to its parent container, and set any number of properties or styles on it, all in a single function call. 4. As a corollary to #3, I prefer that the code that ultimately is compiled is written (and hence known) by me, rather than generated, so if it doesn't work right, I can more easily diagnose the problem. I rarely use databinding. Instead, I use old-fashioned assignment statements, that execute exactly where and when I want them to. I previously worked with a guy who was committed to doing things in The Flex Way, who bound all of the controls on a GUI form to the fields of the object it was meant to modify. But since the form had a Cancel button, he also had to write a lot of code that would save a snapshot of the properties of the object so he could restore the object's original state if the Cancel button was clicked. When I had to go back and fix the numerous bugs in that form after he left, I ripped out all of the binding and restore code, and simply updated the object's properties when the OK button was clicked. The end result was much less code that was far more understandable. Gordon Smith [EMAIL PROTECTED] wrote: I don't see why the Flex team couldn't build a minimal set of defaults into the Application class that would allow it to be used outside of MXML. We could make this work (although we won't have time before Flex 3 ships). Please file an enhancement request at http://bugs.adobe.com/flex if you feel it is important for a future release. But I'm always interested in why some people avoid MXML. What's your reason? - Gordon - From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dave Glasser Sent: Sunday, December 02, 2007 12:47 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Application without MXML: Is it possible? I was already aware of that, but forgoing the use of UIComponents is not really an option for me. I don't see why the Flex team couldn't build a minimal set of defaults into the Application class that would allow it to be used outside of MXML. But absent that, I think the API docs should clearly indicate that the only practical way to instantiate and use the class is through MXML. Alex Harui [EMAIL PROTECTED] wrote: Not all applications have to have mx:Application at the top level. You can start with Sprite if you want. Thats what happens when you create an ActionScript project in Flex Builder. But then you cant u! se most of the mx: components. - From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dave Glasser Sent: Saturday, December 01, 2007 2:06 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Application without MXML: Is it possible? I looked at the generated actionscript and it does look like there's a lot going on, and it's not worth trying to make it work without MXML. Maybe I'll log a bug report requesting that they say in the API doc that the Application class can only (as a practical ! matter) be used via the mx:Application MXML tag. hank williams [EMAIL PROTECTED] wrote: Is what I'm trying to do impossible, at least without adding some amount of setup code that is normally generated by the MXML preprocessor and isn't documented anywhere? __ As I understand it, this is exactly correct. If you compile an MXML with the option on that generates actionscript (I forget how you do this) you will see a lot of generated code even in an MXML hello world. Regards, Han
[flexcoders] Re: ***************************TWO WAY SSL AND REPORTING IN FLEX **************
--- In flexcoders@yahoogroups.com, yourName [EMAIL PROTECTED] wrote: Q1)Can any body tell how to implement TWO WAY SSL in flex/java application.. can any one send me link or sample code .. Q2) Plz tell me about reporting in flex which reporting can i use Thanks In Advance... Multiple asterisks and capital letters in your posting titles are not necessary to get your messages read by the group. That's why nobody else uses them.
Re: [flexcoders] Advice on AS3 and Flex map project
On Monday 03 Dec 2007, bebethschenk wrote: artwork for the map and classes for the symbols in AS3. I've done You mean like the way Flex skins are done ? Or as Embed's ? Maybe some code would help ... -- Tom Chiverton Helping to adaptively supply high-yield meta-services on: http://thefalken.livejournal.com Please note, as of 10th December 2007 the registered office address of Halliwells LLP will be at 3 Hardman Square, Spinningfields, Manchester, M3 3EB 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 St James's Court Brown Street Manchester M2 2JF. 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] Re: Modules + CSS issues, what are recommend practices
Dave, Have you tried compiling the css file into a separate .swf file and loading it at runtime in the application via StyleManager.loadStyleDeclarations()? This ensures all style definitions are available at runtime, not just the ones for components that are referenced in the application at compile time. oliver --- In flexcoders@yahoogroups.com, dave_defusion [EMAIL PROTECTED] wrote: We have an application with each core section of the application being a module (as some users will get access to a restricted set of the app sections). We have all the CSS declared (via mx:Style source=... / tags) in the application MXML file. We then compile using a link report to optimize each of the modules for our application and everything seems to work fine. However now the application is nearly finished we just started to really skin the application (we started with the OSX stylesheet from scalenine and tweaked from there) everything looked ok until we noticed some oddities. The things we noticed were that you could click on a textarea within a module but you couldn't type into it and wherever date choosers are used we got the OSX style chrome on the date chooser but couldn't see nor choose any dates. Removing the OSX stylesheet fixed both of these problems. I tried tweaking the OSX stylesheet but that did not resolve the problem the only thing that I did which resolved all these strange issues was to include the OSX stylesheet within each of the modules themselves. I know I get a few warnings when compiling stating that certain CSS declarations aren't going to be evaluated, but the fact that the styles for things like the date chooser are in the app when the CSS is only in the main application is really confusing.
Re: [flexcoders] Re: Preserving History when leaving and returning to Flex
What about using local shared object, is that an option for you ? byte.sensei wrote: While working on a small test case for this, I realized what was happening. The pages beyond the Login screen have a security check that looks for a user_id variable (stored in the application model). When the user leaves the Flex app and then returns, the model variables are lost and so trying to go directly back to the page results in the user being redirected to the Login page. So, I'm now storing some session info in the database then passing the session id back into the Flex app and having that re-establish the necessary model variables so that the user ends up back on the correct page. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Flex should reload the saved state. Can you create a small test case? From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com] On Behalf Of byte.sensei Sent: Wednesday, November 28, 2007 2:37 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Preserving History when leaving and returning to Flex I have History Management working on a Flex app (ViewStack), but then I've got a NavigateToURL() call that leaves the Flex app and opens an external URL. The problem is, when you click Back after leaving Flex, it looks like the History Manager no longer works and it just returns you to the default/initial state instead of the saved/history state. I noticed the URL still has the state URL variables/data in it (e.g. #app=a1ceeac2-selectedIndex=4) but Flex seems to be ignoring this URL data and just loads the default/initial state. Is there a way to have Flex reload the saved state when returning from an external URL? To say this another way, assume the following path of a User: 1) Login Page 2) Main Menu Page 3) Product Category Page 4) Product Detail Page 5) External Product Link [NOT Flex -- uses NavigateToURL()] The forward/back buttons work fine between #1 and #4, but once the user navigates to #5, the back button returns them to #1 instead of #4 -- but I want to take the user back to #4. Note: one workaround to this would be to open a new window by using _blank for the target of NavigateToURL(), but in my scenario this is undesirable. -- Ben Marchbanks ::: alQemy ::: transforming information into intelligence http://www.alQemy.com ::: magazooms ::: digital magazines http://www.magazooms.com Greenville, SC 864.284.9918
Re: [flexcoders] Re: ***************************TWO WAY SSL AND REPORTING IN FLEX **************
q1) the way i understand it is when you establish a connection via https data communication is encrypted in both directions. in your domain you need to redirect the user from domain http://myserver.com to https://myserver.com. Note the s in https. http://en.wikipedia.org/wiki/Transport_Layer_Security you can use the httpservice class to send and receive data and there are additional classes like RemoteObject, etc search for examples online. q2) that is a broad question. flex has charting and datagrid components. flex 3 enhances both of these components with many more additional features. On Dec 3, 2007 8:36 AM, candysmate [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, yourName [EMAIL PROTECTED] wrote: Q1)Can any body tell how to implement TWO WAY SSL in flex/java application.. can any one send me link or sample code .. Q2) Plz tell me about reporting in flex which reporting can i use Thanks In Advance... Multiple asterisks and capital letters in your posting titles are not necessary to get your messages read by the group. That's why nobody else uses them.
[flexcoders] Custom Scrollable Accordion Menu Control - V1 Demo Source
I just wanted to let anyone who might be interested know that I finally have a working demo with source available for the custom scrollable accordion style menu control I've been working on. You can check out the series of posts on flexcomponents here: http://tech.groups.yahoo.com/group/flexcomponents/message/3098 http://tech.groups.yahoo.com/group/flexcomponents/message/3098 I'd love to get any comments on ways I could improve this, if you think it's dumb, or if I really did this the wrong way! The working demo can be seen here: Scrollable Accordion Menu Custom Control http://www.useflashmore.com/flex-as3-scrollable-accordion-menu/scrollab\ le-accordion-menu-custom-component/main.html To view the coolness, open the menu and click on the Photo Participants button with your browser somewhere sized close to the main image. The other cool thing is the way the menu cascades tweens instead of tweening both containers at the same time like the accordion. Also, if anyone wants to make any comments on my blog, you can read through my painful dev process here: http://www.useflashmore.com/blog http://www.useflashmore.com/blog Cheers, Justin Winter useflashmore.com http://www.useflashmore.com/
[flexcoders] Custom Scrollable Accordion Menu Control - V1 Demo Source
I just wanted to let anyone who might be interested know that I finally have a working demo with source available for the custom scrollable accordion style menu control I've been working on. You can check out the series of posts on flexcomponents here: http://tech.groups.yahoo.com/group/flexcomponents/message/3098 http://tech.groups.yahoo.com/group/flexcomponents/message/3098 I'd love to get any comments on ways I could improve this, if you think it's dumb, or if I really did this the wrong way! The working demo can be seen here: Scrollable Accordion Menu Custom Control http://www.useflashmore.com/flex-as3-scrollable-accordion-menu/scrollab\ le-accordion-menu-custom-component/main.html To view the coolness, open the menu and click on the Photo Participants button with your browser somewhere sized close to the main image. The other cool thing is the way the menu cascades tweens instead of tweening both containers at the same time like the accordion. Also, if anyone wants to make any comments on my blog, you can read through my painful dev process here: http://www.useflashmore.com/blog http://www.useflashmore.com/blog Cheers, Justin Winter useflashmore.com http://www.useflashmore.com/
RE: [flexcoders] Embedded SWFs and Fonts
Not sure about Flash 8. For Flash 9, see registerFont -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Lachlan Cotter Sent: Monday, December 03, 2007 3:42 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Embedded SWFs and Fonts Hi Flexcoders, I've got a slightly obscure objective concerning Embedded SWFs and Fonts in ActionScript 3 Projects. Basically I want to be able to create several SWFs (probably in Flash) which can be embedded in ActionScript 3 projects and styled. I.e. I want to be able to change the fonts used in the SWF. The tricky part is, I don't want to embed the fonts directly inside the embedded SWFs - I want to embed them in the parent application so they can be shared across the embedded SWFs. The goal is to keep all SWFs as small as possible. Can this be done with SWFs created in Flash 8? What about Flash 9 CS 3? Cheers, Lach
[flexcoders] Re: AMF question
--- In flexcoders@yahoogroups.com, bouiaw [EMAIL PROTECTED] wrote: You can try GraniteDS : http://www.graniteds.org It is a free, open-source alternative to Adobe LiveCycle Data Services. --- In flexcoders@yahoogroups.com, jovialrandor jovialrandor@ wrote: I am currently using J2EE as the server side language. --- In flexcoders@yahoogroups.com, Ryan Campbell ryan@ wrote: What do you currently use for your server-side language? On 2-Dec-07, at 1:51 PM, jovialrandor wrote: I have an application that imports various data from various data sources. I have about 14 httpservice calls. Apparently this has slowed down my app significantly. I heard that using the messaging framework AMF can get large amounts of data in binary format which is quicker. However I have not found any good example online to learn from. Does anyone know where I can get started with AMF? It is what I have been using, and it works spectacularly. My only initial problem was the fact that my J2EE app was a JSP/JSF app, so I wrote a FilterServlet to create a faces context for the session automagically. Since then, it works perfect, and fast.
RE: [flexcoders] Flex Preloader, not displaying immediately
Do you have a custom preloader? If too much code is brought in by the preloader, it will delay it. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of polestar11 Sent: Monday, December 03, 2007 2:04 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex Preloader, not displaying immediately Hi There I'm experiencing some issues with the default Flex preloader. It used to display immediately in our application but now recently as the app loads there is a blank white screen for the bulk of of the upload the preloader displays for a short instance just before the app load completes. I used Charles to simulate a slow download speed - although not sure how accurate an experience it will present - and it shows a white screen while downloading the bulk of the main swf. I have tried initializing adding the main view to the stage in the onComplete event, but there isnt much difference. Our app is quite large (2mb+) and there are a lot of data connections being made in the app's initialize event. The only things that have changed since we noticed the preloader not appearing immediately is upgrading to FlexBuilder 3 beta 2 and our app getting slightly bigger. Any suggestions? Cheers Tracy
RE: [flexcoders] How to improve BitmapData processing speed?
Image processing is always CPU intensive. Flash is not optimized for it either. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Larry Zhang Sent: Monday, December 03, 2007 2:03 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to improve BitmapData processing speed? Hello all, I am processing a bitmap data in Flex 3 beta 2. I want to do something to the pixels so I need to get them all and add my action to them. But I found it is very slow if I get pixels one by one by using two for loop and getPixel() method. Of course the setPixel() method is also slow. Then I try the getPixels() to gain a byteArray. It's fast but I still need to loop the byte array and readUnsignedInt() to get every color pixel and set them back. This also takes me much time. Is there any way to make it faster or I just use the wrong method to do such things? Thanks. == Make Every Day Count Larry Zhang
RE: [flexcoders] Sorting XML
Try XMLListCollection From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of srikanth_reddy_007 Sent: Monday, December 03, 2007 5:01 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Sorting XML var FiltersXML:XML = Filters Filter id=102 NameImpact Analysis/Name Category0/Category DerivedFrom2/DerivedFrom /Filter Filter id=100 NameNo Filter/Name Category0/Category DerivedFrom0/DerivedFrom /Filter Filter id=101 NameRoot Cause Analysis/Name Category0/Category DerivedFrom1/DerivedFrom /Filter Filter id=103 NameTrace relation/Name Category0/Category DerivedFrom3/DerivedFrom /Filter Filter id=104 NameShortest Path/Name Category0/Category DerivedFrom4/DerivedFrom /Filter /Filters; How can i sort this XML based on Category, DerivedFrom in the sucessive order. Thanks, Srikanth
RE: [flexcoders] Using DateField as itemEditor for DataGrid column
Can you post a mini-example? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of carl_steinhilber Sent: Sunday, December 02, 2007 11:43 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Using DateField as itemEditor for DataGrid column I'm having a problem using a DateField as a itemRenderer/editor for a column in a dataGrid. If I set the DateField as my itemEditor, everything works perfectly. But if I set the DateField as my itemRenderer and set rendererIsEditor to true the dataGrid renders completely blank (no data in *any* field) and locks down so *nothing* is editable. In reading posts in the archives in this group and elsewhere, folks with similar issues were told to make sure the data bound to the column is of type date. But I have two issues with that: 1) if it wasn't understood as being of type date, why would it work when the dateField was set as the itemEditor and 2) I'm loading in the dataProvider for the DataGrid as a Bindable XMLListCollection from an external XML file... and I'm not sure how I can designate in XML that the node is of type date. Anyone have any info or pointers? They'd be greatly appreciated. Thanks in advance! -Carl
[flexcoders] Line Chart Zooming - data points drawn incorrectly
Hi, My application has a LineChart with a customized DateTimeAxis for displaying stock data. One of the features I am working on is the ability to zoom into a section of the chart, accomplished by adjusting the axis min/max values. The problem is that for charts showing intra-day data, when I zoom in the data points are rendered incorrectly - specifically, the distance on the x-axis between the 1st and 2nd points is much longer than it should be, with the rest of the points squashed up in the remaining space. I've already verified that the transformCache() function in my DateTimeAxis class is producing correct convertedField values, but somehow the conversion from these fractional values to actual screen coordinates is going wrong. Does anyone have any ideas about where this error can be appearing? I've looked at the CartesianTransform class, but I don't know if it's possible to use a customised version of this in my application. I hope this makes sense... thanks. Iain
RE: [flexcoders] How to set the modal popup not change the screen to some grayish color?
There's a bunch of styles that start with modalTransparency... From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Lee Sent: Monday, December 03, 2007 12:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to set the modal popup not change the screen to some grayish color? Hello all: I used the modal popup to require user to do something. But the default grayish setting that changed the screen make the system not look nice in some situation. In Flash8, the popup window (for example, Alert, Window) does not have that grayish color setting when modal popup is created. So, how to change that in Flex2? Thanks a lot! Get easy, one-click access to your favorites. Make Yahoo! your homepage. http://us.rd.yahoo.com/evt=51443/*http:/www.yahoo.com/r/hs
RE: [flexcoders] ***************************TWO WAY SSL AND REPORTING IN FLEX *********************************
I just wanted to tell you that, while I answer many questions on this forum, I do not read anything with in the title. Hopefully your questions will be answered by others. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of yourName Sent: Sunday, December 02, 2007 10:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] ***TWO WAY SSL AND REPORTING IN FLEX * Q1)Can any body tell how to implement TWO WAY SSL in flex/java application.. can any one send me link or sample code .. Q2) Plz tell me about reporting in flex which reporting can i use Thanks In Advance...
RE: [flexcoders] ItemEditors and ItemRenderers (was Re: Datagrid tab order?)
I don't know what is in that patch. Why are you using cs3 for this? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Roy J. Tang Sent: Sunday, December 02, 2007 9:11 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] ItemEditors and ItemRenderers (was Re: Datagrid tab order?) What I have is the Flex 2.0.1 patch for Flash CS3 Professional compatibility, are they compatible? i.e. I just install the hotfix 2/3 on top of it? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: That sounds like you are not using 2.0.1 Hotfix 2 or later. I cannot reproduce your problem with that release. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Stephen Roy J. Tang Sent: Wednesday, November 28, 2007 12:39 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] ItemEditors and ItemRenderers (was Re: Datagrid tab order?) Can you check my sample here: http://roytang.net/sandbox/DataGridSample.swf http://roytang.net/sandbox/DataGridSample.swf http://roytang.net/sandbox/DataGridSample.swf http://roytang.net/sandbox/DataGridSample.swf Source at http://roytang.net/sandbox/DataGridSample.mxml http://roytang.net/sandbox/DataGridSample.mxml http://roytang.net/sandbox/DataGridSample.mxml http://roytang.net/sandbox/DataGridSample.mxml When I tab starting from the textinput and all the way to the last row of the datagrid (row 14), it's still ok. But after tabbing out from row 14 the tab order becomes trapped in the onscreen checkboxes (and doesn't even follow them in the top-to-bottom left-to-right order) --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: tabEnabled is ignored for renderers/editors. The only thing that matters is editable=true on the DG and the DGColumn. You should have itemRenderer=CheckBox and rendererIsEditor=true. You don't need to set itemEditor=CheckBox. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Stephen Roy J. Tang Sent: Tuesday, November 27, 2007 7:54 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] ItemEditors and ItemRenderers (was Re: Datagrid tab order?) thanks. I appreciate the replies esp. since I can't provide my app's sample code here so I guess it's difficult for others to figure out. I guess the problem is I tried to avoid using itemEditors entirely and used itemRenderers instead, so now the tab order is all messed up and doesn't scroll. I'm going to try using itemEditors again. However, the main problem there is that I want to render the column as a checkbox and have it editable as a checkbox also. So I'll do the ff: 1. set itemRenderer=checkbox and itemEditor=checkbox. 2. set tabEnabled=false for the checkbox itemRenderer; this is so that the itemRenderers don't screw up the tab order Under the above setup, the tab order seems correct. The only issue with the above that I'm not sure how to support is that visually the column is a checkbox, but requires the user to click twice on the checkbox to toggle the value (once to enable edit mode, second time to actually edit). Is there any way to avoid this? Most of the examples of using checkbox as an itemEditor seem to use static text as the renderer. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: the default editing code handles offscreen rows. you can probably override focusinhandler and set editeditemposition the dg remembers the last position of the editor and restores editing there From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Stephen Roy J. Tang Sent: Tuesday, November 27, 2007 1:19 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Datagrid tab order? We had trouble before with having both an item renderer and an item editor for a
[flexcoders] Re: Printing a large string over multiple pages
Here is some code we use to slice up a long list and print on X# of pages. You should be able to do somethink like this... Hope the code gets formated ok // Add 2nd page displaying names of selected organizations var selectedOrgList:List = new List(); selectedOrgList.setActualSize(printJob.pageHeight, printJob.pageWidth); selectedOrgList.setStyle(fontSize,8); //selectedOrgList.dataProvider = orgList.selectedItems; var facilitiesPerPage:int = RECORDS_PER_PAGE; if (printJob.pageHeight printJob.pageWidth) { //height is less than width so we are in landscape mode and can't fit as many records per page facilitiesPerPage = LS_RECORDS_PER_PAGE; } selectedOrgList.rowCount = facilitiesPerPage; var pageCount:int = Math.ceil(orgList.selectedItems.length / facilitiesPerPage) ; var printFacilityViewHolder:Array = new Array(); chartTitle = chartTitle + \nFacility List; var sortedOrgs:Array = orgList.selectedItems; sortedOrgs.sortOn(name); for (var loopCtr:int = 0; loopCtr pageCount; loopCtr++) { var pfv:PrintFacilityView = new PrintFacilityView(); addChild(pfv); pfv.setDimensions(printJob.pageHeight, printJob.pageWidth); var startIndex:int = facilitiesPerPage * loopCtr; var endIndex:int = facilitiesPerPage * (loopCtr + 1); var pagedOrgList:Array = sortedOrgs.slice(startIndex, endIndex); selectedOrgList.styleName = facilityListStyle; selectedOrgList.dataProvider = pagedOrgList; selectedOrgList.labelField = name; pfv.facilityListView.addChild(selectedOrgList); pfv.setChartTitle(chartTitle + ( + (loopCtr + 1) + of + pageCount + )); printFacilityViewHolder[loopCtr] = pfv; printJob.addObject(pfv, FlexPrintJobScaleType.MATCH_WIDTH); } //And send the job to the printer. printJob.send(); //make the print view invisible then remove it printView.visible = false; //ATD 10/23/2006 changed to call removeChild from printView.facilityListView not printView for (loopCtr = 0; loopCtr pageCount; loopCtr++) { removeChild(printFacilityViewHolder[loopCtr]); } removeChild(printView); //selectedOrgList.visible = false; //restore the regionChartStack to its original condition restoreStack(chartSwitch, stackSelected);
[flexcoders] Re: how does import statement,work? a possible fb bug
You are probably omitting the import statement -- you are probably assuming that since you explicitly qualified the class name, the import is not necessary. In Java, if you explicitly qualify a class name in your code, then you don't need to have an import statement at the top of the file. But Flex is different: You still need the import. When you do ctrl+space, the import gets inserted for you, so that's probably why that case works. - Mike Morearty, Flex Builder team --- In flexcoders@yahoogroups.com, yigit [EMAIL PROTECTED] wrote: hi all; in my cairngrom application, i have many classes and some of them has the same name but of course diffrent packages. i autogenerate code, so to not to let ambiguity, i alway use classes with their packages. e.g. instead of writing var foo:Foo; i write var foo:tr.com.sth.vo.Foo; the compiler give and interesting error, saying that con not recognize tr (my initial package name); but when i go to the end of tr.com.sth.vo.Foo and press ctrl+space after waiting seconds, and rebuilt; the error goes! (without any change in the source). i'm using beta2 on eclipse. i think the compiler gets confused, but what can be the reason for this, are there tips to overcome?? thanks...
RE: [flexcoders] Re: Runtime MXML compiler
Currently, mxmlc is ran as an external java program. Where could I find some information/samples to run it directly in the servlet container ? As far as I know, we haven't disclosed that. The compiler classes are not yet open-source, and I think you'll have to wait a little longer. he couldn't find any way to ask mxmlc to list imports in as or mxml files You can't get the imports, but the -link-report compilation option produces an XML file with a complete dependency analysis. (You can have dependencies on classes that aren't imported, since you don't have to import a class if it is in the same package.) But can you explain why you need to know the dependencies? - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bouiaw Sent: Monday, December 03, 2007 1:43 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Runtime MXML compiler Hi, It seems my previous answer has never been received, so I send it again. You are right, my need is to compile a page when a request comes in. GraniteDS (http://www.graniteds.org http://www.graniteds.org ) provide a MXMLCompilerServlet that compile MXML at runtime if the swf does not exist. I did some simple test, and it works (source code is available on this page : http://code.google.com/p/igenko/wiki/RuntimeMxmlCompiler http://code.google.com/p/igenko/wiki/RuntimeMxmlCompiler ). Allan, could you say me how this solution is different from yours ? Gordon, I plan to improve this MXMLCompilerServlet in order to use it in Igenko. Could you give me your advice on how it could be improved : - Currently, mxmlc is ran as an external java program. Where could I find some information/samples to run it directly in the servlet container ? - I have asked to the GraniteDS project leader what was the major issue with this mxmlc runtime compiler, and he answered me (http://tech.groups.yahoo.com/group/graniteds/message/832 http://tech.groups.yahoo.com/group/graniteds/message/832 ) that he couldn't find any way to ask mxmlc to list imports in as or mxml files. Do you have any idea for that ? - Any other idea ? Regards, Sébastien Deleuze --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , DreamCode [EMAIL PROTECTED] wrote: I don't think the result of that is inside the acceptable levels for a content management system. but hey... what do I know I would. and I did for my project choose creating it in AS3 based on database/xml content. --Allan On Dec 2, 2007 7:26 PM, Gordon Smith [EMAIL PROTECTED] wrote: Are you going to compile a page when a request comes in? That's the impression I got of what Sébastien wants to do. all custom components needed to be referenced once inside my code If you're creating components via their class name, with code like var someClass:Class = Class(getDefinitionByName(someClassName)); var instanceOfSomeClass:Object = new someClass(); there is no way that the MXML compiler/linker can be smart enough to figure out what class names might be encountered at runtime. Therefore it can't include these classes in the SWF unless you give it some help. One way is to use vars like you show to create dependencies. Another way is to use the -include-classes compilation option. For some reason that I don't understand, this is only an option for compc when you make a SWC, not for mxml when you make a SWF. But you can make a SWC with all your custom classes and then link that SWC in with -include-libraries. Another possibility is to put all your custom classes into a module and load it. Gordon Smith Adobe Flex SDK Team -- *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] *On Behalf Of *DreamCode *Sent:* Sunday, December 02, 2007 2:38 PM *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* Re: [flexcoders] Runtime MXML compiler Hey Sebastien/Gordon I'm not sure I understand what you're asking... mxml compilation at runtime? Are you going to compile a page when a request comes in? As for the dynamic creation of content based on custom xml, that is quite nice. It's a big part of my current spare time project. The only real issue so far I have had, is that in order for me to generate the UI, all custom components needed to be referenced once inside my code. So even though I have this: import dc.digr.ui.comp.*; I still need this: *var *a:digrButton = *new* digrButton (); *var *b:digrButtonLarge = *new* digrButtonLarge(); *var *c:digrButtonIconOnly = *new* digrButtonIconOnly(); *var* d:digrButtonMini = *new* digrButtonMini(); for all the custom ui components in the beginning of my code to avoid a runtime error Gordon, if you have
RE: [flexcoders] Re: Runtime MXML compiler
Is there a more precise date than early 2008 ? I think that's still the guidance. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bouiaw Sent: Sunday, December 02, 2007 6:03 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Runtime MXML compiler Hi, Yes, I will compile mxml at runtime. After some testing, MXMLCompilerServlet from Graniteds works well with simple mxml file, so with an open source Flex3 compiler, it should be ok. Is there a more precise date than early 2008 ? Allan, if it is possible, can you give more details on how you implemented it ? If it is possible, could you give a look on the org.granite.messaging.webapp.MXMLCompilerServlet implementation (http://www.graniteds.org http://www.graniteds.org ) and say us how different yours is ? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , DreamCode [EMAIL PROTECTED] wrote: Hey Sebastien/Gordon I'm not sure I understand what you're asking... mxml compilation at runtime? Are you going to compile a page when a request comes in? As for the dynamic creation of content based on custom xml, that is quite nice. It's a big part of my current spare time project. The only real issue so far I have had, is that in order for me to generate the UI, all custom components needed to be referenced once inside my code. So even though I have this: import dc.digr.ui.comp.*; I still need this: *var* a:digrButton = *new* digrButton (); *var* b:digrButtonLarge = *new* digrButtonLarge(); *var* c:digrButtonIconOnly = *new* digrButtonIconOnly(); *var* d:digrButtonMini = *new* digrButtonMini(); for all the custom ui components in the beginning of my code to avoid a runtime error Gordon, if you have some wisdom on this Spread the joy! J
[flexcoders] How to have no MenuBar No ToolBar in Browser
Good Morning: I am using FlexBuilder 2.01. When I run my app, I want the app to display in the browser without the menu bar and toolbar. Like when JamJar and other apps display it just has the Title bar. I am using IE 6 as my browser. I think I need to change the index.template.html file located in the html-template folder. I have searched but have been unable to find info on what code and where it goes to achieve this. Again, I think it is menubar=no and toolbar=no, but not sure of the syntax and if index.template.html is the right file. Can anyone tell me what needs to be changed and where does it go? Thanks, Jack
[flexcoders] LiveCycle Data Services crashing help. Consultant?
We are having some serious problems with our data services app. Our specific problem is that whenever we upload our application to our server and attempt to log into it from our clients there seems to be a memory overload which crashes the client's browser. Generally what happens is endless lines of [Flex] Thread[RTMP-Worker-6,5,main] connection writer finished appear in our log until the client browser crashes and the End of stream from client or the underlying socket is no longer connected appears. [Flex] Thread[RTMP-Worker-6,5,main] connection writer finished. Elapsed write time: 0 [Flex] Thread[RTMP-Worker-6,5,main] connection writer running. [Flex] Thread[RTMP-Worker-6,5,main] connection writer finished. Elapsed write time: 0 [Flex] Thread[RTMP-Worker-6,5,main] connection reader running. [Flex] Thread[RTMP-Worker-6,5,main] connection reader closing connection. End of stream from client or the underlying socket is no longer connected. Obviously, if anyone has any general ideas about why this would be occurring (and primarily just when accessing remotely and not localhost) or how we can debug it deeper we would greatly appreciate the help and direction. Admittedly, this is our first attempt at a larger data services app (we did a couple successful tests with smaller data services test apps) and thus we are probably doing something wrong... At this point with our level of frustration and deadlines passing, we are also thinking we need to hire a Data Services expert to help us get to the bottom of the problem. We have contacted Adobe, but their support options are well out of our price range. I would love any recommendations from any coders our there who have used consultants and know of any who would be able to debug these type of problems as well as do some code review for us. Feel free to email me offline if that is more appropriate. Thanks for the help. - Kevin
[flexcoders] ExternalInterface.call() returns null
Hello: I try calling a Java applet method (applet is loaded by the SWF's HTML wrapper) using ExternalInterface.call(). The applet return type is byte[], however on the Flex side, ExternalInterface.call() return null. Any ideas how can I get my byte array in Flex? I observed the call returns ok for some primitive types (int, boolean, String). But it does not work for byte[]. and I want to avoid the Base64 transcoding, as it takes too much time for large data. Thanks..
RE: [flexcoders] ItemEditors and ItemRenderers (was Re: Datagrid tab order?)
Some folks think the patch should be recent enough. If you send me a hello-world debug-swf I can look inside and know for sure. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Roy J. Tang Sent: Sunday, December 02, 2007 9:11 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] ItemEditors and ItemRenderers (was Re: Datagrid tab order?) What I have is the Flex 2.0.1 patch for Flash CS3 Professional compatibility, are they compatible? i.e. I just install the hotfix 2/3 on top of it? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: That sounds like you are not using 2.0.1 Hotfix 2 or later. I cannot reproduce your problem with that release. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Stephen Roy J. Tang Sent: Wednesday, November 28, 2007 12:39 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] ItemEditors and ItemRenderers (was Re: Datagrid tab order?) Can you check my sample here: http://roytang.net/sandbox/DataGridSample.swf http://roytang.net/sandbox/DataGridSample.swf http://roytang.net/sandbox/DataGridSample.swf http://roytang.net/sandbox/DataGridSample.swf Source at http://roytang.net/sandbox/DataGridSample.mxml http://roytang.net/sandbox/DataGridSample.mxml http://roytang.net/sandbox/DataGridSample.mxml http://roytang.net/sandbox/DataGridSample.mxml When I tab starting from the textinput and all the way to the last row of the datagrid (row 14), it's still ok. But after tabbing out from row 14 the tab order becomes trapped in the onscreen checkboxes (and doesn't even follow them in the top-to-bottom left-to-right order) --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: tabEnabled is ignored for renderers/editors. The only thing that matters is editable=true on the DG and the DGColumn. You should have itemRenderer=CheckBox and rendererIsEditor=true. You don't need to set itemEditor=CheckBox. From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Stephen Roy J. Tang Sent: Tuesday, November 27, 2007 7:54 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] ItemEditors and ItemRenderers (was Re: Datagrid tab order?) thanks. I appreciate the replies esp. since I can't provide my app's sample code here so I guess it's difficult for others to figure out. I guess the problem is I tried to avoid using itemEditors entirely and used itemRenderers instead, so now the tab order is all messed up and doesn't scroll. I'm going to try using itemEditors again. However, the main problem there is that I want to render the column as a checkbox and have it editable as a checkbox also. So I'll do the ff: 1. set itemRenderer=checkbox and itemEditor=checkbox. 2. set tabEnabled=false for the checkbox itemRenderer; this is so that the itemRenderers don't screw up the tab order Under the above setup, the tab order seems correct. The only issue with the above that I'm not sure how to support is that visually the column is a checkbox, but requires the user to click twice on the checkbox to toggle the value (once to enable edit mode, second time to actually edit). Is there any way to avoid this? Most of the examples of using checkbox as an itemEditor seem to use static text as the renderer. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote: the default editing code handles offscreen rows. you can probably override focusinhandler and set editeditemposition the dg remembers the last position of the editor and restores editing there From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Stephen Roy J. Tang Sent: Tuesday, November 27, 2007 1:19 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Datagrid tab order? We had trouble before with
RE: [SPAM] [flexcoders] Re: Printing a large string over multiple pages
Thanks to everyone for the help on the print problem. I will try out your suggestions though I have as a temporary measure just written the text to a text file and immediately opened it. That way it can then be printed using the default print functionality of the text editing app. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Anthony DeBonis Sent: 03 December 2007 17:42 To: flexcoders@yahoogroups.com Subject: [SPAM] [flexcoders] Re: Printing a large string over multiple pages Here is some code we use to slice up a long list and print on X# of pages. You should be able to do somethink like this... Hope the code gets formated ok // Add 2nd page displaying names of selected organizations var selectedOrgList:List = new List(); selectedOrgList.setActualSize(printJob.pageHeight, printJob.pageWidth); selectedOrgList.setStyle(fontSize,8); //selectedOrgList.dataProvider = orgList.selectedItems; var facilitiesPerPage:int = RECORDS_PER_PAGE; if (printJob.pageHeight printJob.pageWidth) { //height is less than width so we are in landscape mode and can't fit as many records per page facilitiesPerPage = LS_RECORDS_PER_PAGE; } selectedOrgList.rowCount = facilitiesPerPage; var pageCount:int = Math.ceil(orgList.selectedItems.length / facilitiesPerPage) ; var printFacilityViewHolder:Array = new Array(); chartTitle = chartTitle + \nFacility List; var sortedOrgs:Array = orgList.selectedItems; sortedOrgs.sortOn(name); for (var loopCtr:int = 0; loopCtr pageCount; loopCtr++) { var pfv:PrintFacilityView = new PrintFacilityView(); addChild(pfv); pfv.setDimensions(printJob.pageHeight, printJob.pageWidth); var startIndex:int = facilitiesPerPage * loopCtr; var endIndex:int = facilitiesPerPage * (loopCtr + 1); var pagedOrgList:Array = sortedOrgs.slice(startIndex, endIndex); selectedOrgList.styleName = facilityListStyle; selectedOrgList.dataProvider = pagedOrgList; selectedOrgList.labelField = name; pfv.facilityListView.addChild(selectedOrgList); pfv.setChartTitle(chartTitle + ( + (loopCtr + 1) + of + pageCount + )); printFacilityViewHolder[loopCtr] = pfv; printJob.addObject(pfv, FlexPrintJobScaleType.MATCH_WIDTH); } //And send the job to the printer. printJob.send(); //make the print view invisible then remove it printView.visible = false; //ATD 10/23/2006 changed to call removeChild from printView.facilityListView not printView for (loopCtr = 0; loopCtr pageCount; loopCtr++) { removeChild(printFacilityViewHolder[loopCtr]); } removeChild(printView); //selectedOrgList.visible = false; //restore the regionChartStack to its original condition restoreStack(chartSwitch, stackSelected);
[flexcoders] Events in AS3 gives Compile Error 1119
Hi Flexcoders, I#8217;m having trouble with some advanced features of flexthat involve events, custom datagrid components, and item renderers. Basically, I#8217;ve been following along #8220;Thanks Mister#8221; blogwhich shows how to bubble an event to a parent control. In the blog tutorial,there is a list control, and one of the columns has a button, so when a userclicks the button a menu appears, and then which ever menu item is selected bythe user triggers a new event to be dispatched and bubbled up to the parentcontrol. http://thanksmister..com/?p=68#comment-5836 In my situation#8230;. 1.) I have a custom DataGrid object, which has metadatatag: [Event(name=menuClick,type=mx.events.MenuEvent)] 2.)I have a custom datagrid ItemRenderer, thatknows how to bubble up the menu event to the parent custom datagrid control 3.) There is an event handler function inside the mxmlfile that has an instance of the datagrid object. My Problem: For some reason when I use mxml to connect the event handlerfunction with the custom datagrid control I can get that to work; however, whenI try to use AS I get a compile Error 1119: Access of possiblyundefined property MENU_CLICK through a reference with a static type Class. Here is the mxml that works: mx:Script ![CDATA[ publicfunction initApp():void {} publicfunction handleMenuEvent(event:MenuEvent):void { Alert.show(#8220;menu Event#8221;);} ]] /mx:Script local:CustomDataGrid id=#8221;mycustomdg#8221; menuClick=#8221;handleMenuEvent(event)#8221;/ Here is the AS that does *not* work, I put thisinside the initApp() function and I get a compiler error, 1119: this.mycustomdg.addEventListner(MenuEvent.MENU_CLICK,handleMenuEvent); I#8217;ve tried looking at the flex coder archives, and theonly related thread I found was here: http://www.mail-archive.com/flexcoders@yahoogroups.com/msg65790.html Thanks for all of your help! Deven Hariyani - Looking for last minute shopping deals? Find them fast with Yahoo! Search.
[flexcoders] Loading flex config file at runtime
Hi all, I'm working on deploying a flex app for the very first time. It's a standalone flex app, which talks to multiple java webapps using openamf. So in development, I just harded the url's of the webapps/servlets. What would the best way to load these information at runtime (maybe from properties files, etc) so that depending on the environment (dev, qa, prod), the flex app will communicate to the correct java servers? Thanks. Ban
[flexcoders] Re: accessing nested objects... what am I missing?!?!
Thanks for the help. Your solution worked in practice but I do still get an error prior to compiling. If I ignore the error and compile, though, it works. But similarly, I want to be able to call functions that are in these different mxml files. So if I have an mxml file called navigation.mxml embedded in the master app file called master.mxml, how can I call master.mxml functions from navigation.mxml? Back from the flash days, I thought this would work: root.myFunction(); but it doesn't. I'm sure this problem is related to my earlier post, that's why I have it in the same thread. thanks, ryan --- In flexcoders@yahoogroups.com, ryanharlin [EMAIL PROTECTED] wrote: I have a simple enough question, I think. But I've been struggling with it for two days. I have an mxml application which has a viewstack in it. The children in the viewstack are fr: tags for other mxml files It looks like this: mx:ViewStack id=mainScreens fr:interfacePanel id=interfacePanel / fr:otherPanel id=otherPanel / /mx:ViewStack In the mxml file called interfacePanel I have another viewstack with interface screens on them. How can I select different children of that viewstack from the main mxml app. I would think I'd do something like this: mx:button click=mainScreens.interfacePanel.secondViewstack.selectedChild = Page2; / But that doesn't work. Does anyone know the method of addressing object across multiple nested mxml files? Thanks! Hopefully someone can show me what I'm missing.
[flexcoders] Re: Loading flex config file at runtime
Ban, You can use the flashvars parameters to pass information into the flex app. Data assigned to the flashvars parameter can be read by checking the parameters property of the application object. We use it to pass a url to a configuration XML file into our application. Inside the app, we use the URLLoader to load the contents of the file at the supplied url and then parse it for the various configuration parameters. hope this helps, oliver --- In flexcoders@yahoogroups.com, letterpigeon [EMAIL PROTECTED] wrote: Hi all, I'm working on deploying a flex app for the very first time. It's a standalone flex app, which talks to multiple java webapps using openamf. So in development, I just harded the url's of the webapps/servlets. What would the best way to load these information at runtime (maybe from properties files, etc) so that depending on the environment (dev, qa, prod), the flex app will communicate to the correct java servers? Thanks. Ban
[flexcoders] Enterprise use of web services
Hello, I am new to the list and sorry if this is a repeat question! I am wondering about the recommended 'best practice' on the use of web services in an enterprise Flex (2) application. Looking around I found the Kiwi project which seems to suggest that (with proper use of Cairngorm) the View (mxml file) never needs to call a web service. Rather these should be delegated to the server side. While that makes sense to me, I was wondering if this was now widely considered acceptable. For our application, a very related question is how to handle Authentication. Not how to 'do' authentication, but how securely manage it. More directly related to the above web service discussion, so if I am only calling web services from the Server, but those web services require a User to be authenticated first, what is the best practice? Thanks for any discussion or pointers to previous ones.
[flexcoders] Re: accessing nested objects... what am I missing?!?!
It is better to dispatch events from your nested component and handle them in your parent component. --- In flexcoders@yahoogroups.com, ryanharlin [EMAIL PROTECTED] wrote: Thanks for the help. Your solution worked in practice but I do still get an error prior to compiling. If I ignore the error and compile, though, it works. But similarly, I want to be able to call functions that are in these different mxml files. So if I have an mxml file called navigation.mxml embedded in the master app file called master.mxml, how can I call master.mxml functions from navigation.mxml? Back from the flash days, I thought this would work: root.myFunction(); but it doesn't. I'm sure this problem is related to my earlier post, that's why I have it in the same thread. thanks, ryan --- In flexcoders@yahoogroups.com, ryanharlin ryanharlin@ wrote: I have a simple enough question, I think. But I've been struggling with it for two days. I have an mxml application which has a viewstack in it. The children in the viewstack are fr: tags for other mxml files It looks like this: mx:ViewStack id=mainScreens fr:interfacePanel id=interfacePanel / fr:otherPanel id=otherPanel / /mx:ViewStack In the mxml file called interfacePanel I have another viewstack with interface screens on them. How can I select different children of that viewstack from the main mxml app. I would think I'd do something like this: mx:button click=mainScreens.interfacePanel.secondViewstack.selectedChild = Page2; / But that doesn't work. Does anyone know the method of addressing object across multiple nested mxml files? Thanks! Hopefully someone can show me what I'm missing.
Re: [flexcoders] Loading flex config file at runtime
I use a configuration xml file to get all urls in the beginning of application ( preinitialize function). Also you could parse mx.core.Application.application.url to get current url of your own Flex application to make it more flexible. George letterpigeon wrote: Hi all, I'm working on deploying a flex app for the very first time. It's a standalone flex app, which talks to multiple java webapps using openamf. So in development, I just harded the url's of the webapps/servlets. What would the best way to load these information at runtime (maybe from properties files, etc) so that depending on the environment (dev, qa, prod), the flex app will communicate to the correct java servers? Thanks. Ban
RE: [flexcoders] Re: accessing nested objects... what am I missing?!?!
how can I call master.mxml functions from navigation.mxml parentApplication.myFunction() Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ryanharlin Sent: Monday, December 03, 2007 12:26 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: accessing nested objects... what am I missing?!?! Thanks for the help. Your solution worked in practice but I do still get an error prior to compiling. If I ignore the error and compile, though, it works. But similarly, I want to be able to call functions that are in these different mxml files. So if I have an mxml file called navigation.mxml embedded in the master app file called master.mxml, how can I call master.mxml functions from navigation.mxml? Back from the flash days, I thought this would work: root.myFunction(); but it doesn't. I'm sure this problem is related to my earlier post, that's why I have it in the same thread. thanks, ryan --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , ryanharlin [EMAIL PROTECTED] wrote: I have a simple enough question, I think. But I've been struggling with it for two days. I have an mxml application which has a viewstack in it. The children in the viewstack are fr: tags for other mxml files It looks like this: mx:ViewStack id=mainScreens fr:interfacePanel id=interfacePanel / fr:otherPanel id=otherPanel / /mx:ViewStack In the mxml file called interfacePanel I have another viewstack with interface screens on them. How can I select different children of that viewstack from the main mxml app. I would think I'd do something like this: mx:button click=mainScreens.interfacePanel.secondViewstack.selectedChild = Page2; / But that doesn't work. Does anyone know the method of addressing object across multiple nested mxml files? Thanks! Hopefully someone can show me what I'm missing.
[flexcoders] Re: Adobe AIR runs on U3?
Argh... sorry for not replying before, Tom. I open too many threads and forgot to bookmark some of them (including this one). Here's about u3: http://www.u3.com/ --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Thursday 15 Nov 2007, handitan wrote: Does anybody know if it is possible to write Adobe AIR applications that run on U3 drives? On what ? AIR applications can be brought to the system on any media the O/S recognises, and then installed. -- Tom Chiverton Helping to advantageously drive integrated 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 St James's Court Brown Street Manchester M2 2JF. 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] Flex 2.0.1: How to detect internet connectivity in Flex?
I am curious to see if Flex framework has a functionality to do that. So far, I have found none.
Re: [flexcoders] Re: ***************************TWO WAY SSL AND REPORTING IN FLEX **************
I use flex application link to asp.net page with crystal report On Dec 3, 2007 12:43 PM, dorkie dork from dorktown [EMAIL PROTECTED] wrote: q1) the way i understand it is when you establish a connection via https data communication is encrypted in both directions. in your domain you need to redirect the user from domain http://myserver.com to https://myserver.com. Note the s in https. http://en.wikipedia.org/wiki/Transport_Layer_Security you can use the httpservice class to send and receive data and there are additional classes like RemoteObject, etc search for examples online. q2) that is a broad question. flex has charting and datagrid components. flex 3 enhances both of these components with many more additional features. On Dec 3, 2007 8:36 AM, candysmate [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, yourName [EMAIL PROTECTED] wrote: Q1)Can any body tell how to implement TWO WAY SSL in flex/java application.. can any one send me link or sample code .. Q2) Plz tell me about reporting in flex which reporting can i use Thanks In Advance... Multiple asterisks and capital letters in your posting titles are not necessary to get your messages read by the group. That's why nobody else uses them.
[flexcoders] Re: Flex 2.0.1: How to detect internet connectivity in Flex?
Easiest way is probably to just use HTTPService to try loading a URL. Something fast and minimal like google.com would probably be ideal. If your fault handler executes you can reasonably assume you have no connectivity, if your result handler executes you do. HTH, Ben --- In flexcoders@yahoogroups.com, handitan [EMAIL PROTECTED] wrote: I am curious to see if Flex framework has a functionality to do that. So far, I have found none.
Re: [flexcoders] Strange multiple select bug in List
Heh, I wish it were that simple :) Yeah, I know how it *should* work, but the problem is that isn't working. Oh, and you're right about the datatips - my mistake, should've read the docs closer. Any ideas why multi-select wouldn't function on a List or Tree? Is there something about it being inside a Form control? On Nov 30, 2007 2:05 PM, Alex Harui [EMAIL PROTECTED] wrote: multi-select requires CTRL and SHIFT keys along with clicking or arrow keys. Are you doing that? datatips don't show up unless the string can't be fully seen. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Ken Dunnington *Sent:* Thursday, November 29, 2007 10:10 AM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Strange multiple select bug in List I'm having a problem getting allowMultipleSelection to work properly. I have a form with a List control that's populated by an ArrayCollection. I cannot seem to get multiple selection or dataTips to work. The code for the list is: mx:ArrayCollection id= pages mx:Object name=Home pageID= 1 url=/index.cfm / mx:Object name=About Us pageID= 2 url=/about/index.cfm / mx:Object name=Services pageID= 3 url=/services/index.cfm / mx:Object name=Support pageID= 4 url=/support/index.cfm / mx:Object name=Contact Us pageID=5 url=/contact/index.cfm / /mx:ArrayCollection mx:FormItem label=Pages mx:List id=navPages labelField=name change=inspect(event) allowMultipleSelection=true dataProvider={pages } dataTipField=url showDataTips=true / /mx:FormItem I've tried completely replacing the list with a DataGrid, and that doesn't work either. I've tried setting just the bare minimum attributes for the List control (and DG) without any luck. I've tried this using Flex 3 Beta 2 and 2.0.1 on Mac/Safari with player 9.0.47.0. I tried it on Mac/FF as well, and it sort of worked at first (clicking items didn't cause other items to deselect - so that's more like another bug really) but when I reloaded the app, it behaved the same way as Safari. I'm just building the UI at the moment, so there's no other functionality in the app. This has got me very confused, and I haven't been able to find any clues. I know about the Tree multiple select issue in Flex 2, is this related? I swear I've used a multi-select List control before. Any tips would be greatly appreciated. - Ken -- Suppose you were an idiot. And suppose you were a member of congress. But I repeat myself. -- Mark Twain
Re: [flexcoders] Re: Subversion clients
SCPlugin is a contextual menu plugin for the Mac. Not as fancy as Tortoise, but I've had good luck with it. Otherwise, it's Subclipse and of course the command line tools. On Dec 1, 2007 11:52 AM, Kurt Wiersma [EMAIL PROTECTED] wrote: I use SmartSVN on both my Mac and my Windows box. It works great and they even have a free community version. Their SmartCVS client is great as well. http://smartsvn.com --Kurt On Nov 30, 2007 10:08 AM, eestes1 [EMAIL PROTECTED] wrote: I use syncro client that is part of oxygen-it's really simple, straightforward and uncluttered gui to work with. i was trying scplugin as well but disabled it when i jumped to leopard. Again the simplicity of having it built in to the finder interface is very attractive with simple icons and options on the contextual menu. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Stephen Allison [EMAIL PROTECTED] wrote: What Subversion clients do you use, and what do you like or dislike about them? I'm especially interested in opinions about GUI clients on the Mac. SVNX. Slightly odd multi-window interface, but beyond that no complaints so far. -- Suppose you were an idiot. And suppose you were a member of congress. But I repeat myself. -- Mark Twain
RE: [flexcoders] Events in AS3 gives Compile Error 1119
v\:* {behavior:url(#default#VML);}o\:* {behavior:url(#default#VML);}w\:* {behavior:url(#default#VML);}..shape {behavior:url(#default#VML);} Hi Michael, Thanks for the info, I was actually getting confused with allthe various event names. You are correct, there is no MenuEvent.MENU_CLICKevent which probably explains the compiler error. I tried to use MenuEvent.MENU_CLICK after reading the blogtutorial. I believe using #8220;menuClick#8221; in the MXML works becausethe custom datagrid obj. that was used has metadata tag at the top of the classdefinition that specifies a new event, named #8220;menuClick#8221; that isfor all MenuEvents. [Event(name=menuClick,type=mx.events.MenuEvent)] Public class CustomDataGrid extends mx.controls.DataGrid { Public function CustomDataGrid():void{ super();} } However, trying your suggestion I changed MenuEvent.MENU_CLICK to MenuEvent.ITEM_CLICKin the AS I started getting runtime errors. Saying Error 1034: Type Coercion failed: cannot convertmx.events.ListEvent to mx.events.MenuEvent I#8217;m sending this back out to the flexcoders community toget their input as well. I appreciate your assistance. --Deven From: Michael Ritchie[mailto:[EMAIL PROTECTED] Sent: Monday, December 03, 2007 12:44 PM To: Deven Hariyani Subject: Re: [flexcoders] Events in AS3 gives Compile Error 1119 There is not eventMenuEvent.MENU_CLICK for MenuEvent, there is aMenuEvent.ITEM_CLICK. this.mycustomdg.addEventListner(MenuEvent.MENU_CLICK, handleMenuEvent); On Dec 3, 2007 12:13 PM, Deven Hariyani [EMAIL PROTECTED] wrote: Hi Flexcoders, I'm having trouble with some advanced features of flex that involve events,custom datagrid components, and item renderers. Basically, I've beenfollowing along Thanks Mister blog which shows how to bubble anevent to a parent control. In the blog tutorial, there is a list control,and one of the columns has a button, so when a user clicks the button a menuappears, and then which ever menu item is selected by the user triggers a newevent to be dispatched and bubbled up to the parent control. http://thanksmister..com/?p=68#comment-5836 In my situation#8230;. 1.)I have a customDataGrid object, which has metadata tag: [Event(name=menuClick,type=mx.events.MenuEvent)] 2.) I have acustom datagrid ItemRenderer, that knows how to bubble up the menu event to theparent custom datagrid control 3.)There is an eventhandler function inside the mxml file that has an instance of the datagridobject. My Problem: For some reason when I use mxml to connect the event handler function withthe custom datagrid control I can get that to work; however, when I try to useAS I get a compile Error 1119: Access of possibly undefined propertyMENU_CLICK through a reference with a static type Class. Here is the mxml that works: mx:Script ![CDATA[ public function initApp():void {} public function handleMenuEvent(event:MenuEvent):void { Alert.show(menu Event);} ]] /mx:Script local:CustomDataGrid id=mycustomdg menuClick=handleMenuEvent(event)/ Here is the AS that does *not* work, I put this inside the initApp()function and I get a compiler error, 1119: this.mycustomdg.addEventListner(MenuEvent.MENU_CLICK, handleMenuEvent); I've tried looking at the flex coder archives, and the only related thread Ifound was here: http://www.mail-archive.com/flexcoders@yahoogroups.com/msg65790.html Thanks for all of your help! Deven Hariyani - Looking for last minute shopping deals? Find them fast with Yahoo! Search. -- Michael Ritchie - Looking for last minute shopping deals? Find them fast with Yahoo! Search.
Re: SPAM-LOW: [flexcoders] Flex 2.0.1: How to detect internet connectivity in Flex?
AIR does, but so far as I know Flex doesn't. Flex is usually delivered through a browser. IF they can load it, we just kind of assume they are connected. handitan wrote: I am curious to see if Flex framework has a functionality to do that. So far, I have found none. -- 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] how to include local swc files using flexant
Hi all, I'm trying to do the same to include a swc that I have locally in my project under flexpackages/lib (it's a library that i created but not yet disted). compiler.include-libraries dir=${flexant.mxmlc.swc.custom.dir} append=true include name=${flexant.mxmlc.swc.dynamicgrid.file}/ /compiler.include-libraries (this is defined inside a mxmlc tag) Where in build.properties, flexant.mxmlc.swc.custom.dir=${flex.src.dir}/lib flexant.mxmlc.swc.dynamicgrid.file=dynamicdatagrid.swc When I build it, the classes defined in dynamicdatagrid.swc cannot be found. If I just add this swc file using the flexbuilder to the flex classpath, it works fine. Should I be including this library differently? Thanks. Ban
RE: [flexcoders] Strange multiple select bug in List
This works for me: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=* layout=absolute mx:Script ![CDATA[ ]] /mx:Script mx:ArrayCollection id=pages mx:Object name=Home pageID= 1 url=/index.cfm / mx:Object name=About Us pageID= 2 url=/about/index.cfm / mx:Object name=Services pageID= 3 url=/services/index.cfm / mx:Object name=Support pageID= 4 url=/support/index.cfm / mx:Object name=Contact Us pageID=5 url=/contact/index.cfm / /mx:ArrayCollection mx:FormItem label=Pages mx:List id=navPages labelField=name allowMultipleSelection=true dataProvider={pages } dataTipField=url showDataTips=true / /mx:FormItem /mx:Application From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ken Dunnington Sent: Monday, December 03, 2007 1:52 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Strange multiple select bug in List Heh, I wish it were that simple :) Yeah, I know how it *should* work, but the problem is that isn't working. Oh, and you're right about the datatips - my mistake, should've read the docs closer. Any ideas why multi-select wouldn't function on a List or Tree? Is there something about it being inside a Form control? On Nov 30, 2007 2:05 PM, Alex Harui [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: multi-select requires CTRL and SHIFT keys along with clicking or arrow keys. Are you doing that? datatips don't show up unless the string can't be fully seen. From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Ken Dunnington Sent: Thursday, November 29, 2007 10:10 AM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: [flexcoders] Strange multiple select bug in List I'm having a problem getting allowMultipleSelection to work properly. I have a form with a List control that's populated by an ArrayCollection. I cannot seem to get multiple selection or dataTips to work. The code for the list is: mx:ArrayCollection id= pages mx:Object name=Home pageID= 1 url=/index.cfm / mx:Object name=About Us pageID= 2 url=/about/index.cfm / mx:Object name=Services pageID= 3 url=/services/index.cfm / mx:Object name=Support pageID= 4 url=/support/index.cfm / mx:Object name=Contact Us pageID=5 url=/contact/index.cfm / /mx:ArrayCollection mx:FormItem label=Pages mx:List id=navPages labelField=name change=inspect(event) allowMultipleSelection=true dataProvider={pages } dataTipField=url showDataTips=true / /mx:FormItem I've tried completely replacing the list with a DataGrid, and that doesn't work either. I've tried setting just the bare minimum attributes for the List control (and DG) without any luck. I've tried this using Flex 3 Beta 2 and 2.0.1 on Mac/Safari with player 9.0.47.0. I tried it on Mac/FF as well, and it sort of worked at first (clicking items didn't cause other items to deselect - so that's more like another bug really) but when I reloaded the app, it behaved the same way as Safari. I'm just building the UI at the moment, so there's no other functionality in the app. This has got me very confused, and I haven't been able to find any clues. I know about the Tree multiple select issue in Flex 2, is this related? I swear I've used a multi-select List control before. Any tips would be greatly appreciated. - Ken -- Suppose you were an idiot. And suppose you were a member of congress. But I repeat myself. -- Mark Twain
[flexcoders] Where is that flex-config.xml file?
Hello: In this article from Adobe: http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_19323sliceId=2 It says When the optimize attribute is set totrue, it reduces the size of the Flex application's SWF by 10-15% by compressing the ActionScript code and removing all the trace statements. If you have optimize set totrue, then you will not see the trace statements in the output file. To see the trace during development, you need to set optimizefalse/optimize in the flex-config.xml file. I'm using Flex Builder 2.0.1 (not the plugin version), anyone please tell me any place to configure that? Thanks a lot - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
Re: [flexcoders] How to improve BitmapData processing speed?
How big is the image you're processing in pixels? You have to consider that processing a 400x400 pixel image is a loop of 160k iterations Now multiply that by the number of cpu cycles pr. pixel and you will start to see scary numbers. --allan On 12/3/07, Alex Harui [EMAIL PROTECTED] wrote: Image processing is always CPU intensive. Flash is not optimized for it either. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Larry Zhang Sent: Monday, December 03, 2007 2:03 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to improve BitmapData processing speed? Hello all, I am processing a bitmap data in Flex 3 beta 2. I want to do something to the pixels so I need to get them all and add my action to them. But I found it is very slow if I get pixels one by one by using two for loop and getPixel() method. Of course the setPixel() method is also slow. Then I try the getPixels() to gain a byteArray. It's fast but I still need to loop the byte array and readUnsignedInt() to get every color pixel and set them back. This also takes me much time. Is there any way to make it faster or I just use the wrong method to do such things? Thanks. == Make Every Day Count Larry Zhang
[flexcoders] Re: Runtime MXML compiler
About the list of imports, I have to discuss more about that with the Graniteds project leader, but from what he says (http://tech.groups.yahoo.com/group/graniteds/message/832) and what I can see in the findeDependencies function (http://code.google.com/p/igenko/wiki/RuntimeMxmlCompiler), I think that's to know more precisely what and when mxml should be recompiled. --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: Currently, mxmlc is ran as an external java program. Where could I find some information/samples to run it directly in the servlet container ? As far as I know, we haven't disclosed that. The compiler classes are not yet open-source, and I think you'll have to wait a little longer. he couldn't find any way to ask mxmlc to list imports in as or mxml files You can't get the imports, but the -link-report compilation option produces an XML file with a complete dependency analysis. (You can have dependencies on classes that aren't imported, since you don't have to import a class if it is in the same package.) But can you explain why you need to know the dependencies? - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bouiaw Sent: Monday, December 03, 2007 1:43 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Runtime MXML compiler Hi, It seems my previous answer has never been received, so I send it again. You are right, my need is to compile a page when a request comes in. GraniteDS (http://www.graniteds.org http://www.graniteds.org ) provide a MXMLCompilerServlet that compile MXML at runtime if the swf does not exist. I did some simple test, and it works (source code is available on this page : http://code.google.com/p/igenko/wiki/RuntimeMxmlCompiler http://code.google.com/p/igenko/wiki/RuntimeMxmlCompiler ). Allan, could you say me how this solution is different from yours ? Gordon, I plan to improve this MXMLCompilerServlet in order to use it in Igenko. Could you give me your advice on how it could be improved : - Currently, mxmlc is ran as an external java program. Where could I find some information/samples to run it directly in the servlet container ? - I have asked to the GraniteDS project leader what was the major issue with this mxmlc runtime compiler, and he answered me (http://tech.groups.yahoo.com/group/graniteds/message/832 http://tech.groups.yahoo.com/group/graniteds/message/832 ) that he couldn't find any way to ask mxmlc to list imports in as or mxml files. Do you have any idea for that ? - Any other idea ? Regards, Sébastien Deleuze --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , DreamCode dreamcode@ wrote: I don't think the result of that is inside the acceptable levels for a content management system. but hey... what do I know I would. and I did for my project choose creating it in AS3 based on database/xml content. --Allan On Dec 2, 2007 7:26 PM, Gordon Smith gosmith@ wrote: Are you going to compile a page when a request comes in? That's the impression I got of what Sébastien wants to do. all custom components needed to be referenced once inside my code If you're creating components via their class name, with code like var someClass:Class = Class(getDefinitionByName(someClassName)); var instanceOfSomeClass:Object = new someClass(); there is no way that the MXML compiler/linker can be smart enough to figure out what class names might be encountered at runtime. Therefore it can't include these classes in the SWF unless you give it some help. One way is to use vars like you show to create dependencies. Another way is to use the -include-classes compilation option. For some reason that I don't understand, this is only an option for compc when you make a SWC, not for mxml when you make a SWF. But you can make a SWC with all your custom classes and then link that SWC in with -include-libraries. Another possibility is to put all your custom classes into a module and load it. Gordon Smith Adobe Flex SDK Team -- *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] *On Behalf Of *DreamCode *Sent:* Sunday, December 02, 2007 2:38 PM *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* Re: [flexcoders] Runtime MXML compiler Hey Sebastien/Gordon I'm not sure I understand what you're asking... mxml compilation at runtime? Are you going to compile a page when a request comes in? As for the dynamic creation of content based on custom xml, that is quite nice. It's a big part of my current spare time project. The only real issue so far I have had, is that in
RE: [flexcoders] Re: Runtime MXML compiler
I found out that we'll be opensourcing our webtier compiler modules for Apache and IIS, but they may lag behind the compiler itself. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bouiaw Sent: Monday, December 03, 2007 3:30 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Runtime MXML compiler About the list of imports, I have to discuss more about that with the Graniteds project leader, but from what he says (http://tech.groups.yahoo.com/group/graniteds/message/832 http://tech.groups.yahoo.com/group/graniteds/message/832 ) and what I can see in the findeDependencies function (http://code.google.com/p/igenko/wiki/RuntimeMxmlCompiler http://code.google.com/p/igenko/wiki/RuntimeMxmlCompiler ), I think that's to know more precisely what and when mxml should be recompiled. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Gordon Smith [EMAIL PROTECTED] wrote: Currently, mxmlc is ran as an external java program. Where could I find some information/samples to run it directly in the servlet container ? As far as I know, we haven't disclosed that. The compiler classes are not yet open-source, and I think you'll have to wait a little longer. he couldn't find any way to ask mxmlc to list imports in as or mxml files You can't get the imports, but the -link-report compilation option produces an XML file with a complete dependency analysis. (You can have dependencies on classes that aren't imported, since you don't have to import a class if it is in the same package.) But can you explain why you need to know the dependencies? - Gordon From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of bouiaw Sent: Monday, December 03, 2007 1:43 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: Runtime MXML compiler Hi, It seems my previous answer has never been received, so I send it again. You are right, my need is to compile a page when a request comes in. GraniteDS (http://www.graniteds.org http://www.graniteds.org http://www.graniteds.org http://www.graniteds.org ) provide a MXMLCompilerServlet that compile MXML at runtime if the swf does not exist. I did some simple test, and it works (source code is available on this page : http://code.google.com/p/igenko/wiki/RuntimeMxmlCompiler http://code.google.com/p/igenko/wiki/RuntimeMxmlCompiler http://code.google.com/p/igenko/wiki/RuntimeMxmlCompiler http://code.google.com/p/igenko/wiki/RuntimeMxmlCompiler ). Allan, could you say me how this solution is different from yours ? Gordon, I plan to improve this MXMLCompilerServlet in order to use it in Igenko. Could you give me your advice on how it could be improved : - Currently, mxmlc is ran as an external java program. Where could I find some information/samples to run it directly in the servlet container ? - I have asked to the GraniteDS project leader what was the major issue with this mxmlc runtime compiler, and he answered me (http://tech.groups.yahoo.com/group/graniteds/message/832 http://tech.groups.yahoo.com/group/graniteds/message/832 http://tech.groups.yahoo.com/group/graniteds/message/832 http://tech.groups.yahoo.com/group/graniteds/message/832 ) that he couldn't find any way to ask mxmlc to list imports in as or mxml files. Do you have any idea for that ? - Any other idea ? Regards, Sébastien Deleuze --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , DreamCode dreamcode@ wrote: I don't think the result of that is inside the acceptable levels for a content management system. but hey... what do I know I would. and I did for my project choose creating it in AS3 based on database/xml content. --Allan On Dec 2, 2007 7:26 PM, Gordon Smith gosmith@ wrote: Are you going to compile a page when a request comes in? That's the impression I got of what Sébastien wants to do. all custom components needed to be referenced once inside my code If you're creating components via their class name, with code like var someClass:Class = Class(getDefinitionByName(someClassName)); var instanceOfSomeClass:Object = new someClass(); there is no way that the MXML compiler/linker can be smart enough to figure out what class names might be encountered at runtime. Therefore it can't include these classes in the SWF unless you give it some help. One way is to use vars like you show to create dependencies. Another way is to use the -include-classes compilation option. For some reason that I don't understand, this is only an option for compc when you make a SWC, not for mxml when you make a SWF. But
Re: [flexcoders] Where is that flex-config.xml file?
the flex-config.xml is in your LCDS WEB-INF/Flex folder. I think this config file is used when you want to compile your application server-side. -- João Fernandes http://www.onflexwithcf.org http://www.riapt.org
[flexcoders] Local storage of password
I have a requirement to take credentials used for an external web service and cache them locally so that the user need not re-type their password each time they run the app. I can easily store these credentials in a SharedObject (cookie) but I don't want to store the password in plain-text here. Does anybody have any recommendations on an ecrypt/decrypt mechanism I can use for this? Also I have a requirement that any key used to encrypt can not be stored in the source code as a string literal. Ryan
[flexcoders] Stupid question - get value of a textInput displayaspassword=true?
Ok, this is a stupid question I'm sure. But how the bejeesus do I get the value of a password textInput? -Josh -- This is crazy! Why are we talking about going to bed with Wilma Flintstone... She'll never leave Fred and we know it. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]
[flexcoders] More 2032 fun
Does anyone know of any size issues with HttpService POST data in IE6 and IE7? We're seeing #2032 stream errors when some dynamically created data reaches a threshold. I'm not sure what the threshhold is in bytes, but it's not very large, and the other browsers don't have the same problem. Thanks.
RE: [flexcoders] More 2032 fun
I have used HTTPService POST with IE6 and some quite large (1.2MB) data with out problem. Hmm, that big one was with Flex 1.5, haven't moved that much with 2.x yet. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Richard Rodseth Sent: Monday, December 03, 2007 7:32 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] More 2032 fun Does anyone know of any size issues with HttpService POST data in IE6 and IE7? We're seeing #2032 stream errors when some dynamically created data reaches a threshold. I'm not sure what the threshhold is in bytes, but it's not very large, and the other browsers don't have the same problem. Thanks.
RE: [flexcoders] Local storage of password
There is an MD5 library available for AS3 that I have used. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rmarples Sent: Monday, December 03, 2007 4:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Local storage of password I have a requirement to take credentials used for an external web service and cache them locally so that the user need not re-type their password each time they run the app. I can easily store these credentials in a SharedObject (cookie) but I don't want to store the password in plain-text here. Does anybody have any recommendations on an ecrypt/decrypt mechanism I can use for this? Also I have a requirement that any key used to encrypt can not be stored in the source code as a string literal. Ryan
[flexcoders] How can we use TransitionManager in Flex ... It is an ActionScript 3.0 Class...
Hello all, TransitionManager is in ActionScript 3.0 so how can we access it. It has lots of cool transitions such as Pixilate , Blinds and more .. You can see an example here ... http://www.adobe.com/devnet/flash/articles/creating_animation_as3_02.html So how can we access it ... Regards, Sean - HeliHobby.com
[flexcoders] Re: How can we use TransitionManager in Flex ... It is an ActionScript 3.0 Class
Its even documented in Adobe Air: http://livedocs.adobe.com/labs/air/1/aslr/fl/transitions/TransitionManager.html So why can't we use it in Flex 2/3 ? :( The Pixelate and Blinds are real cool ... Sean. --- In flexcoders@yahoogroups.com, helihobby [EMAIL PROTECTED] wrote: Hello all, TransitionManager is in ActionScript 3.0 so how can we access it. It has lots of cool transitions such as Pixilate , Blinds and more .. You can see an example here ... http://www.adobe.com/devnet/flash/articles/creating_animation_as3_02.html So how can we access it ... Regards, Sean - HeliHobby.com
[flexcoders] Re: Flex Charting Width resetting after data comes back
Hey Tom, Thanks for the reply I've got the labels visible='false' and includeInLayout=false so that shouldn't come into play... although i've never looked too closely at what the includeInLayout does... i just have trusted it to work... anyway, my code is fairly simple i've got some base container that runs through some xml and creates this component based on the xml elements. StudiesBaseContainer.mxml extends VBox private function setupStudy(val:XML):void { if([EMAIL PROTECTED]() != '') { var studyChart:StudyChart = new StudyChart(); studyChart.setStyle('horizontalAlign','center'); studyChart.setStyle('verticalAlign','middle'); studyChart.studyXML = val; studyChart.maxHeight = 100; studyChart.percentWidth = 100; this.addChild(studyChart); } } in the container that actually holds the chart, i've got some code that calls events to get the data for that component and what not, but i'm going to slim it down for our sake. I add my series dynamically based on more xml configurable elements and attributes and all of that comes back fine... all my style does is takes away the drop shadow from the line (stroke)... StudyChart.mxml extends VBox mx:LineChart id=studyChart width=100% height=100% showDataTips=true color=#FF fontWeight=bold verticalAxisStyleName=vAxis seriesFilters=[] mx:horizontalAxis mx:DateTimeAxis dataUnits=days / /mx:horizontalAxis mx:horizontalAxisRenderer mx:AxisRenderer visible=false includeInLayout=false/ /mx:horizontalAxisRenderer mx:verticalAxis mx:LinearAxis baseAtZero=false autoAdjust=true minimum=-1 / /mx:verticalAxis mx:verticalAxisRenderer mx:AxisRenderer placement=right visible=false includeInLayout=false tickPlacement=outside/ /mx:verticalAxisRenderer /mx:LineChart here is two images... please ignore the top selector chart with the handles on the right and left side... the first one shows the charts loading, the top one with the yellow stroke for the data line is finished, the the one below it is still loading image 1 http://axel.cfwebtools.com/chartWidth.jpg the second one is the charts loaded... but if you compare the two images you can see the chart is shifted to the left, and it's not as wide as it should be... image 2 http://axel.cfwebtools.com/chartWidth2.jpg thanks for the help... i'm open to anything. --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Friday 30 Nov 2007, jensen.axel wrote: I have a vbox with a line chart in it's got 100% width at first until the data comes back, when the data gets back it shortens it's own width... i'm a little confused why it doesn't stretch out... Could it be adjusting itself due to having to draw labels for the axis' or something. -- Tom Chiverton Helping to globally supply bleeding-edge bandwidth on: http://thefalken.livejournal.com Please note, as of 10th December 2007 the registered office address of Halliwells LLP will be at 3 Hardman Square, Spinningfields, Manchester, M3 3EB 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 St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
RE: [flexcoders] Stupid question - get value of a textInput displayaspassword=true?
Just the display is obscured. myTIPassword.text will return a clear string. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent: Monday, December 03, 2007 6:31 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Stupid question - get value of a textInput displayaspassword=true? Ok, this is a stupid question I'm sure. But how the bejeesus do I get the value of a password textInput? -Josh -- This is crazy! Why are we talking about going to bed with Wilma Flintstone... She'll never leave Fred and we know it. :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
[flexcoders] Re: How to improve BitmapData processing speed?
My image is 1024 * 768. It's so slow. But the www.picnik.com does it very well. It change the image data so fast. Please try the Exposure function it the web. I just want to kown how to do this. Thanks --- In flexcoders@yahoogroups.com, DreamCode [EMAIL PROTECTED] wrote: How big is the image you're processing in pixels? You have to consider that processing a 400x400 pixel image is a loop of 160k iterations Now multiply that by the number of cpu cycles pr. pixel and you will start to see scary numbers. --allan On 12/3/07, Alex Harui [EMAIL PROTECTED] wrote: Image processing is always CPU intensive. Flash is not optimized for it either. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Larry Zhang Sent: Monday, December 03, 2007 2:03 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to improve BitmapData processing speed? Hello all, I am processing a bitmap data in Flex 3 beta 2. I want to do something to the pixels so I need to get them all and add my action to them. But I found it is very slow if I get pixels one by one by using two for loop and getPixel() method. Of course the setPixel() method is also slow. Then I try the getPixels() to gain a byteArray. It's fast but I still need to loop the byte array and readUnsignedInt() to get every color pixel and set them back. This also takes me much time. Is there any way to make it faster or I just use the wrong method to do such things? Thanks. == Make Every Day Count Larry Zhang
Re: [flexcoders] Re: How to improve BitmapData processing speed?
Without pretending to have the inside track on how they do it - I'm fairly sure they accomplish it by some combination of multiplication/division but not on individual pixels, without having spent more than 45 secs looking at it. There's also they option that the accomplish the realtime effect by adding a layer filed with a certain color on top and adjust the alpha value. That might be able to mimick the final result without noticable differences and then generate the actual rendering i the background until it's done and the swap of images goes unnnoticed :) On Dec 3, 2007 7:36 PM, larryzzl [EMAIL PROTECTED] wrote: My image is 1024 * 768. It's so slow. But the www.picnik.com does it very well. It change the image data so fast. Please try the Exposure function it the web. I just want to kown how to do this. Thanks --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, DreamCode [EMAIL PROTECTED] wrote: How big is the image you're processing in pixels? You have to consider that processing a 400x400 pixel image is a loop of 160k iterations Now multiply that by the number of cpu cycles pr. pixel and you will start to see scary numbers. --allan On 12/3/07, Alex Harui [EMAIL PROTECTED] wrote: Image processing is always CPU intensive. Flash is not optimized for it either. From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of Larry Zhang Sent: Monday, December 03, 2007 2:03 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] How to improve BitmapData processing speed? Hello all, I am processing a bitmap data in Flex 3 beta 2. I want to do something to the pixels so I need to get them all and add my action to them. But I found it is very slow if I get pixels one by one by using two for loop and getPixel() method. Of course the setPixel() method is also slow. Then I try the getPixels() to gain a byteArray. It's fast but I still need to loop the byte array and readUnsignedInt() to get every color pixel and set them back. This also takes me much time. Is there any way to make it faster or I just use the wrong method to do such things? Thanks. == Make Every Day Count Larry Zhang
[flexcoders] Atom feeds
I have a simple Atom feed reader application using the grid control. When you click and item on the grid, a text area is populated with the contents of one of the feed elements (content) It works great unless the content element contains HTML: A sample content Atom element with HTML looks like this: content type=xhtmlThis is a link a href=http://www.example.com;click here/a/content This results in [object Object] appearing in the TextArea. Any ideas for what's wrong? Here is relevent application code code: mx:DataGrid id=titleList dataProvider={atomUrl.lastResult.feed.entry} width=100% height=100% mx:columns mx:DataGridColumn dataField=title headerText=Title / mx:DataGridColumn dataField=id headerText=ID / /mx:columns /mx:DataGrid mx:TextArea id=content width=100% height=100% htmlText={titleList.selectedItem.content} /mx:TextArea
[flexcoders] Bad characters in Feed
A feed element I'm trying to reference has special characters and produces Object Object on that element (but not other elements for the entry). Getting the feed with HTTPService and looping through the results, how can I handle this? I've really been pulling my hair out on this one! Thanks
RE: [flexcoders] Atom feeds
It works great unless the content element contains HTML You don't say what you want the TextArea to actually display in this case. The HTML code that you show? Just This is a link click here as plain text? This is a link click here with click here being a working hyperlink? Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of willfould Sent: Monday, December 03, 2007 5:28 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Atom feeds I have a simple Atom feed reader application using the grid control. When you click and item on the grid, a text area is populated with the contents of one of the feed elements (content) It works great unless the content element contains HTML: A sample content Atom element with HTML looks like this: content type=xhtmlThis is a link a href=http://www.example.com http://www.example.com click here/a/content This results in [object Object] appearing in the TextArea. Any ideas for what's wrong? Here is relevent application code code: mx:DataGrid id=titleList dataProvider={atomUrl.lastResult.feed.entry} width=100% height=100% mx:columns mx:DataGridColumn dataField=title headerText=Title / mx:DataGridColumn dataField=id headerText=ID / /mx:columns /mx:DataGrid mx:TextArea id=content width=100% height=100% htmlText={titleList.selectedItem.content} /mx:TextArea
[flexcoders] Flex LineChart dynamic data
Hi peeps, I have 4 flex charts all getting random data dynamically added through a java applet. This is all working fine, the problem is I want a unified x-axis for all of them. The way I see to do it is to add null values to all graphs (except the one that gets added) whenever 1 sample comes in. A work mate noticed that when the data fills up to the end of the graph, flex condenses the x-axis to supply more room for data. Is an event fired off on that? The theory being I could fill in the rest of the charts with null values if one chart reaches the end. Cheers
[flexcoders] Parsing a ArrayCollection as a combobox dataprovider
Hello, i try to use the menu Data-Create application from database. I've create my table forms but now i would like to link the table together. Flex create an arraycollection with each table of my database and i would like to parse the arraycollection to put just one row of my table as the data of a combobox and one row of my row as text of my combobox. Does someone know how to parse the arraycollection generated by flex to put it in a combobox variable. I'am a beginner in flex.. so sorry If you should have an example of it.. why not. Thanks a lot for your help
Re: [flexcoders] Re: How to improve BitmapData processing speed?
Of course they do a new image of that quality could not be delivered at that speed. And I'm sure you understand the capabilities of an overlay with solid colors, adjustable alpha and blend modes. But if you don't believe me you could try to go to the exposure function unplug your network and change the exposure on the image if it still changes I'm right, if not I will stand corrected! But I'm 100% sure they are sending new images over the wire as the slider moves that would be just as slow as the individual pixel manipulation and potentially worse if the network connection is a bottleneck --allan On Dec 3, 2007 8:30 PM, Jonathan Lee [EMAIL PROTECTED] wrote: They do not do image manipulation on client side which only have poor API. Since the source graphic is already on server, they use some tool (for example ImageMagick) process it on server, and reload it for you. Since you only need to see screen DPI photos, the file transfer speed + server image processing time will be much less than client bitmap processing. *larryzzl [EMAIL PROTECTED]* wrote: My image is 1024 * 768. It's so slow. But the www.picnik.com does it very well. It change the image data so fast. Please try the Exposure function it the web. I just want to kown how to do this. Thanks --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, DreamCode [EMAIL PROTECTED] wrote: How big is the image you're processing in pixels? You have to consider that processing a 400x400 pixel image is a loop of 160k iterations Now multiply that by the number of cpu cycles pr. pixel and you will start to see scary numbers. --allan On 12/3/07, Alex Harui [EMAIL PROTECTED] wrote: Image processing is always CPU intensive. Flash is not optimized for it either. From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of Larry Zhang Sent: Monday, December 03, 2007 2:03 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] How to improve BitmapData processing speed? Hello all, I am processing a bitmap data in Flex 3 beta 2. I want to do something to the pixels so I need to get them all and add my action to them. But I found it is very slow if I get pixels one by one by using two for loop and getPixel() method. Of course the setPixel() method is also slow. Then I try the getPixels() to gain a byteArray. It's fast but I still need to loop the byte array and readUnsignedInt() to get every color pixel and set them back. This also takes me much time. Is there any way to make it faster or I just use the wrong method to do such things? Thanks. == Make Every Day Count Larry Zhang -- 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] Re: How to improve BitmapData processing speed?
DISCARD THE PREVIOUS Of course they do a new image of that quality could not be delivered at that speed. And I'm not sure you understand the capabilities of an overlay with solid colors, adjustable alpha and blend modes. But if you don't believe me you could try to go to the exposure function unplug your network and change the exposure on the image if it still changes I'm right, if not I will stand corrected! But I'm 100% sure they are not sending new images over the wire as the slider moves that would be just as slow as the individual pixel manipulation and potentially worse if the network connection is a bottleneck --allan On Dec 3, 2007 8:30 PM, Jonathan Lee [EMAIL PROTECTED] wrote: They do not do image manipulation on client side which only have poor API. Since the source graphic is already on server, they use some tool (for example ImageMagick) process it on server, and reload it for you. Since you only need to see screen DPI photos, the file transfer speed + server image processing time will be much less than client bitmap processing. *larryzzl [EMAIL PROTECTED]* wrote: My image is 1024 * 768. It's so slow. But the www.picnik.com does it very well. It change the image data so fast. Please try the Exposure function it the web. I just want to kown how to do this. Thanks --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, DreamCode [EMAIL PROTECTED] wrote: How big is the image you're processing in pixels? You have to consider that processing a 400x400 pixel image is a loop of 160k iterations Now multiply that by the number of cpu cycles pr. pixel and you will start to see scary numbers. --allan On 12/3/07, Alex Harui [EMAIL PROTECTED] wrote: Image processing is always CPU intensive. Flash is not optimized for it either. From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of Larry Zhang Sent: Monday, December 03, 2007 2:03 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] How to improve BitmapData processing speed? Hello all, I am processing a bitmap data in Flex 3 beta 2. I want to do something to the pixels so I need to get them all and add my action to them. But I found it is very slow if I get pixels one by one by using two for loop and getPixel() method. Of course the setPixel() method is also slow. Then I try the getPixels() to gain a byteArray. It's fast but I still need to loop the byte array and readUnsignedInt() to get every color pixel and set them back. This also takes me much time. Is there any way to make it faster or I just use the wrong method to do such things? Thanks. == Make Every Day Count Larry Zhang -- 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] Re: How to improve BitmapData processing speed?
They do not do image manipulation on client side which only have poor API. Since the source graphic is already on server, they use some tool (for example ImageMagick) process it on server, and reload it for you. Since you only need to see screen DPI photos, the file transfer speed + server image processing time will be much less than client bitmap processing. larryzzl [EMAIL PROTECTED] wrote: My image is 1024 * 768. It's so slow. But the www.picnik.com does it very well. It change the image data so fast. Please try the Exposure function it the web. I just want to kown how to do this. Thanks --- In flexcoders@yahoogroups.com, DreamCode [EMAIL PROTECTED] wrote: How big is the image you're processing in pixels? You have to consider that processing a 400x400 pixel image is a loop of 160k iterations Now multiply that by the number of cpu cycles pr. pixel and you will start to see scary numbers. --allan On 12/3/07, Alex Harui [EMAIL PROTECTED] wrote: Image processing is always CPU intensive. Flash is not optimized for it either. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Larry Zhang Sent: Monday, December 03, 2007 2:03 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to improve BitmapData processing speed? Hello all, I am processing a bitmap data in Flex 3 beta 2. I want to do something to the pixels so I need to get them all and add my action to them. But I found it is very slow if I get pixels one by one by using two for loop and getPixel() method. Of course the setPixel() method is also slow. Then I try the getPixels() to gain a byteArray. It's fast but I still need to loop the byte array and readUnsignedInt() to get every color pixel and set them back. This also takes me much time. Is there any way to make it faster or I just use the wrong method to do such things? Thanks. == Make Every Day Count Larry Zhang - Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
[flexcoders] Re: Spreadsheet application in Flex
Hello, Just let you know that we implemented the features you asked about, and not only them. - File manager (open file, new file, save file, save-as file, import file) - Cell formatting (string, numeric) - Address/formula bar - Address selection with mouse when typing in formulas and many others our full to-do list (and new screencast) is here http://andriyo.kiev.ua/archives/16 No design yet, pure nerdy style but our designer promised to put some charm on it soon. Sorry that it's only screencasts, we don't have the server yet but I hope we get one soon, so you'll be able to try it in live Andrii Olefirenko --- In flexcoders@yahoogroups.com, bloodylag [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, andrii_olefirenko andriyo@ wrote: Just watched the video, pretty cool looking demo. Though I noticed a few things 1. The part where he was showing off the SUM. He went from the inital row to also the row where he was putting the formula (I10 - I14) though the numbers only went from I10 - I13. It gave the result of 20, which I guess is right since he did 1 + 2 + 3 + 4 = 10 + =SUM(of those 4 numbers) which is 20. Though I pretty sure normal spreadsheets will error on that, I tried it in google spreadsheets and it throws a #REF error. 2. Will you support when doing an equation cell highlighting to automatically fill in the equation. IE =SUM( user clicks cells and it puts it in)? 3. Also will you have a textbox which shows the current formula for the currently selected cell?
Re: [flexcoders] Re: How to have no MenuBar No ToolBar in Browser
I think that you should just keep inside the regular template until you're further along in the process. Opening a window without the title and menu is not something which should affect the coding, and your designer shouldn't need the actual window to design a window with next to no chrome on it. If you need an example of window.open let me know --A On Dec 3, 2007 10:50 PM, haravallabhan [EMAIL PROTECTED] wrote: I think you need to use another html page and in that you need to have a javascript function and call the window.open pointing to the html embeded with the flex. You can modify all the properties of a window using the window.open. Call the window.open in the onload function of the body tag of the html page. Cheers Hara --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, jwc_wensan [EMAIL PROTECTED] wrote: Good Morning: I am using FlexBuilder 2.01. When I run my app, I want the app to display in the browser without the menu bar and toolbar. Like when JamJar and other apps display it just has the Title bar. I am using IE 6 as my browser. I think I need to change the index.template.html file located in the html-template folder. I have searched but have been unable to find info on what code and where it goes to achieve this. Again, I think it is menubar=no and toolbar=no, but not sure of the syntax and if index.template.html is the right file. Can anyone tell me what needs to be changed and where does it go? Thanks, Jack
[flexcoders] Re: Accessing Microsoft XLS from Flex.
hi Prayank: to Question 1:it seems there's no flex's API to read XLS file... to Question 2:filtering data function is certainly available,but flex did not provide data filter component.u should write codes to accomplish that.if u'll use sever side Java code to read database,how about using SQL to filter datas,in my opinion,this method saves alot of Flex codes but of course is a little bit lazy,and will cost extra time to complete the filtering. to Question 3:yes~i had done this before too,i directly changed XLS file to mdb files(Access'file) and use JDBC-ODBC drive to connect database. all the best~ P.S:if u find ways to read XLS file directly from flex app,i will be grateful if u tell me about it~
[flexcoders] Re: How to have no MenuBar No ToolBar in Browser
I think you need to use another html page and in that you need to have a javascript function and call the window.open pointing to the html embeded with the flex. You can modify all the properties of a window using the window.open. Call the window.open in the onload function of the body tag of the html page. Cheers Hara --- In flexcoders@yahoogroups.com, jwc_wensan [EMAIL PROTECTED] wrote: Good Morning: I am using FlexBuilder 2.01. When I run my app, I want the app to display in the browser without the menu bar and toolbar. Like when JamJar and other apps display it just has the Title bar. I am using IE 6 as my browser. I think I need to change the index.template.html file located in the html-template folder. I have searched but have been unable to find info on what code and where it goes to achieve this. Again, I think it is menubar=no and toolbar=no, but not sure of the syntax and if index.template.html is the right file. Can anyone tell me what needs to be changed and where does it go? Thanks, Jack