[flexcoders] Re: Formatting a TextInput

2009-03-20 Thread donald_d_hook
Faster yet ... sample below

define the formatters:
==






Use in your code:
=
txtCurrentBalance.text = currencyFormatter.format(account.currentCashBalance);

txtGainPct.text = percentFormatter.format((gain / account.initialCashBalance) * 
100);



--- In flexcoders@yahoogroups.com, "stuarthuss"  wrote:
>
> You can use Flex Framework formatter classes, for a demonstration on how to 
> use them check out the short (6 mins) video "Formatting Data" from Adobe's 
> Flex in a week tutorial [ http://www.adobe.com/devnet/flex/videotraining/ ] 
> It's on Day 3.
> 
> --- In flexcoders@yahoogroups.com, "christophe_jacquelin" 
>  wrote:
> >
> > Hello,
> > 
> > I want that a TextInput to have always the same format : 000/000 with 0 
> > replacing by different numbers.
> > 
> > How to force a TextInput to be in a given format ? 
> > 
> > Thank you,
> > Christophe,
> >
>




[flexcoders] Flex 3.1 vs 3.2 and Class Loading

2008-12-28 Thread donald_d_hook
I had developed an application consisting on multiple modules.  In 
order to overcome some class loading issues, I used Shared Code Module  
to load classes upon startup of the application.  I tried using the 
3.2 SDK and what once worked for 3.1 does not work for 3.2.  Does 
anyone know what has changed in 3.2 in this regard?  Thanks



[flexcoders] Re: TabNavigator - have to click twice on tab to display page

2008-10-16 Thread donald_d_hook
All - thanks for your help.  It is a bug with Adobe - here is the url.

http://bugs.adobe.com/jira/browse/SDK-17120

Hyder mentioned at the very beginning of the thread - thanks

--- In flexcoders@yahoogroups.com, "donald_d_hook" <[EMAIL PROTECTED]> 
wrote:
>
> _rico - you may be right.  Thanks!
> 
> 
> --- In flexcoders@yahoogroups.com, "rleuthold"  wrote:
> >
> > Maybe the issue is related to this bug - 
> http://bugs.adobe.com/jira/browse/SDK-15974
> > 
> > _rico
> > 
> > --- In flexcoders@yahoogroups.com, "donald_d_hook" 
 
> wrote:
> > >
> > > Tracy - thanks - thats what I have started to do...
> > > 
> > > I appreciate the feedback from you and everyone else - thanks!
> > > 
> > > --- In flexcoders@yahoogroups.com, "Tracy Spratt"  
> wrote:
> > > >
> > > > This is definitely not normal behavior, so you must have 
> something
> > > > unusual going on.  We haven't seen any code so we are just 
> stabbing 
> > > in
> > > > the dark.
> > > > 
> > > >  
> > > > 
> > > > Rip out everything until it works, start adding it back til it 
> > > breaks.
> > > > 
> > > >  
> > > > 
> > > > Tracy
> > > > 
> > > >  
> > > > 
> > > > 
> > > > 
> > > > From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] 
> > > On
> > > > Behalf Of Tim Hoff
> > > > Sent: Friday, September 26, 2008 12:52 PM
> > > > To: flexcoders@yahoogroups.com
> > > > Subject: [flexcoders] Re: TabNavigator - have to click twice 
on 
> tab 
> > > to
> > > > display page
> > > > 
> > > >  
> > > > 
> > > > 
> > > > So, when you click the 2nd tab, does the 2nd tab remain 
> selected, or
> > > > does it switch back to the first tab? If it stays on the 2nd 
> tab, 
> > > are
> > > > you still seeing the content from the first tab, or is it just 
> > > blank;
> > > > until you click the 2nd tab again?
> > > > 
> > > > -TH
> > > > 
> > > > --- In flexcoders@yahoogroups.com 
> > > <mailto:flexcoders%40yahoogroups.com>
> > > > , "donald_d_hook" 
> > > > wrote:
> > > > >
> > > > > TH -
> > > > >
> > > > > No, I m not doing that, thats what I thought it was 
> originally.
> > > > >
> > > > > Thanks
> > > > >
> > > > > --- In flexcoders@yahoogroups.com
> > > > <mailto:flexcoders%40yahoogroups.com> , "Tim Hoff" TimHoff@ 
> wrote:
> > > > > >
> > > > > >
> > > > > > Cool, one other thing to check would be if you are 
manually 
> > > setting
> > > > > the
> > > > > > selectedIndex of the TabNavigator anywhere. Just guessing 
> > > though;
> > > > > > without seeing the code.
> > > > > >
> > > > > > -TH
> > > > > >
> > > > > > --- In flexcoders@yahoogroups.com
> > > > <mailto:flexcoders%40yahoogroups.com> , "donald_d_hook" 
> > > 
> > > > > > wrote:
> > > > > > >
> > > > > > > TH -
> > > > > > >
> > > > > > > THanks - I will give it a shot and see.
> > > > > > >
> > > > > > >
> > > > > > > --- In flexcoders@yahoogroups.com
> > > > <mailto:flexcoders%40yahoogroups.com> , "Tim Hoff" TimHoff@ 
> wrote:
> > > > > > > >
> > > > > > > >
> > > > > > > > Sounds suspiciously like a callLater() solution. Have 
> you 
> > > tested
> > > > > > > > whether the creationComplete event is actually firing, 
> > > before
> > > > > you
> > > > > > > click
> > > > > > > > tab2, for all of the child components? Sometimes not 
> setting 
> > > the
> > > > > > > data,
> > > > > > > > in a timely fashion, can also make a view appear 
blank.
> > > > > > > >
> > > > > > > > -TH
> > > > > &

[flexcoders] Re: TabNavigator - have to click twice on tab to display page

2008-09-30 Thread donald_d_hook
_rico - you may be right.  Thanks!


--- In flexcoders@yahoogroups.com, "rleuthold" <[EMAIL PROTECTED]> wrote:
>
> Maybe the issue is related to this bug - 
http://bugs.adobe.com/jira/browse/SDK-15974
> 
> _rico
> 
> --- In flexcoders@yahoogroups.com, "donald_d_hook"  
wrote:
> >
> > Tracy - thanks - thats what I have started to do...
> > 
> > I appreciate the feedback from you and everyone else - thanks!
> > 
> > --- In flexcoders@yahoogroups.com, "Tracy Spratt"  
wrote:
> > >
> > > This is definitely not normal behavior, so you must have 
something
> > > unusual going on.  We haven't seen any code so we are just 
stabbing 
> > in
> > > the dark.
> > > 
> > >  
> > > 
> > > Rip out everything until it works, start adding it back til it 
> > breaks.
> > > 
> > >  
> > > 
> > > Tracy
> > > 
> > >  
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] 
> > On
> > > Behalf Of Tim Hoff
> > > Sent: Friday, September 26, 2008 12:52 PM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] Re: TabNavigator - have to click twice on 
tab 
> > to
> > > display page
> > > 
> > >  
> > > 
> > > 
> > > So, when you click the 2nd tab, does the 2nd tab remain 
selected, or
> > > does it switch back to the first tab? If it stays on the 2nd 
tab, 
> > are
> > > you still seeing the content from the first tab, or is it just 
> > blank;
> > > until you click the 2nd tab again?
> > > 
> > > -TH
> > > 
> > > --- In flexcoders@yahoogroups.com 
> > <mailto:flexcoders%40yahoogroups.com>
> > > , "donald_d_hook" 
> > > wrote:
> > > >
> > > > TH -
> > > >
> > > > No, I m not doing that, thats what I thought it was 
originally.
> > > >
> > > > Thanks
> > > >
> > > > --- In flexcoders@yahoogroups.com
> > > <mailto:flexcoders%40yahoogroups.com> , "Tim Hoff" TimHoff@ 
wrote:
> > > > >
> > > > >
> > > > > Cool, one other thing to check would be if you are manually 
> > setting
> > > > the
> > > > > selectedIndex of the TabNavigator anywhere. Just guessing 
> > though;
> > > > > without seeing the code.
> > > > >
> > > > > -TH
> > > > >
> > > > > --- In flexcoders@yahoogroups.com
> > > <mailto:flexcoders%40yahoogroups.com> , "donald_d_hook" 
> > 
> > > > > wrote:
> > > > > >
> > > > > > TH -
> > > > > >
> > > > > > THanks - I will give it a shot and see.
> > > > > >
> > > > > >
> > > > > > --- In flexcoders@yahoogroups.com
> > > <mailto:flexcoders%40yahoogroups.com> , "Tim Hoff" TimHoff@ 
wrote:
> > > > > > >
> > > > > > >
> > > > > > > Sounds suspiciously like a callLater() solution. Have 
you 
> > tested
> > > > > > > whether the creationComplete event is actually firing, 
> > before
> > > > you
> > > > > > click
> > > > > > > tab2, for all of the child components? Sometimes not 
setting 
> > the
> > > > > > data,
> > > > > > > in a timely fashion, can also make a view appear blank.
> > > > > > >
> > > > > > > -TH
> > > > > > >
> > > > > > > --- In flexcoders@yahoogroups.com
> > > <mailto:flexcoders%40yahoogroups.com> , Manu Dhanda 
> > 
> > > > > > > wrote:
> > > > > > > >
> > > > > > > >
> > > > > > > > Hi Tracy,
> > > > > > > >
> > > > > > > > It's really an issue with TabNavigator and we had 
faced 
> > it.
> > > > > > > > I won't say that I need to click the tab twice, but I 
need 
> > to
> > > > > > switch
> > > > > > > back to
> > > > > > > > Tab1 and then come back to Tab2 to see the content on 
my 
> > 2nd
> > > > Tab.
> > > > > > 

[flexcoders] Re: TabNavigator - have to click twice on tab to display page

