View Full Version : Load movie
ukiran
March 2nd, 2003, 01:06 AM
Hi!
I would like to know how to load a movie in a particular postion(centered) in the current movie.I'll be glad if someone can help me out with this soon.Thanks! :)
kode
March 2nd, 2003, 02:51 AM
hey ukiran =)
when a movie or jpg is loaded into a movie clip .. the upper left corner of the movie or jpg will be placed at the registration point of the movie clip.
what the hell is the registration point ?? :crazy:
http://www.kirupa.com/developer/mx/rpoint.htm
based on that .. you can easily place them wherever you want :)
here's an example on how to center it automatically ..
CyanBlue
March 2nd, 2003, 03:12 AM
Good example, kax... ;)
The only problem ukiran will have is to figure out the instance._width and instance._height part when the external file is loaded dynamically... See this thread (http://www.kirupaforum.com/showthread.php?s=&threadid=16411) to see how to solve that problem...
Once you understand what kax did and what I did, all you need is to combine two to get what you want to achieve... :cowboy:
ukiran
March 3rd, 2003, 01:33 AM
Thanks guys!That was really helpful!
kode
March 3rd, 2003, 03:27 AM
no problem ukiran =)
CyanBlue
March 4th, 2003, 12:26 AM
;)
ukiran
March 4th, 2003, 12:48 AM
I tried the following code to find out the dimesnsions of the loaded swf file,but it isnt working...mwidth and mheight take values=0.(container is an empty movieclip...)
on (release) {
loadMovie ("orgScreenShot.swf", "container");
mwidth=container._width;
mheight=container._height;
}
How do I fix this?
CyanBlue
March 4th, 2003, 01:03 AM
Hey, ukiran...
That's called crossposting and it is considered read bad... Please post ONE thread and do not post multiple threads with it... Also, this question has nothing to do with your previous question... Know what I mean??? :evil: I have answered real quick on the other thread...
ukiran
March 4th, 2003, 03:26 AM
I'm sorry! I'm new to such forums ...so I didnt know..It wont happen again.
CyanBlue
March 4th, 2003, 04:06 AM
Thank you... ;)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.