RE: [flexcoders] Re: reuse image source property causes 1009 ?

2009-05-03 Thread Alex Harui
Smells like timing/creation policy kinds of things.  We'll probably need to see 
more code.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Jason B
Sent: Sunday, May 03, 2009 4:57 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: reuse image source property causes 1009 ?





TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
at nutrition/saveplan()[/www/mass08/nutrition/src/createmeals.as:156]
at 
nutrition/___nutrition_Button39_click()[/www/mass08/nutrition/src/nutrition.mxml:412]

I've echo'd the img source of fast_img_item1.source and it shows the source 
path?

--- In flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>, Alex 
Harui  wrote:
>
> If you got that error on that line, breakfast_img_item2 or fast_img_item1
> Is null and it could have to do with creationPolicy or just plain timing. You 
> didn't show when your code ran and you didn't include the full stacktrace 
> with line numbers which usually helps.
>
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.<http://www.adobe.com/>
> Blog: http://blogs.adobe.com/aharui
>
> From: flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com> 
> [mailto:flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>] On 
> Behalf Of Jason B
> Sent: Saturday, May 02, 2009 7:32 PM
> To: flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>
> Subject: [flexcoders] Re: reuse image source property causes 1009 ?
>
>
>
>
>
> mistype on the action script i didn't do a copy paste :( sorry
> but still just not allowing a image source to image source
>
> --- In 
> flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com><mailto:flexcoders%40yahoogroups.com>,
>  "Jason B"  wrote:
> >
> > I have an image source property which i want to pass to another image on a 
> > different display? Is there something special to passing image sources?
> >
> >
> > TypeError: Error #1009: Cannot access a property or method of a null object 
> > reference.
> >
> >
> > breakfast_img_item2.source = fast_img_item1.source;
> >
> > 
> >
> > 
> >
>



[flexcoders] Re: reuse image source property causes 1009 ?

2009-05-03 Thread Jason B
TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
at nutrition/saveplan()[/www/mass08/nutrition/src/createmeals.as:156]
at 
nutrition/___nutrition_Button39_click()[/www/mass08/nutrition/src/nutrition.mxml:412]

I've echo'd the img source of fast_img_item1.source and it shows the source 
path?





--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> If you got that error on that line, breakfast_img_item2 or fast_img_item1
> Is null and it could have to do with creationPolicy or just plain timing.  
> You didn't show when your code ran and you didn't include the full stacktrace 
> with line numbers which usually helps.
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.<http://www.adobe.com/>
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of Jason B
> Sent: Saturday, May 02, 2009 7:32 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: reuse image source property causes 1009 ?
> 
> 
> 
> 
> 
> mistype on the action script i didn't do a copy paste :( sorry
> but still just not allowing a image source to image source
> 
> --- In flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>, 
> "Jason B"  wrote:
> >
> > I have an image source property which i want to pass to another image on a 
> > different display? Is there something special to passing image sources?
> >
> >
> > TypeError: Error #1009: Cannot access a property or method of a null object 
> > reference.
> >
> >
> > breakfast_img_item2.source = fast_img_item1.source;
> >
> > 
> >
> > 
> >
>




RE: [flexcoders] Re: reuse image source property causes 1009 ?

2009-05-02 Thread Alex Harui
If you got that error on that line, breakfast_img_item2 or fast_img_item1
Is null and it could have to do with creationPolicy or just plain timing.  You 
didn't show when your code ran and you didn't include the full stacktrace with 
line numbers which usually helps.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Jason B
Sent: Saturday, May 02, 2009 7:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: reuse image source property causes 1009 ?





mistype on the action script i didn't do a copy paste :( sorry
but still just not allowing a image source to image source

--- In flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>, "Jason 
B"  wrote:
>
> I have an image source property which i want to pass to another image on a 
> different display? Is there something special to passing image sources?
>
>
> TypeError: Error #1009: Cannot access a property or method of a null object 
> reference.
>
>
> breakfast_img_item2.source = fast_img_item1.source;
>
> 
>
> 
>



[flexcoders] Re: reuse image source property causes 1009 ?

2009-05-02 Thread Jason B
mistype on the action script i didn't do a copy paste :( sorry
but still just not allowing a image source to image source


--- In flexcoders@yahoogroups.com, "Jason B"  wrote:
>
> I have an image source property which i want to pass to another image on a 
> different display? Is there something special to passing image sources?
> 
> 
> TypeError: Error #1009: Cannot access a property or method of a null object 
> reference.
> 
> 
> breakfast_img_item2.source =  fast_img_item1.source;
> 
> 
> 
> 
>