This is an internal method that is only there because of some malarky
in swf<very small number> where you could not directly attach a
resource to a sprite, you had to go up to the parent and attach the
resource as a sibling. I suspect you need to modernize the video code
to realize there is no longer such a limitation.
On 2008-07-17, at 18:54EDT, Raju Bitter wrote:
Hi all,
While porting videoview.lzx to JS2 syntax I ran into this error:
TypeError: Error #1006: attachResourceToChildView is not a function.
at
$lzc$class_newvideoview/init()[/Users/laszlo/swf9runtime/src/$lzc
$class_newv
ideoview.as:11]
at LzNode/__LZcallInit()[/Users/laszlo/swf9runtime/src/LzNode.as:
201]
at LzNode/__LZcallInit()[/Users/laszlo/swf9runtime/src/LzNode.as:
195]
at
LzCanvas/__LZcallInit()[/Users/laszlo/swf9runtime/src/LzCanvas.as:192]
When I looked into
http://svn.openlaszlo.org/openlaszlo/trunk/WEB-INF/lps/lfc/kernel/swf9/LzSpr
ite.as
I didn't find the method any more. It's in SWF8 LzSprite.as:
var mc = this.owner.immediateparent.sprite.attachResourceToChildView(
resourceName, this );
Comments welcome. :)
Cheers,
Raju