Re: function caller reference

2013-09-05 Thread Alex Harui
You can look into using the scope chain. I'm not quite sure what you're trying to achieve. This approach worked: public var myFun:Function = function():void{ trace("Function caller: " + this.name);

RE: function caller reference

2013-09-05 Thread Raj U. Shaikh
trace(name) will not work in my case. I am doing refactoring of project(removing xml and using toplevel objects instead). Where impact of code change is more, so i thought sharing a common function will lessen it. I can not able to pass object as refrence in said function(imapct on code change

Re: function caller reference

2013-09-05 Thread Alex Harui
BTW, even if trace(name) works, I would caution that I believe it doesn't work in JS and will pose a porting problem if you ever need to port that code to JS. On 9/5/13 9:44 AM, "Alex Harui" wrote: >He's trying to determine who called this shared method. The stack trace >idea isn't guaranteed t

Re: function caller reference

2013-09-05 Thread Alex Harui
He's trying to determine who called this shared method. The stack trace idea isn't guaranteed to work on release players. And as the error suggested, it is best to pass in the caller. But just trace(name) may also work. On 9/5/13 8:38 AM, "Tom Chiverton" wrote: >Throw an error, catch it, and

Re: function caller reference

2013-09-05 Thread Tom Chiverton
Throw an error, catch it, and look in the stack trace. What are you trying to achieve that can't be done, as the message suggests, by some other means ? Tom On 05/09/2013 16:04, Raj U. Shaikh wrote: Hi, I wanted to access caller of function, For example: var object:Object = new Object();

Re: ZLMA Compression support?

2013-09-05 Thread João Fernandes
Ok thanks, I was just wondering if eventually 4.6 version already had support and I wasn't aware. I'll check the code. Thanks! On 5 September 2013 17:32, Alex Harui wrote: > I don't know OTOH. You can rummage through recent source code history and > see if happened or not. > > On 9/5/13 4:15 A

Re: ZLMA Compression support?

2013-09-05 Thread Alex Harui
I don't know OTOH. You can rummage through recent source code history and see if happened or not. On 9/5/13 4:15 AM, "João Fernandes" wrote: >Hi, does anyone know if LZMA Compression is already supported in the MXMLC >or Falcon compiler? In the past we added a step in our build process to >appl

Re: Migrating to apache Flex 4.10 DataGridSkin issue

2013-09-05 Thread Alex Harui
On 9/5/13 2:34 AM, "mspecht" wrote: >Hello, > >we are migrating an AIR App from Flex 4.6 to Flex 4.10. One issue we had >was >that some datagrids did not show the headers and cells with data. The >issue >was related to the custom datagridskins that we used: > >Is there a migration guide where w

function caller reference

2013-09-05 Thread Raj U. Shaikh
Hi, I wanted to access caller of function, For example: var object:Object = new Object(); object["name"] = "First Object"; object["fun"] = myFun;

Re: AW: DataGrid with itemRenderer Drag and Drop error

2013-09-05 Thread Marcus Wilkinson
Hello, I was actually experiencing the same problem and have already made a ticket for it: https://issues.apache.org/jira/browse/FLEX-33705 The problem is with the drag proxy (the transparent copy of the row which follows your mouse). It gets the grid to make new item renderers but fails to assign

AW: DataGrid with itemRenderer Drag and Drop error

2013-09-05 Thread mspecht
The data is not the problem, the column is null. If I change it the following way: if(column) albumName.text = data[column.dataField]; I get a null pointer exception in MatrixUtil.as:543 change it to if(data) albumName.text = data[column.dataField]; Thank You, Stephe

Re: DataGrid with itemRenderer Drag and Drop error

2013-09-05 Thread Stephen C
change it to if(data) albumName.text = data[column.dataField]; Thank You, Stephen C -All of my email addresses go to the same place -Save Paper, think before you print -PGP Public Key On Thu, Sep 5, 2013 at 7:46

AW: DataGrid with itemRenderer Drag and Drop error

2013-09-05 Thread Mario.Specht
The itemRenderer looks like this: http://ns.adobe.com/mxml/2009"; xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" clipAndEnableScrolling="true">

RE: DataGrid with itemRenderer Drag and Drop error

2013-09-05 Thread Kessler CTR Mark J
You may create a new issue at [1]. Please add your description of the problem and add an example that can demonstrate the problem your having. [1] https://issues.apache.org/jira/browse/FLEX -Mark -Original Message- From: mspecht [mailto:mario.spe...@bertelsmann.de] Sent: Thursday, Sep

Re: DataGrid with itemRenderer Drag and Drop error

2013-09-05 Thread Stephen C
in your itemRenderer are you doing if(data){} etc... There any many reasons for null data being in a cell. Thank You, Stephen C -All of my email addresses go to the same place -Save Paper, think before you print -PGP Public Key

DataGrid with itemRenderer Drag and Drop error

2013-09-05 Thread mspecht
Hi, I tried to use the drag and drop functionality of the DataGrid. One column contains a special itemrenderer. As soon as I try to drag one item I get a null pointer exception for the coulmn in the itemRenderer. A simple example is attached. I didn't find a related bug in JIRA. May I open a ti

ZLMA Compression support?

2013-09-05 Thread João Fernandes
Hi, does anyone know if LZMA Compression is already supported in the MXMLC or Falcon compiler? In the past we added a step in our build process to apply LZMA with an external executable and it works fine but I was wondering if it was added since. -- João Fernandes

Migrating to apache Flex 4.10 DataGridSkin issue

2013-09-05 Thread mspecht
Hello, we are migrating an AIR App from Flex 4.6 to Flex 4.10. One issue we had was that some datagrids did not show the headers and cells with data. The issue was related to the custom datagridskins that we used: old: