Re: [flexcoders] How to get the width of the Itemrenderer in a List

2010-08-18 Thread Alex Harui
If you know the borders, paddings and positioning of the datagroup, can’t you then calculate the width? Maybe compare the DataGroup’s x,y,w,h. On 8/17/10 7:35 PM, dorkiedorkfromdorkt...@gmail.com dorkiedorkfromdorkt...@gmail.com wrote: Spark. If the item renderer item is outside of the

[flexcoders] Is there an intention to support loading Flex into Flash?

2010-08-18 Thread guytom19
Hi, I know this is not formally supported. We found ways around it that work in most cases but there are always new problems. Is there any plan from Adobe to formally support this? For us this limitation is a serious problem and we'll probably have to drop Flex altogether for Flash just

Re: [flexcoders] Re: Null object error on test for null

2010-08-18 Thread Tom McNeer
Sunil, On Tue, Aug 17, 2010 at 11:27 PM, Sunil D sunilbd...@gmail.com wrote: Which line does the null pointer error occur on? The first line of the function - the null test: if(filterCombo!=null){ -- Thanks, Tom Tom McNeer MediumCool http://www.mediumcool.com 1735 Johnson Road NE

Re: [flexcoders] Re: Null object error on test for null

2010-08-18 Thread p...@vin Uttarwar
Are you sure? because i dont see any code which will throw such error? Thanks Regards, Pravin Uttarwar | Perennial Systems pravin.uttar...@perennialsys.com On 18 August 2010 18:37, Tom McNeer tmcn...@gmail.com wrote: Sunil, On Tue, Aug 17, 2010 at 11:27 PM, Sunil D

[flexcoders] This is a toughy: Dynamic Tabs with Modules..where to put them?

2010-08-18 Thread Wally Kolcz
I am creating a UI where the user is presented with tabs using a s:TabBar and a mx:ViewStack as the application loads, I add a empty NavigatorContent with the names of the apps by looping through a dataset. Each tab represents a module that is to be loaded when the user clicks it. The problem

Re: [flexcoders] Re: Null object error on test for null

2010-08-18 Thread Tom McNeer
On Wed, Aug 18, 2010 at 9:11 AM, p...@vin Uttarwar pravinuttar...@gmail.comwrote: Are you sure? because i dont see any code which will throw such error? That's precisely my point. The error always points to that line, whether I write if(filterCombo) or if(filterCombo != null) or any other

Re: [flexcoders] Re: Null object error on test for null

2010-08-18 Thread p...@vin Uttarwar
hopefully youre project is compiling correctly and try to put some traces before and after that line. Alos commenting that line removing the error or not? Thanks Regards, Pravin Uttarwar | Perennial Systems pravin.uttar...@perennialsys.com On 18 August 2010 18:54, Tom McNeer

Re: [flexcoders] Re: Null object error on test for null

2010-08-18 Thread Tom McNeer
Pravin, Thanks for your suggestions. On Wed, Aug 18, 2010 at 9:28 AM, p...@vin Uttarwar pravinuttar...@gmail.comwrote: hopefully youre project is compiling correctly and try to put some traces before and after that line. It compiles properly, and traces reveal nothing. After the line, of

Re: [flexcoders] Re: Null object error on test for null

2010-08-18 Thread p...@vin Uttarwar
for a moment can you comment out inside code and just keep if(...){ //blank body } Thanks Regards, Pravin Uttarwar | Perennial Systems pravin.uttar...@perennialsys.com On 18 August 2010 19:05, Tom McNeer tmcn...@gmail.com wrote: Pravin, Thanks for your suggestions. On Wed, Aug 18,

Re: [flexcoders] Re: Null object error on test for null

2010-08-18 Thread Wesley Acheson
On Wed, Aug 18, 2010 at 3:35 PM, Tom McNeer tmcn...@gmail.com wrote: Pravin, Thanks for your suggestions. On Wed, Aug 18, 2010 at 9:28 AM, p...@vin Uttarwar pravinuttar...@gmail.com wrote: hopefully youre project is compiling correctly and try to put some traces before and after

Re: [flexcoders] This is a toughy: Dynamic Tabs with Modules..where to put them?

2010-08-18 Thread Wally Kolcz
after experimenting, it turned out to be remarkly easy: n = apps.selectedChild as ModLoaderNC; n.addElement(modLoader.factory.create() as IVisualElement); On 8/18/2010 9:19 AM, Wally Kolcz wrote: I am creating a UI where the user is presented with tabs using a s:TabBar and a

Re: [flexcoders] Re: Null object error on test for null

2010-08-18 Thread Tom McNeer
@Pravin, I really appreciate your attempts to help. Unfortunately, I've already tried these things. I've commented out the entire body of the function within the if statement. I've run it within the debugger. With or without the interior code, the debugger stops on the null test and reports

Re: [flexcoders] Re: Null object error on test for null

2010-08-18 Thread Kevin Bowers
Tom, Perhaps another obvious thing, but it has worked for me in the past. Have you tried putting something along the lines of: if(==null)// rather than the != null { } else { your code here } No logical difference I know, but then it's not behaving logically at the moment anyway.

Re: [flexcoders] Re: Null object error on test for null

2010-08-18 Thread Tom McNeer
Hi Kevn, On Wed, Aug 18, 2010 at 10:51 AM, Kevin Bowers kevin.bow...@btinternet.comwrote: Have you tried putting something along the lines of: if(==null)// rather than the != null Yep. I've even tried === null, although that makes no sense either. Failing that, do you have a wall

Re: [flexcoders] Is there an intention to support loading Flex into Flash?

2010-08-18 Thread Alex Harui
No plans at this time. Why can’t the main app be Flex? It can load Flash sub-apps if they don’t use the fl.* classes. On 8/18/10 5:52 AM, guytom19 guy.to...@gmail.com wrote: Hi, I know this is not formally supported. We found ways around it that work in most cases but there are always

Re: [flexcoders] Re: Null object error on test for null

2010-08-18 Thread Alex Harui
How is that variable defined? If it is [Bindable] or is backed by generated code that doesn’t have debug information you might end up with a mysterious error like that. On 8/18/10 8:05 AM, Tom McNeer tmcn...@gmail.com wrote: Hi Kevn, On Wed, Aug 18, 2010 at 10:51 AM, Kevin Bowers

Re: [flexcoders] Re: Null object error on test for null

2010-08-18 Thread Tom McNeer
Hi Alex, Thanks for jumping in. Yes, it is bindable. It is defined as a public var ArrayCollection within the mxml component which contains the function in question. Its contents are injected via a service call from another component. They are generally filtered before they arrive. This

[flexcoders] Switching Item Renderers

2010-08-18 Thread Wesley Acheson
*Disclaimer:* This is a cross post with Stack Overflow. I know at least one person on this list saw it there. http://stackoverflow.com/questions/3507313/flex-switch-item-renderer Hi I was wondering if anyone had any luck with the following senario in flex. I'd like to be able to have a custom

Re: [flexcoders] Re: Null object error on test for null

2010-08-18 Thread Alex Harui
See if you can reproduce the problem in a 20–line test case. Another thing to try might be to not make it [Bindable] and see if the problem goes away. On 8/18/10 11:13 AM, Tom McNeer tmcn...@gmail.com wrote: Hi Alex, Thanks for jumping in. Yes, it is bindable. It is defined as a public

Re: [flexcoders] Re: Null object error on test for null

2010-08-18 Thread Tom McNeer
Hi Alex, On Wed, Aug 18, 2010 at 5:54 PM, Alex Harui aha...@adobe.com wrote: See if you can reproduce the problem in a 20–line test case. Another thing to try might be to not make it [Bindable] and see if the problem goes away. I've avoided the problem by taking a somewhat different

[flexcoders] Re: Handling XML

2010-08-18 Thread Stephen
Managed to pop the XML into an XMLList var list:XMLList = XMLList(xml); And then recorsively count through items list = list.decendants(item); Then finaly recover what I was looking for trace(list.toXMLString()); So all good. - Criptopus --- In flexcoders@yahoogroups.com, Alex Harui

[flexcoders] Listening for CollectionEvent in custom component

2010-08-18 Thread Alexander
Hello, I have 2 problems with my custom component (code below), which works ok otherwise. It represents a list of games, with up to 3 players. I feed it with XML data being pulled from server: game id=42 user . user . user . /game game id=47 user . /game game id=56

[flexcoders] Re: Accessing Network Drive in AIR

2010-08-18 Thread flxde...@ymail.com
Hi, i figured out many times errors when the foldernames including an space. So try to prevent \\network-drive-location\department*thisSpace*folder\config.xml and try \\network-drive-location\departmentfolder\config.xml instead. greets --- In flexcoders@yahoogroups.com, sdl1326

[flexcoders] flex2gateway error

2010-08-18 Thread happy dog owner
Hi all, I am working on my first real Flex application, using the latest ColdFusion 9.01 server as a backend, Flex 4 using Flash Builder Standard. Running on Windows on Apache. Everything seems to work fine but then randomly (as far as I can tell) I'll start getting those flex2gateway errors:

[flexcoders] HistoryManager - Deprecated??

2010-08-18 Thread t0ml33
I've seen a post here on Flexcoders where Alex Harui has stated that history manager is more or less deprecated. I was wondering if anyone could shed some light on why that is? I'd like to use it in my projects - it has some handy features - but if it's going away, I'd have to write my own.

[flexcoders] Add a button to the branch/root in a Flex Tree

2010-08-18 Thread nikh1307
Hi, Can Someone provide me code or guide me how to add a button to all branch that has children/leaf( but not to leaf). I tried from the example in this link http://www.remwebdevelopment.com/dev/a31/Flex-Checkbox-TreeItemRendere r.html , but I dont know where to add buttons i need to have

[flexcoders] Re: Null object error on test for null

2010-08-18 Thread Amy
--- In flexcoders@yahoogroups.com, Tom McNeer tmcn...@... wrote: In the function below, I begin by testing to see if a particular object is null (the array of ComboBoxes that represent the children of a Repeater, which may or may not exist). The element is defined in MXML, though of course

Re: [flexcoders] Re: Null object error on test for null

2010-08-18 Thread Alex Harui
If the instance of the AC is replaced by another instance, there are no events dispatched other than the binding events. CollectionEvents are only when data in an instance of an AC changes. On 8/18/10 3:28 PM, Tom McNeer tmcn...@gmail.com wrote: Hi Alex, On Wed, Aug 18, 2010 at 5:54

Re: [flexcoders] HistoryManager - Deprecated??

2010-08-18 Thread Alex Harui
We want everyone to use the BrowserManager. It is a bit more work to setup, but your customers will be happier because the URLs will be more readable. On 8/18/10 10:58 AM, t0ml33 des...@tom-lee.com wrote: I've seen a post here on Flexcoders where Alex Harui has stated that history

[flexcoders] Re: Is there an intention to support loading Flex into Flash?

2010-08-18 Thread guytom19
Because the main app isn't ours, it's usually a video player. Our app is designed to be a plugin to other apps. There are so many flash applications designed that way today for advertisement and other extensions that I really think it eliminates Flex as an option from many projects. --- In

[flexcoders] Re: Is there an intention to support loading Flex into Flash?

2010-08-18 Thread guytom19
I can't seem to find it. Do you have a link maybe? --- In flexcoders@yahoogroups.com, Bill Brutzman bill.brutz...@... wrote: There's a recent Adobe (Boston?) conference video given when Adobe released FB4 by the (female) Flex Project Manager that covers this topic. --Bill

[flexcoders] Re: AdvancedDataGrid group filtering openNode

2010-08-18 Thread steven_t_berman
I see this has been dormant for a while, but Im having exactly the same problem, and having spent all day on a google trip to nowhere, I figured I'd post here and see if any of the big brains have some ideas... To recap whats below: updating the data provider for a AdvancedDataGrid causes all