2008-09-27 Thread donald_d_hook
Hyder - thanks I will give it a shot

--- In flexcoders@yahoogroups.com, "Hyder" <[EMAIL PROTECTED]> wrote:
>
> It's definitely history management.
> 
> Donald, do this... in your project settings, under flex compiler, 
> uncheck 'Enable integration with browser navigation"... clean and 
> rebuild your project. It fixed it for me... but when I re-enable 
> integration with browser navigation, the issue re-appears.
> 
> Try it and see what you get.
> 
> Hyder
> www.GulfSpecials.com
> www.AlamgirDesigns.com
> alamgirdesigns.blogspot.com
> 
> 
> --- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
> >
> > This is definitely not normal behavior, so you must have something
> > unusual going on.  We haven't seen any code so we are just 
stabbing 
> in
> > the dark.
> > 
> >  
> > 
> > Rip out everything until it works, start adding it back til it 
> breaks.
> > 
> >  
> > 
> > Tracy
> > 
> >  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] 
> On
> > Behalf Of Tim Hoff
> > Sent: Friday, September 26, 2008 12:52 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: TabNavigator - have to click twice on 
tab 
> to
> > display page
> > 
> >  
> > 
> > 
> > So, when you click the 2nd tab, does the 2nd tab remain selected, 
or
> > does it switch back to the first tab? If it stays on the 2nd tab, 
> are
> > you still seeing the content from the first tab, or is it just 
> blank;
> > until you click the 2nd tab again?
> > 
> > -TH
> > 
> > --- In flexcoders@yahoogroups.com 
> <mailto:flexcoders%40yahoogroups.com>
> > , "donald_d_hook" 
> > wrote:
> > >
> > > TH -
> > >
> > > No, I m not doing that, thats what I thought it was originally.
> > >
> > > Thanks
> > >
> > > --- In flexcoders@yahoogroups.com
> > <mailto:flexcoders%40yahoogroups.com> , "Tim Hoff" TimHoff@ wrote:
> > > >
> > > >
> > > > Cool, one other thing to check would be if you are manually 
> setting
> > > the
> > > > selectedIndex of the TabNavigator anywhere. Just guessing 
> though;
> > > > without seeing the code.
> > > >
> > > > -TH
> > > >
> > > > --- In flexcoders@yahoogroups.com
> > <mailto:flexcoders%40yahoogroups.com> , "donald_d_hook" 
> 
> > > > wrote:
> > > > >
> > > > > TH -
> > > > >
> > > > > THanks - I will give it a shot and see.
> > > > >
> > > > >
> > > > > --- In flexcoders@yahoogroups.com
> > <mailto:flexcoders%40yahoogroups.com> , "Tim Hoff" TimHoff@ wrote:
> > > > > >
> > > > > >
> > > > > > Sounds suspiciously like a callLater() solution. Have you 
> tested
> > > > > > whether the creationComplete event is actually firing, 
> before
> > > you
> > > > > click
> > > > > > tab2, for all of the child components? Sometimes not 
setting 
> the
> > > > > data,
> > > > > > in a timely fashion, can also make a view appear blank.
> > > > > >
> > > > > > -TH
> > > > > >
> > > > > > --- In flexcoders@yahoogroups.com
> > <mailto:flexcoders%40yahoogroups.com> , Manu Dhanda 
> 
> > > > > > wrote:
> > > > > > >
> > > > > > >
> > > > > > > Hi Tracy,
> > > > > > >
> > > > > > > It's really an issue with TabNavigator and we had faced 
> it.
> > > > > > > I won't say that I need to click the tab twice, but I 
need 
> to
> > > > > switch
> > > > > > back to
> > > > > > > Tab1 and then come back to Tab2 to see the content on my 
> 2nd
> > > Tab.
> > > > > > >
> > > > > > > And yes, already tried with creationPolicy='all', but it 
> din't
> > > > > worked.
> > > > > > >
> > > > > > > -Manu.
> > > > > > >
> > > > > > >
> > > > > > > Tracy Spratt wrote:
> > > > > > > >
> > > >

[flexcoders] Re: TabNavigator - have to click twice on tab to display page

2008-09-27 Thread donald_d_hook
Tracy - thanks - thats what I have started to do...

I appreciate the feedback from you and everyone else - thanks!

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> This is definitely not normal behavior, so you must have something
> unusual going on.  We haven't seen any code so we are just stabbing 
in
> the dark.
> 
>  
> 
> Rip out everything until it works, start adding it back til it 
breaks.
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
On
> Behalf Of Tim Hoff
> Sent: Friday, September 26, 2008 12:52 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: TabNavigator - have to click twice on tab 
to
> display page
> 
>  
> 
> 
> So, when you click the 2nd tab, does the 2nd tab remain selected, or
> does it switch back to the first tab? If it stays on the 2nd tab, 
are
> you still seeing the content from the first tab, or is it just 
blank;
> until you click the 2nd tab again?
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com 
<mailto:flexcoders%40yahoogroups.com>
> , "donald_d_hook" 
> wrote:
> >
> > TH -
> >
> > No, I m not doing that, thats what I thought it was originally.
> >
> > Thanks
> >
> > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> , "Tim Hoff" TimHoff@ wrote:
> > >
> > >
> > > Cool, one other thing to check would be if you are manually 
setting
> > the
> > > selectedIndex of the TabNavigator anywhere. Just guessing 
though;
> > > without seeing the code.
> > >
> > > -TH
> > >
> > > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> , "donald_d_hook" 

> > > wrote:
> > > >
> > > > TH -
> > > >
> > > > THanks - I will give it a shot and see.
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> , "Tim Hoff" TimHoff@ wrote:
> > > > >
> > > > >
> > > > > Sounds suspiciously like a callLater() solution. Have you 
tested
> > > > > whether the creationComplete event is actually firing, 
before
> > you
> > > > click
> > > > > tab2, for all of the child components? Sometimes not setting 
the
> > > > data,
> > > > > in a timely fashion, can also make a view appear blank.
> > > > >
> > > > > -TH
> > > > >
> > > > > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> , Manu Dhanda 

> > > > > wrote:
> > > > > >
> > > > > >
> > > > > > Hi Tracy,
> > > > > >
> > > > > > It's really an issue with TabNavigator and we had faced 
it.
> > > > > > I won't say that I need to click the tab twice, but I need 
to
> > > > switch
> > > > > back to
> > > > > > Tab1 and then come back to Tab2 to see the content on my 
2nd
> > Tab.
> > > > > >
> > > > > > And yes, already tried with creationPolicy='all', but it 
din't
> > > > worked.
> > > > > >
> > > > > > -Manu.
> > > > > >
> > > > > >
> > > > > > Tracy Spratt wrote:
> > > > > > >
> > > > > > > Are you programatically doing anything with the content 
of
> > tab
> > > > 2?
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Do you understand about deferred instantiation and
> > > > creationPolicy?
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Tracy
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > 
> > > > > > >
> > > > > > > From: flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> 
> > > > [mailto:flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> ]
> > > > > On
> > > > > > > Behalf Of donald_d_hook
> > > > > > > Sent: Thursday, September 25, 2008 2:15 PM
> > > > > > > To: flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> 
> > > > > > > Subject: [flexcoders] TabNavigator - have to click twice 
on
> > tab
> > > > to
> > > > > > > display page
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > I have a tab navigator with 3 tabs. Each tab has a 
canvas
> > with
> > > > > > > several components on it. when the page is displayed, 
you
> > see
> > > > the
> > > > > 1st
> > > > > > > tab. When I navigate to the 2nd tab, I have to click the 
2nd
> > tab
> > > > > > > twice in order to view the contents of the tab. It looks
> > like
> > > > the
> > > > > > > first click on the 2nd tab goes back to the first tab, 
then
> > the
> > > > 2nd
> > > > > > > click displays the contents of the 2nd tab.
> > > > > > >
> > > > > > > Was wondering if anyone has experienced this behavior 
and
> > > > wondering
> > > > > > > what I am doing wrong.
> > > > > > >
> > > > > > > Thanks in advance.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > > --
> > > > > > View this message in context:
> > > > > http://www.nabble.com/TabNavigator---have-to-click-twice-on-
tab-
> <http://www.nabble.com/TabNavigator---have-to-click-twice-on-tab-> 
> > to-
> > > > displ\
> > > > > ay-page-tp19675428p19681501.html
> > > > > > Sent from the FlexCoders mailing list archive at 
Nabble.com.
> > > > > >
> > > > >
> > > >
> > >
> >
>





[flexcoders] Re: TabNavigator - have to click twice on tab to display page

2008-09-27 Thread donald_d_hook
When I hit the 2nd tab, it flickers and the 1st tab is displayed 
(still since I started on the first tab).  I hit it again and he 
contents of the 2nd tab are displayed

Thanks


--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> 
> So, when you click the 2nd tab, does the 2nd tab remain selected, or
> does it switch back to the first tab?  If it stays on the 2nd tab, 
are
> you still seeing the content from the first tab, or is it just 
blank;
> until you click the 2nd tab again?
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "donald_d_hook" 
> wrote:
> >
> > TH -
> >
> > No, I m not doing that, thats what I thought it was originally.
> >
> > Thanks
> >
> > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> > >
> > >
> > > Cool, one other thing to check would be if you are manually 
setting
> > the
> > > selectedIndex of the TabNavigator anywhere. Just guessing 
though;
> > > without seeing the code.
> > >
> > > -TH
> > >
> > > --- In flexcoders@yahoogroups.com, "donald_d_hook" 

> > > wrote:
> > > >
> > > > TH -
> > > >
> > > > THanks - I will give it a shot and see.
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> > > > >
> > > > >
> > > > > Sounds suspiciously like a callLater() solution. Have you 
tested
> > > > > whether the creationComplete event is actually firing, 
before
> > you
> > > > click
> > > > > tab2, for all of the child components? Sometimes not setting 
the
> > > > data,
> > > > > in a timely fashion, can also make a view appear blank.
> > > > >
> > > > > -TH
> > > > >
> > > > > --- In flexcoders@yahoogroups.com, Manu Dhanda 

