# Flash within flash

**URL:** <https://forum.kirupa.com/t/flash-within-flash/2149>\
**Category:** Uncategorized\
**Created:** [May 16, 2002, 1:46am UTC](https://forum.kirupa.com/t/flash-within-flash/2149 "2002-05-16T01:46:41Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 16, 2002, 1:46am UTC](https://forum.kirupa.com/t/flash-within-flash/2149/1 "2002-05-16T01:46:41Z")

</div>

Hi guys i need help.

Well im not gd at english but i will try to explain my problems.  
How do u all load a flash file and within it when u click on another icon or something it call another flash without exiting the main one. eg. like [2advance.com](http://2advance.com), [itcatmedia.com](http://itcatmedia.com)???

and how to create blur effects on images using flash?

thanks!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 16, 2002, 2:46am UTC](https://forum.kirupa.com/t/flash-within-flash/2149/2 "2002-05-16T02:46:42Z")

</div>

I think you are just talking about loading another movie.  
if so it’s real simply

on (release) {  
loadMovie (“exact url here”, “target or level to load to”);  
}

target allows you to have an instance on the stage to which the new movie loads to. Level allows you to load load the new movie to the root level (0). This will replace the original movie. If you load to level 1 or high it will load over the root level.

I hope this is what you were asking.  
Good luck.  
Tim

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 16, 2002, 3:17pm UTC](https://forum.kirupa.com/t/flash-within-flash/2149/3 "2002-05-16T15:17:25Z")

</div>

oh ok but how do we know the position where it suppose to appear? and let say there’s a flash file on level 1. level 0 backdrop would be block is it according to the stage size?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 16, 2002, 6:17pm UTC](https://forum.kirupa.com/t/flash-within-flash/2149/4 "2002-05-16T18:17:23Z")

</div>

Hi,

1st decide on where you want the movie to be loaded.  
Draw a mc symbol on the stage where you’d like the movie to be loaded. Give this mc symbol an instance name (like target).

Then lets say you are going to have a button that onlick loads your new movie (newmovie.swf) into the “target”.

You’d add this script to the button which will (onPress) load the newmovie.swf

on (release) {  
loadMovie (“newmovie.swf”, “target”);  
}

That should do it for you. If you have any questions just shout.

Cya

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 16, 2002, 6:21pm UTC](https://forum.kirupa.com/t/flash-within-flash/2149/5 "2002-05-16T18:21:54Z")

</div>

I missed part of your question, sorry . . . .

Level 0 is the root level. If you have a button on the stage that has this code on it

on (release) {  
loadMovie (“target.swf”, 0);  
}

This would load to level zero & replace your current scene.

I hope this is what you were asking

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 17, 2002, 1:31pm UTC](https://forum.kirupa.com/t/flash-within-flash/2149/6 "2002-05-17T13:31:37Z")

</div>

er… wats mc?

would the movie i load block the level 0 view?

i thought every flash file has its own stage where u want ur stage to be in wat color?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 17, 2002, 4:05pm UTC](https://forum.kirupa.com/t/flash-within-flash/2149/7 "2002-05-17T16:05:03Z")

</div>

Hi, I’ve copied your questions & answer each one below:

er… wats mc?  
mc is Movie Clip, Sorry

would the movie i load block the level 0 view?  
If you load a movie to level 0 is will replace  
whatever is on your stage.

i thought every flash file has its own stage where u want ur stage to be in wat color?  
Every Movie Clip has it’s own timeline. There is only 1 place to set your movie parameters.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 18, 2002, 2:05am UTC](https://forum.kirupa.com/t/flash-within-flash/2149/8 "2002-05-18T02:05:16Z")

</div>

ok sorry abt that last question. how do u determine the stage size if let say if i want to put the second flash file at the center right of the whole page? how do we measure? well if theres any tutorial out there where i can see my examples?

thanks!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 18, 2002, 2:07am UTC](https://forum.kirupa.com/t/flash-within-flash/2149/9 "2002-05-18T02:07:21Z")

</div>

I know what you’re saying, but I don’t think the quesitoner does… 🙂

about blocking by levels.

Only the Flash player has an opaque background… any movie loaded into level1 level2 etc will have a transparent background.

Anything loaded into a higher level will block the view of the lower level where there are elements in the movie.

possitioning is easy enough to figure out. all movies loaded into levels, possition themselves by their upper left corner. So if you have a 600/600 embeded object with an swf in it’s level0, and you load a 600/400 swf into the level1, there will be a 200 pixel wide strip on the right hand side of the movie where level0 will show through.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 18, 2002, 2:15pm UTC](https://forum.kirupa.com/t/flash-within-flash/2149/10 "2002-05-18T14:15:17Z")

</div>

Thanks Up,  
Well explained

Tim

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 19, 2002, 4:52pm UTC](https://forum.kirupa.com/t/flash-within-flash/2149/11 "2002-05-19T16:52:34Z")

</div>

poorly spelled, but well explained. 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 20, 2002, 2:05pm UTC](https://forum.kirupa.com/t/flash-within-flash/2149/12 "2002-05-20T14:05:21Z")

</div>

yah thanks! thats the one i’ve been toking abt. Level 0 will be opaque the rest like level 1,2,3… will be transparent. thanks man. ok for the positioning u mention means that it does not function like DHTML where u can placed ur layers on anywhere in the HTML. for this part we have to calculate from the upper left corner. am i right?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 20, 2002, 9:49pm UTC](https://forum.kirupa.com/t/flash-within-flash/2149/13 "2002-05-20T21:49:48Z")

</div>

yup. If you want exact possitioning you can use loadMovie instead of loadMovieNum, and you can load the swf into a target movie clip. In this method you then have control over positioning of the loaded elements. I find this method to be a little more useful, and keeping in line with what I already know how to do with elements in a movie.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 20, 2002, 11:00pm UTC](https://forum.kirupa.com/t/flash-within-flash/2149/14 "2002-05-20T23:00:16Z")

</div>

Thanks man I got it. 🙂
