A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: Why is this image going beyond boundary of movie.

  1. #1
    Senior Member
    Join Date
    Aug 2006
    Posts
    109

    Why is this image going beyond boundary of movie.

    Hi, I was wondering if anybody had an idea why I'm seeing images go beyond the boundaries of the dimensions of the movie.

    What you are looking at is...

    A movie within a movie.

    From the top of this picture down to the red lines is an imported movie within the main movie (the writing at the bottom of the picture).

    So within this child movie is the stars as you can see. As well I slowly have that pic of the moon rising.

    The moon starts rising off screen of course - then appears.

    What seems to be happening (as you see by the overlaid moon of the child movie) is appearing over the main movie (the writing).

    It shouldn't since (like I said) the dimensions of this imported child movie start at the top of the pic down to the red lines.

    The child movie looks fine in it's own .fun file. Previews nicely ... no offscreen stuff.

    Don't understand why this is happening. The moon should start appearing/rising where the red lines start (that's the boundary of that child movie).

    Main thing is .. how do I STOP THIS. LOL

    Messes up the whole effect.

    Thanks for any help?


  2. #2
    Senior Member
    Join Date
    Aug 2006
    Posts
    109
    Both movies (main and child) are exported as flash version 8 (so it's not that)

    The child movie is imported at design time. (as opposed to at runtime via a "loadmovie")
    Last edited by maed; 08-02-2008 at 08:01 AM.

  3. #3
    That web bloke Stoke Laurie's Avatar
    Join Date
    Jan 2006
    Location
    England
    Posts
    869
    Take a look at the shapes in your movie, this will show their relative layer levels, make sure you bottom swf is above your moon in the list, you can move them up and down the levels with the arrow buttons.

  4. #4
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Stoke is right. Also it looks like you have a border around your moon. Save the source file as transparent PNG file and remove everything around the moon. Or use a circular mask in that child movie.

    Also you can set the depth of a movie clip or swap depths of two clips via actionscript.

  5. #5
    Senior Member
    Join Date
    Aug 2006
    Posts
    109
    I don't see why it's a layering thing though. Well in fact I know it's not cuz I set the child movie as the completely lowest layer and it'll dip under the writing but not the backdrop (Which is the actual background of the movie).

    My point is I shouldn't be seeing that section at all. Looking at the child movie session...



    That whole area beyond the boundaries of the movie.... we shouldn't be seeing at all right? Otherwise why even set the dimensions of the movie, if it's going to show me everything on the workbench (everything in grey area)

    the moon is an image, not a round shape from which you've imported an image with it. I could make it that way to get rid of the edges. But it's mostly obscured within the outer space backdrop. Nothing to do with this problem though so that's ok.

  6. #6
    Senior Member
    Join Date
    Aug 2006
    Posts
    109
    In fact here is the parent session ... with the imported child movie (space and moon) .... see little redish dots as boundary points.

    That's the dimensions I set for this child movie. why in the parent movie I'm seeing ANYTHING beyond the child's border is bewildering to me.


  7. #7
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    What's off stage in an external movie, can become on stage when embedded.
    If the external movie has objects that are outside of its original dimensions you need to mask the original area or assign a scrollRect .

  8. #8
    Senior Member byweb's Avatar
    Join Date
    Apr 2007
    Location
    Andalucia (spain)
    Posts
    267
    I usually solve this by creating a mask of the dimensions of the main movie, and so everything that happens outside this, not shown. For example:
    Code:
    luna.setMask(mask);

  9. #9
    Senior Member
    Join Date
    Aug 2006
    Posts
    109
    Quote Originally Posted by byweb
    I usually solve this by creating a mask of the dimensions of the main movie, and so everything that happens outside this, not shown. For example:
    Code:
    luna.setMask(mask);
    mmm..that's interesting code I haven't seen before.

    1. what's "luna", is that the component that becomes the mask - is it a shape?
    2. where in that syntax would you fit in the parameters for the dimensions (of say... 740x284)?

    If that doesn't work I'll try the masking thing (wilbert), I don't know how to do that, but I'm sure I can use the continuous background example I have (with a masking example).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center