;

PDA

Click to See Complete Forum and Search --> : Why is this image going beyond boundary of movie.


maed
08-02-2008, 08:54 AM
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? :)

http://img.photobucket.com/albums/v449/ufufufuf/Site.gif

maed
08-02-2008, 08:58 AM
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")

Stoke Laurie
08-02-2008, 09:09 AM
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.

blanius
08-02-2008, 11:42 AM
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.

maed
08-02-2008, 12:02 PM
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...

http://img.photobucket.com/albums/v449/ufufufuf/Site2.gif

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.

maed
08-02-2008, 12:09 PM
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.

http://img.photobucket.com/albums/v449/ufufufuf/Site3.gif

w.brants
08-02-2008, 01:15 PM
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 .

byweb
08-02-2008, 01:26 PM
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:

luna.setMask(mask);

maed
08-02-2008, 02:33 PM
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:

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).