> > > > > wrote:
> > > > > >
> > > > > >
> > > > > > Hi Tracy,
> > > > > >
> > > > > > It's really an issue with TabNavigator and we had faced 
it.
> > > > > > I won't say that I need to click the tab twice, but I need 
to
> > > > switch
> > > > > back to
> > > > > > Tab1 and then come back to Tab2 to see the content on my 
2nd
> > Tab.
> > > > > >
> > > > > > And yes, already tried with creationPolicy='all', but it 
din't
> > > > worked.
> > > > > >
> > > > > > -Manu.
> > > > > >
> > > > > >
> > > > > > Tracy Spratt wrote:
> > > > > > >
> > > > > > > Are you programatically doing anything with the content 
of
> > tab
> > > > 2?
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Do you understand about deferred instantiation and
> > > > creationPolicy?
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Tracy
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > 
> > > > > > >
> > > > > > > From: flexcoders@yahoogroups.com
> > > > [mailto:[EMAIL PROTECTED]
> > > > > On
> > > > > > > Behalf Of donald_d_hook
> > > > > > > Sent: Thursday, September 25, 2008 2:15 PM
> > > > > > > To: flexcoders@yahoogroups.com
> > > > > > > Subject: [flexcoders] TabNavigator - have to click twice 
on
> > tab
> > > > to
> > > > > > > display page
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > I have a tab navigator with 3 tabs. Each tab has a 
canvas
> > with
> > > > > > > several components on it. when the page is displayed, 
you
> > see
> > > > the
> > > > > 1st
> > > > > > > tab. When I navigate to the 2nd tab, I have to click the 
2nd
> > tab
> > > > > > > twice in order to view the contents of the tab. It looks
> > like
> > > > the
> > > > > > > first click on the 2nd tab goes back to the first tab, 
then
> > the
> > > > 2nd
> > > > > > > click displays the contents of the 2nd tab.
> > > > > > >
> > > > > > > Was wondering if anyone has experienced this behavior 
and
> > > > wondering
> > > > > > > what I am doing wrong.
> > > > > > >
> > > > > > > Thanks in advance.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > > --
> > > > > > View this message in context:
> > > > > http://www.nabble.com/TabNavigator---have-to-click-twice-on-
tab-
> > to-
> > > > displ\
> > > > > ay-page-tp19675428p19681501.html
> > > > > > Sent from the FlexCoders mailing list archive at 
Nabble.com.
> > > > > >
> > > > >
> > > >
> > >
> >
>





[flexcoders] Re: TabNavigator - have to click twice on tab to display page

2008-09-26 Thread donald_d_hook
When I hit the 2nd tab, it flickers and the 1st tab is displayed 
(still since I started on the first tab).  I hit it again and he 
contents of the 2nd tab are displayed

Thanks


--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> 
> So, when you click the 2nd tab, does the 2nd tab remain selected, or
> does it switch back to the first tab?  If it stays on the 2nd tab, 
are
> you still seeing the content from the first tab, or is it just 
blank;
> until you click the 2nd tab again?
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "donald_d_hook" 
> wrote:
> >
> > TH -
> >
> > No, I m not doing that, thats what I thought it was originally.
> >
> > Thanks
> >
> > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> > >
> > >
> > > Cool, one other thing to check would be if you are manually 
setting
> > the
> > > selectedIndex of the TabNavigator anywhere. Just guessing 
though;
> > > without seeing the code.
> > >
> > > -TH
> > >
> > > --- In flexcoders@yahoogroups.com, "donald_d_hook" 

> > > wrote:
> > > >
> > > > TH -
> > > >
> > > > THanks - I will give it a shot and see.
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> > > > >
> > > > >
> > > > > Sounds suspiciously like a callLater() solution. Have you 
tested
> > > > > whether the creationComplete event is actually firing, 
before
> > you
> > > > click
> > > > > tab2, for all of the child components? Sometimes not setting 
the
> > > > data,
> > > > > in a timely fashion, can also make a view appear blank.
> > > > >
> > > > > -TH
> > > > >
> > > > > --- In flexcoders@yahoogroups.com, Manu Dhanda 

> > > > > wrote:
> > > > > >
> > > > > >
> > > > > > Hi Tracy,
> > > > > >
> > > > > > It's really an issue with TabNavigator and we had faced 
it.
> > > > > > I won't say that I need to click the tab twice, but I need 
to
> > > > switch
> > > > > back to
> > > > > > Tab1 and then come back to Tab2 to see the content on my 
2nd
> > Tab.
> > > > > >
> > > > > > And yes, already tried with creationPolicy='all', but it 
din't
> > > > worked.
> > > > > >
> > > > > > -Manu.
> > > > > >
> > > > > >
> > > > > > Tracy Spratt wrote:
> > > > > > >
> > > > > > > Are you programatically doing anything with the content 
of
> > tab
> > > > 2?
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Do you understand about deferred instantiation and
> > > > creationPolicy?
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Tracy
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > 
> > > > > > >
> > > > > > > From: flexcoders@yahoogroups.com
> > > > [mailto:[EMAIL PROTECTED]
> > > > > On
> > > > > > > Behalf Of donald_d_hook
> > > > > > > Sent: Thursday, September 25, 2008 2:15 PM
> > > > > > > To: flexcoders@yahoogroups.com
> > > > > > > Subject: [flexcoders] TabNavigator - have to click twice 
on
> > tab
> > > > to
> > > > > > > display page
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > I have a tab navigator with 3 tabs. Each tab has a 
canvas
> > with
> > > > > > > several components on it. when the page is displayed, 
you
> > see
> > > > the
> > > > > 1st
> > > > > > > tab. When I navigate to the 2nd tab, I have to click the 
2nd
> > tab
> > > > > > > twice in order to view the contents of the tab. It looks
> > like
> > > > the
> > > > > > > first click on the 2nd tab goes back to the first tab, 
then
> > the
> > > > 2nd
> > > > > > > click displays the contents of the 2nd tab.
> > > > > > >
> > > > > > > Was wondering if anyone has experienced this behavior 
and
> > > > wondering
> > > > > > > what I am doing wrong.
> > > > > > >
> > > > > > > Thanks in advance.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > > > --
> > > > > > View this message in context:
> > > > > http://www.nabble.com/TabNavigator---have-to-click-twice-on-
tab-
> > to-
> > > > displ\
> > > > > ay-page-tp19675428p19681501.html
> > > > > > Sent from the FlexCoders mailing list archive at 
Nabble.com.
> > > > > >
> > > > >
> > > >
> > >
> >
>





[flexcoders] Re: TabNavigator - have to click twice on tab to display page

2008-09-26 Thread donald_d_hook
TH -

No, I m not doing that, thats what I thought it was originally.

Thanks

--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> 
> Cool, one other thing to check would be if you are manually setting 
the
> selectedIndex of the TabNavigator anywhere.  Just guessing though;
> without seeing the code.
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "donald_d_hook" 
> wrote:
> >
> > TH -
> >
> > THanks - I will give it a shot and see.
> >
> >
> > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> > >
> > >
> > > Sounds suspiciously like a callLater() solution. Have you tested
> > > whether the creationComplete event is actually firing, before 
you
> > click
> > > tab2, for all of the child components? Sometimes not setting the
> > data,
> > > in a timely fashion, can also make a view appear blank.
> > >
> > > -TH
> > >
> > > --- In flexcoders@yahoogroups.com, Manu Dhanda 
> > > wrote:
> > > >
> > > >
> > > > Hi Tracy,
> > > >
> > > > It's really an issue with TabNavigator and we had faced it.
> > > > I won't say that I need to click the tab twice, but I need to
> > switch
> > > back to
> > > > Tab1 and then come back to Tab2 to see the content on my 2nd 
Tab.
> > > >
> > > > And yes, already tried with creationPolicy='all', but it din't
> > worked.
> > > >
> > > > -Manu.
> > > >
> > > >
> > > > Tracy Spratt wrote:
> > > > >
> > > > > Are you programatically doing anything with the content of 
tab
> > 2?
> > > > >
> > > > >
> > > > >
> > > > > Do you understand about deferred instantiation and
> > creationPolicy?
> > > > >
> > > > >
> > > > >
> > > > > Tracy
> > > > >
> > > > >
> > > > >
> > > > > 
> > > > >
> > > > > From: flexcoders@yahoogroups.com
> > [mailto:[EMAIL PROTECTED]
> > > On
> > > > > Behalf Of donald_d_hook
> > > > > Sent: Thursday, September 25, 2008 2:15 PM
> > > > > To: flexcoders@yahoogroups.com
> > > > > Subject: [flexcoders] TabNavigator - have to click twice on 
tab
> > to
> > > > > display page
> > > > >
> > > > >
> > > > >
> > > > > I have a tab navigator with 3 tabs. Each tab has a canvas 
with
> > > > > several components on it. when the page is displayed, you 
see
> > the
> > > 1st
> > > > > tab. When I navigate to the 2nd tab, I have to click the 2nd 
tab
> > > > > twice in order to view the contents of the tab. It looks 
like
> > the
> > > > > first click on the 2nd tab goes back to the first tab, then 
the
> > 2nd
> > > > > click displays the contents of the 2nd tab.
> > > > >
> > > > > Was wondering if anyone has experienced this behavior and
> > wondering
> > > > > what I am doing wrong.
> > > > >
> > > > > Thanks in advance.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > > --
> > > > View this message in context:
> > > http://www.nabble.com/TabNavigator---have-to-click-twice-on-tab-
to-
> > displ\
> > > ay-page-tp19675428p19681501.html
> > > > Sent from the FlexCoders mailing list archive at Nabble.com.
> > > >
> > >
> >
>





[flexcoders] Re: TabNavigator - have to click twice on tab to display page

2008-09-26 Thread donald_d_hook
TH - 

THanks - I will give it a shot and see.


--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> 
> Sounds suspiciously like a callLater() solution.  Have you tested
> whether the creationComplete event is actually firing, before you 
click
> tab2, for all of the child components?  Sometimes not setting the 
data,
> in a timely fashion, can also make a view appear blank.
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, Manu Dhanda 
> wrote:
> >
> >
> > Hi Tracy,
> >
> > It's really an issue with TabNavigator and we had faced it.
> > I won't say that I need to click the tab twice, but I need to 
switch
> back to
> > Tab1 and then come back to Tab2 to see the content on my 2nd Tab.
> >
> > And yes, already tried with creationPolicy='all', but it din't 
worked.
> >
> > -Manu.
> >
> >
> > Tracy Spratt wrote:
> > >
> > > Are you programatically doing anything with the content of tab 
2?
> > >
> > >
> > >
> > > Do you understand about deferred instantiation and 
creationPolicy?
> > >
> > >
> > >
> > > Tracy
> > >
> > >
> > >
> > > 
> > >
> > > From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED]
> On
> > > Behalf Of donald_d_hook
> > > Sent: Thursday, September 25, 2008 2:15 PM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] TabNavigator - have to click twice on tab 
to
> > > display page
> > >
> > >
> > >
> > > I have a tab navigator with 3 tabs. Each tab has a canvas with
> > > several components on it. when the page is displayed, you see 
the
> 1st
> > > tab. When I navigate to the 2nd tab, I have to click the 2nd tab
> > > twice in order to view the contents of the tab. It looks like 
the
> > > first click on the 2nd tab goes back to the first tab, then the 
2nd
> > > click displays the contents of the 2nd tab.
> > >
> > > Was wondering if anyone has experienced this behavior and 
wondering
> > > what I am doing wrong.
> > >
> > > Thanks in advance.
> > >
> > >
> > >
> > >
> > >
> >
> > --
> > View this message in context:
> http://www.nabble.com/TabNavigator---have-to-click-twice-on-tab-to-
displ\
> ay-page-tp19675428p19681501.html
> > Sent from the FlexCoders mailing list archive at Nabble.com.
> >
>





[flexcoders] Re: TabNavigator - have to click twice on tab to display page

2008-09-26 Thread donald_d_hook
Hyder -

Thanks for your insight - I will check it out as well to see if I have 
the same results.

Thanks!

--- In flexcoders@yahoogroups.com, "Hyder" <[EMAIL PROTECTED]> wrote:
>
> I started having the same problem with my application recently. 
What's 
> interesting is that it only happens with the debug version of my 
> application. The debug version, not necessarily in debug mode 
> (application-debug.swf). But when I compile a release version, the 
> tabnav works just fine.
> 
> Also, after further testing, I noticed that it actually really 
happens 
> only in my development environment. When I move the compiled debug 
> version over to the server, it works fine!
> 
> Ahh... another thing, when i open the debug version swf in a 
> standalone flash player, it works fine. So, I've narrowed it down to 
> one of the html / js files... it probably has something to do with 
> history management, i'm thinking.
> 
> Will post on further updates.
> 
> 
> Hyder
> 
> 
> --- In flexcoders@yahoogroups.com, Manu Dhanda  
> wrote:
> >
> > 
> > Hi Tracy,
> > 
> > It's really an issue with TabNavigator and we had faced it.
> > I won't say that I need to click the tab twice, but I need to 
switch 
> back to
> > Tab1 and then come back to Tab2 to see the content on my 2nd Tab.
> > 
> > And yes, already tried with creationPolicy='all', but it din't 
> worked.
> > 
> > -Manu.
> > 
> > 
> > Tracy Spratt wrote:
> > > 
> > > Are you programatically doing anything with the content of tab 
2?
> > > 
> > >  
> > > 
> > > Do you understand about deferred instantiation and 
creationPolicy?
> > > 
> > >  
> > > 
> > > Tracy
> > > 
> > >  
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On
> > > Behalf Of donald_d_hook
> > > Sent: Thursday, September 25, 2008 2:15 PM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] TabNavigator - have to click twice on tab 
to
> > > display page
> > > 
> > >  
> > > 
> > > I have a tab navigator with 3 tabs. Each tab has a canvas with 
> > > several components on it. when the page is displayed, you see 
the 
> 1st 
> > > tab. When I navigate to the 2nd tab, I have to click the 2nd tab 
> > > twice in order to view the contents of the tab. It looks like 
the 
> > > first click on the 2nd tab goes back to the first tab, then the 
> 2nd 
> > > click displays the contents of the 2nd tab.
> > > 
> > > Was wondering if anyone has experienced this behavior and 
> wondering 
> > > what I am doing wrong.
> > > 
> > > Thanks in advance.
> > > 
> > >  
> > > 
> > > 
> > > 
> > 
> > -- 
> > View this message in context: http://www.nabble.com/TabNavigator--
-
> have-to-click-twice-on-tab-to-display-page-tp19675428p19681501.html
> > Sent from the FlexCoders mailing list archive at Nabble.com.
> >
>





