> I'm still digging into the details of this issue, and will post again once
I
> have more information, but I wanted to throw this error out there and see
if
> anyone can help direct my debugging effort.  Looking at the code for
> "replace_display_object," depth is suppose to be unsigned so not sure why
> it's negative at this point.

For statically placed movieclips(eg. created by PlaceObject2) tags, the
depth from the AS view(mc.getDepth()) is calculated like this:
mc.getDepth() == depth_defined_in_placeObject2_tag - 16384.  So '-16383'
probably means it's a clip that was placed at depth 1.

--zou



On Sun, Mar 15, 2009 at 12:00 AM, <gnash-dev-requ...@gnu.org> wrote:

> Send Gnash-dev mailing list submissions to
>        gnash-dev@gnu.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://lists.gnu.org/mailman/listinfo/gnash-dev
> or, via email, send a message with subject or body 'help' to
>        gnash-dev-requ...@gnu.org
>
> You can reach the person managing the list at
>        gnash-dev-ow...@gnu.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Gnash-dev digest..."
>
>
> Today's Topics:
>
>   1. Error using DataGrid in sub-SWF (Michael Landon)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 14 Mar 2009 08:37:24 -0600
> From: Michael Landon <mdlan...@gmail.com>
> Subject: [Gnash-dev] Error using DataGrid in sub-SWF
> To: gnash-dev@gnu.org
> Message-ID:
>        <ac223a120903140737k20eeb3a4t741d3d37c3813...@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I have just started looking into the use of the standard DataGrid component
> under Gnash 0.8.5 and have run into some weird behavior.  I've verified the
> issue exists under Ubuntu 7.10 and Fedora 10.
>
> I created a main SWF that has a sub-MovieClip obj in which I use a
> MovieClipLoader to load a sub-SWF when the user clicks a button.  The
> sub-SWF has 11 frames, the 3rd of which contains a single DataGrid.  The
> first time the button is pressed, the sub-SWF appears to load just fine (no
> errors, playback is as expected, etc).  If I press the button a second time
> (or try and load any other SWF into that sub-MovieClip), I get an error in
> onLoadInit() when I'm trying to goto a specific frame (frame 4 in the case
> below):
>
>
> PC:3415 - EX: ActionCallMethod
>  method name: [string:gotoAndPlay]
>  method object/func:
> [gnash::movie_instance(_level0.content.target):0x8560008]
>  method nargs: 1
> Executing 8 tags in frame 3/11 of movieclip /content/target
> 22106:3085941184] 16:04:59 ERROR: MovieClip::replace_display_object: could
> not find any character at depth -16383
> 22106:3085941184] 16:04:59 ERROR: MovieClip::replace_display_object: could
> not find any character at depth -16382
> Executing 2 tags in frame 1/2 of movieclip /content/target/my_dg
> Executing 1 tags in frame 1/1 of movieclip
> /content/target/my_dg/boundingBox_mc
> Executing 8 tags in frame 4/11 of movieclip /content/target
> 22106:3085941184] 16:04:59 ERROR: MovieClip::replace_display_object: could
> not find any character at depth -16383
> 22106:3085941184] 16:04:59 ERROR: MovieClip::replace_display_object: could
> not find any character at depth -16382
> Executing 1 tags in frame 1/1 of movieclip /content/target/myVODButton
> After execution: PC 3415, next PC 3416, stack follows
> Stack: "[undefined]"
> Global registers: 1:[function(gnash::swf_function):0xb397e810],
> 2:[object(gnash::as_object):0xb397e888]
> Local registers: 0:"[number:701]",
> 1:"[object(gnash::as_object):0xb1ca37f0]",
> 2:"[gnash::movie_instance(_level0.content.target):0x8560008]",
> 3:"[gnash::movie_instance(_level0.content.target):0x8560008]"
> Local variables: this==[object(gnash::as_object):0xb1ca37f0]
>
>
> I'm still digging into the details of this issue, and will post again once
> I
> have more information, but I wanted to throw this error out there and see
> if
> anyone can help direct my debugging effort.  Looking at the code for
> "replace_display_object," depth is suppose to be unsigned so not sure why
> it's negative at this point.
>
> I do know that if I remove the DataGrid component from the stage, there is
> no error.  I also know that if I leave the DataGrid empty (no dataprovider
> assigned) the error still occurs.
>
> Michael
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.gnu.org/pipermail/gnash-dev/attachments/20090314/724cf79b/attachment.html
>
> ------------------------------
>
> _______________________________________________
> Gnash-dev mailing list
> Gnash-dev@gnu.org
> http://lists.gnu.org/mailman/listinfo/gnash-dev
>
>
> End of Gnash-dev Digest, Vol 38, Issue 14
> *****************************************
>
_______________________________________________
Gnash-dev mailing list
Gnash-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnash-dev

Reply via email to