Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calling swf file 2

Status
Not open for further replies.

Parcival21

Technical User
Aug 27, 2002
186
DE
Hi there,

This is probably a really easy question for you but I worked on it now for some hours and I don't seem to find a way to solve my problem.
I have a swf.file call it Intro.swf with buttons coming up on the end of the Intro.
After pressing on the button I want the flash player to switch to another swf file(call it pictures.swf).

I tried something like:
on (release) {

loadMovie("pictures.swf", _level1);

}

An empty screen(with the background colour) appears and nothing happens.
I don't really understand how layers work.
Do I make a mistake with the layers?

Thank's for any help,

busche
 
on (release) {

loadMovieNum("pictures.swf", _level1);

}

is what you want mate.
 
Hi Sceamsid,

Thank's for answering.

I tried it but still the same thing happens. When I hit the button I get an empty background.
I don't really understand why.
Could it be the problem that my Intro.swf is on level0.
I have to correct my first statement.
It's not that I don't understand the layers, I ment I don't understand the levels.
Sorry for that mistake.

Thank's,
busche
 
have you made it so that the swf you're loading is the same stage size as the one you're working in?
 
Yes it has the same size, it's even the same background the two swf files use.
Î tried something and changed the backgroundcolor of pictures.swf but the collor stays the orange of the Intro.swf. after hitting the Button. Anything else vanishes.
So it seems as if the movie isn't even loaded.
 
why do you want this swf to load exactly? You could load it into a MC as well if it's for picture based swf's.
 
Well I don't really know what to do.
To your suggestion.
Do you mean I create an emty movieclip over the whole stage and load the swf into the movieclip?
How does that work exactly?
 
there a several ways. the most common reason i've found for loadin swf's is to cut down on clutter on a fla or loading issues.

but if it's mearly to clear up then just use another scene.

But if you want to load a swf into a another empty MC then just give the MC and istance and then were you would have _level1 you want the path to the mc. use the target tool to be more specific with that.
 
to load into an empty clip

insert>new symbol>movie clip

click back to main stage

open the library and drag a copy of the empty clip you just created onto the stage and position it where you want the movie to load.

through properties give this clip an instance name (clip, say)


for the button

on (release){
loadMovie("pictures.swf",clip)
}

assumes pictures.swf is in the same folder as the intro file
 
Thank's a lot guys.
This should work.

Thank's again,

busche
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top