[flexcoders] Re: TabNavigator - have to click twice on tab to display page

2008-09-25 Thread donald_d_hook
Tracy -

No, I am not doing anything with the content or events.  I will take a 
look at instantiation and the creationPolicy...

Thanks ...

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Are you programatically doing anything with the content of tab 2?
> 
>  
> 
> Do you understand about deferred instantiation and creationPolicy?
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
On
> Behalf Of donald_d_hook
> Sent: Thursday, September 25, 2008 2:15 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] TabNavigator - have to click twice on tab to
> display page
> 
>  
> 
> I have a tab navigator with 3 tabs. Each tab has a canvas with 
> several components on it. when the page is displayed, you see the 
1st 
> tab. When I navigate to the 2nd tab, I have to click the 2nd tab 
> twice in order to view the contents of the tab. It looks like the 
> first click on the 2nd tab goes back to the first tab, then the 2nd 
> click displays the contents of the 2nd tab.
> 
> Was wondering if anyone has experienced this behavior and wondering 
> what I am doing wrong.
> 
> Thanks in advance.
>





[flexcoders] TabNavigator - have to click twice on tab to display page

2008-09-25 Thread donald_d_hook
I have a tab navigator with 3 tabs.  Each tab has a canvas with 
several components on it.  when the page is displayed, you see the 1st 
tab.  When I navigate to the 2nd tab, I have to click the 2nd tab 
twice in order to view the contents of the tab.  It looks like the 
first click on the 2nd tab goes back to the first tab, then the 2nd 
click displays the contents of the 2nd tab.

Was wondering if anyone has experienced this behavior and wondering 
what I am doing wrong.

Thanks in advance.



[flexcoders] TabNavigator - have to click twice on tab to display page

2008-09-25 Thread donald_d_hook
I have a tab navigator with 3 tabs.  Each tab has a canvas with 
several components on it.  when the page is displayed, you see the 1st 
tab.  When I navigate to the 2nd tab, I have to click the 2nd tab 
twice in order to view the contents of the tab.  It looks like the 
first click on the 2nd tab goes back to the first tab, then the 2nd 
click displays the contents of the 2nd tab.

Was wondering if anyone has experienced this behavior and wondering 
what I am doing wrong.

Thanks in advance.



[flexcoders] Re: Type Cast Error

2008-08-01 Thread donald_d_hook
Alex - looks like the shared code modules worked.  I had an error in
the module, although Flex Builder did not display any errors, getting
out, coming back in & doing a clean revealed the code problem.  Now it
looks like it works!!  Thanks again for you help!!!  Sorry for the
multiple responses, but the thread was not being refreshed so I
thought the replies were not getting logged - which is why so saw
several of them.

Thanks!!!

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> The import doesn't actually cause anything to be linked in, it just
> specifies the full path to whatever package StockVO is in, so you'll
> need the import statement, but if you follow the recipe for modules,
> you'll not link StockVO into your modules because it will be in some
> other link-report, either the mainapps or the sharedcode module
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of donald_d_hook
> Sent: Thursday, July 31, 2008 6:48 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Type Cast Error
> 
>  
> 
> So no need to have an import in the module?
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> , "Alex Harui"  wrote:
> >
> > There's an "Under the hood: Application Domain" slide in the
> > presentation. It tries to show you that once you get StockVO in the
> > main apps' AppDom, all modules will use that definition and won't use
> or
> > need their own in the module.
> > 
> > 
> > 
> > ____
> > 
> > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> ] On
> > Behalf Of donald_d_hook
> > Sent: Thursday, July 31, 2008 6:58 AM
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> > Subject: [flexcoders] Re: Type Cast Error
> > 
> > 
> > 
> > In order to use the StockVO object, I will have to have a definition
> > of it in the module - in order to use it. I guess I am not sure if I
> > will be right back where I started with the original problem.
> > 
> > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > , "Alex Harui"  wrote:
> > >
> > > Essentially, the actuall classname isn't StockVO, it is
> > > [EMAIL PROTECTED] If the portion
> > > after the @ matches it is effectively stripped off so you can just
> see
> > > and use StockVO in most places
> > > 
> > > 
> > > 
> > > So it doesn't really match. This will be extremely useful in Flex
> 3.2
> > > when you can mix sub-application built with different versions of
> > Flex,
> > > but is a pain for module users like yourself.
> > > 
> > > 
> > > 
> > > Of course, the easiest way to use StockVO in both modules is to get
> it
> > > linked into the main app. Most VOs are small so it won't matter. The
> > > SharedCode Module pattern is for heavy things.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > [mailto:flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > ] On
> > > Behalf Of donald_d_hook
> > > Sent: Wednesday, July 30, 2008 5:52 PM
> > > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com> 
> > > Subject: [flexcoders] Re: Type Cast Error
> > > 
> > > 
> > > 
> > > Alex - 
> > > 
> > > I looked at your presentation. I am using the StockVO in both pages
> > > (both modules). I need to use it in both. If I define the class in
> > > both places, what does it matter, its the same class? 
> > > 
> > > I saw where you mentioned having common code by loading a "Shared
> > > Code" swf that would apply to ALL modules. I guess I can give that a
> > > shot.
> > > 
> > > Thanks again for your time! 
> > > 
> > > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com> 
> > <mailto:flexcoders%40yahoogroups.co

