Re: [flexcoders] not kosher to call function from inline renderer?
ah you were right alex, the blob image data wasn't updating (we used the same thumbnail data for the test bed so nobody noticed) plus the debug console was full of Warning: unable to bind to property... messages. i was confusing these w/ Data binding will not be able to detect assignments to sampleData warnings (and you did say 'errors' ;-). need to re-think my approach. thanks.
Re: [flexcoders] not kosher to call function from inline renderer?
Paul deCoursey wrote: The inline component doesn't have that method in scope. Try {this.parentDocumen t.blobToImage. ... spoke too soon. while this got rid of the complier error, that method's still not getting called ie breakpoints on it never get fired. any ideas? thanks.
RE: [flexcoders] not kosher to call function from inline renderer?
I think you want to use outerDocument. I'm surprised you didn't get a runtime error. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Hastings Sent: Tuesday, October 16, 2007 11:08 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] not kosher to call function from inline renderer? Paul deCoursey wrote: The inline component doesn't have that method in scope. Try {this.parentDocumen t.blobToImage. ... spoke too soon. while this got rid of the complier error, that method's still not getting called ie breakpoints on it never get fired. any ideas? thanks.
Re: [flexcoders] not kosher to call function from inline renderer?
Alex Harui wrote: I think you want to use outerDocument. I’m surprised you didn’t get a runtime error. me too ;-) yes that got. thanks.
Re: [flexcoders] not kosher to call function from inline renderer?
Ok, I always use parentDocument and it always works for me... what's the deal? I've never used outerDocument. Here is a quick sample: mx:TileList id=assetList columnCount=1 height=100% width=100% dataProvider={this.projectManager.videos} itemClick=this.displayAssetInfo(event); dragEnabled=true mx:itemRenderer mx:Component infoid:ClipTile playClip=this.parentDocument.playClip(event); createNewClip=this.parentDocument.handleCreateNewClip(event); connection={this.parentDocument.videoPlayer.sharedConnection} / /mx:Component /mx:itemRenderer /mx:TileList Can you explain why mine works but his does not? Paul Alex Harui wrote: I think you want to use outerDocument. I’m surprised you didn’t get a runtime error. *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Paul Hastings *Sent:* Tuesday, October 16, 2007 11:08 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] not kosher to call function from inline renderer? Paul deCoursey wrote: The inline component doesn't have that method in scope. Try {this.parentDocumen t.blobToImage. ... spoke too soon. while this got rid of the complier error, that method's still not getting called ie breakpoints on it never get fired. any ideas? thanks. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] not kosher to call function from inline renderer?
What is ClipTile? If it is based on Container, they may both be equivalent, but if it is based on an mx.controls.* it may not be the same. It would seem to me that if you got the scope wrong, you'd get an runtime error, so I can't figure out why he's in the situation he is. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul deCoursey Sent: Wednesday, October 17, 2007 7:11 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] not kosher to call function from inline renderer? Ok, I always use parentDocument and it always works for me... what's the deal? I've never used outerDocument. Here is a quick sample: mx:TileList id=assetList columnCount=1 height=100% width=100% dataProvider={this.projectManager.videos} itemClick=this.displayAssetInfo(event); dragEnabled=true mx:itemRenderer mx:Component infoid:ClipTile playClip=this.parentDocument.playClip(event); createNewClip=this.parentDocument.handleCreateNewClip(event); connection={this.parentDocument.videoPlayer.sharedConnection} / /mx:Component /mx:itemRenderer /mx:TileList Can you explain why mine works but his does not? Paul Alex Harui wrote: I think you want to use outerDocument. I'm surprised you didn't get a runtime error. *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Paul Hastings *Sent:* Tuesday, October 16, 2007 11:08 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] not kosher to call function from inline renderer? Paul deCoursey wrote: The inline component doesn't have that method in scope. Try {this.parentDocumen t.blobToImage. ... spoke too soon. while this got rid of the complier error, that method's still not getting called ie breakpoints on it never get fired. any ideas? thanks. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
RE: [flexcoders] not kosher to call function from inline renderer?
Also, I looked at his code again. It appears that he's binding to a function. The binding probably doesn't know when to fire again. I generally discourage binding to functions. He may even be getting one of those can't bind to warnings. Binding also eats runtime errors. I would override a data setter and set source from there. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui Sent: Wednesday, October 17, 2007 10:06 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] not kosher to call function from inline renderer? What is ClipTile? If it is based on Container, they may both be equivalent, but if it is based on an mx.controls.* it may not be the same. It would seem to me that if you got the scope wrong, you'd get an runtime error, so I can't figure out why he's in the situation he is. -Original Message- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Paul deCoursey Sent: Wednesday, October 17, 2007 7:11 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: Re: [flexcoders] not kosher to call function from inline renderer? Ok, I always use parentDocument and it always works for me... what's the deal? I've never used outerDocument. Here is a quick sample: mx:TileList id=assetList columnCount=1 height=100% width=100% dataProvider={this.projectManager.videos} itemClick=this.displayAssetInfo(event); dragEnabled=true mx:itemRenderer mx:Component infoid:ClipTile playClip=this.parentDocument.playClip(event); createNewClip=this.parentDocument.handleCreateNewClip(event); connection={this.parentDocument.videoPlayer.sharedConnection} / /mx:Component /mx:itemRenderer /mx:TileList Can you explain why mine works but his does not? Paul Alex Harui wrote: I think you want to use outerDocument. I'm surprised you didn't get a runtime error. -- *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] *On Behalf Of *Paul Hastings *Sent:* Tuesday, October 16, 2007 11:08 PM *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com *Subject:* Re: [flexcoders] not kosher to call function from inline renderer? Paul deCoursey wrote: The inline component doesn't have that method in scope. Try {this.parentDocumen t.blobToImage. ... spoke too soon. while this got rid of the complier error, that method's still not getting called ie breakpoints on it never get fired. any ideas? thanks. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
Re: [flexcoders] not kosher to call function from inline renderer?
Alex Harui wrote: Also, I looked at his code again. It appears that he’s binding to a function. The binding probably doesn’t know when to fire again. I yup though it does seem to be firing as expected. generally discourage binding to functions. He may even be getting one of those “can’t bind to” warnings. Binding also eats runtime errors. nope, just some warnings about some other vars not getting updated (at home so i don't have the exact messages in front of me). I would override a data setter and set source from there. yeah good idea, i'm not all that comfortable w/this inline stuff (obviously ;-).
Re: [flexcoders] not kosher to call function from inline renderer?
Yes, in this case ClipTile is a Container, most of my itemRenderers are Containers. If they are not containers then I generally don't have anything to set on them. Alex Harui wrote: What is ClipTile? If it is based on Container, they may both be equivalent, but if it is based on an mx.controls.* it may not be the same. It would seem to me that if you got the scope wrong, you'd get an runtime error, so I can't figure out why he's in the situation he is. -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul deCoursey Sent: Wednesday, October 17, 2007 7:11 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] not kosher to call function from inline renderer? Ok, I always use parentDocument and it always works for me... what's the deal? I've never used outerDocument. Here is a quick sample: mx:TileList id=assetList columnCount=1 height=100% width=100% dataProvider={this.projectManager.videos} itemClick=this.displayAssetInfo(event); dragEnabled=true mx:itemRenderer mx:Component infoid:ClipTile playClip=this.parentDocument.playClip(event); createNewClip=this.parentDocument.handleCreateNewClip(event); connection={this.parentDocument.videoPlayer.sharedConnection} / /mx:Component /mx:itemRenderer /mx:TileList Can you explain why mine works but his does not? Paul Alex Harui wrote: I think you want to use outerDocument. I'm surprised you didn't get a runtime error. *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Paul Hastings *Sent:* Tuesday, October 16, 2007 11:08 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] not kosher to call function from inline renderer? Paul deCoursey wrote: The inline component doesn't have that method in scope. Try {this.parentDocumen t.blobToImage. ... spoke too soon. while this got rid of the complier error, that method's still not getting called ie breakpoints on it never get fired. any ideas? thanks.
RE: [flexcoders] not kosher to call function from inline renderer?
OK. Can you summarize what your situation is currently? I'd like to see your latest code including enough code to see the function you are trying to call. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of paulh Sent: Wednesday, October 17, 2007 10:38 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] not kosher to call function from inline renderer? Alex Harui wrote: Also, I looked at his code again. It appears that he's binding to a function. The binding probably doesn't know when to fire again. I yup though it does seem to be firing as expected. generally discourage binding to functions. He may even be getting one of those can't bind to warnings. Binding also eats runtime errors. nope, just some warnings about some other vars not getting updated (at home so i don't have the exact messages in front of me). I would override a data setter and set source from there. yeah good idea, i'm not all that comfortable w/this inline stuff (obviously ;-).
Re: [flexcoders] not kosher to call function from inline renderer?
Alex Harui wrote: OK. Can you summarize what your situation is currently? I’d like to see your latest code including enough code to see the function you are trying to call. sure, have to be in the morning (in about 7 hours or so) when i get back to the office, my head's full of the rest of the app.
[flexcoders] not kosher to call function from inline renderer?
don't know if it's not kosher or i'm flubbing something but i keep getting Call to a possibly undefined method blobToImage. errors from something like this (trying to convert bunch of BLOBed thumbnails into a list): mx:HorizontalList id=sampleImageThumbnails dataProvider={sampleData.sampleImagery} width=100% mx:itemRenderer mx:Component mx:Image height={data.data.imageHeight} width={data.data.imageWidth} source={blobToImage(data.thumbnail,data.imageHeight,data.imageWidth)} / /mx:Component /mx:itemRenderer /mx:HorizontalList the method is there works (more or less ;-). any ideas? thanks.
Re: [flexcoders] not kosher to call function from inline renderer?
The inline component doesn't have that method in scope. Try {this.parentDocument.blobToImage Paul Hastings wrote: don't know if it's not kosher or i'm flubbing something but i keep getting Call to a possibly undefined method blobToImage. errors from something like this (trying to convert bunch of BLOBed thumbnails into a list): mx:HorizontalList id=sampleImageThumbnails dataProvider={sampleData.sampleImagery} width=100% mx:itemRenderer mx:Component mx:Image height={data.data.imageHeight} width={data.data.imageWidth} source={blobToImage(data.thumbnail,data.imageHeight,data.imageWidth)} / /mx:Component /mx:itemRenderer /mx:HorizontalList the method is there works (more or less ;-). any ideas? thanks. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
Re: [flexcoders] not kosher to call function from inline renderer?
Paul deCoursey wrote: The inline component doesn't have that method in scope. Try {this.parentDocumen t.blobToImage. ... yup that did the trick. thanks paul. btw is documented anywhere?
Re: [flexcoders] not kosher to call function from inline renderer?
The method is not in your code segment, unless I'm missing something. Just a shot in the dark, but you need to use outerDocumentto to call a method located in the same file, but not in the inline component. Paul Hastings wrote: don't know if it's not kosher or i'm flubbing something but i keep getting Call to a possibly undefined method blobToImage. errors from something like this (trying to convert bunch of BLOBed thumbnails into a list): mx:HorizontalList id=sampleImageThumbnails dataProvider={sampleData.sampleImagery} width=100% mx:itemRenderer mx:Component mx:Image height={data.data.imageHeight} width={data.data.imageWidth} source={blobToImage(data.thumbnail,data.imageHeight,data.imageWidth)} / /mx:Component /mx:itemRenderer /mx:HorizontalList the method is there works (more or less ;-). any ideas? thanks. -- Jeffry Houser, Technical Entrepreneur, Software Developer, Author, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com
RE: [flexcoders] not kosher to call function from inline renderer?
I really need to unsubscribe to this. Didn't realize I would get e-mailed a copy of every entry in every thread. I used to think I got a lot of junk mail...this, however, is overwhelming. Please help!! Thanks, Darin From: Paul Hastings [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] not kosher to call function from inline renderer? Date: Tue, 16 Oct 2007 21:06:42 +0700 don't know if it's not kosher or i'm flubbing something but i keep getting Call to a possibly undefined method blobToImage. errors from something like this (trying to convert bunch of BLOBed thumbnails into a list): mx:HorizontalList id=sampleImageThumbnails dataProvider={sampleData.sampleImagery} width=100% mx:itemRenderer mx:Component mx:Image height={data.data.imageHeight} width={data.data.imageWidth} source={blobToImage(data.thumbnail,data.imageHeight,data.imageWidth)} / /mx:Component /mx:itemRenderer /mx:HorizontalList the method is there works (more or less ;-). any ideas? thanks. _ Capture the missing critters! Play Search Queries and earn great prizes. http://club.live.com/search_queries.aspx?icid=sq_hotmailtextlink1_oct -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/