Flash Help- load movie
I'm trying to load a swf using
on (release) {
loadMovie ("backgroundone.swf", "bg");
}
How can I align the swf to the center of the bg box instead of the bottom right corner?
I'm trying to load a swf using
on (release) {
loadMovie ("backgroundone.swf", "bg");
}
How can I align the swf to the center of the bg box instead of the bottom right corner?
theprofessional posted this at 20:32 — 2nd April 2002.
They have: 157 posts
Joined: Mar 2002
setProperty (_level1, _x, 100);
setProperty (_level1, _y, 100);
would go after the loadMovie(...);
This sets the loaded movie 100px down and 100px right of the top left of the main movie.
TonyMontana posted this at 21:02 — 2nd April 2002.
They have: 218 posts
Joined: Apr 2001
In this case, you are loading the swf into an empty container MC called 'BG' which resides on the stage, the top left corner of the loaded .swf is represented by the 'bg' MC object. Therefore, you need to reposition the 'bg' mc on the stage.
TonyMontana
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.