RE: [flexcoders] Cairngorm .99 ViewHelper Bug ?

2005-06-13 Thread Alistair McLeod
Hi Rich,

Has you debugging narrowed it down any? Does the unload handler get called?
When the view is created for the second time, is an exception thrown? Do any
errors appear in flashlog.txt? It's hard to know whats going on unless you
post all your code or give us more info.

Cheers,

Ali


--
Alistair McLeod
Development Director
iteration::two
[EMAIL PROTECTED]
 
Office:  +44 (0)131 338 6108
 
This e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used by
anyone other than the intended recipient(s). If you are not the intended
recipient(s) please destroy this e-mail, and any copies of it, immediately.
 
Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out
before any attachments are opened.
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rich Tretola
Sent: 13 June 2005 16:35
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cairngorm .99 ViewHelper Bug ?

In my app I am creating and destroying a view using createChild and
destroyChild.  When I include a view helper within that view, it will only
load once.  My opinion is that the viewHelper attached in not being
destroyed with the view which is causing the issue.  When I comment out the
viewHelper include in the view, all works well and the view can be created
and destroyed over and over.  Isn't the viewHelper supposed to be destroyed
when its view is destroyed ?  Is this a known issue of Cairngorm .99? 

Thanks,
Rich


 
Yahoo! Groups Links



 



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> 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] Cairngorm .99 ViewHelper Bug ?

2005-06-13 Thread Rich Tretola
The issue is a timing issue as in testing I was destroying and
creating the same view on consecutive lines which didn't give the
unload event a chance the unload the viewhelper.   So it was an issue
where it was trying to create the second view before the first's
viewhelper was unregistered.

How should I handle this?  Should I not use view helpers for these
types of files where I may need to have more than one instance ?

Rich

On 6/13/05, Alistair Mceod <[EMAIL PROTECTED]> wrote:
> Hi Rich,
> 
> Has you debugging narrowed it down any? Does the unload handler get called?
> When the view is created for the second time, is an exception thrown? Do any
> errors appear in flashlog.txt? It's hard to know whats going on unless you
> post all your code or give us more info.
> 
> Cheers,
> 
> Ali
> 
> 
> --
> Alistair McLeod
> Development Director
> iteration::two
> [EMAIL PROTECTED]
> 
> Office:  +44 (0)131 338 6108
> 
> This e-mail and any associated attachments transmitted with it may contain
> confidential information and must not be copied, or disclosed, or used by
> anyone other than the intended recipient(s). If you are not the intended
> recipient(s) please destroy this e-mail, and any copies of it, immediately.
> 
> Please also note that while software systems have been used to try to ensure
> that this e-mail has been swept for viruses, iteration::two do not accept
> responsibility for any damage or loss caused in respect of any viruses
> transmitted by the e-mail. Please ensure your own checks are carried out
> before any attachments are opened.
> 
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Rich Tretola
> Sent: 13 June 2005 16:35
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Cairngorm .99 ViewHelper Bug ?
> 
> In my app I am creating and destroying a view using createChild and
> destroyChild.  When I include a view helper within that view, it will only
> load once.  My opinion is that the viewHelper attached in not being
> destroyed with the view which is causing the issue.  When I comment out the
> viewHelper include in the view, all works well and the view can be created
> and destroyed over and over.  Isn't the viewHelper supposed to be destroyed
> when its view is destroyed ?  Is this a known issue of Cairngorm .99?
> 
> Thanks,
> Rich
> 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 
>


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> 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] Cairngorm .99 ViewHelper Bug ?

2005-06-13 Thread Steven Webster
Rich,

I'd be interested to know what it is you're doing in your view helpers, and
whether you've considered the model locator strategy if you're using 0.99.

We could certainly discuss how you alleviate your timing issues; however,
perhaps a change of strategy will remove the problem entirely ?

Thoughts ?

Steven 


--
Steven Webster
Technical Director
iteration::two
[EMAIL PROTECTED]
 
Office:  +44 (0)131 338 6108
Mobile: +44 (0)7977 216 223
 
This e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used by
anyone other than the intended recipient(s). If you are not the intended
recipient(s) please destroy this e-mail, and any copies of it, immediately.
 
Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out
before any attachments are opened.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rich Tretola
Sent: 13 June 2005 20:42
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Cairngorm .99 ViewHelper Bug ?

The issue is a timing issue as in testing I was destroying and creating the
same view on consecutive lines which didn't give the
unload event a chance the unload the viewhelper.   So it was an issue
where it was trying to create the second view before the first's viewhelper
was unregistered.

