How can I display a Movie clip from library on stage in AS3?

Hi,
I have a movie clip in my library and I would like to display it on the stage using AS3.
do I have to define it as a variable?Do  I need to use this code:  addchild(movieclip);
can I use the 'x' and 'y' to position it?
What would the code look like?
Ben.

Great! it works  well ! thanks
But I have another question, if I wanted to used the same movie clip but postion it at different x and y positions when a different btn is selected how could I do that?
Would I have to make a copy of the movie clip and give it a different name?
or is there an better way around it?
Ben.

Similar Messages

  • How can i transfer/import movie clips from iMovie Events back to iPhoto Library?

    hi, my camcorder only records AVCHD format and so i have to import the camcorder videos into iMovie as an iMovie Event.
    i'd like to keep both photos and movies managed under iPhoto library instead.
    can someone please please help me how i can transfer the movies imported into iMovie, BACK TO iPHOTO?
    thank you!

    Process the Movie in iMovie then export it as a mov file to the finder and then import to iphoto.
    Regards
    TD

  • How can i let a move clip complete his motion tween movement after dragging and dropping it

    hi how can i let a move clip complete his motion tween movement after dragging and dropping it
    i am using this code and there is a motion tween applies to the movie clip r_mc
    r_mc.addEventListener(MouseEvent.MOUSE_DOWN,fun); r_mc.addEventListener(MouseEvent.MOUSE_UP,fun2); function fun(event:MouseEvent):void { stop(); r_mc.startDrag();
    function fun2(event:MouseEvent):void {
    play(); r_mc.stopDrag();

    i have a simple .fla file wich contains MC that has
    a motion tween(its moving from the left to the right of the stage)
    this motion tween covers the whole time line (  there is only 50 frames in the time line)
    i mean in the frame 1 the MC appears in the left of the stage
    and in the frame 50 the MC appears in the right of the stage and there is a motion tween between them
    every thing till now working well
    i want to make that MC dragabble
    so when i drag the MC i will use stop()
    and when i drop it i will use play()
    but the problem is that the mc doesnt move and complete
    his motion tween movement when i drop it
    for example the MC will be in the middle of the stage in frame 25
    in this frame (25) i am draging the MC ,stoping the timeline,dropping the MC and resum playing the timeline again
    but the MC freezes in the middle of the stage and doesnt go to the right of the stageo until the flash loops and start from the frame 1 again
    here is the example wich i am worikng on
    http://www.mediafire.com/?ia47r4owha7sz8v
    thank u very much and sorry for my bad English

  • How can I display the HTML page from servlet which is called by an applet

    How can I display the HTML page from servlet which is called by an
    applet using the doPost method. If I print the response i can able to see the html document. How I can display it in the browser.
    I am calling my struts action class from the applet. I want to show the response in the same browser.
    Code samples will be appreciated.

    hi
    I got one way for this .
    call a javascript in showDocument() to submit the form

  • How can I display a move on my iPad on Apple TV?

    How can I display a move on my iPad on Apple TV?

    http://store.apple.com/us/product/MC953ZM/A?fnode=MTc0MjU4NjE

  • After copying a movie to the harddisk of my MacBook I wanted to also copy it to my iPad, but for this you first have to copy it to the library in iTunes, but this doesn't seem to be working. So how can I get this movie to the library ? And to the iPad ?

    After copying a movie to the harddisk of my MacBook I wanted to also copy it to my iPad, but for this you first have to copy it to the library in iTunes, but this doesn't seem to be working. So how can I get this movie to the library ? And to the iPad ?

    How is it not working?  And how are you doing it?  Drag the movie onto the iTunes icon on the Dock...  what happens?

  • How can I export trimmed video clips from iPhoto?

    I have video clips from a kid's sporting event that I need to send to other parents on the team. I've got 73 clips that have been loaded from an SD card, and I've trimmed the length on about half of them.
    I'm trying to figure out the best way to export them from iPhoto. When I select 'Original', I get the full-size files, but they're not trimmed. I can drag and drop the clips from iPhoto to a folder, and I do get files that are trimmed correctly, but they're very small (around 12K), so I'm guessing that they link to files on my own hard drive, and won't work if I send them to somebody else.
    I am guessing that I could fix the problem manually by making a list of videos that I trimmed, opening each one of the 12K files files in QT Player, and saving that movie. This creates a full-size movie file which is the right file size for the trimmed portion. However, I'd like to be able to do all of this in a single batch operation. Is there a solution for this?

    You can't. Trimming inside iPhoto stays inside iPhoto. (Does that have a familiar ring to it?)  All trimming must be done outside of iPhoto with Quicktime Player.  So export the clips to a folder on the Desktop and do the trimming there.
    OT

  • How do I stop a movie clip from looping

    I am using Action Script 3 and the 'stop()' function is not working to stop my movie clips from looping continuously.
    I have added the 'stop()' function to the last frame on the timeline of each movie clip.
    I originally built the .fla file in Flash CS6 using Action Script 2 where it was working with no problems (I have since upgraded and don't have access to CS6 anymore).
    I have all the separate movie clips positioned on Frame 1 of my main stage with the following script to start them playing:
    Cigarette_Reveal.play();
    KickTheHabit.play();
    BallMove.play();
    BallFlip.play();
    Offer.play();
    I want each of these movie clips to stop playing after one animation sequence is complete.
    Please help!

    Turn on strict mode in your publish settings. This will allow you to see the compiler errors that are preventing the actionscript in your fla from compiling correctly.

  • How can I remove all video clips from my library?

    I noticed my library is up to 23 gigs! Last I checked, it was around 9. The only thing I can think of is that my new canon camera takes great videos, and all summer I've been using it on vacations and things where I didn't have my video camera. So, I'd like a way to find them so I can drag them to a folder I make on my desktop. Then I can incorporate into iMovie if I want, or just burn a dvd or something.
    I have TONS and TONS of photos, and it would take me quite some hours to manually scroll through looking for the movie icons in the browser.
    Any ideas on how to view ONLY the movies for example?

    SynterX
    When you import movies they automatically get a 'movie' keyword, so: New Smart Album : Keyword is movie
    The Select them, export them using the File -> Export dialogue and when you're sure they exported safely, trash them from iPhoto.
    Regards
    TD

  • I Can't stop my movie clip from looping

    This is probably an easy fix, but I obviously can't get it. Below is the actionscript to loop my movie clip, but once it's activated, I can't get it to stop. I thought it would stop at 3. What did I miss??
    Any help? Flash 8 (CS2).
    on (rollOver){
        for (i=0; i<=3; ++i){
            audio_mov.duplicateMovieClip("audio_mov" +ii);

    remove the stop() from the first frame of blur and assign your button an instance name (eg, btn).  then see if this does what you want:
    blur.stop();
    var tl:MovieClip=this;
    btn.onRollOver=function(){
    blur.play();
    btn.onRollOut=function(){
    tl.onEnterFrame=function(){
    if(blur._currentframe==1){
    blur.stop();
    delete this.onEnterFrame;

  • How can i hide a movie clip?

    is it possible for me to hide a movie clip by the press of a button that is on a differant timeline?
    here is my code for button.
    stop();
    submit_btn.addEventListener(MouseEvent.CLICK, subClick);
    failed_txt.background = false;
    failed_txt.border = false;
    var myName:String;
    var myPass:String;
    function subClick(event:MouseEvent):void{
    myName=name_txt.text;
    myPass=pass_txt.text;
    if(myName == "gallery" && myPass == "password"){
      gotoAndStop("hidden");
    } else{
      failed_txt.text = "Please enter a valid password.";
    Many thanks.
    Michael Down

    Yes, it should be possible, but you need to provide some explanation of what you want it to do that it doesn't.  How are things on different timelines and what symbol is supposed to be getting hidden?

  • How can I get my movie clip to resize according to screen size?

    I have a movie clip (startMenu); inside it there are buttons, text, and graphics. This is a game I am making, and it will be played on different screen sizes of Android. This is the code I have so far:
    stage.scaleMode = StageScaleMode.NO_SCALE;
    stage.align = StageAlign.TOP_LEFT
    startMenu.addEventListener(Event.RESIZE, resizeLayout);
    function resizeLayout(e:Event):void
        setPosition();
    function setPosition():void
         startMenu.x = (stage.stageWidth - startMenu.width) / 2;
            startMenu.y = (stage.stageHeight - startMenu.height) /2;
    When I run it on different phones using debugging, it locks on the left hand corner, but does stretch out to fit the whole screen. What should I do?

    try changing
    stage.scaleMode = StageScaleMode.NO_SCALE;
    to
    stage.scaleMode = StageScaleMode.EXACT_FIT;
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/StageScal eMode.html

  • How can I import "extracted audio" clips from iMovie project into iTunes?

    I imported my home video into iMovie HD 6.0.1 and extracted the audio. How can I get the extracted audio clip (aiff format) into my iTunes playlist?

    Genny,
    I just tried to answer your question over in the iMovie forum. Have a look over there.
    Matt

  • How can i remove a movie clip container

    Hallo friend,
    I am dealing with this problem.
    In the first frame of my project i am designing a movie clip
    dynamicaly - with action script 2 - which i use as a container in
    order to fill it with attachments to other movie clips and with
    text boxes which i make dynamically too.
    The problem is that i want to delete this container in order
    to have a quickly way to delete the object that contains, but i
    can't find a way to do this.
    I have tried the functions removeMovieClip() and
    unloadMovie(), but there was no result.
    Please, can somebody help me with this ?

    Friends forgive me for my absence but i do had a very
    defficult period, as i wal looking for new job.
    Enyway, now i have time and tommorow i will post the code, in
    order to let you understand the way i build it.
    My friend, uomodicuore2 i use the correct path to the
    function unloadMovie() and removeMovieClip()
    Friend ric5611 i don't use flash components

  • How Can I Display the Name of iPhoto Library?

    I manage a huge number of images so I keeep them in their own iPhoto libraries. In order to change libraries, I have to rename the one I have just left and then restart iPhoto. I have looked for years but cannot find a way for iPhoto to display the name of the library it has open. I could remember the names of all my libraries if I was not forced to change them in order to leave them and go to another. Does iPhoto tell you the name of the library you have open?
    Thanks
    20"iMAc G5   Mac OS X (10.4.5)  

    Hi John,
    iPhoto 6 now shows the name of the library in the title bar of the iPhoto window. At least it did the other day for me.
    You can have a unique name for each of your libraries and use the Option key to launch iPhoto and choose to open another library, then navigate to the library, highlight it and click open.
    You can also use one of the iPhoto Library managers to switch between libraries.
    iPhoto Library Manager
    iPhoto Library Manager documentation
    this page will show you everything you can do with iPhoto Library Manager.
    You can also try iPhoto Buddy

Maybe you are looking for

  • My lyrics application not working

    When i downloaded the lylics application in my c7,it was working very fine. But after sometime,it is not working anymore. When i click on the icon,it never open again. I have deleted and download again several times still its not working. Please let

  • Please Help!  My Powerbook is deleting my files!

    Hello, I wanted to first say thank you to those of you who answer questions on this forum, and keep this great resource running! My question involves a problem I've previously had the Genius Bar at my local Apple store look at a few times, although t

  • IPad 2 wi-fi with iOS maps turn by turn?

    I have iPad 2 wi-fi. If I buy a gps receiver such as the Dual XGPS150a, will I be able to use turn by turn navigation with Apple iOS 6 maps, or will i need to buy an app such as Navigon with preloaded maps? I guess my 2 questions are: 1) Do I need da

  • Please explain on this interface

    can anyone help me on this Interface points that I have put in my resume to make a impressive resume...but it is not clear for me... Interfaces· . Sales order interface: Developed the inbound interface to create sales orders using BAPI_SALESORDER_CRE

  • Edit view not representitive of filmstrip view

    I am trying to edit backgrounds. I can see a background in the filmstrip view but not on the stage in edit view.. Whats up? I have included a screen shot.