Exact Positioning of Movie Clips

I need some help on how to figure out the script for
positioning mc's after the .swf resizes to fit the browser window.
Some direction, examples or a tutorial guide would be great.
Ideally i want to bring an external .swf into an empty mc and
position that exact center both horizontal and vertical. any help
would be greatly appreciated.

it would be centered if you set the width and height of your
swf to be "100%" in your html code and in the fla set the stage not
to scale:
Stage.scaleMode = "noScale";

Similar Messages

  • Movie clip plays onRollover?

    When someone rolls over a button, I would like it to play a
    movie clip.
    I place the movie clip on the rollover state though it is not
    working.
    1. Am I doing this right?
    2. What if I want the movie clip to play somewhere else on
    the stage.
    How do I position the movie clip while in button edit mode so
    it is in
    the location I want it to be when it is actually placed on
    the stage?
    Thanks.

    dave wrote:
    > When someone rolls over a button, I would like it to
    play a movie clip.
    > I place the movie clip on the rollover state though it
    is not working.
    >
    > 1. Am I doing this right?
    Not really the right way. Tho, You can place movie clip in
    over state of the
    button but then you have no control over it as the states
    reset as soon as you
    move the mouse out of the HIT area. You need to place the
    clip outside of the
    button, give it instance name and target that instance name
    using button handlers,
    like on roll over or on press.
    > 2. What if I want the movie clip to play somewhere else
    on the stage.
    > How do I position the movie clip while in button edit
    mode so it is in
    > the location I want it to be when it is actually placed
    on the stage?
    button with instance name myBtn and movie clip with instance
    name myMovie.
    On timeline frame following action:
    myBtn.onRollover = function(){
    myMovie.play();
    Best Regards
    Urami
    "Never play Leap-Frog with a Unicorn."
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Movie clip path

    Ok this is driving me crazy. It is pretty simple. I just want
    a button I click to tell another movie clip to gotoAndPlay(2); and
    when I click the button nothing happens. I know the path is correct
    because I have the other movieclip in the _root section and it is
    named site_mc so the actionscript says on(press){
    _root.site_mc.gotoAndPlay(2); } and nothing happens. any
    ideas?

    The buttons are working. I am not sure what was wrong other
    than operator error. I do notice the movie clip has a white margin
    on the left and a white margin on the top. What parameter should I
    be using to center the movie clip in the window and to position the
    movie clip at mid spot of the scrollable instead of at the
    top?

  • Absolute X Y position of a movie clip

    Hi
    Can anyone tell me how to access the x y position of a
    movieclip on stage.
    I place each thumbnail image into a movie clip then I place
    that movieclip into another movie clip.
    I am trying to make a tooltip pop up appear over the image so
    in my mouseout event I check the x, y position of the movieclip
    that contains the thumbnail image. I get the x, y position of the
    movie clip relative to the x,y of the outer movie clip and not the
    stage.
    Does anyone know how I can find the x,y position relative to
    the stage?
    Thank You

    movieClipName._x will give you your x coordinate, and _y will
    give you the y coordinate. This is the point where the MovieClip's
    reference point is on the stage. If you position the contents of
    the MovieClip at 0,0, then this point will be the upper left corner
    of your movie clip. If you center the reference point, then it will
    be where the center of the MovieClip is on the stage.
    Hope this helps

  • Dynamically placing movie clip at the angle and global position of a mouse click (button) which is constantly rotating.

    Does anyone know the code for finding the global positioning of  X & Y co-ordinates of a click of a button which is constantly rotating,
    and then secondly the code for when you click on the button it  displays a movie clip on top of it -(position of x & y when clicked) at the angle that you clicked it  (so underneath the buttons are still rotating so other people can click them where they are)
    to explain the context, I'm trying to design a mock up of a circular interactive table
    when someone comes up to it and clicks on one of the buttons that are moving, it reads where the person clicked it and opens up a new box (movie clip) where they clicked it (at the angle) so its not upside down if you are at the top.
    I've included my .fla file which shows the four buttons moving and a little diagram
    explaining what I'm trying to do.

    yourbutton.addEventListener(MouseEvent.CLICK,f);
    function f(e:MouseEvent){
    var yourmc:MovieClip=new YourMC();
    yourmc.x=e.stageX;  // if you want the mouse position where the button was clicked.  else use e.currentTarget.x and e.currentTarget.y
    yourmc.y=e.stageY;
    yourmc.rotation=e.currentTarget.rotation;
    addChild(yourmc);

  • Positioning movie clips with AS

    I'm using the following code to position some text clips on
    the stage. But the weird thing is, the clips positions come out
    differently than if I position them manually from within Flash.
    For example, if I set the Y position of a clip to 250 in the
    Properties Inspector, it comes out to be positioned at 250, but if
    I even write in the code textBox._y = 250, it comes out differently
    (about 10 pixels above 250).
    Anyone have any idea what I'm talking about, or what's going
    on here?
    Thanks!
    //space out the text clips
    for ( i=2 ; i<8 ; i++ ){
    textClipName = "text" + i;
    this[textClipName]._y = ((i-1) * 250);
    }

    check the registration point of your movieclip.

  • Movie clip position

    My questoin is, how can I setup an
    alight(left,right,botton...) for a especific movie clip, whenever
    the windows size.
    I want this movie clip alight on the right side of the
    windows either if the windows be resized.
    an example here :
    http://www.podmedialtd.com/
    The city is aways on the right side.
    Can anyone help me
    Thank you.

    I got it..
    var stageListener = new Object ();
    stageListener.onResize = function(){
    test._x = (Stage.width / 2) + tste._width;
    Stage.addListener(stageListener);
    Where test is the variable name of your movie clip.

  • Dynamically adding multiple instances of a movie clip to the stage with one button

    hello,
    I was wondering if there was a way to add several instances
    of the same movie clip to the stage dynamically utilizing one
    button.
    I can do one with the following code placed on the button...
    on (release) {
    attachMovie ("filledCircle", "filled1", 5);
    filled1._x = 370;
    filled1._y = 225;
    But I want the user to be able to hit the button again and
    get yet another instance of "filledCircle" on the stage.
    I also want the user to be able to drag these instances
    around...
    Any help would be appreciated...
    Thanks,
    Muhl

    Muhl,
    > I was wondering if there was a way to add several
    > instances of the same movie clip to the stage
    > dynamically utilizing one button.
    Sure thing.
    > I can do one with the following code placed on the
    > button...
    >
    > on (release) {
    > attachMovie ("filledCircle", "filled1", 5);
    > filled1._x = 370;
    > filled1._y = 225;
    > }
    Gotcha.
    > But I want the user to be able to hit the button again
    > and get yet another instance of "filledCircle" on the
    > stage.
    You're in luck, because this isn't very hard to do. The main
    thing to
    keep in mind is that each instance must have A) its own
    unique instance name
    and B) its own unique depth. In your example, the instance
    name is filled1
    and the depth is 5. The next clip's instance name should be
    filled2 at a
    depth of 6. Then filled3, depth 7, and so on. You can use a
    single
    variable to handle the incrementation.
    // code in a frame
    var counter:Number = 1;
    // code on your button
    on (release) {
    attachMovie ("filledCircle", "filled" + counter, counter +
    4);
    With me so far? The variable counter contains the numeric
    value 1. The
    second parameter of attachMovie() is provided with a
    concatenation of
    "filled" + 1, which makes "filled1". The third parameter is
    provided with
    the sum of counter plus 4, which makes 5. Obviously, we need
    a bit more.
    The button must, in addition, increment the value of counter.
    The ++
    operator handles this perfectly.
    on (release) {
    attachMovie ("filledCircle", "filled" + counter, counter +
    4);
    counter++;
    Now, it seems you also want to position the attached movie
    clip to (370,
    225). Are they call supposed to go to the same place? If so,
    you may use a
    second variable to hold a reference to the newly attached
    clip. Look up
    MovieClip.attachMovie(), and you'll see that the method
    returns the exact
    reference you need.
    // code in a frame
    var counter:Number = 1;
    var mc:MovieClip;
    // code on your button
    on (release) {
    mc = attachMovie ("filledCircle", "filled" + counter,
    counter + 4);
    counter++;
    mc._x = 370;
    mc._y = 225;
    Make sense?
    > I also want the user to be able to drag these instances
    > around...
    Then you need to handle a few events. You're dealing with
    movie clips
    here, so your best bet is to study up on the MovieClip class,
    which defines
    all movie clips. (Note, also, that the TextField class
    defines all input
    and dynamic text fields; the Sound class defines all sounds,
    etc. This is a
    very handy arrangement of the ActionScript 2.0 Language
    Reference.)
    // code in a frame
    var counter:Number = 1;
    var mc:MovieClip;
    // code on your button
    on (release) {
    mc = attachMovie ("filledCircle", "filled" + counter,
    counter + 4);
    counter++;
    mc._x = 370;
    mc._y = 225;
    mc.onPress = function() {
    this.startDrag();
    mc.onRelease = function() {
    this.stopDrag();
    Easy as that. You're simply assigning a function literal to
    the event
    of each new MovieClip instance as you create it. Take a look
    and you'll see
    each of these class members available to you -- that is, to
    all movie clips.
    MovieClip.onPress, MovieClip.startDrag(), MovieClip._x, etc.
    Wherever it shows the term MovieClip in the Language
    Reference, just
    replace that with the instance name of your clip -- or a
    reference to that
    clip (which even includes the global "this" property).
    David
    stiller (at) quip (dot) net
    Dev essays:
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • How do I position cropped audio clips?

    I have placed a bunch of photos in an iMovie project to create a slideshow with music. I am trying to place MP3 songs in various positions during the slideshow I'm trying to create. I understand that I have to use the crop markers to choose the portions of the audio clips I want to use. But I can't figure out how I then place the shortened audio clips in the exact position in the slideshow that I want.
    I cropped the beginning of a song in the timeline viewer, but then I can't figure out how to move the cropped song to the very beginning of the slideshow.
    I've never used iMovie before and I am a complete novice. So, please keep this in mind when giving me instructions...
    Thanks,
    Bill

    This is how my students do it. Drag or import the song to the empty track under where your pictures are on the time line. My students like to crop on the timeline so they slect the music by clicking on it and it turns dark purple. Move the coursor to where you want to make the cut and type "Apple-T" (at the same time). This wil place a cut on the music track. Now place a cut where at the other end of where you want the music to end. Finally click on the unused track to make the music track go back to the lighter color. and click on the piece you want to delete. It will turn dark again and type "Apple-X" and it will delete.
    Grab your music track with the mouse and drag it to where you want it. Lock it by placing you coursor on the music track and the video clip, click the music track to darken it and go to the advanced pull down and select "lock clip at playhead". If you did it right 2 tiny thumbtacks will appear.
    This is just one way to do it.

  • Center movie clips dynamically, as3.0

    Hi.  I have seen this discussed both on Adobe Forums and other sites but I can't seem to make sense of the code supplied by what I have seen thus far.
    I am trying to center display objects that are added to the stage at runtime dynamically through a basic drawing application.
    the code is something like this:
    1. add an event listener for the drawing event.
    2. add the path you want to draw to a container movie clip on the stage.
    3. add an enter-frame event listener to change the scale of the path randomly .... and this is the moment i want to change the default top,left registration point to the center,center of the path.  each path has its own registration point as i can tell thus far but at this point the scale is happening from the top,left of the container rather than about the path's own self.  and if it were to happen about the path i would have to get the bounds of the path and do some averaging to center the registration point.
    unfortunately i don't know what the code looks like to achieve what i'm trying to get.
    any help is appreciated.  thanks in advance.

    Well if using the graphics.lineTo method is Bitmap data then that is what I'm using.  But each call to the shape that I'm drawing is a new Shape(); .  The second paragraph you wrote seems a bit daunting when viewing it in the abstract sense.  Your first reply was a bit more concrete but I guess the first response didn't account for everything being in one container.  Should I create a container2 Movie Clip and create that as a new box on a per-shape basis so that I have multiple container2 mc's in the following path:
    container.container2[i].shape[i] where i would be an index (such that i++) though the code wouldn't be written exactly that way. ?
    (To store localX,Y positions in an array or vector shouldn't be too hard but I would need to try it several times before I get it right).

  • Boundary for movie clips following the mouse

    here's my AS...
    myInterval = setInterval(KBMOglobal,15);
    function KBMOglobal () {
    KBMOglobal1._x -= (KBMOglobal1._x - _xmouse)/10;
    KBMOglobal1._y -= (KBMOglobal1._y - _ymouse)/10-2;
    ok, so my movie clip follows the mouse around, with a small
    delay and the y axis is slightly lowered. the stage of my movie is
    380 x 640. does anyone have any suggestions on how to create a
    boundary, equal to the size of my stage, that does not let the
    movie clips that follow the mouse extend past? does that even make
    any sense? essentially, i would like the movie clips to follow the
    mouse, the entire movie clip stay visible on the stage. because of
    the positioning of the items on the stage that initiate this
    function, i only have to consider the width of each movie clip,
    which luckily is a constant = 200. does that make any sense? let me
    try this all again....
    how do adjust the above function so that the movie clip,
    KBMOglobal1 (which has a width of 200) stay within the horizontal
    limits of the stage (which is 380)?
    thanks for your time and to everyone in this forum that has
    been so very helpful with all my questions in this project so far,
    yall rock!

    quote:
    Originally posted by:
    NickTheNameless
    this is almost working perfectly, however i need to adjust
    the boundary of the x axis. for some reason, the movie clip stops
    following the mouse when it reaches half way across stage,
    horizontally.
    would you please be so kind to explain what your script is
    doing? because i'm not a total idiot, i realize i could probably
    replace 380 with 760 (double the width of the stage) and it would
    work as expected. however, if you could spare the time to explain
    what the following two lines are doing, step by step....i'll give
    you my first born.....
    KBMOglobalGeneralCancelDispatch._x<0?KBMOglobalGeneralCancelDispatch._x=0:KBMOglobalGenera lCancelDispatch._x;
    KBMOglobalGeneralCancelDispatch._x>380-KBMOglobalGeneralCancelDispatch._width?KBMOglobalG eneralCancelDispatch._x=380-KBMOglobalGeneralCancelDispatch._width:KBMOglobalGeneralCancel Dispatch._x;
    thanks again for your time!
    do you know ?: operator? it is like if...else... statements,
    when we say:
    somethingIsTrue ? do1() : do2();
    it is exactly same meaning like:
    if (somethingIsTrue) {
    do1();
    } else {
    do2();
    Now, we look at this line:
    KBMOglobalGeneralCancelDispatch._x<0?
    KBMOglobalGeneralCancelDispatch._x=0:
    KBMOglobalGeneralCancelDispatch._x;
    it is same like
    if (KBMOglobalGeneralCancelDispatch._x<0) {
    KBMOglobalGeneralCancelDispatch._x=0
    } else {
    KBMOglobalGeneralCancelDispatch._x

  • Keyboard short cuts to move clips

    I simply want to move a clip about 2 pixels to the right. The arrow keys don't do it. I tried every keyboard shortcut I could think of to move the clip the few pixels that I need. Doing it with a mouse is painstaking and not accurate. Is there a way to move clips and images with the key board?
    Also, I want to be able to set the dimensions of the movie different than the presets when I start a new project. Basically, I am resizing the video to look like it fits in a tv screen. I want the video to be the dimensions 960x640. And then import videos into the project.
    Anybody got suggestions.

    Neale has addressed the change in the Fixed Effect>Motion>Position, via typing in the exact pixel coordinates. One can also scrub those numbers, but to be exact to a pixel x pixel coordinate, typing in the exact attribute is the best, and quickest.
    As for the Projects' Frame Size, one is relegated to the Frame Sizes provided in the Presets. To get full custom Frame Sizes, one would need to go to PrPro, which allows one to customize almost every attribute in a Sequence (think mini-Project inside of the Project).
    Now, in PrE, one can Import Source Footage of a different Frame Size (pixel x pixel dimensions), leave the black bars around it, and then, depending on the Export/Share format, can Crop in the output. However, that capability will depend on the chosen output format.
    Good luck,
    Hunt

  • How do I place a movie clip that starts paused?

    I'm using the latest version of Keynote, and I present a lot of movie clips in my presentations. Ordinarily, I've been using Powerpoint, but I want to switch to Keynote. When I place a movie clip on Powerpoint, in presentations the movie begins paused, and I start it playing on the next mouse click. I can't seem to find an analagous control for movies in Keynote- every time I place a video clip, it begins playing immediately in presentation mode. I would really rather not have to take the time each time I introduce another movie to move the mouse, and physically pause the clip while speaking. Can someone please help?

    As far as I know you can't do this.
    The workaround I use is to do a screen capture of the first frame of the movie clip. I then have this on the slide in the position of the movie. The movie is then placed on the slide in the same position with a transition of "appear" with "on mouse click". This will do exactly what you want; the slide appears with the still image and when you mouse click the movie will appear (this will not be perceptible to the audience) and start playing.
    I use lots of movies in my presentations and this works well.
    Use the inspector for accurate sizing and positioning of the image and movie, and once you are happy with these I would suggest "locking" them so they can't get accidentally nudged.
    Hope this helps.
    David

  • Movie clips within movie clips

    I have a movie clip (I'll call it B_mov) inside another movie
    clip (A_mov). When you click a button in A_mov, B_mov plays. At the
    end of B_mov, I used stop(); to make it stop. How do I return to
    A_mov from there? I assume this is ActionScript territory.
    This is coming from someone who has just taken his first baby
    step into AS, navigating a single timeline via buttons, but I have
    no idea how to move between different timelines.
    Is this something that can be easily explained? If it's
    really complicated, I don't want to burden anyone.
    ...Would I be better off finding an online AS tutorial? Can
    someone please point me in the right direction?

    supaaman,
    > I have a movie clip (I'll call it B_mov) inside another
    > movie clip (A_mov). When you click a button in
    > A_mov, B_mov plays.
    Okay.
    > At the end of B_mov, I used stop(); to make it stop.
    Makes sense so far. :)
    > How do I return to A_mov from there? I assume this
    > is ActionScript territory.
    Well, you've already entered ActionScript territory by
    programming your
    button and adding that stop() action, so that's a good thing.
    When you say
    "return to A_mov," what do you mean? What would like like
    A_mov to do at
    this point?
    > This is coming from someone who has just taken his
    > first baby step into AS, navigating a single timeline
    via
    > buttons, but I have no idea how to move between
    > different timelines.
    Timelines are synonymous with movie clips, and movie clips
    are defined
    by something called the MovieClip class. In fact, all objects
    in
    ActionScript are defined by corresponding classes (text
    fields are defined
    by the TextField class, arrays by the Array class, and so
    on).
    Thinking of it this way, you can consult the MovieClip class
    entry of
    the ActionScript Language Reference (the Help panel) to find
    out everything
    you need to know about movie clips. The characteristics of
    the object are
    called properties (you'll find references to width, height, x
    and y
    position, etc.). Things the object can do, such as stop(),
    play(), and the
    like, are called methods. Things the object can react to --
    mouse clicks,
    for example -- are called events.
    You haven't stated what version of ActionScript you're
    using, and the
    exact wording of your code depends on that, but for example,
    in ActionScript
    2.0, you'll find that movie clips have a _parent property (in
    ActionScript
    3.0, it's simply parent). This property allows the movie clip
    in question
    to refer to its parent timeline (that is, its parent movie
    clip). That
    might be a step in the right direction for you, but I'm not
    sure what you
    have in mind.
    Instead of simply invoking stop() in the final keyframe of
    B_mov, you
    might do something like this:
    stop();
    _parent.play();
    ... which invokes the MovieClip.stop() method on B_mov's
    timline (because
    that's where the reference to stop() appears: in B_mov's
    timeline) and then
    makes a reference to B_mov's parent via the MovieClip._parent
    property.
    That reference therefore invokes MovieClip.play() on A_mov.
    The reason it works here is entirely because of the point of
    view from
    which the code operates: namely, keyframes in B_mov's
    timeline. If your
    code were all on the main timeline, your methods would be the
    same -- stop()
    and play() -- but your object references would be different.
    Does that make sense?
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • In Premiere I can edit an avi or mov clip but I can not save the result as a like file.  Why not???

    In Premiere I can edit an avi or mov clip but I can not save tghe result as a like file.  What do I have to do???  It only saves a project.  Under 'File' the 'Export' function is greyed out.  I need help baddly.
    [email protected]
    Bill Schoon

    Boatbuilder
    Let us start from the beginning.
    It has been established that you have Premiere Elements 10. On what computer operating system is it running?
    There has not been a File Menu/Export/Movie export opportunitity in Premiere Elements since version 7. We are not up to version 12.
    For Premiere Elements 10, your export opportunities are all in Share/ including one for Computer. Under Computer there are several choices. The ones that you see are Adobe Flash Video, MPEG, and AVCHD. The others you have to scroll down to. And those choices are AVI, Windows Media, QuickTime, Image, and Audio. You do not have to use the scroll bar for this. You can click on Adobe Flash Video panel to get it to turn black. Then use the down arrow to go down the list and the up arrow to go up the list. Once you get to a category, you can select a preset and go with it or customize it under the Advanced Button/Video Tab and Audio Tab of the preset.
    If you post the properties of your source media that you want to try to match in the export, I would be glad to suggest the exact settings for you.
    We will be watching for your follow up with details.
    Thank you.
    ATR
    Add On...The Premiere Elements 10 File Menu is for more than Saving, just not exporting. One of the key features that can be access there is the Project Archiver. More on that another time.

Maybe you are looking for

  • Bug? - 'Remove Processes Dialog' Does Not Fit On Screen

    When I remove a bunch of Processes from the DSM the Dialog is bigger than the screen making the buttons appear off screen. Good thing the Ok is in focus, but the message should really be truncated to fit on screen. Certified LabVIEW Architect * LabVI

  • Error 'CoverSize' during Blurb upload

    I am trying to upload a book (small square / softcover / ProLine Uncoated, 34 pages) to Blurb. But during this (after the rendering of all the pages, after uploading of the cover and pages, during 'Waiting for Blurb Server Processing) the process sto

  • Picture won't display in web browser

    Hi Everyone, I have a website that I have created and I place a graphic in .jpg and also .png format inside of a div tag on the left side of my page template. When I go to view the web page everything else on the page will display except for this gra

  • Wil Adobe AIR run on a VIA C7 M CPU?

    Hi, We're looking at machines to use with Adobe AIR. This most be very low cost machines. Would the specs below be suffiecient for a animated user experience? VIA C7 M 1.6GHz MB 1GB RAM 8GB Flash(Disk on module) SATA It's not intel, only the standard

  • Help with multi camera editing in Premiere Pro

    Ok I'm new...so bear with me. I am editing a basic interview shot on two cameras and cutting away to some still images. The rushes are 4 lots of film about 10 mins in length. I inputted the footage from the two cameras and created a new sequence for