[flexcoders] Re: Type Cast Error

2008-07-31 Thread donald_d_hook
Ok - removing the imports, there are no compile errors, but when I run
the app, the module does not display indicating that there is a
problem.  There are not compile errors, but in the main app, the
module loader is null for the module I tested with. So now I need to
figure out why that doesnt display.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> There's an "Under the hood: Application Domain" slide in the
> presentation.  It tries to show you that once you get StockVO in the
> main apps' AppDom, all modules will use that definition and won't use or
> need their own in the module.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of donald_d_hook
> Sent: Thursday, July 31, 2008 6:58 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Type Cast Error
> 
>  
> 
> In order to use the StockVO object, I will have to have a definition
> of it in the module - in order to use it. I guess I am not sure if I
> will be right back where I started with the original problem.
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> , "Alex Harui"  wrote:
> >
> > Essentially, the actuall classname isn't StockVO, it is
> > [EMAIL PROTECTED] If the portion
> > after the @ matches it is effectively stripped off so you can just see
> > and use StockVO in most places
> > 
> > 
> > 
> > So it doesn't really match. This will be extremely useful in Flex 3.2
> > when you can mix sub-application built with different versions of
> Flex,
> > but is a pain for module users like yourself.
> > 
> > 
> > 
> > Of course, the easiest way to use StockVO in both modules is to get it
> > linked into the main app. Most VOs are small so it won't matter. The
> > SharedCode Module pattern is for heavy things.
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> ] On
> > Behalf Of donald_d_hook
> > Sent: Wednesday, July 30, 2008 5:52 PM
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> > Subject: [flexcoders] Re: Type Cast Error
> > 
> > 
> > 
> > Alex - 
> > 
> > I looked at your presentation. I am using the StockVO in both pages
> > (both modules). I need to use it in both. If I define the class in
> > both places, what does it matter, its the same class? 
> > 
> > I saw where you mentioned having common code by loading a "Shared
> > Code" swf that would apply to ALL modules. I guess I can give that a
> > shot.
> > 
> > Thanks again for your time! 
> > 
> > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > , "Alex Harui"  wrote:
> > >
> > > It is picking up the class from a different application domain. See
> > the
> > > modules presentation on my blog.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > [mailto:flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > ] On
> > > Behalf Of donald_d_hook
> > > Sent: Wednesday, July 30, 2008 10:22 AM
> > > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com> 
> > > Subject: [flexcoders] Type Cast Error
> > > 
> > > 
> > > 
> > > I receive a type cast error when I try to cast an object I received
> > > from the server (an arraycollection of value objects). I get the
> > > following: 
> > > 
> > > TypeError: Error #1034: Type Coercion failed: cannot convert
> > > com.spinnaker.model::[EMAIL PROTECTED] to com.spinnaker.model.StockVO
> > > 
> > > The actionscript object has the correct remoteClass. On top of that,
> > > this only happens the 2nd time into the page. Not sure what is
> > > happening behind the scenes, nor do I know what the @3b392b81 is.
> > > 
> > > Thanks in advance
> > >
> >
>




[flexcoders] Re: Type Cast Error

2008-07-31 Thread donald_d_hook
OK, I removed the imports from one module to see the results.  Now the
module does not display even though there are no compile errors.  I
guess there is something wrong with the module since the main app isnt
loading it - i.e. the module loader is null in the main app.  The
other modules work fine.  

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> There's an "Under the hood: Application Domain" slide in the
> presentation.  It tries to show you that once you get StockVO in the
> main apps' AppDom, all modules will use that definition and won't use or
> need their own in the module.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of donald_d_hook
> Sent: Thursday, July 31, 2008 6:58 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Type Cast Error
> 
>  
> 
> In order to use the StockVO object, I will have to have a definition
> of it in the module - in order to use it. I guess I am not sure if I
> will be right back where I started with the original problem.
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> , "Alex Harui"  wrote:
> >
> > Essentially, the actuall classname isn't StockVO, it is
> > [EMAIL PROTECTED] If the portion
> > after the @ matches it is effectively stripped off so you can just see
> > and use StockVO in most places
> > 
> > 
> > 
> > So it doesn't really match. This will be extremely useful in Flex 3.2
> > when you can mix sub-application built with different versions of
> Flex,
> > but is a pain for module users like yourself.
> > 
> > 
> > 
> > Of course, the easiest way to use StockVO in both modules is to get it
> > linked into the main app. Most VOs are small so it won't matter. The
> > SharedCode Module pattern is for heavy things.
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> ] On
> > Behalf Of donald_d_hook
> > Sent: Wednesday, July 30, 2008 5:52 PM
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> > Subject: [flexcoders] Re: Type Cast Error
> > 
> > 
> > 
> > Alex - 
> > 
> > I looked at your presentation. I am using the StockVO in both pages
> > (both modules). I need to use it in both. If I define the class in
> > both places, what does it matter, its the same class? 
> > 
> > I saw where you mentioned having common code by loading a "Shared
> > Code" swf that would apply to ALL modules. I guess I can give that a
> > shot.
> > 
> > Thanks again for your time! 
> > 
> > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > , "Alex Harui"  wrote:
> > >
> > > It is picking up the class from a different application domain. See
> > the
> > > modules presentation on my blog.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > [mailto:flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > ] On
> > > Behalf Of donald_d_hook
> > > Sent: Wednesday, July 30, 2008 10:22 AM
> > > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com> 
> > > Subject: [flexcoders] Type Cast Error
> > > 
> > > 
> > > 
> > > I receive a type cast error when I try to cast an object I received
> > > from the server (an arraycollection of value objects). I get the
> > > following: 
> > > 
> > > TypeError: Error #1034: Type Coercion failed: cannot convert
> > > com.spinnaker.model::[EMAIL PROTECTED] to com.spinnaker.model.StockVO
> > > 
> > > The actionscript object has the correct remoteClass. On top of that,
> > > this only happens the 2nd time into the page. Not sure what is
> > > happening behind the scenes, nor do I know what the @3b392b81 is.
> > > 
> > > Thanks in advance
> > >
> >
>




[flexcoders] Re: Type Cast Error

2008-07-31 Thread donald_d_hook
OK - I changed one module by removing the imports - now the module
doesnt load and I dont see any compile errors.  


--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> There's an "Under the hood: Application Domain" slide in the
> presentation.  It tries to show you that once you get StockVO in the
> main apps' AppDom, all modules will use that definition and won't use or
> need their own in the module.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of donald_d_hook
> Sent: Thursday, July 31, 2008 6:58 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Type Cast Error
> 
>  
> 
> In order to use the StockVO object, I will have to have a definition
> of it in the module - in order to use it. I guess I am not sure if I
> will be right back where I started with the original problem.
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> , "Alex Harui"  wrote:
> >
> > Essentially, the actuall classname isn't StockVO, it is
> > [EMAIL PROTECTED] If the portion
> > after the @ matches it is effectively stripped off so you can just see
> > and use StockVO in most places
> > 
> > 
> > 
> > So it doesn't really match. This will be extremely useful in Flex 3.2
> > when you can mix sub-application built with different versions of
> Flex,
> > but is a pain for module users like yourself.
> > 
> > 
> > 
> > Of course, the easiest way to use StockVO in both modules is to get it
> > linked into the main app. Most VOs are small so it won't matter. The
> > SharedCode Module pattern is for heavy things.
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> ] On
> > Behalf Of donald_d_hook
> > Sent: Wednesday, July 30, 2008 5:52 PM
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> > Subject: [flexcoders] Re: Type Cast Error
> > 
> > 
> > 
> > Alex - 
> > 
> > I looked at your presentation. I am using the StockVO in both pages
> > (both modules). I need to use it in both. If I define the class in
> > both places, what does it matter, its the same class? 
> > 
> > I saw where you mentioned having common code by loading a "Shared
> > Code" swf that would apply to ALL modules. I guess I can give that a
> > shot.
> > 
> > Thanks again for your time! 
> > 
> > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > , "Alex Harui"  wrote:
> > >
> > > It is picking up the class from a different application domain. See
> > the
> > > modules presentation on my blog.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > [mailto:flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > ] On
> > > Behalf Of donald_d_hook
> > > Sent: Wednesday, July 30, 2008 10:22 AM
> > > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com> 
> > > Subject: [flexcoders] Type Cast Error
> > > 
> > > 
> > > 
> > > I receive a type cast error when I try to cast an object I received
> > > from the server (an arraycollection of value objects). I get the
> > > following: 
> > > 
> > > TypeError: Error #1034: Type Coercion failed: cannot convert
> > > com.spinnaker.model::[EMAIL PROTECTED] to com.spinnaker.model.StockVO
> > > 
> > > The actionscript object has the correct remoteClass. On top of that,
> > > this only happens the 2nd time into the page. Not sure what is
> > > happening behind the scenes, nor do I know what the @3b392b81 is.
> > > 
> > > Thanks in advance
> > >
> >
>




[flexcoders] Re: Type Cast Error