How should I handle this?  Should I not use view helpers for these types of
files where I may need to have more than one instance ?

Rich

On 6/13/05, Alistair Mceod <[EMAIL PROTECTED]> wrote:
> Hi Rich,
> 
> Has you debugging narrowed it down any? Does the unload handler get
called?
> When the view is created for the second time, is an exception thrown? 
> Do any errors appear in flashlog.txt? It's hard to know whats going on 
> unless you post all your code or give us more info.
> 
> Cheers,
> 
> Ali
> 
> 
> --
> Alistair McLeod
> Development Director
> iteration::two
> [EMAIL PROTECTED]
> 
> Office:  +44 (0)131 338 6108
> 
> This e-mail and any associated attachments transmitted with it may 
> contain confidential information and must not be copied, or disclosed, 
> or used by anyone other than the intended recipient(s). If you are not 
> the intended
> recipient(s) please destroy this e-mail, and any copies of it,
immediately.
> 
> Please also note that while software systems have been used to try to 
> ensure that this e-mail has been swept for viruses, iteration::two do 
> not accept responsibility for any damage or loss caused in respect of 
> any viruses transmitted by the e-mail. Please ensure your own checks 
> are carried out before any attachments are opened.
> 
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
> On Behalf Of Rich Tretola
> Sent: 13 June 2005 16:35
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Cairngorm .99 ViewHelper Bug ?
> 
> In my app I am creating and destroying a view using createChild and 
> destroyChild.  When I include a view helper within that view, it will 
> only load once.  My opinion is that the viewHelper attached in not 
> being destroyed with the view which is causing the issue.  When I 
> comment out the viewHelper include in the view, all works well and the 
> view can be created and destroyed over and over.  Isn't the viewHelper 
> supposed to be destroyed when its view is destroyed ?  Is this a known
issue of Cairngorm .99?
> 
> Thanks,
> Rich
> 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 
>


 
Yahoo! Groups Links



 



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> 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] Cairngorm .99 ViewHelper Bug ?

2005-06-13 Thread Rich Tretola
The view helpers are mainly for changing the views chart content.  I
am using the Model Locator for the data within the views.

Here is an example:
View: ChartDataByYear  will show Yearly data in one chart with drill
down to another chart showing a monthly view of that data.  The view
helper is controlling the data supplied to the each chart.

I don't think there will ever be a time where I will need to have more
than one instance of the same view created at the same time, but if I
did, it wouldn't be possible.

The only reason this came up was that I was using the same
view/viewhelper in my testing to create and destroy.  Once I created a
2nd view and used that one as the 2nd one created I was ok.

This sequence fails:
destroyChild(myView1);
createChild(myView1);

This sequence works:
destroyChild(myView1);
createChild(myView2);

If in sequence 1 above, I destroyed myView1 using a button click and
then used a second button click to create the myView1 again it worked
ok which is why it must be a timing issue where the 1st instance of
myView unload event calls the viewhelpers unregister method after the
createChild has already fired.


It basically comes down to the issue of whether the viewHelper class
should be a singleton or not which I know has come up before.

Rich



