View Full Version : movie clip size problem
shizzle 06-05-2003, 05:22 PM hi there... i need help cos im new to flash .. !!
i wanna know how i can size my movie clip inside my main movie to the exact pixel .. so nothing else is shown apart from whats in the measurement .. i tried to size the movie clip thru the proprty inspector .. but it sizes my main movie too.. and its really buggin me .. because i have a border around my movie clip and its out by just a little bit..
hope u have understood what ive written .. thanks for ure help in advance !
|
|
marchermann
06-13-2003, 08:28 PM
Originally posted by shizzle
hope u have understood what ive written ..
Not quite, actually ;-)
Still, here are some suggestions if the problem isn't already solved:
If the movie clip (MC) is already in your main movie (i.e. not being loaded later on), you could add something like:
onClipEvent(enterFrame) {
_width = 200;
_lenght = 300;
...
}
to the actionscript of the clip (like you do with buttons). This way you can place and resize the clip upon loading.
Hope that helps.
Marc
____________________________________
www.themarcside.com | www.kickerfilm.de
shizzle
06-14-2003, 01:39 PM
hey thanks for that reply man .. gonna try it out in a bit .. that should help tho !!! CHEERS!! !
eddy-3ddy
06-14-2003, 05:52 PM
enterFrame will repeat it every frame. This will slow your flash animation
try to create this in the first frame of your scene
_root.Onload = function() {
_root.nameMovie._width = 200;
_root.nameMovie._lenght = 300;
}
This script will run only once you started the SWF
marchermann
06-14-2003, 09:19 PM
Originally posted by 3ddy
enterFrame will repeat it every frame.
Oops, I ment onClipEvent(load), of course.
eddy-3ddy
06-15-2003, 09:29 AM
if you use a onClipEvent you need a movieClip. When you use a function U don't need extra objects, only a empty frame in the master scene.
CGTalk Moderation
01-15-2006, 08:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.