2008-07-31 Thread donald_d_hook
OK - I changed one module by removing the imports - now the module
doesnt load and I dont see any compile errors.  

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> There's an "Under the hood: Application Domain" slide in the
> presentation.  It tries to show you that once you get StockVO in the
> main apps' AppDom, all modules will use that definition and won't use or
> need their own in the module.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of donald_d_hook
> Sent: Thursday, July 31, 2008 6:58 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Type Cast Error
> 
>  
> 
> In order to use the StockVO object, I will have to have a definition
> of it in the module - in order to use it. I guess I am not sure if I
> will be right back where I started with the original problem.
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> , "Alex Harui"  wrote:
> >
> > Essentially, the actuall classname isn't StockVO, it is
> > [EMAIL PROTECTED] If the portion
> > after the @ matches it is effectively stripped off so you can just see
> > and use StockVO in most places
> > 
> > 
> > 
> > So it doesn't really match. This will be extremely useful in Flex 3.2
> > when you can mix sub-application built with different versions of
> Flex,
> > but is a pain for module users like yourself.
> > 
> > 
> > 
> > Of course, the easiest way to use StockVO in both modules is to get it
> > linked into the main app. Most VOs are small so it won't matter. The
> > SharedCode Module pattern is for heavy things.
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> ] On
> > Behalf Of donald_d_hook
> > Sent: Wednesday, July 30, 2008 5:52 PM
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> > Subject: [flexcoders] Re: Type Cast Error
> > 
> > 
> > 
> > Alex - 
> > 
> > I looked at your presentation. I am using the StockVO in both pages
> > (both modules). I need to use it in both. If I define the class in
> > both places, what does it matter, its the same class? 
> > 
> > I saw where you mentioned having common code by loading a "Shared
> > Code" swf that would apply to ALL modules. I guess I can give that a
> > shot.
> > 
> > Thanks again for your time! 
> > 
> > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > , "Alex Harui"  wrote:
> > >
> > > It is picking up the class from a different application domain. See
> > the
> > > modules presentation on my blog.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > [mailto:flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > ] On
> > > Behalf Of donald_d_hook
> > > Sent: Wednesday, July 30, 2008 10:22 AM
> > > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com> 
> > > Subject: [flexcoders] Type Cast Error
> > > 
> > > 
> > > 
> > > I receive a type cast error when I try to cast an object I received
> > > from the server (an arraycollection of value objects). I get the
> > > following: 
> > > 
> > > TypeError: Error #1034: Type Coercion failed: cannot convert
> > > com.spinnaker.model::[EMAIL PROTECTED] to com.spinnaker.model.StockVO
> > > 
> > > The actionscript object has the correct remoteClass. On top of that,
> > > this only happens the 2nd time into the page. Not sure what is
> > > happening behind the scenes, nor do I know what the @3b392b81 is.
> > > 
> > > Thanks in advance
> > >
> >
>




[flexcoders] Re: Type Cast Error

2008-07-31 Thread donald_d_hook
OK - I changed one module by removing the imports - now the module
doesnt load and I dont see any compile errors.  

--- In flexcoders@yahoogroups.com, "donald_d_hook" <[EMAIL PROTECTED]>
wrote:
>
> So no need to have an import in the module?
> 
> --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> >
> > There's an "Under the hood: Application Domain" slide in the
> > presentation.  It tries to show you that once you get StockVO in the
> > main apps' AppDom, all modules will use that definition and won't
use or
> > need their own in the module.
> > 
> >  
> > 
> > ____
> > 
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > Behalf Of donald_d_hook
> > Sent: Thursday, July 31, 2008 6:58 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Type Cast Error
> > 
> >  
> > 
> > In order to use the StockVO object, I will have to have a definition
> > of it in the module - in order to use it. I guess I am not sure if I
> > will be right back where I started with the original problem.
> > 
> > --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
> > , "Alex Harui"  wrote:
> > >
> > > Essentially, the actuall classname isn't StockVO, it is
> > > [EMAIL PROTECTED] If the portion
> > > after the @ matches it is effectively stripped off so you can
just see
> > > and use StockVO in most places
> > > 
> > > 
> > > 
> > > So it doesn't really match. This will be extremely useful in
Flex 3.2
> > > when you can mix sub-application built with different versions of
> > Flex,
> > > but is a pain for module users like yourself.
> > > 
> > > 
> > > 
> > > Of course, the easiest way to use StockVO in both modules is to
get it
> > > linked into the main app. Most VOs are small so it won't matter. The
> > > SharedCode Module pattern is for heavy things.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
> > [mailto:flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
> > ] On
> > > Behalf Of donald_d_hook
> > > Sent: Wednesday, July 30, 2008 5:52 PM
> > > To: flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> 
> > > Subject: [flexcoders] Re: Type Cast Error
> > > 
> > > 
> > > 
> > > Alex - 
> > > 
> > > I looked at your presentation. I am using the StockVO in both pages
> > > (both modules). I need to use it in both. If I define the class in
> > > both places, what does it matter, its the same class? 
> > > 
> > > I saw where you mentioned having common code by loading a "Shared
> > > Code" swf that would apply to ALL modules. I guess I can give that a
> > > shot.
> > > 
> > > Thanks again for your time! 
> > > 
> > > --- In flexcoders@yahoogroups.com
> > <mailto:flexcoders%40yahoogroups.com>
> > <mailto:flexcoders%40yahoogroups.com>
> > > , "Alex Harui"  wrote:
> > > >
> > > > It is picking up the class from a different application
domain. See
> > > the
> > > > modules presentation on my blog.
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > From: flexcoders@yahoogroups.com
> > <mailto:flexcoders%40yahoogroups.com>
> > <mailto:flexcoders%40yahoogroups.com>
> > > [mailto:flexcoders@yahoogroups.com
> > <mailto:flexcoders%40yahoogroups.com>
> > <mailto:flexcoders%40yahoogroups.com>
> > > ] On
> > > > Behalf Of donald_d_hook
> > > > Sent: Wednesday, July 30, 2008 10:22 AM
> > > > To: flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
> > <mailto:flexcoders%40yahoogroups.com> 
> > > > Subject: [flexcoders] Type Cast Error
> > > > 
> > > > 
> > > > 
> > > > I receive a type cast error when I try to cast an object I
received
> > > > from the server (an arraycollection of value objects). I get the
> > > > following: 
> > > > 
> > > > TypeError: Error #1034: Type Coercion failed: cannot convert
> > > > com.spinnaker.model::[EMAIL PROTECTED] to
com.spinnaker.model.StockVO
> > > > 
> > > > The actionscript object has the correct remoteClass. On top of
that,
> > > > this only happens the 2nd time into the page. Not sure what is
> > > > happening behind the scenes, nor do I know what the @3b392b81 is.
> > > > 
> > > > Thanks in advance
> > > >
> > >
> >
>




[flexcoders] Re: Type Cast Error

2008-07-31 Thread donald_d_hook
OK - I changed one module by removing the imports - now the module
doesnt load and I dont see any compile errors.  

--- In flexcoders@yahoogroups.com, "donald_d_hook" <[EMAIL PROTECTED]>
wrote:
>
> So no need to have an import in the module?
> 
> --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> >
> > There's an "Under the hood: Application Domain" slide in the
> > presentation.  It tries to show you that once you get StockVO in the
> > main apps' AppDom, all modules will use that definition and won't
use or
> > need their own in the module.
> > 
> >  
> > 
> > ____
> > 
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > Behalf Of donald_d_hook
> > Sent: Thursday, July 31, 2008 6:58 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Type Cast Error
> > 
> >  
> > 
> > In order to use the StockVO object, I will have to have a definition
> > of it in the module - in order to use it. I guess I am not sure if I
> > will be right back where I started with the original problem.
> > 
> > --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
> > , "Alex Harui"  wrote:
> > >
> > > Essentially, the actuall classname isn't StockVO, it is
> > > [EMAIL PROTECTED] If the portion
> > > after the @ matches it is effectively stripped off so you can
just see
> > > and use StockVO in most places
> > > 
> > > 
> > > 
> > > So it doesn't really match. This will be extremely useful in
Flex 3.2
> > > when you can mix sub-application built with different versions of
> > Flex,
> > > but is a pain for module users like yourself.
> > > 
> > > 
> > > 
> > > Of course, the easiest way to use StockVO in both modules is to
get it
> > > linked into the main app. Most VOs are small so it won't matter. The
> > > SharedCode Module pattern is for heavy things.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
> > [mailto:flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
> > ] On
> > > Behalf Of donald_d_hook
> > > Sent: Wednesday, July 30, 2008 5:52 PM
> > > To: flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> 
> > > Subject: [flexcoders] Re: Type Cast Error
> > > 
> > > 
> > > 
> > > Alex - 
> > > 
> > > I looked at your presentation. I am using the StockVO in both pages
> > > (both modules). I need to use it in both. If I define the class in
> > > both places, what does it matter, its the same class? 
> > > 
> > > I saw where you mentioned having common code by loading a "Shared
> > > Code" swf that would apply to ALL modules. I guess I can give that a
> > > shot.
> > > 
> > > Thanks again for your time! 
> > > 
> > > --- In flexcoders@yahoogroups.com
> > <mailto:flexcoders%40yahoogroups.com>
> > <mailto:flexcoders%40yahoogroups.com>
> > > , "Alex Harui"  wrote:
> > > >
> > > > It is picking up the class from a different application
domain. See
> > > the
> > > > modules presentation on my blog.
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > From: flexcoders@yahoogroups.com
> > <mailto:flexcoders%40yahoogroups.com>
> > <mailto:flexcoders%40yahoogroups.com>
> > > [mailto:flexcoders@yahoogroups.com
> > <mailto:flexcoders%40yahoogroups.com>
> > <mailto:flexcoders%40yahoogroups.com>
> > > ] On
> > > > Behalf Of donald_d_hook
> > > > Sent: Wednesday, July 30, 2008 10:22 AM
> > > > To: flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com>
> > <mailto:flexcoders%40yahoogroups.com> 
> > > > Subject: [flexcoders] Type Cast Error
> > > > 
> > > > 
> > > > 
> > > > I receive a type cast error when I try to cast an object I
received
> > > > from the server (an arraycollection of value objects). I get the
> > > > following: 
> > > > 
> > > > TypeError: Error #1034: Type Coercion failed: cannot convert
> > > > com.spinnaker.model::[EMAIL PROTECTED] to
com.spinnaker.model.StockVO
> > > > 
> > > > The actionscript object has the correct remoteClass. On top of
that,
> > > > this only happens the 2nd time into the page. Not sure what is
> > > > happening behind the scenes, nor do I know what the @3b392b81 is.
> > > > 
> > > > Thanks in advance
> > > >
> > >
> >
>




