Movie Loading Problem

Hi Guys
I have a base movie(wid links)
size=800X600
and i have links on it (profile, resources , contact)

now, suppose i click on resources
i want to load a movie wid width 750X410 size on level 1wid ths script

[AS]
on (release) {
unloadMovieNum (1);
loadMovieNum (“resources.swf”, 1);
}
[/AS]

(assuming there’s a movie already loaded at level number 1, this will be the same in every button as i have another movie named default at level 1 wid)
But anyway, my problem is that i want to load a movie wid a smaller sized (750X410) so that i dont have to animate 800X600 movies and work on square boundry i made, it’s funny i kno =)


if u dont understand all wat i said, m just speakin in my mind as i have the movie and problem in front of me and so clear… i want to load a movie on a specific place, lets say a center…
800X600 movie on base level_0 wid links on it and it shud load
750X410 movie in the center of the screen, i kno it’s positioning problem, but m confused.So bear wid my explaination.
Thank Guys

  1. you don’t need to unload a movie. If you load another movie, the pervious one will automaticly be erased.

  2. To center a movie:

if(_level1.getBytesTotal()/_level1.getBytesLoaded()) {
_level1._x = (800-_level1._width)/2;
_level1._y = (600-_level1._height)/2;
}

Cool, thanx [M] =)
I am gona try this and yea dis not a cd presentation so i dont have to use the get byte line.I ll do that riteaway and post my problems if any.

it’s not working or i m doing something dumb :frowning:
my main movie has all the links and from there i m calling the movies at level 1 and level 1 movie shud load itself in the center of the screen.I want to learn how to position a movie at some specific place, lets not take center as a criteria.Its a cd presentation,but i d love to learn it all for the web aswell.
it’s like
load movie 1.swf _x= _y=
i dont kno exactly.
i want to load a movie at a specif position.

code
[AS]
on (release) {
loadMovieNum (“1.swf”, 1);
_level1._x = (800-_level1._width)/2;
_level1._y = (600-_level1._height)/2;
}
[/AS]
am i doing something wrong here?

so i guess no one is ready to help ha?
Time for desperate measures !! :stuck_out_tongue:

hi man!
i suggest you place it in a MC… say
//create and empty mc
_root.createEmptyMovieClip(“clip”,0);
[AS]
loadMovie(“jaz.swf”,clip);
clip._x=(Stage.width-clip._width)/2;
clip._y=(Stage.height-clip._height)/2;
[/AS]
where “clip” is a MC where you load your stuff…

but if the alignment doesnt seem to center still… you can make a loop until the movie is fully loaded… or create an enterframe function and delete the enterframe after a couple of seconds…


_root.createEmptyMovieClip("clip",0);
loadMovie("sample.swf",clip)
this.onEnterFrame=function(){
clip._x=(Stage.width-clip._width)/2;
clip._y=(Stage.height-clip._height)/2;
}

…hope that helps…

nox i will do as u said in other projects, but this one is complete and i m just curious how to do wat i was tryn to do… loading an external swf file on a perticular position =)
Thanx for ur suggestion, i m gona try it.