animation/movie clip alignment
#1
Posted 12 April 2006 - 11:09 PM
I imported the gif (in this case) to the stage and I am not sure how to move it because they are all set at 0 x 0 pixels and I want them exactly at 78 x 29. So I was hoping someone could tell me how to move all frames at once to that exact location.
I also wanted to know how to move movie clips from the library to the stage. I tried just dragging and dropping but it doesnt do anything.
I made some screen shots of what I am working on so you can see exactly what my problem is I hope this helps explains what I want to do.
Current alignment:
Desired alignment:
please any help would be extremely appreciated.
#2
Posted 13 April 2006 - 12:18 AM
yourmc._x = 25;// in pixels
yourmc._y = 25;// in pixels
hope it helps:)
Apprentice by:Funkysoul
Edited by sp0173d_24, 13 April 2006 - 12:19 AM.
#3
Posted 13 April 2006 - 12:31 AM
Edited by RottNKorpse, 13 April 2006 - 12:31 AM.
#5
Posted 13 April 2006 - 12:54 AM
#6
Posted 13 April 2006 - 12:56 AM
#7
Posted 13 April 2006 - 05:08 AM
attaching mc's from the library:
this.attachMovie("yourMC", "newMC", this.getNextHighestDepth(), {_x:100, _y:100});yourMC = the mc's linkage name in the libray
newMC = the mc's instace name as soon as it's placed into stage
It will be instantly positioned at x:100 and y:100px
for moving your mc during runtime, you can use this piece of code:
this.onEnterFrame = function() { newMC._x ++; // increases X position by 1px };
Every piece of code that I used is to be placed in the maintimeline..
#8
Posted 13 April 2006 - 09:35 AM
#9
Posted 13 April 2006 - 09:42 AM
#10
Posted 13 April 2006 - 09:46 AM
#11
Posted 13 April 2006 - 10:58 AM
loadMovieNum("loaded.swf", 99); //99 to be sure that no other object is on top of it...
if working on the IDE, just put the shield on the lowest layer
EDIT: Here a tut I found on P2L
http://www.webdesign...Movie_clips.php
Edited by funkysoul, 13 April 2006 - 11:02 AM.
#12
Posted 13 April 2006 - 04:05 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users