[flexcoders] Re: Is it a bug while switching focus ?
Hi Alex, As in my example, it did. It can get back the focus but it shifts to other control (test2) instead of original one (test1).
[flexcoders] LCDS timeout problem
Hi everybody, I've got a problem with timeout in LCDS! I redefine DS timeout to x minutes and then, after this timeout, the data service object (a list in my case) is no longer updated. A basic solution is to extend timeout to 1 hour or more, but it's not an appropriate solution because this app can run for a very long time. Is someone have a solution? The good solution? Is it possible to regulary refresh DS for not reach timeout? Thanks for your answer Bérenger
[flexcoders] Objects are not Garbage Collected
Hi all i have written a simple flex applcation and i am using a Caringorm framework. In my command class i am parsing a xml response and cretating about 100 value object and iam adding these object in a ArrayCollection which is bind to some gird . when i enters in execute method i explicitly remove each object from collection like this for( var k:int = 0 ; k model.objArrCollModelsVO.length ;k++ ) { var obj:Object = model.objArrCollModelsVO.removeItemAt( k ); trace( GOing to Remove + obj.name ); obj = null ; } but these are objects are not garbage collected and remians in memory can any one tell how to resolve this problem b/c my application is getting very slow if my commnd class runs more than 6 times Or any one can send some good tutorial about Garbage collection in Flex Thanks in Advance Parkash ARjan...
[flexcoders] How to improve consuming rate of Flex messages
Hi , I have a JMS Producer that produces messages at a speed of 25 msgs/Per second. How could i make my flex application smart enough to consume those inoming messages. Thanks, with Regards, Jitendra Jain Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
Re: [flexcoders] Objects are not Garbage Collected
In order to be garbage collected there must not be any references to the object at all. If you have assigned another variable to the object and not set that to null, it won't be collected. If you have an event handler associated with an object, it won't be collected. When nothing at all is referencing the object it becomes eligible for collection. Sometimes that's easier said than done. BTW if you have references to children of the object, they won't be available for garbage collection until no references to them exist. Paul - Original Message - From: Parkash To: flexcoders@yahoogroups.com Sent: Wednesday, November 05, 2008 1:04 PM Subject: [flexcoders] Objects are not Garbage Collected Hi all i have written a simple flex applcation and i am using a Caringorm framework. In my command class i am parsing a xml response and cretating about 100 value object and iam adding these object in a ArrayCollection which is bind to some gird . when i enters in execute method i explicitly remove each object from collection like this for( var k:int = 0 ; k model.objArrCollModelsVO.length ;k++ ) { var obj:Object = model.objArrCollModelsVO.removeItemAt( k ); trace( GOing to Remove + obj.name ); obj = null ; } but these are objects are not garbage collected and remians in memory can any one tell how to resolve this problem b/c my application is getting very slow if my commnd class runs more than 6 times Or any one can send some good tutorial about Garbage collection in Flex Thanks in Advance Parkash ARjan...
[flexcoders] fill method problem with parameters (Flex data management services)
Hello, I'm trying to perform a search with flex data management services to use the advantages like caching/paging. The problem is each time I try to perform the call (fill arraycollection with results), I get an error message. [RPC Fault faultString=Unable to locate a fill method for destination 'search' which matches the following parameters: [TEST, TEST123]. faultCode=Server.Processing faultDetail=null] I've been playing with the parameter options (switching from List to map etc.), but nothing worked. *My server side java code looks like this* import java.util.List; import java.util.Map; import java.util.Vector; import java.util.Collection; public class SearchServiceAssembler { public SearchServiceAssembler() { System.out.println(SearchServiceAssembler Constructor \n); } //Other methods public Collection fill(List test) { System.out.println(###+test.toString()+###); System.out.println(SearchServiceAssembler fill \n); Vector v = new Vector(); return v; } } *Here is my data-management configuration* destination id=search adapter ref=java-dao / properties sourcemy.package.SearchServiceAssembler/source scopeapplication/scope metadata identity property=account / /metadata server fill-method namefill/name paramsjava.util.List/params /fill-method /server /properties /destination *and offcourse my client side Actionscript code * - Creation of dataService searchService = new DataService(search); var myrtmp:RTMPChannel = new RTMPChannel(my-rtmp, rtmp://*:2038); searchService.channelSet = new ChannelSet(); searchService.channelSet.addChannel(myrtmp); - call to searchService searchService.fill(found,'TEST','TEST'); //With found initialized (ArrayCollection) When I'm start the livecycle server I can see he is passing the constructor of my assembler. So he's loaded I think Thanks ;) Ward
[flexcoders] hi! this examples didn't work out,please help
when I read the Essential guide to flex 3 from page 87 to 95, there is a example , in the application MXML ,the code is mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:local=* mx:Script ![CDATA[ public var myProperty:String = myComponent.myFirstProperty; ]] /mx:Script local:MyFirstComponent id=myComponent myFirstProperty=Welcome to Flex / mx:Label text={myComponent.myFirstProperty} id=myLabel/ /mx:Application and in the component file :MyFirstComponent ,is just these code below: mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=400 height=300 mx:Script ![CDATA[ [Bindable] public var myFirstProperty:String; ]] /mx:Script /mx:Canvas I followed all the steps, and would like to view the value of myProperty in the script section of the Application MXML file, in the Expressionis frame, but the error was TypeError: Error #1009:, It's seems like myProperty cannot get the value from a object attribute. what is wrong with it? Thanks a lot! Ashly
[flexcoders] HttpService POST shows as GET on server logs
Hi, I am using Version 3.0.0 build 477 of mxmlc. I have the following service code: mx:HTTPService id=sendTestRequest url=http://localhost/basic.xml; useProxy=false method=POST resultFormat=e4x contentType=application/x-www-form-urlencoded fault=onServiceError(event) result=onComplete(event) / I have verified by tracing before my send that the service.method is POST. When I check in live httpheaders it shows a GET and from my apache access logs: [04/Nov/2008:16:12:38 -0800] GET /basic.xml HTTP/1.1 200 40 Thanks in advance, Dan
[flexcoders] fill method problem with parameters (Flex data management services)
Hello, I'm trying to perform a search with flex data management services to use the advantages like caching/paging. The problem is each time I try to perform the call (fill arraycollection with results), I get an error message. [RPC Fault faultString=Unable to locate a fill method for destination 'search' which matches the following parameters: [TEST, TEST123]. faultCode=Server.Processing faultDetail=null] I've been playing with the parameter options (switching from List to map etc.), but nothing worked. My server side java code looks like this import java.util.List; import java.util.Map; import java.util.Vector; import java.util.Collection; public class SearchServiceAssembler { public SearchServiceAssembler() { System.out.println(SearchServiceAssembler Constructor \n); } //Other methods public Collection fill(List test) { System.out.println(###+test.toString()+###); System.out.println(SearchServiceAssembler fill \n); Vector v = new Vector(); return v; } } Here is my data-management configuration destination id=search adapter ref=java-dao / properties sourcemy.package.SearchServiceAssembler/source scopeapplication/scope metadata identity property=account / /metadata server fill-method namefill/name paramsjava.util.List/params /fill-method /server /properties /destination and offcourse my client side Actionscript code - Creation of dataService searchService = new DataService(search); var myrtmp:RTMPChannel = new RTMPChannel(my-rtmp, rtmp://*:2038); searchService.channelSet = new ChannelSet(); searchService.channelSet.addChannel(myrtmp); - call to searchService searchService.fill(found,'TEST','TEST'); //With found initialized (ArrayCollection) When I'm start the livecycle server I can see he is passing the constructor of my assembler. So he's loaded I think Thanks ;) Ward -- View this message in context: http://www.nabble.com/fill-method-problem-with-parameters-%28Flex-data-management-services%29-tp20340634p20340634.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Re: my first flex website
Gustavo, here are a few things I noticed: -- The sculpture/building image (and maybe some other content) did not load at the same time as the rest of the design; it was somewhat jarring when it/they did finally appear (a few seconds later). You might want to consider embedding all the content (if not doing that is what is causing the delay). -- The sliding in of the various bits of content (from the left and right) is unusual. But I really like it and I think it works well. -- I would strongly suggest trying to unify the typography (i.e., make it more consistent, etc.). The text at the top is also a bit hard to read. -- I like the looks of the semi-circles (on each side), but they are making your site quite wide (and even without them it is wide). -- In general, I would suggest taking what you've got and trying to simplify the visual design a little. -- This is much cooler than my first Flex application; so what do I know? 8-) Regards, Jim --- In flexcoders@yahoogroups.com, Gustavo Duenas [EMAIL PROTECTED] wrote: HI, finally I've done my first flex web siteit is done, or at least is that what I think...maybe tomorrow I'll add something else. please check it at: http://leftandrightsolutions.com/lrsad/bin/lrsad.html please don't be so hard in critics, is ok to be criticized but don't be offensive. I hope you like, is not the big deal, but is something that did by myself, I thank in advance to all of you who help me out with your advices. regards, Gustavo Gustavo A. Duenas Creative Director LEFT AND RIGHT SOLUTIONS 904. 265 0330 - 904. 386 7958 www.leftandrightsolutions.com Jacksonville - Florida
[flexcoders] Security and dual localhost address question
I am building a Flex (version 2) application on my machine with a Tomcat server that is hosting the application, a couple of servlets and an Axis2 web service. The application runs fine if I load it from an address starting with http://127.0.0.1:8080. However, the web-service call will fail if I load the exact same application from http://localhost:8080. The gives me a Security error accessing url Alert. I've read in the past that Flash is strict about the interpretations of domains, so I'm not surprised by this behavior. Further, I am theorizing this is happening because the WSDL file for the service uses the numeric address rather than localhost. Since that is the only usage of the numeric IP address I can find (all the URLs I have constructed use localhost). I have a crossdomain.xml file that is reachable at http://127.0.0.1:8080:8080/crossdomain.xml;. It's not solving the problem. The crossdomain file has this format: cross-domain-policy allow-access-from domain=* to-ports=* secure=false/ /cross-domain-policy The web service is built using Apache Axis2. So, its address in the WSDL is: http://l27.0.0.1:8080/axis2/services/TestService. Is there some special location or content to the policy file that I'm missing? Thank you.
[flexcoders] how synchronising flex remoteobject and coldfusion
Hello, i have one problem in flex 3, but before that let me explain u what i'm trying to do. i have built a login form where i'm sending data to coldfusion component(*. cfc) file using Remote Object Method. If the login information is matched with database then i create a session variable and send the true boolean value to login page where it redirect to next page. In Next Page i have just showed who is login and a LOGOUT Button. i have used createCompletion method in application tag which executes a function where i have called a coldfusion function to check whether session variable is defined or not , if yes then the page is displayed and if not then the page is redirected to login page. . This piece of code is working very fine to me. Now the problem is that, Suppose the user is not logged in and i'm directly pasting the URL of second page then it displays the page for few seconds and then it is redirected to login page. i want that it should not display anything until the session varible is checked. how could i do this. Sample url is as follows: http://freelancingl eaders.com/ intakeflow/ IntakeFlow. html http://freelancingl eaders.com/ intakeflow/ IntakeFlow. html UserName: hemant Password: garg. Plz Suggest me. Tahnk You.
[flexcoders] Listeners and weak references
I have a question on the weak references when adding a listener like this: btnSave.addEventListener(MouseEvent.CLICK, onBtnSaveClick, false, 0, true); I have found this approach with weak reference as an advise somewhere, but I would like to understand what happens really. If we add a listener specifying useWeakReference = true as in the example above, does this mean that the garbage collection might remove unexpectedly the event listener and the mouse event handling to stop working? When using weak reference for the event listener, is it needed to explicitly remove the event listener at some point in time? In general - what is the best practice in this regard? Kind Regards, Nikolay
[flexcoders] Listeners and weak references
I have a question on the weak references when adding a listener like this: btnSave.addEventListener(MouseEvent.CLICK, onBtnSaveClick, false, 0, true); I have found this approach with weak reference as an advise somewhere, but I would like to understand what happens really. If we add a listener specifying useWeakReference = true as in the example above, does this mean that the garbage collection might remove unexpectedly the event listener and the mouse event handling to stop working? When using weak reference for the event listener, is it needed to explicitly remove the event listener at some point in time? In general what is the best practice in this regard? Kind Regards, Nikolay
RE: [flexcoders] HttpService POST shows as GET on server logs
If the POST body is empty, Flex converts the POST to a GET. Is this the case in your situation? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dantmcgowan Sent: Tuesday, November 04, 2008 7:28 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] HttpService POST shows as GET on server logs Hi, I am using Version 3.0.0 build 477 of mxmlc. I have the following service code: mx:HTTPService id=sendTestRequest url=http://localhost/basic.xml http://localhost/basic.xml useProxy=false method=POST resultFormat=e4x contentType=application/x-www-form-urlencoded fault=onServiceError(event) result=onComplete(event) / I have verified by tracing before my send that the service.method is POST. When I check in live httpheaders it shows a GET and from my apache access logs: [04/Nov/2008:16:12:38 -0800] GET /basic.xml HTTP/1.1 200 40 Thanks in advance, Dan
[flexcoders] Re: Listeners and weak references
When u register an EventListener to en IEventDispatcher instance not using weak references, the object won't be garbage collected untill all references got null. This not only affects references by objects and arrays, but also eventlistener. Using weak references will allow the garbage collection to remove objects, even if there are eventlisteners left. But using weak references will also slow the machine down, if i remember right aboit 10clock cycles. Here's a blog entry u might want to read: http://www.onflex.org/ted/2008/09/useweakreferencesboolean-false.php I was using weak refernces heavily, but u don't have to. When u are using eventlistener as members of the instance, they don't have to be weak, since the whole object can be garbage collected. But, when u have for example a sprite instanciated in the scope of another object, u should for example use the eventlistener for Event.ADDED weak referenced. The other listeners will be added and removed depending on the state of sprite - an example; why should a sprite listen to mouse events, when it is not in the displaylist. Add the necessary listeners when it is on the stage. So it always depends on what u are doing. Best regards. --- In flexcoders@yahoogroups.com, iliev_niki [EMAIL PROTECTED] wrote: I have a question on the weak references when adding a listener like this: btnSave.addEventListener(MouseEvent.CLICK, onBtnSaveClick, false, 0, true); I have found this approach with weak reference as an advise somewhere, but I would like to understand what happens really. If we add a listener specifying useWeakReference = true as in the example above, does this mean that the garbage collection might remove unexpectedly the event listener and the mouse event handling to stop working? When using weak reference for the event listener, is it needed to explicitly remove the event listener at some point in time? In general what is the best practice in this regard? Kind Regards, Nikolay
RE: [flexcoders] hi! this examples didn't work out,please help
You can only do simple initialization of vars outside of a function. If you try, you can get a null object reference. (please give the text of the error, I do not have the numbers memorized) Put that variable assignment into a function, like init() and call it in a creationComplete handler. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ashlytu Sent: Tuesday, November 04, 2008 10:16 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] hi! this examples didn't work out,please help when I read the Essential guide to flex 3 from page 87 to 95, there is a example , in the application MXML ,the code is mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute xmlns:local=* mx:Script ![CDATA[ public var myProperty:String = myComponent.myFirstProperty; ]] /mx:Script local:MyFirstComponent id=myComponent myFirstProperty=Welcome to Flex / mx:Label text={myComponent.myFirstProperty} id=myLabel/ /mx:Application and in the component file :MyFirstComponent ,is just these code below: mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml width=400 height=300 mx:Script ![CDATA[ [Bindable] public var myFirstProperty:String; ]] /mx:Script /mx:Canvas I followed all the steps, and would like to view the value of myProperty in the script section of the Application MXML file, in the Expressionis frame, but the error was TypeError: Error #1009:, It's seems like myProperty cannot get the value from a object attribute. what is wrong with it? Thanks a lot! Ashly
RE: [flexcoders] how synchronising flex remoteobject and coldfusion
That what it sounds like to me. You could pass a value into the main app via flashvars, and check for that value on app startup. If the value is present and correct, then show the app, otherwise show a blank view or a splash screen (use ViewStack) Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Howard Fore Sent: Wednesday, November 05, 2008 8:54 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] how synchronising flex remoteobject and coldfusion So you've got two HTML pages that are showing two different SWFs? One with the login page and then one to redirect to with the real content when the login succeeds? On Wed, Nov 5, 2008 at 2:05 AM, call_me_hems [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hello, i have one problem in flex 3, but before that let me explain u what i'm trying to do. i have built a login form where i'm sending data to coldfusion component(*. cfc) file using Remote Object Method. If the login information is matched with database then i create a session variable and send the true boolean value to login page where it redirect to next page. In Next Page i have just showed who is login and a LOGOUT Button. i have used createCompletion method in application tag which executes a function where i have called a coldfusion function to check whether session variable is defined or not , if yes then the page is displayed and if not then the page is redirected to login page. . This piece of code is working very fine to me. Now the problem is that, Suppose the user is not logged in and i'm directly pasting the URL of second page then it displays the page for few seconds and then it is redirected to login page. i want that it should not display anything until the session varible is checked. how could i do this. Sample url is as follows: http://freelancingl eaders.com/ intakeflow/ IntakeFlow. html http://freelancingl eaders.com/ intakeflow/ IntakeFlow. html UserName: hemant Password: garg. Plz Suggest me. Tahnk You. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf -1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo ! Groups Links (Yahoo! ID required) mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- Howard Fore, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] The universe tends toward maximum irony. Don't push it. - Jeff Atwood
Re: [flexcoders] Re: adding (none) option to comboboxes
thanks guys, tim i do agree with your pseudo-rant- there are just too many things in flex that should be easy or 'no-brainers'. This being a perfect example. Flex is awesome, make no mistake, but I think enough people do this sort of technique to build it in to the framework- hopefully for next version. Working with forms is another process I would love to see refined for the next version but I'm getting off topic. yeah i noticed that 'prompt' actually goes away when you select another option- so I put a button next to the cbo to set it to selectedIndex = -1 which works but is ugly. alex i'll try to follow your example. d. On Tue, Nov 4, 2008 at 2:22 PM, Tim Hoff [EMAIL PROTECTED] wrote: Yeah, it wasn't personal Alex. I guess I just felt like giving some commentary/feedback from the developer point of view. Sorry if it was taken the wrong way. -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Hmm. What prompted that? My blog has this post: http://blogs.adobe.com/aharui/2008/03/custom_ilists_combobox_prompts.htm\ lhttp://blogs.adobe.com/aharui/2008/03/custom_ilists_combobox_prompts.html Most of my posts I hope are like pre-mixed dough. It gets you most or all of the way there, I think. From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of Tim Hoff Sent: Tuesday, November 04, 2008 1:00 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Re: adding (none) option to comboboxes Just subclass. With all humble respect, most developers do not have the time, and sometimes the ability, to extend the framework quickly to meet simple requirements like this. I say this only to point out the different perspectives between a flex framework engineer and an average or beginner flex developer. Sure, the power of flex is that you can always roll your own; when necessary. All for that!!! The problem though, is that this may be too much to ask from a developer with a deadline. Before flex, I came from the Microsoft camp. I absolutely appreciate the freedom that flex affords, to extend the framework and/or create components from scratch. But, the built-in properties and styles that flex offers is not quite as comprehensive as what I was previously used to. That being said, I'd love to see the best of both worlds in the next generation of! flex. I guess it boils down to the budget and scope of each release of flex. Of course, the framework can't account for every possible use-case. However, there are quite a few common functions and styles, that could be considered to be included. I've had to do something like all or none many times with a ComboBox. For a cleanly coded application, I'd much rather just be able to set a property, like prompt (but more like reset), instead of adding a sub classed control or hacking a solution through the dataProvider. Just .02 and a pseudo rant. :) -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex Harui aharui@ wrote: An example of such on my blog From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com[mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of Tim Hoff Sent: Monday, November 03, 2008 2:08 PM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: [flexcoders] Re: adding (none) option to comboboxes Hi Derrick, The ComboBox prompt will not solve your problem here. It only appears when the selectedIndex==-1; Unless you want to subclass ComboBox, you're going to have to add none to the dataProvider, and implement custom logic to account for it. Since you're using the same dataProvider elsewhere, I suggest that you use the object utility copy function, to make a deep copy of the collection; to be used for the ComboBox with none added. -TH --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto: flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.com, Derrick Anderson no.way.this.is.in.use@ wrote: nevermind, i discovered the 'prompt' property :) On Mon, Nov 3, 2008 at 3:04 PM, Derrick Anderson no.way.this.is.in.use@ wrote: hi, i know this is probably a simple question- but what's the best way of adding a (none) label to a combobox. i have a setter for the dataprovider where I add an option for (None) in the list, but I don't actually want it in the dataprovider if that makes sense. Basically, I want (None) to always be a selectable item in comboboxes, but I don't actually want to put that option in the arraycoll! ection combobox dataprovider. here is the setter for gt; the combobox dataprovider public function set segmentList(list:ArrayCollection):void { _segmentList = list; var
[flexcoders] Selection Component
Hi All, I need a selection component for my images through which i can rotate,resize,move or delete them. Can anybody help me in creating the same. Regards, Kanu Kukreja
[flexcoders] Property not found on mx.collections.ItemWrapper
Hi. I've added an effect to an AdvancedDataGrid, mx:AdvancedDataGrid dataChangeEffect={DefaultTileListEffect} ... and now it throws this error, Property SelectedFileName not found on mx.collections.ItemWrapper and there is no default value. It's on a line in an itemRenderer's set data() method where it tries to read the SelectedFileName. if (data.SelectedFileName != null data.SelectedFileName != undefined data.SelectedFileName != ){ loaded = true; fileName = data.SelectedFileName; } I've not been able to find anything on this error. Help! Thanks.
[flexcoders] Use of NetBeans 6.1 and Flare
Hello I've been working on a system which requires users to be able to create visualisations of data and am interested in using Flex. My application has been written in NetBeans and is made up of JSPs and servlets using Tomcat to connect to MySQL. I'm looking to do is to include .swfs within JSP pages. But I'm unsure about how to go connect my application to Flex or to use Flex within NetBeans. So can anybody advise me as to the best way in which to go about this? Thanks Martin O'Shea.
Re: [flexcoders] Cairngen UM Extensions on Vista
On Tuesday 04 Nov 2008, Jake Churchill wrote: I am trying to use Cairngen with UM Extensions to create-sequence on Windows Vista. I am getting an error saying: java.lang.UnsatisfiedLinkError: no swt-win32-3346. The other build.xml targets work fine but this one has prompting. Are you building the UM .swc, or your own application ? -- Tom Chiverton Helping to greatly evolve clusters This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: Listeners and weak references
Thanks for this information and the useful link. As far as understand there is no need to use weak references when I want to add listener to a child of the current instance or to the current instance itself. Here is a more complete scenario: EditSomething.mxml ?xml version=1.0 encoding=utf-8? EditSomethingLogic xmlns=* xmlns:mx=http://www.adobe.com/2006/mxml; width=400 height=300 mx:Button id=btnSave label=Save / /EditSomethingLogic EditSomethingLogic.as package { import flash.events.MouseEvent; import mx.containers.Canvas; import mx.controls.Button; import mx.events.FlexEvent; public class EditSomethingLogic extends Canvas { [Bindable] public var btnSave:Button; public function EditSomethingLogic() { super(); addEventListener(FlexEvent.CREATION_COMPLETE, onInit); } private function onInit(event:FlexEvent):void { btnSave.addEventListener(MouseEvent.CLICK, onBtnSaveClick); } private function onBtnSaveClick(event:MouseEvent):void { // Do something - save some data } } } So in both cases (addEventListener(FlexEvent.CREATION_COMPLETE, onInit); and btnSave.addEventListener(MouseEvent.CLICK, onBtnSaveClick);) there is no point in using weak references as the whole EditSomething instance including the child sprites and the event listeners will be garbage collected once removed from the stage? Kind Regards, Nikolay From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of florian.salihovic Sent: Wednesday, November 05, 2008 3:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Listeners and weak references When u register an EventListener to en IEventDispatcher instance not using weak references, the object won't be garbage collected untill all references got null. This not only affects references by objects and arrays, but also eventlistener. Using weak references will allow the garbage collection to remove objects, even if there are eventlisteners left. But using weak references will also slow the machine down, if i remember right aboit 10clock cycles. Here's a blog entry u might want to read: http://www.onflex.org/ted/2008/09/useweakreferencesboolean-false.php I was using weak refernces heavily, but u don't have to. When u are using eventlistener as members of the instance, they don't have to be weak, since the whole object can be garbage collected. But, when u have for example a sprite instanciated in the scope of another object, u should for example use the eventlistener for Event.ADDED weak referenced. The other listeners will be added and removed depending on the state of sprite - an example; why should a sprite listen to mouse events, when it is not in the displaylist. Add the necessary listeners when it is on the stage. So it always depends on what u are doing. Best regards. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , iliev_niki [EMAIL PROTECTED] wrote: I have a question on the weak references when adding a listener like this: btnSave.addEventListener(MouseEvent.CLICK, onBtnSaveClick, false, 0, true); I have found this approach with weak reference as an advise somewhere, but I would like to understand what happens really. If we add a listener specifying useWeakReference = true as in the example above, does this mean that the garbage collection might remove unexpectedly the event listener and the mouse event handling to stop working? When using weak reference for the event listener, is it needed to explicitly remove the event listener at some point in time? In general - what is the best practice in this regard? Kind Regards, Nikolay
Re: [flexcoders] hi! this examples didn't work out,please help
On Wednesday 05 Nov 2008, ashlytu wrote: [Bindable] public var myFirstProperty:String; You should always give public Bindables a default value: [Bindable] public var myFirstProperty:String=''; -- Tom Chiverton Helping to continuously expedite meta-services This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[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] how synchronising flex remoteobject and coldfusion
So you've got two HTML pages that are showing two different SWFs? One with the login page and then one to redirect to with the real content when the login succeeds? On Wed, Nov 5, 2008 at 2:05 AM, call_me_hems [EMAIL PROTECTED] wrote: Hello, i have one problem in flex 3, but before that let me explain u what i'm trying to do. i have built a login form where i'm sending data to coldfusion component(*. cfc) file using Remote Object Method. If the login information is matched with database then i create a session variable and send the true boolean value to login page where it redirect to next page. In Next Page i have just showed who is login and a LOGOUT Button. i have used createCompletion method in application tag which executes a function where i have called a coldfusion function to check whether session variable is defined or not , if yes then the page is displayed and if not then the page is redirected to login page. . This piece of code is working very fine to me. Now the problem is that, Suppose the user is not logged in and i'm directly pasting the URL of second page then it displays the page for few seconds and then it is redirected to login page. i want that it should not display anything until the session varible is checked. how could i do this. Sample url is as follows: http://freelancingl eaders.com/ intakeflow/ IntakeFlow. html http://freelancingl eaders.com/ intakeflow/ IntakeFlow. html UserName: hemant Password: garg. Plz Suggest me. Tahnk You. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Howard Fore, [EMAIL PROTECTED] The universe tends toward maximum irony. Don't push it. - Jeff Atwood
RE: [flexcoders] how synchronising flex remoteobject and coldfusion
A further question: Is there a reason you chose to implement this using two applications? There are other approaches that might be simpler and cleaner, such as a single app that initially shows a splash screen with a login popup window. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Wednesday, November 05, 2008 9:18 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] how synchronising flex remoteobject and coldfusion That what it sounds like to me. You could pass a value into the main app via flashvars, and check for that value on app startup. If the value is present and correct, then show the app, otherwise show a blank view or a splash screen (use ViewStack) Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Howard Fore Sent: Wednesday, November 05, 2008 8:54 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] how synchronising flex remoteobject and coldfusion So you've got two HTML pages that are showing two different SWFs? One with the login page and then one to redirect to with the real content when the login succeeds? On Wed, Nov 5, 2008 at 2:05 AM, call_me_hems [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hello, i have one problem in flex 3, but before that let me explain u what i'm trying to do. i have built a login form where i'm sending data to coldfusion component(*. cfc) file using Remote Object Method. If the login information is matched with database then i create a session variable and send the true boolean value to login page where it redirect to next page. In Next Page i have just showed who is login and a LOGOUT Button. i have used createCompletion method in application tag which executes a function where i have called a coldfusion function to check whether session variable is defined or not , if yes then the page is displayed and if not then the page is redirected to login page. . This piece of code is working very fine to me. Now the problem is that, Suppose the user is not logged in and i'm directly pasting the URL of second page then it displays the page for few seconds and then it is redirected to login page. i want that it should not display anything until the session varible is checked. how could i do this. Sample url is as follows: http://freelancingl eaders.com/ intakeflow/ IntakeFlow. html http://freelancingl eaders.com/ intakeflow/ IntakeFlow. html UserName: hemant Password: garg. Plz Suggest me. Tahnk You. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf- 1e62079f6847 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf -1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo ! Groups Links (Yahoo! ID required) mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- Howard Fore, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] The universe tends toward maximum irony. Don't push it. - Jeff Atwood
[flexcoders] [Fwd: fill method problem with parameters (Flex data management services)]
---BeginMessage--- Hello, I'm trying to perform a search with flex data management services to use the advantages like caching/paging. The problem is each time I try to perform the call (fill arraycollection with results), I get an error message. [RPC Fault faultString=Unable to locate a fill method for destination 'search' which matches the following parameters: [TEST, TEST123]. faultCode=Server.Processing faultDetail=null] I've been playing with the parameter options (switching from List to map etc.), but nothing worked. *My server side java code looks like this* import java.util.List; import java.util.Map; import java.util.Vector; import java.util.Collection; public class SearchServiceAssembler { public SearchServiceAssembler() { System.out.println(SearchServiceAssembler Constructor \n); } //Other methods public Collection fill(List test) { System.out.println(###+test.toString()+###); System.out.println(SearchServiceAssembler fill \n); Vector v = new Vector(); return v; } } *Here is my data-management configuration* destination id=search adapter ref=java-dao / properties sourcemy.package.SearchServiceAssembler/source scopeapplication/scope metadata identity property=account / /metadata server fill-method namefill/name paramsjava.util.List/params /fill-method /server /properties /destination *and offcourse my client side Actionscript code * - Creation of dataService searchService = new DataService(search); var myrtmp:RTMPChannel = new RTMPChannel(my-rtmp, rtmp://*:2038); searchService.channelSet = new ChannelSet(); searchService.channelSet.addChannel(myrtmp); - call to searchService searchService.fill(found,'TEST','TEST'); //With found initialized (ArrayCollection) When I'm start the livecycle server I can see he is passing the constructor of my assembler. So he's loaded I think Thanks ;) Ward ---End Message---
[flexcoders] Referring to built-in Flex classes in Class typed variables
What is the appropriate syntax to refer to a built-in Flex class and create a hard link to it with the reference? The goal here is to be able to embed HaloBorder into a class that extends UIComponent to provide it as a default borderSkin if one isn't specified in CSS. It seems to me, looking at the Framework code, that the defaults are usually supplied by the global.css. I can't add my style to that (and if I could it would be approximately the same thing as putting it in a local style sheet anyway), so I'm looking for a way to give the illusion that this default is just handled without a CSS entry. Thanks; Amy
Re: [flexcoders] Re: my first flex website
A trick I have done in flash is to load the images - demanded or not - up front and either you can just throw them away or store them for use later. It might seem odd throwing the images away, but they should still be in the browser cache, so you get an instant load the second time around. Ideally you'd have a custom preloader to do that. Paul - Original Message - From: Gustavo Duenas To: flexcoders@yahoogroups.com Sent: Wednesday, November 05, 2008 3:11 PM Subject: Re: [flexcoders] Re: my first flex website Thanks Jim, I've really appreciated your comments, I will do the necessary changes, but please do you have any ideas for having those� contents loading at the same time, rather than�embedding, for example the majority of the logos in the portfolio are in a list (xml module), so is the same with the icons on contact and services. but how could I make flex to start showing anything once the main content, the sliding�background�image, has been totally loaded, embedding would add more weight to the website and I'd rather not. Regards, Gustavo On Nov 4, 2008, at 5:04 PM, jim.abbott45 wrote: Gustavo, here are a few things I noticed: -- The sculpture/building image (and maybe some other content) did not load at the same time as the rest of the design; it was somewhat jarring when it/they did finally appear (a few seconds later). You might want to consider embedding all the content (if not doing that is what is causing the delay). -- The sliding in of the various bits of content (from the left and right) is unusual. But I really like it and I think it works well. -- I would strongly suggest trying to unify the typography (i.e., make it more consistent, etc.). The text at the top is also a bit hard to read. -- I like the looks of the semi-circles (on each side), but they are making your site quite wide (and even without them it is wide). -- In general, I would suggest taking what you've got and trying to simplify the visual design a little. -- This is much cooler than my first Flex application; so what do I know? 8-) Regards, Jim --- [EMAIL PROTECTED], Gustavo Duenas [EMAIL PROTECTED] wrote: HI, finally I've done my first flex web siteit is done, or at� least is that what I think...maybe tomorrow I'll add something else. � please check it at: � �http://leftandrightsolutions.com/lrsad/bin/lrsad.html � please don't be so hard in critics, is ok to be criticized but don't� be offensive. � I hope you like, is not the big deal, but is something that did by� myself, I thank in advance to all of you who help me out with your advices. � regards, � Gustavo � � � Gustavo A. Duenas Creative Director LEFT AND RIGHT SOLUTIONS 904. 265 0330 - 904. 386 7958 www.leftandrightsolutions.com Jacksonville - Florida -- Gustavo A. Duenas Creative Director LEFT AND RIGHT SOLUTIONS 904.� 265 0330 - 904. 386 7958 www.leftandrightsolutions.com Jacksonville - Florida -- Thanks Jim, I've really appreciated your comments, I will do the necessary changes, but please do you have any ideas for having those contents loading at the same time, rather than embedding, for example the majority of the logos in the portfolio are in a list (xml module), so is the same with the icons on contact and services. but how could I make flex to start showing anything once the main content, the sliding background image, has been totally loaded, embedding would add more weight to the website and I'd rather not. Regards, Gustavo On Nov 4, 2008, at 5:04 PM, jim.abbott45 wrote: Gustavo, here are a few things I noticed: -- The sculpture/building image (and maybe some other content) did not load at the same time as the rest of the design; it was somewhat jarring when it/they did finally appear (a few seconds later). You might want to consider embedding all the content (if not doing that is what is causing the delay). -- The sliding in of the various bits of content (from the left and right) is unusual. But I really like it and I think it works well. -- I would strongly suggest trying to unify the typography (i.e., make it more consistent, etc.). The text at the top is also a bit hard to read. -- I like the looks of the semi-circles (on each side), but they are making your site quite wide (and even without them it is wide). -- In general, I would suggest taking what you've got and trying to simplify the visual design a little. -- This is much cooler than my first Flex application; so what do I know? 8-)
[flexcoders] profile still shows removed instances
Hi, I'm adding a custom UIComponent to the application and then later removing it. In the profiler it is still showing up as existing ( even after garbage collection and setting it to null etc here is a simplified example, custom butt extends standard button and does nothing else. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:comps=* creationComplete=init() mx:Script ![CDATA[ private var butt:CustomButt; private function rem(e:Event):void { butt.removeEventListener(MouseEvent.CLICK, rem); removeChild(butt); butt = null; } private function init():void { addChild( butt = new CustomButt()); butt.addEventListener(MouseEvent.CLICK, rem); } ]] /mx:Script /mx:Application anyone any ideas?, is removing child elements in a flex different to standard AS 3
[flexcoders] Re: unable to bind to property 'width' on class 'Object'
but the problem is that component doesn´t appear on screen... ...it seems that it is unable to add it's child components... (measure method is called in an infinite loop) --- In flexcoders@yahoogroups.com, Vijay Anand Mareddy [EMAIL PROTECTED] wrote: dont worry its only a warning. You can get ride of it by typecasting your Object into an XML like this: { XML(object).width } --- In flexcoders@yahoogroups.com, Juan Carlos M. colombia@ wrote: Hi... may this is weird I´ve extended a Canvas component using mxml. When I use that component inside a titlewindow it works... but it doesn´t work inside other components and flex's console shows this error: warning: unable to bind to property 'width' on class 'Object' (class is not an IEventDispatcher) (it seems that measure method is in an infinite loop... )
[flexcoders] Removing extreme ends of an Axis
Hi, Weird one this... if you run the attached code, you'll see that on the horizontal axis, at each side of it, it extends fractionally past the vertical axes... anyone know how to prevent this? Thanks, Jamie. ?xml version=1.0? !-- charts/AddLabelsWithOffsetLines.mxml -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; backgroundColor=0xFF backgroundGradientColors=[0xFF, 0xFF] mx:Script![CDATA[ import mx.containers.HBox; import mx.charts.LinearAxis; import mx.containers.Box; import mx.collections.ArrayCollection; import mx.charts.series.items.ColumnSeriesItem; import mx.charts.ChartItem; import mx.charts.chartClasses.CartesianCanvasValue; import mx.charts.chartClasses.CartesianTransform; import qs.charts.dataShapes.*; [Bindable] public var profits:ArrayCollection = new ArrayCollection([ {Month:1, Profit:1300}, {Month:2, Profit:750}, {Month:3, Profit:1100}, {Month:4, Profit:1000}, {Month:5, Profit:980}, {Month:6, Profit:1500}, {Month:7, Profit:2060}, {Month:8, Profit:1700}, {Month:9, Profit:1690}, {Month:10, Profit:2200}, {Month:11, Profit:2550}, {Month:12, Profit:3000} ]); ]]/mx:Script mx:Stroke id=yAxisStroke color=#44 alpha=1 weight=2/ mx:Stroke id=xAxisStroke color=#44 alpha=1 weight=2/ mx:Canvas id=mainCanvas width=80% height=80% backgroundAlpha=0 mx:LineChart id=myChart width=100% height=90% dataProvider={profits} selectionMode=single mx:seriesFilters mx:Array/ /mx:seriesFilters mx:backgroundElements mx:CartesianDataCanvas id=canvas alpha=0 includeInRanges=false / /mx:backgroundElements mx:horizontalAxis mx:CategoryAxis dataProvider={profits} categoryField=Month / /mx:horizontalAxis mx:secondVerticalAxis mx:LinearAxis / /mx:secondVerticalAxis mx:horizontalAxisRenderer mx:AxisRenderer showLabels=false canStagger=false placement=top tickLength=0 minorTickPlacement=outside tickPlacement=outside minorTickLength=0 fontSize=11 mx:axisStroke{xAxisStroke}/mx:axisStroke mx:tickStroke{xAxisStroke}/mx:tickStroke mx:minorTickStroke{xAxisStroke}/mx:minorTickStroke /mx:AxisRenderer /mx:horizontalAxisRenderer mx:verticalAxisRenderer mx:AxisRenderer tickLength=0 minorTickPlacement=outside tickPlacement=outside minorTickLength=0 fontSize=11 fontWeight=normal mx:axisStroke{yAxisStroke}/mx:axisStroke mx:tickStroke{yAxisStroke}/mx:tickStroke mx:minorTickStroke{yAxisStroke}/mx:minorTickStroke /mx:AxisRenderer /mx:verticalAxisRenderer mx:secondVerticalAxisRenderer mx:AxisRenderer tickLength=0 minorTickPlacement=outside tickPlacement=outside minorTickLength=0 fontSize=11 fontWeight=normal mx:axisStroke{yAxisStroke}/mx:axisStroke mx:tickStroke{yAxisStroke}/mx:tickStroke mx:minorTickStroke{yAxisStroke}/mx:minorTickStroke /mx:AxisRenderer /mx:secondVerticalAxisRenderer mx:series mx:LineSeries id=mainSeries xField=Month yField=Profit displayName=Profit selectable=true mx:lineStroke mx:Stroke id=mainLine color=0x44 weight=2 / /mx:lineStroke /mx:LineSeries /mx:series /mx:LineChart /mx:Canvas /mx:Application
[flexcoders] Re: unable to bind to property 'width' on class 'Object'
Code? --- In flexcoders@yahoogroups.com, Juan Carlos M. [EMAIL PROTECTED] wrote: but the problem is that component doesn´t appear on screen... ...it seems that it is unable to add it's child components... (measure method is called in an infinite loop) --- In flexcoders@yahoogroups.com, Vijay Anand Mareddy vam2@ wrote: dont worry its only a warning. You can get ride of it by typecasting your Object into an XML like this: { XML(object).width } --- In flexcoders@yahoogroups.com, Juan Carlos M. colombia@ wrote: Hi... may this is weird I´ve extended a Canvas component using mxml. When I use that component inside a titlewindow it works... but it doesn´t work inside other components and flex's console shows this error: warning: unable to bind to property 'width' on class 'Object' (class is not an IEventDispatcher) (it seems that measure method is in an infinite loop... )
[flexcoders] Change item renderer style name in Tilelist
Hello, I am new to Flex. I am facing one problem which is driving me crazy. It would be very helpful if any one of Flex experts out there help me. I need to show a label with gradient background color as each item component in TileList. Label does not support colored gradient background. So I am placing the Label on top of a canvas and using below workaround style on canvas. .grad1 { borderStyle: applicationControlBar; fillAlphas: 1.0, 1.0; highlightAlphas: 0, 0; fillColors: #C6292C, #700C06; } Using the following code, I am able to acheive this. mx:TileList width=100% height=100% dataProvider={ listData.item } x=0 y=0 horizontalScrollPolicy=off itemRenderer=TileItemRenderer mx:itemRenderer mx:Component mx:VBox paddingTop=4 paddingRight=4 paddingBottom=2 paddingLeft=4 mx:Canvas id=boxa width=100% height=100% styleName=grad1 horizontalScrollPolicy=off verticalScrollPolicy=off mx:Label text={data.name } / /mx:Canvas /mx:VBox /mx:Component /mx:itemRenderer /mx:TileList Now I want change the gradient color based on the data text displayed in Label TileList data mx:XMLList id=listData items item nameX/name stylegrad1/style /item item nameY/name stylegrad3/style /item item name/name stylegrad2/style /item /items /mx:XMLList I added some inline styles for different colors mx:Style .grad1, .grad2,.grad3, .grad4 { borderStyle: applicationControlBar; fillAlphas: 1.0, 1.0; highlightAlphas: 0, 0; } .grad1 { fillColors: #C6292C, #700C06; } .grad2 { fillColors: #F7A71A, #E36E11; } .grad3 { fillColors: #ECC917, #BB8E00; } .grad4 { fillColors: #2F72CB, #15396F; } /mx:Style I changed the itemrenderer as below mx:itemRenderer mx:Component mx:VBox paddingTop=4 paddingRight=4 paddingBottom=2 paddingLeft=4 mx:Canvas id=boxa width=100% height=100% styleName=grad1 horizontalScrollPolicy=off verticalScrollPolicy=off mx:Script ![CDATA[ override protected function commitProperties():void { super.commitProperties(); boxa.styleName = super.data.style; } ]] /mx:Script mx:Label text={data.name } / /mx:Canvas /mx:VBox /mx:Component /mx:itemRenderer But this gives me an error on the line boxa.styleName = super.data.style; TypeError: Error #1006: value is not a function. at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::initThe\ meColor()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UICompo\ nent.as:7845] at mx.core::UIComponent/set styleName()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UICom\ ponent.as:4546] at RiskEnginePrototype_inlineComponent1/commitProperties()[C:\projects\Risk\ EnginePrototype\themesamples\brownie\src\RiskEnginePrototype.mxml:325] at mx.core::UIComponent/validateProperties()[E:\dev\3.1.0\frameworks\projec\ ts\framework\src\mx\core\UIComponent.as:5749] at mx.managers::LayoutManager/validateClient()[E:\dev\3.1.0\frameworks\proj\ ects\framework\src\mx\managers\LayoutManager.as:794] at mx.controls.listClasses::TileBase/http://www.adobe.com/2006/flex/mx/inte\ rnal::setupRendererFromData()[E:\dev\3.1.0\frameworks\projects\framework\ \src\mx\controls\listClasses\TileBase.as:1998] at mx.controls.listClasses::TileBase/measureHeightOfItems()[E:\dev\3.1.0\fr\ ameworks\projects\framework\src\mx\controls\listClasses\TileBase.as:2024\ ] at mx.controls.listClasses::TileBase/commitProperties()[E:\dev\3.1.0\framew\ orks\projects\framework\src\mx\controls\listClasses\TileBase.as:2329] at mx.core::UIComponent/validateProperties()[E:\dev\3.1.0\frameworks\projec\ ts\framework\src\mx\core\UIComponent.as:5749] at mx.managers::LayoutManager/validateProperties()[E:\dev\3.1.0\frameworks\\ projects\framework\src\mx\managers\LayoutManager.as:522] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.1.0\framewor\ ks\projects\framework\src\mx\managers\LayoutManager.as:642] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.1.0\frameworks\proj\ ects\framework\src\mx\core\UIComponent.as:8565] at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.1.0\frameworks\proje\ cts\framework\src\mx\core\UIComponent.as:8508] is there any other easier way to acheive this? Thanks in advance!! Ben
RE: Re: [flexcoders] Listeners and weak references
Is it true to say that when passing an anonymous function to the addEventListener function, you should never use weak references??? If you do, then wouldnt the listener (anonymous function) get garbage collected as soon as the calling method returns Nikolay Iliev wrote: Thanks for this information and the useful link. As far as understand there is no need to use weak references when I want to add listener to a child of the current instance or to the current instance itself. Here is a more complete scenario: EditSomething.mxml ?xml version=1.0 encoding=utf-8? EditSomethingLogic xmlns=* xmlns:mx=http://www.adobe.com/2006/mxml; width=400 height=300 mx:Button id=btnSave label=Save / /EditSomethingLogic EditSomethingLogic.as package { import flash.events.MouseEvent; import mx.containers.Canvas; import mx.controls.Button; import mx.events.FlexEvent; public class EditSomethingLogic extends Canvas { [Bindable] public var btnSave:Button; public function EditSomethingLogic() { super(); addEventListener(FlexEvent.CREATION_COMPLETE, onInit); } private function onInit(event:FlexEvent):void { btnSave.addEventListener(MouseEvent.CLICK, onBtnSaveClick); } private function onBtnSaveClick(event:MouseEvent):void { // Do something - save some data } } } So in both cases (addEventListener(FlexEvent.CREATION_COMPLETE, onInit); and btnSave.addEventListener(MouseEvent.CLICK, onBtnSaveClick);) there is no point in using weak references as the whole EditSomething instance including the child sprites and the event listeners will be garbage collected once removed from the stage? Kind Regards, Nikolay From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of florian.salihovic Sent: Wednesday, November 05, 2008 3:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Listeners and weak references When u register an EventListener to en IEventDispatcher instance not using weak references, the object won't be garbage collected untill all references got null. This not only affects references by objects and arrays, but also eventlistener. Using weak references will allow the garbage collection to remove objects, even if there are eventlisteners left. But using weak references will also slow the machine down, if i remember right aboit 10clock cycles. Here's a blog entry u might want to read: http://www.onflex.org/ted/2008/09/useweakreferencesboolean-false.php I was using weak refernces heavily, but u don't have to. When u are using eventlistener as members of the instance, they don't have to be weak, since the whole object can be garbage collected. But, when u have for example a sprite instanciated in the scope of another object, u should for example use the eventlistener for Event.ADDED weak referenced. The other listeners will be added and removed depending on the state of sprite - an example; why should a sprite listen to mouse events, when it is not in the displaylist. Add the necessary listeners when it is on the stage. So it always depends on what u are doing. Best regards. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , iliev_niki [EMAIL PROTECTED] wrote: I have a question on the weak references when adding a listener like this: btnSave.addEventListener(MouseEvent.CLICK, onBtnSaveClick, false, 0, true); I have found this approach with weak reference as an advise somewhere, but I would like to understand what happens really. If we add a listener specifying useWeakReference = true as in the example above, does this mean that the garbage collection might remove unexpectedly the event listener and the mouse event handling to stop working? When using weak reference for the event listener, is it needed to explicitly remove the event listener at some point in time? In general - what is the best practice in this regard? Kind Regards, Nikolay -- View this message in context: http://www.nabble.com/Listeners-and-weak-references-tp20341645p20343429.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] mouseOver and mouseOut
code: mx:HBox mouseOver=moCanvas.visible=true; mouseOut=moCanvas.visible=false; mx:Text text=test / mx:Canvas id=moCanvas width=10 height=10 visible=false backgroundColor=0x00 / /mx:HBox Obviously simplified, basically I am interested in finding out why the mouseOut event is triggered when I mouse over different parts of the HBox. For instance, when I mouseOver the text, it shows the moCanvas, when I mouse off the text but stay in the HBox it hides the moCanvas... Any ideas?
[flexcoders] Re: format code in FB3
How can we convince Adobe ;-) that Code Formatting is an important piece missing in FB ? --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: It's something we certainly want to do but definitely not committed for FB4. On 11/4/08 3:27 PM, Josh McDonald [EMAIL PROTECTED] wrote: It's in Fx4 from what I hear ;-) On Wed, Nov 5, 2008 at 1:04 AM, matt wicks [EMAIL PROTECTED] wrote: If you use enterprise ide this will do it ... www.idefactory.com http://www.idefactory.com -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: 04 November 2008 10:25 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] format code in FB3 On Tuesday 04 Nov 2008, vuthecuong wrote: in eclipse (develop java), I just press ctrl+shift+F to format code. So what is the equavalent one in FF3 IDE? I don't think that feature is in there yet. Have you checked bugs.adobe.com http://bugs.adobe.com ? -- Tom Chiverton Helping to authoritatively envisioneer slick dynamic world-class 24/365 communities This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com http://www.halliwells.com . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f- b4cf-1e62 079f6847 https://share.acrobat.com/adc/document.do?docid=942dbdc8- e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do? docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.comYahoo! Groups Links
[flexcoders] MenuBar menuitem data binding bug?
mx:MenuBar id=myMenuBar mx:XMLList !--DOES NOT WORK!!! menuitem label=Action enabled={bindableProp != null}/-- menuitem label=Action enabled={myMenuBar != null amp;amp; bindableProp != null}/ /mx:XMLList /mx:MenuBar This allows me to disable the menuitem when bindableProp is null. In the above example, bindableProp is a Boolean which has been declared as Bindable. When the container is created, this bindableProp is null. Later, I set it to something non-null. The above code works fine. However, its a workaround, because if I don't include the myMenuBar != null amp;amp; part, then the menuitem is initially enabled (before the bindableProp has been set to a non-null value). On closer inspection myMenuBar can be replaces with any other non-null Bindable property, and it still works. Null properties or non-bindable properties do not work there. Also its ok to do something like: {nonNullBindableProp.nullBindableProp != null} but NOT {nullBindableProp != null} Is this a bug or am I doing something wrong? -- View this message in context: http://www.nabble.com/MenuBar-menuitem-data-binding-bug--tp20343455p20343455.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Re: Removing extreme ends of an Axis
The good news is that it's not a bug. Just add caps=none to your xAxisStroke definition. -Eddie --- In flexcoders@yahoogroups.com, jamiebadman [EMAIL PROTECTED] wrote: Hi, Weird one this... if you run the attached code, you'll see that on the horizontal axis, at each side of it, it extends fractionally past the vertical axes... anyone know how to prevent this? Thanks, Jamie. ?xml version=1.0? !-- charts/AddLabelsWithOffsetLines.mxml -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; backgroundColor=0xFF backgroundGradientColors=[0xFF, 0xFF] mx:Script![CDATA[ import mx.containers.HBox; import mx.charts.LinearAxis; import mx.containers.Box; import mx.collections.ArrayCollection; import mx.charts.series.items.ColumnSeriesItem; import mx.charts.ChartItem; import mx.charts.chartClasses.CartesianCanvasValue; import mx.charts.chartClasses.CartesianTransform; import qs.charts.dataShapes.*; [Bindable] public var profits:ArrayCollection = new ArrayCollection([ {Month:1, Profit:1300}, {Month:2, Profit:750}, {Month:3, Profit:1100}, {Month:4, Profit:1000}, {Month:5, Profit:980}, {Month:6, Profit:1500}, {Month:7, Profit:2060}, {Month:8, Profit:1700}, {Month:9, Profit:1690}, {Month:10, Profit:2200}, {Month:11, Profit:2550}, {Month:12, Profit:3000} ]); ]]/mx:Script mx:Stroke id=yAxisStroke color=#44 alpha=1 weight=2/ mx:Stroke id=xAxisStroke color=#44 alpha=1 weight=2/ mx:Canvas id=mainCanvas width=80% height=80% backgroundAlpha=0 mx:LineChart id=myChart width=100% height=90% dataProvider={profits} selectionMode=single mx:seriesFilters mx:Array/ /mx:seriesFilters mx:backgroundElements mx:CartesianDataCanvas id=canvas alpha=0 includeInRanges=false / /mx:backgroundElements mx:horizontalAxis mx:CategoryAxis dataProvider={profits} categoryField=Month / /mx:horizontalAxis mx:secondVerticalAxis mx:LinearAxis / /mx:secondVerticalAxis mx:horizontalAxisRenderer mx:AxisRenderer showLabels=false canStagger=false placement=top tickLength=0 minorTickPlacement=outside tickPlacement=outside minorTickLength=0 fontSize=11 mx:axisStroke{xAxisStroke}/mx:axisStroke mx:tickStroke{xAxisStroke}/mx:tickStroke mx:minorTickStroke{xAxisStroke}/mx:minorTickStroke /mx:AxisRenderer /mx:horizontalAxisRenderer mx:verticalAxisRenderer mx:AxisRenderer tickLength=0 minorTickPlacement=outside tickPlacement=outside minorTickLength=0 fontSize=11 fontWeight=normal mx:axisStroke{yAxisStroke}/mx:axisStroke mx:tickStroke{yAxisStroke}/mx:tickStroke mx:minorTickStroke{yAxisStroke}/mx:minorTickStroke /mx:AxisRenderer /mx:verticalAxisRenderer mx:secondVerticalAxisRenderer mx:AxisRenderer tickLength=0 minorTickPlacement=outside tickPlacement=outside minorTickLength=0 fontSize=11 fontWeight=normal mx:axisStroke{yAxisStroke}/mx:axisStroke mx:tickStroke{yAxisStroke}/mx:tickStroke mx:minorTickStroke{yAxisStroke}/mx:minorTickStroke /mx:AxisRenderer /mx:secondVerticalAxisRenderer mx:series mx:LineSeries id=mainSeries xField=Month yField=Profit displayName=Profit selectable=true mx:lineStroke mx:Stroke id=mainLine color=0x44 weight=2 / /mx:lineStroke /mx:LineSeries /mx:series /mx:LineChart /mx:Canvas /mx:Application
Re: [flexcoders] MenuBar menuitem data binding bug?
Correction - bindableProp is not a Boolean -- View this message in context: http://www.nabble.com/MenuBar-menuitem-data-binding-bug--tp20343455p20343457.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] Re: HttpService POST shows as GET on server logs
Tracy, That was it. Adding a param, now I see it as a POST. Thanks, Dan --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: If the POST body is empty, Flex converts the POST to a GET. Is this the case in your situation? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dantmcgowan Sent: Tuesday, November 04, 2008 7:28 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] HttpService POST shows as GET on server logs Hi, I am using Version 3.0.0 build 477 of mxmlc. I have the following service code: mx:HTTPService id=sendTestRequest url=http://localhost/basic.xml http://localhost/basic.xml useProxy=false method=POST resultFormat=e4x contentType=application/x-www-form-urlencoded fault=onServiceError(event) result=onComplete(event) / I have verified by tracing before my send that the service.method is POST. When I check in live httpheaders it shows a GET and from my apache access logs: [04/Nov/2008:16:12:38 -0800] GET /basic.xml HTTP/1.1 200 40 Thanks in advance, Dan
[flexcoders] SecurityError #2048 with Flash Player 10 in Firefox (not in Opera)
I've just tried our app in Flash Player 10, and we're hitting SecurityError #2048 when attempting to load through URLStream from a different domain. We do load the policy file first: Security.loadPolicyFile(http://example.com:8080/foo/crossdomain.xml;); Our cross-domain.xml file is open: ?xml version=1.0? !DOCTYPE cross-domain-policy SYSTEM http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd; cross-domain-policy allow-access-from domain=* to-ports=* / /cross-domain-policy We have not had any problems in Flash Player 9 in Firefox, and, oddly enough, our app works fine on Flash Player 10 in Opera. I've started looking at security changes, and our crossdomain.xml is *not* at the root of the domain and we do *not* have a meta-policy file, so I assume that could be an issue. I find it really odd that this still works in Opera, however. I've started reading through the (rather extensive) http://www.adobe.com/devnet/flashplayer/articles/fplayer10_security_changes_02.html#head1 and http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html but I wanted to ask if there's anything else I should know, and if anyone has any insights on the Opera Flash Player 10 behavior. Thanks, -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com
[flexcoders] Re: mouseOver and mouseOut
Obviously because the text is over the HBox. In that sense the mouse isn't hitting the HBox area when over the text. Moving around in the HBox triggers the mouseOut event. IMO. Hope this is clear Tnx George --- In flexcoders@yahoogroups.com, tchredeemed [EMAIL PROTECTED] wrote: code: mx:HBox mouseOver=moCanvas.visible=true; mouseOut=moCanvas.visible=false; mx:Text text=test / mx:Canvas id=moCanvas width=10 height=10 visible=false backgroundColor=0x00 / /mx:HBox Obviously simplified, basically I am interested in finding out why the mouseOut event is triggered when I mouse over different parts of the HBox. For instance, when I mouseOver the text, it shows the moCanvas, when I mouse off the text but stay in the HBox it hides the moCanvas... Any ideas?
[flexcoders] Re: Removing extreme ends of an Axis
Thanks Eddie - works a treat! Jamie --- In flexcoders@yahoogroups.com, EddieBerman [EMAIL PROTECTED] wrote: The good news is that it's not a bug. Just add caps=none to your xAxisStroke definition. -Eddie --- In flexcoders@yahoogroups.com, jamiebadman jamie.badman@ wrote: Hi, Weird one this... if you run the attached code, you'll see that on the horizontal axis, at each side of it, it extends fractionally past the vertical axes... anyone know how to prevent this? Thanks, Jamie. ?xml version=1.0? !-- charts/AddLabelsWithOffsetLines.mxml -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; backgroundColor=0xFF backgroundGradientColors=[0xFF, 0xFF] mx:Script![CDATA[ import mx.containers.HBox; import mx.charts.LinearAxis; import mx.containers.Box; import mx.collections.ArrayCollection; import mx.charts.series.items.ColumnSeriesItem; import mx.charts.ChartItem; import mx.charts.chartClasses.CartesianCanvasValue; import mx.charts.chartClasses.CartesianTransform; import qs.charts.dataShapes.*; [Bindable] public var profits:ArrayCollection = new ArrayCollection([ {Month:1, Profit:1300}, {Month:2, Profit:750}, {Month:3, Profit:1100}, {Month:4, Profit:1000}, {Month:5, Profit:980}, {Month:6, Profit:1500}, {Month:7, Profit:2060}, {Month:8, Profit:1700}, {Month:9, Profit:1690}, {Month:10, Profit:2200}, {Month:11, Profit:2550}, {Month:12, Profit:3000} ]); ]]/mx:Script mx:Stroke id=yAxisStroke color=#44 alpha=1 weight=2/ mx:Stroke id=xAxisStroke color=#44 alpha=1 weight=2/ mx:Canvas id=mainCanvas width=80% height=80% backgroundAlpha=0 mx:LineChart id=myChart width=100% height=90% dataProvider={profits} selectionMode=single mx:seriesFilters mx:Array/ /mx:seriesFilters mx:backgroundElements mx:CartesianDataCanvas id=canvas alpha=0 includeInRanges=false / /mx:backgroundElements mx:horizontalAxis mx:CategoryAxis dataProvider={profits} categoryField=Month / /mx:horizontalAxis mx:secondVerticalAxis mx:LinearAxis / /mx:secondVerticalAxis mx:horizontalAxisRenderer mx:AxisRenderer showLabels=false canStagger=false placement=top tickLength=0 minorTickPlacement=outside tickPlacement=outside minorTickLength=0 fontSize=11 mx:axisStroke{xAxisStroke}/mx:axisStroke mx:tickStroke{xAxisStroke}/mx:tickStroke mx:minorTickStroke{xAxisStroke}/mx:minorTickStroke /mx:AxisRenderer /mx:horizontalAxisRenderer mx:verticalAxisRenderer mx:AxisRenderer tickLength=0 minorTickPlacement=outside tickPlacement=outside minorTickLength=0 fontSize=11 fontWeight=normal mx:axisStroke{yAxisStroke}/mx:axisStroke mx:tickStroke{yAxisStroke}/mx:tickStroke mx:minorTickStroke{yAxisStroke}/mx:minorTickStroke /mx:AxisRenderer /mx:verticalAxisRenderer mx:secondVerticalAxisRenderer mx:AxisRenderer tickLength=0 minorTickPlacement=outside tickPlacement=outside minorTickLength=0 fontSize=11 fontWeight=normal mx:axisStroke{yAxisStroke}/mx:axisStroke mx:tickStroke{yAxisStroke}/mx:tickStroke mx:minorTickStroke{yAxisStroke}/mx:minorTickStroke /mx:AxisRenderer /mx:secondVerticalAxisRenderer mx:series mx:LineSeries id=mainSeries xField=Month yField=Profit displayName=Profit selectable=true mx:lineStroke mx:Stroke id=mainLine color=0x44 weight=2 / /mx:lineStroke /mx:LineSeries /mx:series /mx:LineChart /mx:Canvas /mx:Application
[flexcoders] Re: hi! this examples didn't work out,please help
There is a timing problem. The script is running before myComponent is actually created so you get an error to the effect that you are trying to access a property of a null object. The best way is to wait for the object you are trying to access to be created and then access it. One way is to use the creationComplete event: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:local=* creationComplete=onCreationComplete() mx:Script ![CDATA[ public var myProperty:String; private function onCreationComplete():void { myProperty = myComponent.myFirstProperty; } ]] /mx:Script local:MyFirstComponent id=myComponent myFirstProperty=Welcome to Flex / mx:Label text={myComponent.myFirstProperty} id=myLabel/ /mx:Application --- In flexcoders@yahoogroups.com, ashlytu [EMAIL PROTECTED] wrote: when I read the Essential guide to flex 3 from page 87 to 95, there is a example , in the application MXML ,the code is mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:local=* mx:Script ![CDATA[ public var myProperty:String = myComponent.myFirstProperty; ]] /mx:Script local:MyFirstComponent id=myComponent myFirstProperty=Welcome to Flex / mx:Label text={myComponent.myFirstProperty} id=myLabel/ /mx:Application and in the component file :MyFirstComponent ,is just these code below: mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=400 height=300 mx:Script ![CDATA[ [Bindable] public var myFirstProperty:String; ]] /mx:Script /mx:Canvas I followed all the steps, and would like to view the value of myProperty in the script section of the Application MXML file, in the Expressionis frame, but the error was TypeError: Error #1009:, It's seems like myProperty cannot get the value from a object attribute. what is wrong with it? Thanks a lot! Ashly
Re: [flexcoders] Security and dual localhost address question
1) is all this running on one machine? 2) which OS? 3) what does your hosts file say? I had same problem, localhost vs name.com I am running Apache 2.x not Tomcat on Linux, Flex3 my crossdomain ?xml version=1.0? !-- http://john.znyx.com/crossdomain.xml -- cross-domain-policy allow-access-from domain=name.domain.com/ allow-access-from domain=localhost/ allow-access-from domain=ip/ allow-access-from domain=domain.com/ /cross-domain-policy my hosts file 127.0.0.1 localhost name.domain.com 127.0.1.1 name.domain.com ip name name.domain.com ... HTH John ralcab wrote: I am building a Flex (version 2) application on my machine with a Tomcat server that is hosting the application, a couple of servlets and an Axis2 web service. The application runs fine if I load it from an address starting with http://127.0.0.1:8080. However, the web-service call will fail if I load the exact same application from http://localhost:8080. The gives me a Security error accessing url Alert. I've read in the past that Flash is strict about the interpretations of domains, so I'm not surprised by this behavior. Further, I am theorizing this is happening because the WSDL file for the service uses the numeric address rather than localhost. Since that is the only usage of the numeric IP address I can find (all the URLs I have constructed use localhost). I have a crossdomain.xml file that is reachable at http://127.0.0.1:8080:8080/crossdomain.xml;. It's not solving the problem. The crossdomain file has this format: cross-domain-policy allow-access-from domain=* to-ports=* secure=false/ /cross-domain-policy The web service is built using Apache Axis2. So, its address in the WSDL is: http://l27.0.0.1:8080/axis2/services/TestService. Is there some special location or content to the policy file that I'm missing? Thank you.
[flexcoders] Air throws an error opening a new window - need help
Hi, I got this error trying to open a new window? How can I can I create a window? This is definitely a show stopper. I have other projects and this works fine. Thanks, Patrick TypeError: Error #1034: Type Coercion failed: cannot convert mx.managers::[EMAIL PROTECTED] to mx.managers.ISystemManager2. at mx.core::UIComponent/callLater()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UIComponent.as:5718] at mx.core::UITextField/styleChanged()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UITextField.as:1655]
[flexcoders] HTTPStatusEvent is always 0
Hi, I am using Firefox, and I have found (as I am sure most of you know) that the httpStatus Event on a SWFLoader is always 0, because Firefox does not pass the httpStatus to the flash player... No big deal, as long as there is SOME way to tell if an image loaded succesfully in flex? I can tell if it loads using the complete event, but I cannot tell if it errors, as far as I know, has anyone found any workarounds for this? thanks!
[flexcoders] internal errors and codes
I keep having an error code of 128 appear on my screen, but I cannot trace the cause. Has anyone seen something similar to this (and if so, can you offer any suggestions)? Fx Problem Occurred Win32 refresh daemon (Time of error: ...) Reason 128 [OK] [Details] An internal error occurred during: Win32 refresh daemon. 128
RE: [flexcoders] HTTPStatusEvent is always 0
You can listen for ProgressEvent.PROGRESS and IOError.IO_ERROR events on the image.contentLoaderInfo. Those will give you the bytes as they come through and it will let you handle any IOErrors gracefully. Blake From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tchredeemed Sent: Wednesday, November 05, 2008 10:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] HTTPStatusEvent is always 0 Hi, I am using Firefox, and I have found (as I am sure most of you know) that the httpStatus Event on a SWFLoader is always 0, because Firefox does not pass the httpStatus to the flash player... No big deal, as long as there is SOME way to tell if an image loaded succesfully in flex? I can tell if it loads using the complete event, but I cannot tell if it errors, as far as I know, has anyone found any workarounds for this? thanks!
Re: [flexcoders] HTTPStatusEvent is always 0
I usually do this via the Image class / tag, checking bytesLoaded and bytesTotal are equal... On Wed, Nov 5, 2008 at 8:34 PM, tchredeemed [EMAIL PROTECTED] wrote: Hi, I am using Firefox, and I have found (as I am sure most of you know) that the httpStatus Event on a SWFLoader is always 0, because Firefox does not pass the httpStatus to the flash player... No big deal, as long as there is SOME way to tell if an image loaded succesfully in flex? I can tell if it loads using the complete event, but I cannot tell if it errors, as far as I know, has anyone found any workarounds for this? thanks! -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
[flexcoders] IFrame: open new browser window from
I am running SQL reports inside of an iFrame - techique that has been described in mny places. SQL Report is an HTML stream generated by the report server. The report is shown fine, no problem. The report has some hyperlinks to go to another report. The command is the following: (javascript:void(window.open('http://servername/ReportServer?% 2fCPR+Reports%2fCPR+ ShipInfors:Command=Renderrc:Parameters=falsePeriodfromDate= Fields!cperiod.Value CompanyId= Fields!cvendno.Value ','ShipInfo', 'status=0,toolbar=0,width=860,height=650,center=yes'))) Works fine when I run it from Browser, but I click on a link running it from Flex Builder nothing is happening. No popup window. Can someone help, please?
Re: [flexcoders] Objects are not Garbage Collected
Thank you Pual for your reply but my Value Objects don't have any listeners attached to them and no other variable reference's to them i have double checked every thing after your reply and i still don't have any clue what is going on ,my task mangers shows me increase of 2MB whenever my command class runs , moreover my view object is singleton and forcefully call refresh method when i add my view to display this refresh method actually dispatches Caringorm event. - Original Message - From: Paul Andrews [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wed, 5 Nov 2008 13:17:47 - Subject: Re: [flexcoders] Objects are not Garbage Collected In order to be garbage collected there must not be any references to the object at all. If you have assigned another variable to the object and not set that to null, it won't be collected. If you have an event handler associated with an object, it won't be collected. When nothing at all is referencing the object it becomes eligible for collection. Sometimes that's easier said than done. BTW if you have references to children of the object, they won't be available for garbage collection until no references to them exist. Paul - Original Message - From: Parkash To: flexcoders@yahoogroups.com Sent: Wednesday, November 05, 2008 1:04 PM Subject: [flexcoders] Objects are not Garbage Collected Hi all i have written a simple flex applcation and i am using a Caringorm framework. In my command class i am parsing a xml response and cretating about 100 value object and iam adding these object in a ArrayCollection which is bind to some gird . when i enters in execute method i explicitly remove each object from collection like this for( var k:int = 0 ; k model.objArrCollModelsVO.length ;k++ ) { var obj:Object = model.objArrCollModelsVO.removeItemAt( k ); trace( GOing to Remove + obj.name ); obj = null ; } but these are objects are not garbage collected and remians in memory can any one tell how to resolve this problem b/c my application is getting very slow if my commnd class runs more than 6 times Or any one can send some good tutorial about Garbage collection in Flex Thanks in Advance Parkash ARjan...
[flexcoders] Debugging question - how do I skip over modules I don't care about?
Hi, when I'm in the debugging mode and single stepping thru my code, sometimes it goes off into some module that I don't care about, for example the ResourceManager.as, is there a way to 'fast forward', ie, hit the green triangle to continue until it comes back to my code? I can hit the green button, but I may not have any more breakpoints set in my code and it just zooms past all of it. . . I just want to single step my code, or the modules of my choosing and execute (without single stepping) system modules or modules that I don'tcare about. thanks!
Re: [flexcoders] MenuBar menuitem data binding bug?
Have you tried: enabled={bindableProp !=null?true:false} On Wed, Nov 5, 2008 at 7:17 PM, Mark Carter [EMAIL PROTECTED] wrote: mx:MenuBar id=myMenuBar mx:XMLList !--DOES NOT WORK!!! menuitem label=Action enabled={bindableProp != null}/-- menuitem label=Action enabled={myMenuBar != null amp;amp; bindableProp != null}/ /mx:XMLList /mx:MenuBar This allows me to disable the menuitem when bindableProp is null. In the above example, bindableProp is a Boolean which has been declared as Bindable. When the container is created, this bindableProp is null. Later, I set it to something non-null. The above code works fine. However, its a workaround, because if I don't include the myMenuBar != null amp;amp; part, then the menuitem is initially enabled (before the bindableProp has been set to a non-null value). On closer inspection myMenuBar can be replaces with any other non-null Bindable property, and it still works. Null properties or non-bindable properties do not work there. Also its ok to do something like: {nonNullBindableProp.nullBindableProp != null} but NOT {nullBindableProp != null} Is this a bug or am I doing something wrong? -- View this message in context: http://www.nabble.com/MenuBar-menuitem-data-binding-bug--tp20343455p20343455.html Sent from the FlexCoders mailing list archive at Nabble.com. -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
Re: [flexcoders] Re: my first flex website
you can add a layer on top of everything saying loading... as soon as everything has loaded remove the layer and you are done On Wed, Nov 5, 2008 at 6:39 PM, Gustavo Duenas [EMAIL PROTECTED] wrote: Thanks that is a good idea, I will design a new scene and in the application I'll put an instruction to be redirected to that scene,once is there it should start reading the main images, once the images are read, well it goes to main page as ever Regards, Gustavo On Nov 5, 2008, at 10:29 AM, Paul Andrews wrote: A trick I have done in flash is to load the images - demanded or not - up front and either you can just throw them away or store them for use later. It might seem odd throwing the images away, but they should still be in the browser cache, so you get an instant load the second time around. Ideally you'd have a custom preloader to do that. Paul - Original Message - *From:* Gustavo Duenas [EMAIL PROTECTED] *To:* flexcoders@yahoogroups.com *Sent:* Wednesday, November 05, 2008 3:11 PM *Subject:* Re: [flexcoders] Re: my first flex website Thanks Jim, I've really appreciated your comments, I will do the necessary changes, but please do you have any ideas for having those�contents loading at the same time, rather than�embedding, for example the majority of the logos in the portfolio are in a list (xml module), so is the same with the icons on contact and services. but how could I make flex to start showing anything once the main content, the sliding�background�image, has been totally loaded, embedding would add more weight to the website and I'd rather not. Regards, Gustavo On Nov 4, 2008, at 5:04 PM, jim.abbott45 wrote: Gustavo, here are a few things I noticed: -- The sculpture/building image (and maybe some other content) did not load at the same time as the rest of the design; it was somewhat jarring when it/they did finally appear (a few seconds later). You might want to consider embedding all the content (if not doing that is what is causing the delay). -- The sliding in of the various bits of content (from the left and right) is unusual. But I really like it and I think it works well. -- I would strongly suggest trying to unify the typography (i.e., make it more consistent, etc.). The text at the top is also a bit hard to read. -- I like the looks of the semi-circles (on each side), but they are making your site quite wide (and even without them it is wide). -- In general, I would suggest taking what you've got and trying to simplify the visual design a little. -- This is much cooler than my first Flex application; so what do I know? 8-) Regards, Jim --- [EMAIL PROTECTED] flexcoders%40yahoogroups.com, Gustavo Duenas [EMAIL PROTECTED] wrote: HI, finally I've done my first flex web siteit is done, or at� least is that what I think...maybe tomorrow I'll add something else. � please check it at: � �http://leftandrightsolutions.com/lrsad/bin/lrsad.html � please don't be so hard in critics, is ok to be criticized but don't� be offensive. � I hope you like, is not the big deal, but is something that did by� myself, I thank in advance to all of you who help me out with your advices. � regards, � Gustavo � � � Gustavo A. Duenas Creative Director LEFT AND RIGHT SOLUTIONS 904. 265 0330 - 904. 386 7958 www.leftandrightsolutions.com Jacksonville - Florida -- Gustavo A. Duenas Creative Director LEFT AND RIGHT SOLUTIONS 904.� 265 0330 - 904. 386 7958 www.leftandrightsolutions.com Jacksonville - Florida -- Thanks Jim, I've really appreciated your comments, I will do the necessary changes, but please do you have any ideas for having those contents loading at the same time, rather than embedding, for example the majority of the logos in the portfolio are in a list (xml module), so is the same with the icons on contact and services. but how could I make flex to start showing anything once the main content, the sliding background image, has been totally loaded, embedding would add more weight to the website and I'd rather not. Regards, Gustavo On Nov 4, 2008, at 5:04 PM, jim.abbott45 wrote: Gustavo, here are a few things I noticed: -- The sculpture/building image (and maybe some other content) did not load at the same time as the rest of the design; it was somewhat jarring when it/they did finally appear (a few seconds later). You might want to consider embedding all the content (if not doing that is what is causing the delay). -- The sliding in of the various bits of content (from the left and right) is unusual. But I really like it and I think it works well. -- I would strongly suggest trying to unify the typography (i.e., make it more consistent, etc.). The text at the top is also a bit hard to read. -- I like the looks of the semi-circles (on each side), but
[flexcoders] Re: Security and dual localhost address question
Thank you for responding. To answer your questions. (1) Yes they are all running on the same machine in the same Tomcat 6.0.13 server. (2) Windows XP (3) Excuse my ignorance, but what's a host file? I'm self taught on this and pretty new to it. --- In flexcoders@yahoogroups.com, john fisher [EMAIL PROTECTED] wrote: 1) is all this running on one machine? 2) which OS? 3) what does your hosts file say? I had same problem, localhost vs name.com I am running Apache 2.x not Tomcat on Linux, Flex3 my crossdomain ?xml version=1.0? !-- http://john.znyx.com/crossdomain.xml -- cross-domain-policy allow-access-from domain=name.domain.com/ allow-access-from domain=localhost/ allow-access-from domain=ip/ allow-access-from domain=domain.com/ /cross-domain-policy my hosts file 127.0.0.1 localhost name.domain.com 127.0.1.1 name.domain.com ip name name.domain.com ... HTH John
Re: [flexcoders] Re: Security and dual localhost address question
hosts contains domain names to ip mappings... such as: 127.0.0.1 localhost and so on it is usually found somewhere in windows/system32/etc/drivers cannot remember at the moment search for it inside windows folder On Wed, Nov 5, 2008 at 8:54 PM, ralcab [EMAIL PROTECTED] wrote: Thank you for responding. To answer your questions. (1) Yes they are all running on the same machine in the same Tomcat 6.0.13 server. (2) Windows XP (3) Excuse my ignorance, but what's a host file? I'm self taught on this and pretty new to it. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, john fisher [EMAIL PROTECTED] wrote: 1) is all this running on one machine? 2) which OS? 3) what does your hosts file say? I had same problem, localhost vs name.com I am running Apache 2.x not Tomcat on Linux, Flex3 my crossdomain ?xml version=1.0? !-- http://john.znyx.com/crossdomain.xml -- cross-domain-policy allow-access-from domain=name.domain.com/ allow-access-from domain=localhost/ allow-access-from domain=ip/ allow-access-from domain=domain.com/ /cross-domain-policy my hosts file 127.0.0.1 localhost name.domain.com 127.0.1.1 name.domain.com ip name name.domain.com ... HTH John -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
Re: [flexcoders] Objects are not Garbage Collected
very quickly, *objArrCollModelsVO* seems like an arraycollection... are you sure that your for loop removes all references? if item 0 is removed, item 1 becomes 0, so next time when you remove 1 you are in reality removing 2 and so on... try: * for( var** k:int = **model.objArrCollModelsVO.length **; k = 0 ;k-- ) * *{* On Wed, Nov 5, 2008 at 3:04 PM, Parkash [EMAIL PROTECTED] wrote: Hi all i have written a simple flex applcation and i am using a Caringorm framework. In my command class i am parsing a xml response and cretating about 100 value object and iam adding these object in a ArrayCollection which is bind to some gird . when i enters in execute method i explicitly remove each object from collection like this *for( var** k:int = 0 ; k model.objArrCollModelsVO.length ;k++ ) * *{* *var** obj:Object = model.objArrCollModelsVO.removeItemAt( k );* *trace( GOing to Remove ** + obj.name );* *obj = **null** ;* *}* but these are objects are not garbage collected and remians in memory can any one tell how to resolve this problem b/c my application is getting very slow if my commnd class runs more than 6 times Or any one can send some good tutorial about Garbage collection in Flex Thanks in Advance Parkash ARjan... -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
[flexcoders] Re: format code in FB3
Talking as the author of the Enterprise IDE plugin from IDE Factory, I would like to clarify some points: Code formatting is only one feature among many offered by the plugin, there are 20 major features in total including improvements in code navigation, code generation, code documentation and general tools. There are many new features in the development pipeline as well. Eclipse plugin development is not trivial. If you are serious about learning, if you are attending Adobe MAX there will be a session on extending Flex Builder that should be worthwhile. I myself will present in 360 | MAX about my plugin and will be happy to talk about my own experiences extending Flex Builder and answer questions. That said the Enterprise IDE plugin will be very inexpensive, less than $100 for a year subscription with multiple updates per year with new features and bug fixes. It represents hundreds of hours of development time on my part, and frankly I am an experienced eclipse plugin developer. Ask yourself, what is more valuable to you, your time or spending less than the cost of a single hour of a Flex developer time for a year of improved productivity? Incidentally upgrading Flex Builder is hardly free either. I apologize for what may be construed as an advertisement on the list but I was not the first to mention my plugin in this thread. You and anyone else interested in the features offered can do their own cost-benefit analysis and draw their own conclusions. Best of luck, Luis Lejter http://www.idefactory.com --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: Nuts! I've gotta figure out how to do Eclipse plugins On Wed, Nov 5, 2008 at 9:38 AM, Matt Chotin [EMAIL PROTECTED] wrote: It's something we certainly want to do but definitely not committed for FB4. On 11/4/08 3:27 PM, Josh McDonald [EMAIL PROTECTED] wrote: It's in Fx4 from what I hear ;-) On Wed, Nov 5, 2008 at 1:04 AM, matt wicks [EMAIL PROTECTED] wrote: If you use enterprise ide this will do it ... www.idefactory.com http://www.idefactory.com -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: 04 November 2008 10:25 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] format code in FB3 On Tuesday 04 Nov 2008, vuthecuong wrote: in eclipse (develop java), I just press ctrl+shift+F to format code. So what is the equavalent one in FF3 IDE? I don't think that feature is in there yet. Have you checked bugs.adobe.com http://bugs.adobe.com ? -- Tom Chiverton Helping to authoritatively envisioneer slick dynamic world-class 24/365 communities This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com http://www.halliwells.com . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469- 446f-b4cf-1e62 079f6847 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469- 446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469- 446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-
Re: [flexcoders] Use of NetBeans 6.1 and Flare
google for blazeds you can then embed the flex swf inside one of your jsps and talk with the back end via AMF if you just want to show visualization images it might be easier to write the visualization data inside the wrapper html page, get them via loadvars inside flex and just display them in a chart there On Wed, Nov 5, 2008 at 4:16 PM, martin_o_shea [EMAIL PROTECTED]wrote: Hello I've been working on a system which requires users to be able to create visualisations of data and am interested in using Flex. My application has been written in NetBeans and is made up of JSPs and servlets using Tomcat to connect to MySQL. I'm looking to do is to include .swfs within JSP pages. But I'm unsure about how to go connect my application to Flex or to use Flex within NetBeans. So can anybody advise me as to the best way in which to go about this? Thanks Martin O'Shea. -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
Re: [flexcoders] Re: Security and dual localhost address question
aha! the hosts file ( see Fotis for location I believe he has it right for WinXP) lists ip addresses with domain names so your PC knows that me.mydomain.com equates to 200.111.86.76 The key here is that the OS reads the hosts file first and then asks DNS, so whatever you put in will override what your public DNS server says. see name resolution and domain name service IIRC Windows help is pretty good on this... When Tomcat ( or any app ) Gets an http request it has to be able to figure out the IP address from either localhost or name.domain.com hence the need for hosts file and DNS. If your browser says http://...; it still uses the network interface, even if its all on one machine. this is a Good Thing. If it uses file://... then not. This is why the raw ip address works and localhost doesn't - see? HTH sorry if its a bit pedantic John ralcab wrote: (3) Excuse my ignorance, but what's a host file? I'm self taught on this and pretty new to it.
[flexcoders] Flash 10 browser crash
I have a flex app that worked fine in Flash 9, but it crashes the browser with flash 10 (on PC and Mac). It is not browser-specific. Any know issues with Flex 3, Flash 10, and browser crashes? Any solutions out there? Thanks, Don Kerr
[flexcoders] Simple Grid effects?
Hi. Are there any built-in effects for the DataGrid that can be relatively easily enabled? Thanks.
[flexcoders] Remote Debugging Air Application with FlexBuilder?
In Java you can startup an application in debug mode and then connect to it. I need to do the same for FlexBuilder. I have an external process that startups up an Air application (it has to do this for a number of reasons that I won't go into). I then would like to attach the FlexBuilder to the now running application. Scott
Re: [flexcoders] Flash 10 browser crash
We know that there are some crash bugs and we're working on addressing them. Can you please file a bug in JIRA against the Flash Player with the url to your app that crashes (or include the SWF in the bug) and make sure to set the bug type to crash? Matt On 11/5/08 11:24 AM, Don Kerr [EMAIL PROTECTED] wrote: I have a flex app that worked fine in Flash 9, but it crashes the browser with flash 10 (on PC and Mac). It is not browser-specific. Any know issues with Flex 3, Flash 10, and browser crashes? Any solutions out there? Thanks, Don Kerr
Re: [flexcoders] Objects are not Garbage Collected
Well spotted! - Original Message - From: Fotis Chatzinikos To: flexcoders@yahoogroups.com Sent: Wednesday, November 05, 2008 7:03 PM Subject: Re: [flexcoders] Objects are not Garbage Collected very quickly, objArrCollModelsVO seems like an arraycollection... are you sure that your for loop removes all references? if item 0 is removed, item 1 becomes 0, so next time when you remove 1 you are in reality removing 2 and so on... try: for( var k:int = model.objArrCollModelsVO.length ; k = 0 ;k-- ) { On Wed, Nov 5, 2008 at 3:04 PM, Parkash [EMAIL PROTECTED] wrote: Hi all i have written a simple flex applcation and i am using a Caringorm framework. In my command class i am parsing a xml response and cretating about 100 value object and iam adding these object in a ArrayCollection which is bind to some gird . when i enters in execute method i explicitly remove each object from collection like this for( var k:int = 0 ; k model.objArrCollModelsVO.length ;k++ ) { var obj:Object = model.objArrCollModelsVO.removeItemAt( k ); trace( GOing to Remove + obj.name ); obj = null ; } but these are objects are not garbage collected and remians in memory can any one tell how to resolve this problem b/c my application is getting very slow if my commnd class runs more than 6 times Or any one can send some good tutorial about Garbage collection in Flex Thanks in Advance Parkash ARjan... -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
Re: [flexcoders] Cairngen UM Extensions on Vista
I'm using the Cairngorm-2.2.1-Extensions-r76.swc and using the build.xml ant scripts in cairngenum. I'm trying to use this in my own application. As I said everything else works in the ANT scripts, just not this one target due to prompting. Tom Chiverton wrote: On Tuesday 04 Nov 2008, Jake Churchill wrote: I am trying to use Cairngen with UM Extensions to create-sequence on Windows Vista. I am getting an error saying: java.lang.UnsatisfiedLinkError: no swt-win32-3346. The other build.xml targets work fine but this one has prompting. Are you building the UM .swc, or your own application ?
Re: [flexcoders] Re: format code in FB3
This looks pretty impressive, and it's unfortunate that Adobe is bundling its Data Visualization license with its IDE. I can see how that makes sense for Adobe, but it puts competing IDE developers at a major disadvantage. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -Original Message- From: luislejter [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: format code in FB3 Date: Wed, 05 Nov 2008 19:03:25 - Talking as the author of the Enterprise IDE plugin from IDE Factory, I would like to clarify some points: Code formatting is only one feature among many offered by the plugin, there are 20 major features in total including improvements in code navigation, code generation, code documentation and general tools. There are many new features in the development pipeline as well. Eclipse plugin development is not trivial. If you are serious about learning, if you are attending Adobe MAX there will be a session on extending Flex Builder that should be worthwhile. I myself will present in 360 | MAX about my plugin and will be happy to talk about my own experiences extending Flex Builder and answer questions. That said the Enterprise IDE plugin will be very inexpensive, less than $100 for a year subscription with multiple updates per year with new features and bug fixes. It represents hundreds of hours of development time on my part, and frankly I am an experienced eclipse plugin developer. Ask yourself, what is more valuable to you, your time or spending less than the cost of a single hour of a Flex developer time for a year of improved productivity? Incidentally upgrading Flex Builder is hardly free either. I apologize for what may be construed as an advertisement on the list but I was not the first to mention my plugin in this thread. You and anyone else interested in the features offered can do their own cost-benefit analysis and draw their own conclusions. Best of luck, Luis Lejter http://www.idefactory.com --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: Nuts! I've gotta figure out how to do Eclipse plugins On Wed, Nov 5, 2008 at 9:38 AM, Matt Chotin [EMAIL PROTECTED] wrote: It's something we certainly want to do but definitely not committed for FB4. On 11/4/08 3:27 PM, Josh McDonald [EMAIL PROTECTED] wrote: It's in Fx4 from what I hear ;-) On Wed, Nov 5, 2008 at 1:04 AM, matt wicks [EMAIL PROTECTED] wrote: If you use enterprise ide this will do it ... www.idefactory.com http://www.idefactory.com -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: 04 November 2008 10:25 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] format code in FB3 On Tuesday 04 Nov 2008, vuthecuong wrote: in eclipse (develop java), I just press ctrl+shift+F to format code. So what is the equavalent one in FF3 IDE? I don't think that feature is in there yet. Have you checked bugs.adobe.com http://bugs.adobe.com ? -- Tom Chiverton Helping to authoritatively envisioneer slick dynamic world-class 24/365 communities This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com http://www.halliwells.com . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469- 446f-b4cf-1e62 079f6847 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469- 446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links -- Flexcoders Mailing List FAQ:
[flexcoders] Re: Flash 10 browser crash
Thanks Matt. Will do. After some further troubleshooting, I've found it crashes when my PlotChart MXML is there, but doesn't crash when it is commented out. Worked in Flash 9, but no longer works in Flash 10. Don --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: We know that there are some crash bugs and we're working on addressing them. Can you please file a bug in JIRA against the Flash Player with the url to your app that crashes (or include the SWF in the bug) and make sure to set the bug type to crash? Matt On 11/5/08 11:24 AM, Don Kerr [EMAIL PROTECTED] wrote: I have a flex app that worked fine in Flash 9, but it crashes the browser with flash 10 (on PC and Mac). It is not browser-specific. Any know issues with Flex 3, Flash 10, and browser crashes? Any solutions out there? Thanks, Don Kerr
RE: [flexcoders] profile still shows removed instances
Look at the backreferences from the Button in the profiler. My guess is that the FocusManager still is hanging on to it From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of stephen_anson Sent: Wednesday, November 05, 2008 7:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] profile still shows removed instances Hi, I'm adding a custom UIComponent to the application and then later removing it. In the profiler it is still showing up as existing ( even after garbage collection and setting it to null etc here is a simplified example, custom butt extends standard button and does nothing else. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:comps=* creationComplete=init() mx:Script ![CDATA[ private var butt:CustomButt; private function rem(e:Event):void { butt.removeEventListener(MouseEvent.CLICK, rem); removeChild(butt); butt = null; } private function init():void { addChild( butt = new CustomButt()); butt.addEventListener(MouseEvent.CLICK, rem); } ]] /mx:Script /mx:Application anyone any ideas?, is removing child elements in a flex different to standard AS 3
RE: [flexcoders] Re: Is it a bug while switching focus ?
Which browser are you using? I'm quite surprised the browser did not have focus. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of itdanny2002 Sent: Wednesday, November 05, 2008 1:44 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Is it a bug while switching focus ? Hi Alex, As in my example, it did. It can get back the focus but it shifts to other control (test2) instead of original one (test1).
Re: [flexcoders] Re: Security and dual localhost address question
John, appart from your correct info on dns, I do not think thats John's problem, (confict on Johns' here :-)... He is using http://localhost:8080 and localhost works without manually adding it in the hosts file (usually ?) On Wed, Nov 5, 2008 at 9:24 PM, john fisher [EMAIL PROTECTED] wrote: aha! the hosts file ( see Fotis for location I believe he has it right for WinXP) lists ip addresses with domain names so your PC knows that me.mydomain.com equates to 200.111.86.76 The key here is that the OS reads the hosts file first and then asks DNS, so whatever you put in will override what your public DNS server says. see name resolution and domain name service IIRC Windows help is pretty good on this... When Tomcat ( or any app ) Gets an http request it has to be able to figure out the IP address from either localhost or name.domain.com hence the need for hosts file and DNS. If your browser says http://...; it still uses the network interface, even if its all on one machine. this is a Good Thing. If it uses file://... then not. This is why the raw ip address works and localhost doesn't - see? HTH sorry if its a bit pedantic John ralcab wrote: (3) Excuse my ignorance, but what's a host file? I'm self taught on this and pretty new to it. -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
[flexcoders] HistoryManager
Type Coercion failed: cannot convert mx.managers::History Manager [EMAIL PROTECTED] to mx.managers.IHistoryManager. what would be causing this error? I am not explicitly referencing the HistoryManager in my app at all... wierd! :)
[flexcoders] Re: HistoryManager
2 Things. 1 - I misspelled weird! 2 - I use a ViewStack in one of my modules, and it only happens when I navigate away from said module to a new module! --- In flexcoders@yahoogroups.com, tchredeemed [EMAIL PROTECTED] wrote: Type Coercion failed: cannot convert mx.managers::History Manager [EMAIL PROTECTED] to mx.managers.IHistoryManager. what would be causing this error? I am not explicitly referencing the HistoryManager in my app at all... wierd! :)
[flexcoders] Re: Security and dual localhost address question
Thank you for the explanation. I looked up my hosts file and saw that everything looks right with the mapping of the IP address to localhost as it should. However, I'm still stuck on how to resolve the security error. Again, thank you for your help. --- In flexcoders@yahoogroups.com, Fotis Chatzinikos [EMAIL PROTECTED] wrote: John, appart from your correct info on dns, I do not think thats John's problem, (confict on Johns' here :-)... He is using http://localhost:8080 and localhost works without manually adding it in the hosts file (usually ?) On Wed, Nov 5, 2008 at 9:24 PM, john fisher [EMAIL PROTECTED] wrote: aha! the hosts file ( see Fotis for location I believe he has it right for WinXP) lists ip addresses with domain names so your PC knows that me.mydomain.com equates to 200.111.86.76 The key here is that the OS reads the hosts file first and then asks DNS, so whatever you put in will override what your public DNS server says. see name resolution and domain name service IIRC Windows help is pretty good on this... When Tomcat ( or any app ) Gets an http request it has to be able to figure out the IP address from either localhost or name.domain.com hence the need for hosts file and DNS. If your browser says http://...; it still uses the network interface, even if its all on one machine. this is a Good Thing. If it uses file://... then not. This is why the raw ip address works and localhost doesn't - see? HTH sorry if its a bit pedantic John ralcab wrote: (3) Excuse my ignorance, but what's a host file? I'm self taught on this and pretty new to it. -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
[flexcoders] Re: Flash 10 browser crash
In my case, it might be a deprecation warning that finally caught up with me.:) PlotSeries radius property. With radius property set, it blows up the browser. mx:PlotSeries id=series1 xField=crgDate yField=totalScore fillFunction=myFillFunction itemRenderer=mx.charts.renderers.CircleItemRenderer adjustedRadius=10 radius=3/ Not too concerned about it, so I just removed the radius property for now. I'll still post it as a potential bug, but it might be just due to it being deprecated. Thanks! Don --- In flexcoders@yahoogroups.com, Don Kerr [EMAIL PROTECTED] wrote: Thanks Matt. Will do. After some further troubleshooting, I've found it crashes when my PlotChart MXML is there, but doesn't crash when it is commented out. Worked in Flash 9, but no longer works in Flash 10. Don --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote: We know that there are some crash bugs and we're working on addressing them. Can you please file a bug in JIRA against the Flash Player with the url to your app that crashes (or include the SWF in the bug) and make sure to set the bug type to crash? Matt On 11/5/08 11:24 AM, Don Kerr fusionpage@ wrote: I have a flex app that worked fine in Flash 9, but it crashes the browser with flash 10 (on PC and Mac). It is not browser-specific. Any know issues with Flex 3, Flash 10, and browser crashes? Any solutions out there? Thanks, Don Kerr
[flexcoders] Barcode Scanners and Flex
Hello all, I was wondering if anyone has tried reading a Barcode Scanner from Flash using either Flex or Flash CS. Since some Barcode Scanners emulate the keyboard, I thought that it should be possible to read it from Flash. Has anyone had any luck with that? And how did you go about doing it? Thanks in advance, Fidel.
[flexcoders] AdvancedDataGrid scrollbar doesn't work correctly
Hi. I've got an advanced datagrid that shows 10 records at a time based on the technique described by Bruce Phillips here: http://www.brucephillips.name/blog/index.cfm/2006/11/16/Dynamically-Create-Chehttp://www.brucephillips.name/blog/index.cfm/2006/11/29/Paging-Using-Next--Previous-Through-Records-Displayed-In-A-Flex-DataGrid However, the scrollbar doesn't work right. It stops about 3/4 of the way down and won't go any further, even though another record is partially visible. There's no way to bring that last record into view. What's going on? Any solutions? I've got variableRowHeight=true and wordWrap=true. Thanks.
RE: [flexcoders] hi! this examples didn't work out,please help
Declaring public var myFirstProperty:String; is equivalent to declaring public var myFirstProperty:String = null; - Gordon -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: Wednesday, November 05, 2008 6:43 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] hi! this examples didn't work out,please help On Wednesday 05 Nov 2008, ashlytu wrote: [Bindable] public var myFirstProperty:String; You should always give public Bindables a default value: [Bindable] public var myFirstProperty:String=''; -- Tom Chiverton Helping to continuously expedite meta-services This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
[flexcoders] Re: Barcode Scanners and Flex
With barcode readers you have two options: Keyboard scanner or serial port scanner. With a keyboard scanner you have to move a cursor to a text box you are entering data into, then a scan will go into that field. the rest is as same as it would have been entered by a hand. With serial scanners you wouldn't have to position cursor first, but you would need an application that runs on the server to control serial port. Not trivial task, can be done though, but what's worse you will need to find a way of delivering scanned data into Flex interface. Even less trivial task. I would suggest to stick to a keyboard option. HTH --- In flexcoders@yahoogroups.com, Fidel Viegas [EMAIL PROTECTED] wrote: Hello all, I was wondering if anyone has tried reading a Barcode Scanner from Flash using either Flex or Flash CS. Since some Barcode Scanners emulate the keyboard, I thought that it should be possible to read it from Flash. Has anyone had any luck with that? And how did you go about doing it? Thanks in advance, Fidel.
[flexcoders] Custom combobox even propagation
Flex 2.0.1 We are dynamically generating/building a form and putting it in a content area. The form has a list of fields that are custom fields (wrappers for the real UI component). I'm trying to capture a key press in the content area. It works for the TextInput custom component, but not the ComboBox. Any Ideas? Here's the basic class structure (pseudo-code): --- class BaseControl extends UIComponent { protected var component : UIComponent; } class MyComboBox extends BaseControl { public MyComboBox () : void { component = new ComboBox(); } } class MyTextInput extends BaseControl { public MyTextInput () : void { component = new TextInput(); } } class MyForm extends UIComponent { var fields : ArrayCollection; // list of BaseControls } Content.mxml: script var form = new MyForm(); ... add form fields content.addChild(form); content.addEventListener(KeyboardEvent.KEY_DOWN, handleKeyboard); private function handleKeyboard(event:KeyboardEvent) { Alert.show(Key down); } /script mx:VBox id=content /mx:VBox The problem is that the keyboard handler is being called correctly when a key is pressed with the cursor in the custom Text input field, but is not getting called when the custom ComboBox has focus and a key is pressed. What am I missing?
Re: [flexcoders] Error compiling flex library using a Ant task
So I figure out the reason I was getting the error. While including the airglobal.swc, I was using the incorrect compiler option. I had to use compiler.external-library-path instead of compiler.library-path. Sudhir Madyastha -- View this message in context: http://www.nabble.com/Error-compiling-flex-library-using-a-Ant-task-tp20329867p20349029.html Sent from the FlexCoders mailing list archive at Nabble.com.
Re: [flexcoders] Re: Barcode Scanners and Flex
On Wed, Nov 5, 2008 at 10:24 PM, markgoldin_2000 [EMAIL PROTECTED] wrote: With barcode readers you have two options: Keyboard scanner or serial port scanner. With a keyboard scanner you have to move a cursor to a text box you are entering data into, then a scan will go into that field. the rest is as same as it would have been entered by a hand. With serial scanners you wouldn't have to position cursor first, but you would need an application that runs on the server to control serial port. Not trivial task, can be done though, but what's worse you will need to find a way of delivering scanned data into Flex interface. Even less trivial task. I would suggest to stick to a keyboard option. HTH Hi Mark, Thanks for the quick reply. I guess I will go with the first option. But now I have another question. Will any Barcode Scanner work? Or are there special Scanners that can be read as keyboard emulation? Do you have any pointers of what sort of scanners I should use? Thanks in advance. Fidel.
[flexcoders] Re: Barcode Scanners and Flex
In general, any modern scanner should work. As long as it has keyboard emulation. And I believe the majority of nowadays scanners have it. --- In flexcoders@yahoogroups.com, Fidel Viegas [EMAIL PROTECTED] wrote: On Wed, Nov 5, 2008 at 10:24 PM, markgoldin_2000 [EMAIL PROTECTED] wrote: With barcode readers you have two options: Keyboard scanner or serial port scanner. With a keyboard scanner you have to move a cursor to a text box you are entering data into, then a scan will go into that field. the rest is as same as it would have been entered by a hand. With serial scanners you wouldn't have to position cursor first, but you would need an application that runs on the server to control serial port. Not trivial task, can be done though, but what's worse you will need to find a way of delivering scanned data into Flex interface. Even less trivial task. I would suggest to stick to a keyboard option. HTH Hi Mark, Thanks for the quick reply. I guess I will go with the first option. But now I have another question. Will any Barcode Scanner work? Or are there special Scanners that can be read as keyboard emulation? Do you have any pointers of what sort of scanners I should use? Thanks in advance. Fidel.
Re: [flexcoders] Re: Flash 10 browser crash
Glad you could work around it. But it's definitely a bug if it crashes the Player no matter what. Matt On 11/5/08 1:07 PM, Don Kerr [EMAIL PROTECTED] wrote: In my case, it might be a deprecation warning that finally caught up with me.:) PlotSeries radius property. With radius property set, it blows up the browser. mx:PlotSeries id=series1 xField=crgDate yField=totalScore fillFunction=myFillFunction itemRenderer=mx.charts.renderers.CircleItemRenderer adjustedRadius=10 radius=3/ Not too concerned about it, so I just removed the radius property for now. I'll still post it as a potential bug, but it might be just due to it being deprecated. Thanks! Don --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Don Kerr [EMAIL PROTECTED] wrote: Thanks Matt. Will do. After some further troubleshooting, I've found it crashes when my PlotChart MXML is there, but doesn't crash when it is commented out. Worked in Flash 9, but no longer works in Flash 10. Don --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Matt Chotin mchotin@ wrote: We know that there are some crash bugs and we're working on addressing them. Can you please file a bug in JIRA against the Flash Player with the url to your app that crashes (or include the SWF in the bug) and make sure to set the bug type to crash? Matt On 11/5/08 11:24 AM, Don Kerr fusionpage@ wrote: I have a flex app that worked fine in Flash 9, but it crashes the browser with flash 10 (on PC and Mac). It is not browser-specific. Any know issues with Flex 3, Flash 10, and browser crashes? Any solutions out there? Thanks, Don Kerr
[flexcoders] Re: profile still shows removed instances
cheers makes perfect sense now I think about it!
[flexcoders] Re: Debugging question - how do I skip over modules I don't care about?
--- In flexcoders@yahoogroups.com, luvfotography [EMAIL PROTECTED] wrote: Hi, when I'm in the debugging mode and single stepping thru my code, sometimes it goes off into some module that I don't care about, for example the ResourceManager.as, is there a way to 'fast forward', ie, hit the green triangle to continue until it comes back to my code? I can hit the green button, but I may not have any more breakpoints set in my code and it just zooms past all of it. . . I just want to single step my code, or the modules of my choosing and execute (without single stepping) system modules or modules that I don'tcare about. Try using the Step Over button (next to the Step Into Button), which will skip by any calls to functions other than the one you are looking at. If you know that the call is to your own function, switch back to the Step Into button. If you wind up somewhere you don't want to be, click the Step Out button. Sometimes all of this doesn't work and you wind up in the Framework code with no way out. In that case, take note of the line of code that sends you in there and put a break point on the next line. Then you simply hit the play button and play through the fw code until it hits your breakpoint. HTH; Amy
Re: [flexcoders] Re: Barcode Scanners and Flex
On Wed, Nov 5, 2008 at 11:01 PM, markgoldin_2000 [EMAIL PROTECTED] wrote: In general, any modern scanner should work. As long as it has keyboard emulation. And I believe the majority of nowadays scanners have it. Thanks!
RE: [flexcoders] Re: HistoryManager
With modules you can usually avoid headaches related to any of the manager components by importing and creating a var to each in your main Application file. This should appease the compiler while linking everything up. e.g. import mx.managers.DragManager; import mx.managers.HistoryManager; private var _dm:DragManager; private var _hm:HistoryManager; HTH, Ryan From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of tchredeemed Sent: Wednesday, November 05, 2008 1:51 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: HistoryManager 2 Things. 1 - I misspelled weird! 2 - I use a ViewStack in one of my modules, and it only happens when I navigate away from said module to a new module! --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , tchredeemed [EMAIL PROTECTED] wrote: Type Coercion failed: cannot convert mx.managers::History Manager [EMAIL PROTECTED] to mx.managers.IHistoryManager. what would be causing this error? I am not explicitly referencing the HistoryManager in my app at all... wierd! :) This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.
Re: [flexcoders] Re: HistoryManager
i think remembering a case where a viewstack was changing the browser url (using history) by default, and had to manually / expcicitly use usehistory=false or something similar... On Thu, Nov 6, 2008 at 12:26 AM, Ryan Graham [EMAIL PROTECTED]wrote: With modules you can usually avoid headaches related to any of the manager components by importing and creating a var to each in your main Application file. This should appease the compiler while linking everything up. e.g. import mx.managers.DragManager; import mx.managers.HistoryManager; private var _dm:DragManager; private var _hm:HistoryManager; HTH, Ryan -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *tchredeemed *Sent:* Wednesday, November 05, 2008 1:51 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: HistoryManager 2 Things. 1 - I misspelled weird! 2 - I use a ViewStack in one of my modules, and it only happens when I navigate away from said module to a new module! --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, tchredeemed [EMAIL PROTECTED] wrote: Type Coercion failed: cannot convert mx.managers::History Manager [EMAIL PROTECTED] to mx.managers.IHistoryManager. what would be causing this error? I am not explicitly referencing the HistoryManager in my app at all... wierd! :) This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system. -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
Re: [flexcoders] Re: Security and dual localhost address question
Fotis, you may be right, but messing with the hosts file and the crossdomain file did fix the problem for me, albeit on a Linux box. It probably also matters what the setup for his Tomcat is too. It puzzled me too, because I am accustomed to having localhost resolve correctly, though its in the hosts file by default on *nix OSes.. dunno what Windows does. If the problem is resolving localhost the solution is in the places we pointed him John Fotis Chatzinikos wrote: John, appart from your correct info on dns, I do not think thats John's problem, (confict on Johns' here :-)... He is using http://localhost:8080 and localhost works without manually adding it in the hosts file (usually ?) On Wed, Nov 5, 2008 at 9:24 PM, john fisher [EMAIL PROTECTED] wrote:
[flexcoders] Re: Barcode Scanners and Flex
Hi Fidel, I wrote a litle app some weeks ago where I tested a RFID reader that emulate keyboard, here it is if you want it :) ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=intApp(event); mx:Script ![CDATA[ import mx.managers.FocusManager; import mx.events.FlexEvent; private function intApp(event:FlexEvent):void { this.rfidInput.addEventListener(FlexEvent.ENTER, onRFIDInput); } private function startRFIDRead(event:MouseEvent):void { rfidInput.text = ''; focusManager.setFocus(rfidInput); } private function onRFIDInput(event:FlexEvent):void { trace(event); focusManager.hideFocus(); focusManager.setFocus(readButtom); } ]] /mx:Script mx:TextInput id=rfidInput horizontalCenter=0 verticalCenter=0/ mx:Button id=readButtom label=les horizontalCenter=0 verticalCenter=30 click=startRFIDRead(event);/ /mx:Application --- In flexcoders@yahoogroups.com, Fidel Viegas [EMAIL PROTECTED] wrote: Hello all, I was wondering if anyone has tried reading a Barcode Scanner from Flash using either Flex or Flash CS. Since some Barcode Scanners emulate the keyboard, I thought that it should be possible to read it from Flash. Has anyone had any luck with that? And how did you go about doing it? Thanks in advance, Fidel.
Re: [flexcoders] Re: Barcode Scanners and Flex
On Thu, Nov 6, 2008 at 12:57 AM, Cato Paus [EMAIL PROTECTED] wrote: Hi Fidel, I wrote a litle app some weeks ago where I tested a RFID reader that emulate keyboard, here it is if you want it :) ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=intApp(event); mx:Script ![CDATA[ import mx.managers.FocusManager; import mx.events.FlexEvent; private function intApp(event:FlexEvent):void { this.rfidInput.addEventListener(FlexEvent.ENTER, onRFIDInput); } private function startRFIDRead(event:MouseEvent):void { rfidInput.text = ''; focusManager.setFocus(rfidInput); } private function onRFIDInput(event:FlexEvent):void { trace(event); focusManager.hideFocus(); focusManager.setFocus(readButtom); } ]] /mx:Script mx:TextInput id=rfidInput horizontalCenter=0 verticalCenter=0/ mx:Button id=readButtom label=les horizontalCenter=0 verticalCenter=30 click=startRFIDRead(event);/ /mx:Application Hi Cato, Thanks a lot for the code. Fidel.
[flexcoders] Get id of dynamic validator
Hello, I have this form and I am createin dynamic validators for each textinput. I cannot see how to get the validators id when I try and validate the textinput boxes, here is my code: mx:Form width=370 id=userInfoForm mx:FormItem label=First Name required=true id=fname_25_string mx:TextInput id=firstName toolTip=First Name: Max Length 25 Characters maxChars=35 text=James/ /mx:FormItem mx:FormItem label=Last Name required=true id=lname_25_string mx:TextInput id=lastName toolTip=Last Name: Max Length 25 Characters maxChars=35/ /mx:FormItem mx:FormItem label=Email required=true id=Email__ mx:TextInput id=email editable=false toolTip=Cannot edit this field/ /mx:FormItem mx:FormItem label=Title id=tit_25_string mx:TextInput id=title maxChars=35 toolTip=Title: Max Length 25 Characters/ /mx:FormItem /mx:Form So I do a creationcomplete to run a function to get a list of all the textboxes: private function GetChild(item:Object):void { var formItems:Array = item.getChildren(); // loop items and add values for (var i:int = 0; i formItems.length; i++) { // formItem var formItem:Array = formItems[i].getChildren(); var c:UIComponent = formItem[0]; if(c.className.toString() == 'TextInput'){ var rtnID:String = c.id; formItem[0].text = _performaReturnUsersData[rtnID]; /* adding an eventlistener (focuseEvent) to all textinput */ c.addEventListener(FocusEvent.FOCUS_OUT,UpdateItem); var validateString:StringValidator = new StringValidator(); validateString.source = c; validateString.property = text; validateString.required = formItem[0].parent.required; validateString.maxLength = formItem[0].maxChars - 10; } } } This function will go through an find textinput boxes then assign a validator to them. So all is working but the problem is I have no idea how to validate the data without knowing the id of the individual instance of the validator. I have added a listener to the instances of the textinput called UpdateItem, so here is the code: function UpdateItem(f:FocuseOut):void { trace(f.target.id); // Not sure what to do here becuase I dont know the id of the validator attached to the textinput } How can I see if the textinput passes the validators? Thanks for the help, timgerr
[flexcoders] sortCompareFunction - First the number's then the null's
Hi all, In my App I need a custom sortCompareFunction to resove my problem. My problem is, if I have a column with 1, 2, 1, 3, null, 2, null', by default flex sort like this null, null, 1, 1, 2, 2, 3 or 3, 2, 2, 1, 1, null, null. It means, first cames the null then the values. I need 1, 1, 2, 2, 3, null, null How can I have the reverse, first the values ASC, then the nulls. Thank you so much. Core Reagards
RE: [flexcoders] Get id of dynamic validator
Perhaps create an associative array of references to the validators? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of timgerr Sent: Wednesday, November 05, 2008 7:12 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Get id of dynamic validator Hello, I have this form and I am createin dynamic validators for each textinput. I cannot see how to get the validators id when I try and validate the textinput boxes, here is my code: mx:Form width=370 id=userInfoForm mx:FormItem label=First Name required=true id=fname_25_string mx:TextInput id=firstName toolTip=First Name: Max Length 25 Characters maxChars=35 text=James/ /mx:FormItem mx:FormItem label=Last Name required=true id=lname_25_string mx:TextInput id=lastName toolTip=Last Name: Max Length 25 Characters maxChars=35/ /mx:FormItem mx:FormItem label=Email required=true id=Email__ mx:TextInput id=email editable=false toolTip=Cannot edit this field/ /mx:FormItem mx:FormItem label=Title id=tit_25_string mx:TextInput id=title maxChars=35 toolTip=Title: Max Length 25 Characters/ /mx:FormItem /mx:Form So I do a creationcomplete to run a function to get a list of all the textboxes: private function GetChild(item:Object):void { var formItems:Array = item.getChildren(); // loop items and add values for (var i:int = 0; i formItems.length; i++) { // formItem var formItem:Array = formItems[i].getChildren(); var c:UIComponent = formItem[0]; if(c.className.toString() == 'TextInput'){ var rtnID:String = c.id; formItem[0].text = _performaReturnUsersData[rtnID]; /* adding an eventlistener (focuseEvent) to all textinput */ c.addEventListener(FocusEvent.FOCUS_OUT,UpdateItem); var validateString:StringValidator = new StringValidator(); validateString.source = c; validateString.property = text; validateString.required = formItem[0].parent.required; validateString.maxLength = formItem[0].maxChars - 10; } } } This function will go through an find textinput boxes then assign a validator to them. So all is working but the problem is I have no idea how to validate the data without knowing the id of the individual instance of the validator. I have added a listener to the instances of the textinput called UpdateItem, so here is the code: function UpdateItem(f:FocuseOut):void { trace(f.target.id); // Not sure what to do here becuase I dont know the id of the validator attached to the textinput } How can I see if the textinput passes the validators? Thanks for the help, timgerr
[flexcoders] Re: sortCompareFunction - First the number's then the null's
Use this as the sortCompareFunction on your column: public function compareValues(a:Object, b:Object):int { if(a == null b == null) return 0; if(a == null) return 1; if(b == null) return -1; if(a b) return -1; if(a == b) return 0; return 1; } --- In flexcoders@yahoogroups.com, hugocorept [EMAIL PROTECTED] wrote: Hi all, In my App I need a custom sortCompareFunction to resove my problem. My problem is, if I have a column with 1, 2, 1, 3, null, 2, null', by default flex sort like this null, null, 1, 1, 2, 2, 3 or 3, 2, 2, 1, 1, null, null. It means, first cames the null then the values. I need 1, 1, 2, 2, 3, null, null How can I have the reverse, first the values ASC, then the nulls. Thank you so much. Core Reagards
Re: [flexcoders] How to improve consuming rate of Flex messages
Make your message handling as thin as possible. 25 is a very achievable number. Use the FB3 profiler to investigate what you might be able to optimize... You might want to look into BlazeDS (http://opensource.adobe.com/wiki/display/blazeds/BlazeDS/) as a potentially faster alternative to FDS. Without more specifics about the app it's a little difficult to offer much past the regular generica on the advice front. -Ciarán On Wed, Nov 5, 2008 at 8:17 AM, jitendra jain [EMAIL PROTECTED] wrote: Hi , I have a JMS Producer that produces messages at a speed of 25 msgs/Per second. How could i make my flex application smart enough to consume those inoming messages. Thanks, with Regards, Jitendra Jain Add more friends to your messenger and enjoy! Invite them now.