[flexcoders] Re: Type Cast Error

2008-07-31 Thread donald_d_hook
So no need to have an import in the module?

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> There's an "Under the hood: Application Domain" slide in the
> presentation.  It tries to show you that once you get StockVO in the
> main apps' AppDom, all modules will use that definition and won't use or
> need their own in the module.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of donald_d_hook
> Sent: Thursday, July 31, 2008 6:58 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Type Cast Error
> 
>  
> 
> In order to use the StockVO object, I will have to have a definition
> of it in the module - in order to use it. I guess I am not sure if I
> will be right back where I started with the original problem.
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> , "Alex Harui"  wrote:
> >
> > Essentially, the actuall classname isn't StockVO, it is
> > [EMAIL PROTECTED] If the portion
> > after the @ matches it is effectively stripped off so you can just see
> > and use StockVO in most places
> > 
> > 
> > 
> > So it doesn't really match. This will be extremely useful in Flex 3.2
> > when you can mix sub-application built with different versions of
> Flex,
> > but is a pain for module users like yourself.
> > 
> > 
> > 
> > Of course, the easiest way to use StockVO in both modules is to get it
> > linked into the main app. Most VOs are small so it won't matter. The
> > SharedCode Module pattern is for heavy things.
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> ] On
> > Behalf Of donald_d_hook
> > Sent: Wednesday, July 30, 2008 5:52 PM
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> > Subject: [flexcoders] Re: Type Cast Error
> > 
> > 
> > 
> > Alex - 
> > 
> > I looked at your presentation. I am using the StockVO in both pages
> > (both modules). I need to use it in both. If I define the class in
> > both places, what does it matter, its the same class? 
> > 
> > I saw where you mentioned having common code by loading a "Shared
> > Code" swf that would apply to ALL modules. I guess I can give that a
> > shot.
> > 
> > Thanks again for your time! 
> > 
> > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > , "Alex Harui"  wrote:
> > >
> > > It is picking up the class from a different application domain. See
> > the
> > > modules presentation on my blog.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > [mailto:flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > ] On
> > > Behalf Of donald_d_hook
> > > Sent: Wednesday, July 30, 2008 10:22 AM
> > > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com> 
> > > Subject: [flexcoders] Type Cast Error
> > > 
> > > 
> > > 
> > > I receive a type cast error when I try to cast an object I received
> > > from the server (an arraycollection of value objects). I get the
> > > following: 
> > > 
> > > TypeError: Error #1034: Type Coercion failed: cannot convert
> > > com.spinnaker.model::[EMAIL PROTECTED] to com.spinnaker.model.StockVO
> > > 
> > > The actionscript object has the correct remoteClass. On top of that,
> > > this only happens the 2nd time into the page. Not sure what is
> > > happening behind the scenes, nor do I know what the @3b392b81 is.
> > > 
> > > Thanks in advance
> > >
> >
>




[flexcoders] Re: Type Cast Error

2008-07-31 Thread donald_d_hook
So just have the imports and define variables in the shared code, then
keep the imports and object definitions in the modules...  

Thanks 

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> The shared code module must be loaded before the other modules.  You
> don't have to "get it from the main module", it will simply be there
> ready for use.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of donald_d_hook
> Sent: Thursday, July 31, 2008 3:09 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Type Cast Error
> 
>  
> 
> OK - I will give it a shot. I have been fighting it for several
> weeks, so I appreciate your insight. So just define the VO's in the
> shared code module, load on startup, then have an import of the object
> (VO) in the module so I can do some operations on it - i.e. - get it
> from the main module and manipulate as needed... Sound correct?
> 
> Thanks again.
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> , "Alex Harui"  wrote:
> >
> > These are the kinds of problems that result from the shared code
> problem
> > The Flash Player can't handle multiple mappings of "different" classes
> > for deserialization. Don't try to fight it, either put the VO's in the
> > main app or create a shared code module.
> > 
> > 
> > 
> > ____
> > 
> > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> ] On
> > Behalf Of donald_d_hook
> > Sent: Thursday, July 31, 2008 8:01 AM
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> > Subject: [flexcoders] Re: Type Cast Error
> > 
> > 
> > 
> > Alex - after tracing this through, the first time into the page, I do
> > a request to get the stock objects. They are retrieved properly and
> > displayed. I go into a chart module, get some other items and display
> > that page. When I go back into the 1st page (or module) it looks as
> > though the object is not getting serialized properly. I have a
> > BackTestStock object with a BackTest Object and Stock object in it. 
> > The BackTest is ok, but the stock object is null - so it looks like it
> > is not getting serialized properly for whatever reason. The first
> > time it does, but not the second time. 
> > 
> > Thanks ...
> > 
> > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > , "Alex Harui"  wrote:
> > >
> > > Essentially, the actuall classname isn't StockVO, it is
> > > [EMAIL PROTECTED] If the portion
> > > after the @ matches it is effectively stripped off so you can just
> see
> > > and use StockVO in most places
> > > 
> > > 
> > > 
> > > So it doesn't really match. This will be extremely useful in Flex
> 3.2
> > > when you can mix sub-application built with different versions of
> > Flex,
> > > but is a pain for module users like yourself.
> > > 
> > > 
> > > 
> > > Of course, the easiest way to use StockVO in both modules is to get
> it
> > > linked into the main app. Most VOs are small so it won't matter. The
> > > SharedCode Module pattern is for heavy things.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > [mailto:flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > ] On
> > > Behalf Of donald_d_hook
> > > Sent: Wednesday, July 30, 2008 5:52 PM
> > > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com> 
> > > Subject: [flexcoders] Re: Type Cast Error
> > > 
> > > 
> > > 
> > > Alex - 
> > > 
> > > I looked at your presentation. I am using the StockVO in both pages
> > > (both modules). I need to use it in both. If I define the class in
> > > both places, what does it matter, its the same class? 
> > > 
> > > I saw where you mentioned having common code by l

[flexcoders] Re: Type Cast Error

2008-07-31 Thread donald_d_hook
In order to use the StockVO object, I will have to have a definition
of it in the module - in order to use it.  I guess I am not sure if I
will be right back where I started with the original problem.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Essentially, the actuall classname isn't StockVO, it is
> [EMAIL PROTECTED]  If the portion
> after the @ matches it is effectively stripped off so you can just see
> and use StockVO in most places
> 
>  
> 
> So it doesn't really match.  This will be extremely useful in Flex 3.2
> when you can mix sub-application built with different versions of Flex,
> but is a pain for module users like yourself.
> 
>  
> 
> Of course, the easiest way to use StockVO in both modules is to get it
> linked into the main app.  Most VOs are small so it won't matter.  The
> SharedCode Module pattern is for heavy things.
> 
>  
> 
> ____
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of donald_d_hook
> Sent: Wednesday, July 30, 2008 5:52 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Type Cast Error
> 
>  
> 
> Alex - 
> 
> I looked at your presentation. I am using the StockVO in both pages
> (both modules). I need to use it in both. If I define the class in
> both places, what does it matter, its the same class? 
> 
> I saw where you mentioned having common code by loading a "Shared
> Code" swf that would apply to ALL modules. I guess I can give that a
> shot.
> 
> Thanks again for your time! 
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> , "Alex Harui"  wrote:
> >
> > It is picking up the class from a different application domain. See
> the
> > modules presentation on my blog.
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> ] On
> > Behalf Of donald_d_hook
> > Sent: Wednesday, July 30, 2008 10:22 AM
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> > Subject: [flexcoders] Type Cast Error
> > 
> > 
> > 
> > I receive a type cast error when I try to cast an object I received
> > from the server (an arraycollection of value objects). I get the
> > following: 
> > 
> > TypeError: Error #1034: Type Coercion failed: cannot convert
> > com.spinnaker.model::[EMAIL PROTECTED] to com.spinnaker.model.StockVO
> > 
> > The actionscript object has the correct remoteClass. On top of that,
> > this only happens the 2nd time into the page. Not sure what is
> > happening behind the scenes, nor do I know what the @3b392b81 is.
> > 
> > Thanks in advance
> >
>




[flexcoders] Re: Type Cast Error

2008-07-31 Thread donald_d_hook
OK - I will give it a shot.  I have been fighting it for several
weeks, so I appreciate your insight.  So just define the VO's in the
shared code module, load on startup, then have an import of the object
(VO) in the module so I can do some operations on it - i.e. - get it
from the main module and manipulate as needed...  Sound correct?

