Yes, exactly. I am getting different ID every time I get an instance. On Thu, Nov 13, 2014 at 3:10 PM, Alex Harui <aha...@adobe.com> wrote:
> Are you referring to where FlashBuilder shows something like: (@1171655c1) > > It would be odd for that number to change for a Singleton within the same > debug session, but the number can certainly change from run to run. You > can try the profiler and see how many instances of the Singleton it thinks > is getting created. > > -Alex > > On 11/13/14, 12:51 PM, "mark goldin" <markzolo...@gmail.com> wrote: > > >I meant a value that is shown in Debug Window in Value column when I > >select > >_instance in Name column . Value has unique number at the end. > > > >On Thu, Nov 13, 2014 at 2:46 PM, Alex Harui <aha...@adobe.com> wrote: > > > >> Not sure what “internal name” means but I didn’t see any name property > >>on > >> the code you supplied. Show us the code for “internal name”. > >> > >> On 11/13/14, 12:30 PM, "mark goldin" <markzolo...@gmail.com> wrote: > >> > >> >The way I know that the object is different is I am checking its > >>internal > >> >name in the Debugger every time I get an instance. > >> > > >> >On Thu, Nov 13, 2014 at 2:07 PM, Alex Harui <aha...@adobe.com> wrote: > >> > > >> >> > >> >> > >> >> On 11/13/14, 11:33 AM, "mark goldin" <markzolo...@gmail.com> wrote: > >> >> > >> >> > >> >> >When I am debugging I see that _instance is always different object > >> >>when I > >> >> >get an instance of my singleton. Is that right? > >> >> > >> >> How do you know it is a different object? > >> >> > >> >> It could be that the code generator for [Bindable] is messing things > >>up. > >> >> You might try switching to [Bindable(“someEvent”)] and manually write > >> >>the > >> >> getters and setters and have the setters dispatchEvent(new > >> >> Event(“someEvent”); > >> >> > >> >> -Alex > >> >> > >> >> > >> > >> > >