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:* [email protected] [mailto:[EMAIL PROTECTED]
> *On Behalf Of *Paul Hastings
> *Sent:* Tuesday, October 16, 2007 11:08 PM
> *To:* [email protected]
> *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/