Thanks again.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> These are the kinds of problems that result from the shared code problem
> The Flash Player can't handle multiple mappings of "different" classes
> for deserialization.  Don't try to fight it, either put the VO's in the
> main app or create a shared code module.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of donald_d_hook
> Sent: Thursday, July 31, 2008 8:01 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Type Cast Error
> 
>  
> 
> Alex - after tracing this through, the first time into the page, I do
> a request to get the stock objects. They are retrieved properly and
> displayed. I go into a chart module, get some other items and display
> that page. When I go back into the 1st page (or module) it looks as
> though the object is not getting serialized properly. I have a
> BackTestStock object with a BackTest Object and Stock object in it. 
> The BackTest is ok, but the stock object is null - so it looks like it
> is not getting serialized properly for whatever reason. The first
> time it does, but not the second time. 
> 
> Thanks ...
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> , "Alex Harui"  wrote:
> >
> > Essentially, the actuall classname isn't StockVO, it is
> > [EMAIL PROTECTED] If the portion
> > after the @ matches it is effectively stripped off so you can just see
> > and use StockVO in most places
> > 
> > 
> > 
> > So it doesn't really match. This will be extremely useful in Flex 3.2
> > when you can mix sub-application built with different versions of
> Flex,
> > but is a pain for module users like yourself.
> > 
> > 
> > 
> > Of course, the easiest way to use StockVO in both modules is to get it
> > linked into the main app. Most VOs are small so it won't matter. The
> > SharedCode Module pattern is for heavy things.
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> ] On
> > Behalf Of donald_d_hook
> > Sent: Wednesday, July 30, 2008 5:52 PM
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> > Subject: [flexcoders] Re: Type Cast Error
> > 
> > 
> > 
> > Alex - 
> > 
> > I looked at your presentation. I am using the StockVO in both pages
> > (both modules). I need to use it in both. If I define the class in
> > both places, what does it matter, its the same class? 
> > 
> > I saw where you mentioned having common code by loading a "Shared
> > Code" swf that would apply to ALL modules. I guess I can give that a
> > shot.
> > 
> > Thanks again for your time! 
> > 
> > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > , "Alex Harui"  wrote:
> > >
> > > It is picking up the class from a different application domain. See
> > the
> > > modules presentation on my blog.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > [mailto:flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com>
> > ] On
> > > Behalf Of donald_d_hook
> > > Sent: Wednesday, July 30, 2008 10:22 AM
> > > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> <mailto:flexcoders%40yahoogroups.com> 
> > > Subject: [flexcoders] Type Cast Error
> > > 
> > > 
> > > 
> > > I receive a type cast error when I try to cast an object I received
> > > from the server (an arraycollection of value objects). I get the
> > > following: 
> > > 
> > > TypeError: Error #1034: Type Coercion failed: cannot convert
> > > com.spinnaker.model::[EMAIL PROTECTED] to com.spinnaker.model.StockVO
> > > 
> > > The actionscript object has the correct remoteClass. On top of that,
> > > this only happens the 2nd time into the page. Not sure what is
> > > happening behind the scenes, nor do I know what the @3b392b81 is.
> > > 
> > > Thanks in advance
> > >
> >
>




[flexcoders] Re: Type Cast Error

2008-07-31 Thread donald_d_hook
Alex - after tracing this through, the first time into the page, I do
a request to get the stock objects.  They are retrieved properly and
displayed.  I go into a chart module, get some other items and display
that page.  When I go back into the 1st page (or module) it looks as
though the object is not getting serialized properly.  I have a
BackTestStock object with a BackTest Object and Stock object in it. 
The BackTest is ok, but the stock object is null - so it looks like it
is not getting serialized properly for whatever reason.  The first
time it does, but not the second time. 

Thanks ...

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Essentially, the actuall classname isn't StockVO, it is
> [EMAIL PROTECTED]  If the portion
> after the @ matches it is effectively stripped off so you can just see
> and use StockVO in most places
> 
>  
> 
> So it doesn't really match.  This will be extremely useful in Flex 3.2
> when you can mix sub-application built with different versions of Flex,
> but is a pain for module users like yourself.
> 
>  
> 
> Of course, the easiest way to use StockVO in both modules is to get it
> linked into the main app.  Most VOs are small so it won't matter.  The
> SharedCode Module pattern is for heavy things.
> 
>  
> 
> ____
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of donald_d_hook
> Sent: Wednesday, July 30, 2008 5:52 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Type Cast Error
> 
>  
> 
> Alex - 
> 
> I looked at your presentation. I am using the StockVO in both pages
> (both modules). I need to use it in both. If I define the class in
> both places, what does it matter, its the same class? 
> 
> I saw where you mentioned having common code by loading a "Shared
> Code" swf that would apply to ALL modules. I guess I can give that a
> shot.
> 
> Thanks again for your time! 
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> , "Alex Harui"  wrote:
> >
> > It is picking up the class from a different application domain. See
> the
> > modules presentation on my blog.
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> ] On
> > Behalf Of donald_d_hook
> > Sent: Wednesday, July 30, 2008 10:22 AM
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> > Subject: [flexcoders] Type Cast Error
> > 
> > 
> > 
> > I receive a type cast error when I try to cast an object I received
> > from the server (an arraycollection of value objects). I get the
> > following: 
> > 
> > TypeError: Error #1034: Type Coercion failed: cannot convert
> > com.spinnaker.model::[EMAIL PROTECTED] to com.spinnaker.model.StockVO
> > 
> > The actionscript object has the correct remoteClass. On top of that,
> > this only happens the 2nd time into the page. Not sure what is
> > happening behind the scenes, nor do I know what the @3b392b81 is.
> > 
> > Thanks in advance
> >
>




[flexcoders] Re: Type Cast Error

2008-07-31 Thread donald_d_hook
Alex - 

So I should define the class in one spot - i.e. the shared code mxml,
then use some getters defined in the main app to use that instance or
definition in the module.

Thanks again for your assistance!!

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Essentially, the actuall classname isn't StockVO, it is
> [EMAIL PROTECTED]  If the portion
> after the @ matches it is effectively stripped off so you can just see
> and use StockVO in most places
> 
>  
> 
> So it doesn't really match.  This will be extremely useful in Flex 3.2
> when you can mix sub-application built with different versions of Flex,
> but is a pain for module users like yourself.
> 
>  
> 
> Of course, the easiest way to use StockVO in both modules is to get it
> linked into the main app.  Most VOs are small so it won't matter.  The
> SharedCode Module pattern is for heavy things.
> 
>  
> 
> ____
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of donald_d_hook
> Sent: Wednesday, July 30, 2008 5:52 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Type Cast Error
> 
>  
> 
> Alex - 
> 
> I looked at your presentation. I am using the StockVO in both pages
> (both modules). I need to use it in both. If I define the class in
> both places, what does it matter, its the same class? 
> 
> I saw where you mentioned having common code by loading a "Shared
> Code" swf that would apply to ALL modules. I guess I can give that a
> shot.
> 
> Thanks again for your time! 
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> , "Alex Harui"  wrote:
> >
> > It is picking up the class from a different application domain. See
> the
> > modules presentation on my blog.
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> ] On
> > Behalf Of donald_d_hook
> > Sent: Wednesday, July 30, 2008 10:22 AM
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> > Subject: [flexcoders] Type Cast Error
> > 
> > 
> > 
> > I receive a type cast error when I try to cast an object I received
> > from the server (an arraycollection of value objects). I get the
> > following: 
> > 
> > TypeError: Error #1034: Type Coercion failed: cannot convert
> > com.spinnaker.model::[EMAIL PROTECTED] to com.spinnaker.model.StockVO
> > 
> > The actionscript object has the correct remoteClass. On top of that,
> > this only happens the 2nd time into the page. Not sure what is
> > happening behind the scenes, nor do I know what the @3b392b81 is.
> > 
> > Thanks in advance
> >
>




[flexcoders] Re: Type Cast Error

2008-07-30 Thread donald_d_hook
Alex - 

I looked at your presentation.  I am using the StockVO in both pages
(both modules).  I need to use it in both.  If I define the class in
both places, what does it matter, its the same class?  

I saw where you mentioned having common code by loading a "Shared
Code" swf that would apply to ALL modules.  I guess I can give that a
shot.

Thanks again for your time! 

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> It is picking up the class from a different application domain.  See the
> modules presentation on my blog.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of donald_d_hook
> Sent: Wednesday, July 30, 2008 10:22 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Type Cast Error
> 
>  
> 
> I receive a type cast error when I try to cast an object I received
> from the server (an arraycollection of value objects). I get the
> following: 
> 
> TypeError: Error #1034: Type Coercion failed: cannot convert
> com.spinnaker.model::[EMAIL PROTECTED] to com.spinnaker.model.StockVO
> 
> The actionscript object has the correct remoteClass. On top of that,
> this only happens the 2nd time into the page. Not sure what is
> happening behind the scenes, nor do I know what the @3b392b81 is.
> 
> Thanks in advance
>




[flexcoders] Re: Type Cast Error

2008-07-30 Thread donald_d_hook
Thank you!! I will take a look and let you know.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> It is picking up the class from a different application domain.  See the
> modules presentation on my blog.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of donald_d_hook
> Sent: Wednesday, July 30, 2008 10:22 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Type Cast Error
> 
>  
> 
> I receive a type cast error when I try to cast an object I received
> from the server (an arraycollection of value objects). I get the
> following: 
> 
> TypeError: Error #1034: Type Coercion failed: cannot convert
> com.spinnaker.model::[EMAIL PROTECTED] to com.spinnaker.model.StockVO
> 
> The actionscript object has the correct remoteClass. On top of that,
> this only happens the 2nd time into the page. Not sure what is
> happening behind the scenes, nor do I know what the @3b392b81 is.
> 
> Thanks in advance
>




[flexcoders] Type Cast Error

2008-07-30 Thread donald_d_hook
I receive a type cast error when I try to cast an object I received
from the server (an arraycollection of value objects). I get the
following: 

TypeError: Error #1034: Type Coercion failed: cannot convert
com.spinnaker.model::[EMAIL PROTECTED] to com.spinnaker.model.StockVO

The actionscript object has the correct remoteClass.  On top of that,
this only happens the 2nd time into the page.  Not sure what is
happening behind the scenes, nor do I know what the @3b392b81 is.

Thanks in advance