On 6/13/05, Steven Webster <[EMAIL PROTECTED]> wrote:
> Rich,
> 
> I'd be interested to know what it is you're doing in your view helpers, and
> whether you've considered the model locator strategy if you're using 0.99.
> 
> We could certainly discuss how you alleviate your timing issues; however,
> perhaps a change of strategy will remove the problem entirely ?
> 
> Thoughts ?
> 
> Steven
> 
> 
> --
> Steven Webster
> Technical Director
> iteration::two
> [EMAIL PROTECTED]
> 
> Office:  +44 (0)131 338 6108
> Mobile: +44 (0)7977 216 223
> 
> This e-mail and any associated attachments transmitted with it may contain
> confidential information and must not be copied, or disclosed, or used by
> anyone other than the intended recipient(s). If you are not the intended
> recipient(s) please destroy this e-mail, and any copies of it, immediately.
> 
> Please also note that while software systems have been used to try to ensure
> that this e-mail has been swept for viruses, iteration::two do not accept
> responsibility for any damage or loss caused in respect of any viruses
> transmitted by the e-mail. Please ensure your own checks are carried out
> before any attachments are opened.
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Rich Tretola
> Sent: 13 June 2005 20:42
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Cairngorm .99 ViewHelper Bug ?
> 
> The issue is a timing issue as in testing I was destroying and creating the
> same view on consecutive lines which didn't give the
> unload event a chance the unload the viewhelper.   So it was an issue
> where it was trying to create the second view before the first's viewhelper
> was unregistered.
> 
> How should I handle this?  Should I not use view helpers for these types of
> files where I may need to have more than one instance ?
> 
> Rich
> 
> On 6/13/05, Alistair Mceod <[EMAIL PROTECTED]> wrote:
> > Hi Rich,
> >
> > Has you debugging narrowed it down any? Does the unload handler get
> called?
> > When the view is created for the second time, is an exception thrown?
> > Do any errors appear in flashlog.txt? It's hard to know whats going on
> > unless you post all your code or give us more info.
> >
> > Cheers,
> >
> > Ali
> >
> >
> > --
> > Alistair McLeod
> > Development Director
> > iteration::two
> > [EMAIL PROTECTED]
> >
> > Office:  +44 (0)131 338 6108
> >
> > This e-mail and any associated attachments transmitted with it may
> > contain confidential information and must not be copied, or disclosed,
> > or used by anyone other than the intended recipient(s). If you are not
> > the intended
> > recipient(s) please destroy this e-mail, and any copies of it,
> immediately.
> >
> > Please also note that while software systems have been used to try to
> > ensure that this e-mail has been swept for viruses, iteration::two do
> > not accept responsibility for any damage or loss caused in respect of
> > any viruses transmitted by the e-mail. Please ensure your own checks
> > are carried out before any attachments are opened.
> >
> >
> > -Original Message-
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> > On Behalf Of Rich Tretola
> > Sent: 13 June 2005 16:35
>

RE: [flexcoders] Cairngorm .99 ViewHelper Bug ?

2005-06-14 Thread Alistair McLeod
Hi Rich,

Try recreating the view in a doLater() - that should give the player enough
time to send the unload event.

Cheers,

Ali 


--
Alistair McLeod
Development Director
iteration::two
[EMAIL PROTECTED]
 
Office:  +44 (0)131 338 6108
 
This e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used by
anyone other than the intended recipient(s). If you are not the intended
recipient(s) please destroy this e-mail, and any copies of it, immediately.
 
Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out
before any attachments are opened.
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rich Tretola
Sent: 13 June 2005 20:42
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Cairngorm .99 ViewHelper Bug ?

The issue is a timing issue as in testing I was destroying and creating the
same view on consecutive lines which didn't give the
unload event a chance the unload the viewhelper.   So it was an issue
where it was trying to create the second view before the first's viewhelper
was unregistered.

How should I handle this?  Should I not use view helpers for these types of
files where I may need to have more than one instance ?

Rich

On 6/13/05, Alistair Mceod <[EMAIL PROTECTED]> wrote:
> Hi Rich,
> 
> Has you debugging narrowed it down any? Does the unload handler get
called?
> When the view is created for the second time, is an exception thrown? 
> Do any errors appear in flashlog.txt? It's hard to know whats going on 
> unless you post all your code or give us more info.
> 
> Cheers,
> 
> Ali
> 
> 
> --
> Alistair McLeod
> Development Director
> iteration::two
> [EMAIL PROTECTED]
> 
> Office:  +44 (0)131 338 6108
> 
> This e-mail and any associated attachments transmitted with it may 
> contain confidential information and must not be copied, or disclosed, 
> or used by anyone other than the intended recipient(s). If you are not 
> the intended
> recipient(s) please destroy this e-mail, and any copies of it,
immediately.
> 
> Please also note that while software systems have been used to try to 
> ensure that this e-mail has been swept for viruses, iteration::two do 
> not accept responsibility for any damage or loss caused in respect of 
> any viruses transmitted by the e-mail. Please ensure your own checks 
> are carried out before any attachments are opened.
> 
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
> On Behalf Of Rich Tretola
> Sent: 13 June 2005 16:35
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Cairngorm .99 ViewHelper Bug ?
> 
> In my app I am creating and destroying a view using createChild and 
> destroyChild.  When I include a view helper within that view, it will 
> only load once.  My opinion is that the viewHelper attached in not 
> being destroyed with the view which is causing the issue.  When I 
> comment out the viewHelper include in the view, all works well and the 
> view can be created and destroyed over and over.  Isn't the viewHelper 
> supposed to be destroyed when its view is destroyed ?  Is this a known
issue of Cairngorm .99?
> 
> Thanks,
> Rich
> 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
> 
>


 
Yahoo! Groups Links



 



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> 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/