Putting movie clips in AS3 package into movie clip on stage

Hi - I am a as2/flash animator and am working on an AS3
project. The AS is in a separate file, inside a package. I am
modifying existing code.
The script adds movie clips in a function via addchild.
What I am hoping to do, is have the movieclips added to a
clip that already exists on the stage.
I put a clip on the stage named holder, with the instance
name holder_mc - and I tried to add the clip with
holder_mc.addchild in the AS3 file - it seemed to work, but
manipulating the holder_mc - it looks like the added clips are not
affected?
Any help is appreciated.

Child_array is a property of the Parent class.
It's only added to in one point, in a function that creates a
Child and adds it to the array.
I think I might have found out the problem with my code after
adding a trace to the function, think I'm creating twice the number
of clips I'm removing, and the deletion part of my code is fine!
Turns out AS3 is maybe not so bad after all :P
Thanks alot for taking the time to reply though kglad!

Similar Messages

  • Downloading Youtube clips off of net into .mov files-is this possible?

    Hello, is there a way to download a youtube clip off of the internet and get it into a .dv or .mov file? I would like to get it into a quick time file and onto a CD. I will post this in the other forums, but if anybody has a solution, I appreciate it. Thanks.

    Yes it is very easy.
    First, download Perian
    http://perian.org/
    no Quicktime user should be without it, but I don't know whether you need it for this exercise, as I already had it when I started using Youtube.
    In the Window menu of Safari, choose Activity.
    You will see all elements of the page-
    Double-click the element which is of the flash movie file (this is usually the largest one if loaded, or the one which is still loading if movie is still loading)
    The flash movie will download, but you need to add .flv file extention on the end of the filename.
    It will then work with Quicktime, just like any other movie.

  • Successfully imported external swf, can not put it into movie clip

    Hello all,
    I have started learning AS3 and gradually getting used to, trying to put external swf into movie clip.
    Successfully imported target swf and put into stage, when I publish this I see target swf is playing.
    import flash.display.MovieClip;
    var BGLoader:Loader = new Loader();
    var BGurl:URLRequest = new URLRequest("HomeBG.swf");
    BGLoader.load(BGurl);
    BGLoader.y = 0;
    BGLoader.x = 0;
    addChild(BGLoader);
    As next step I want to put this swf into movie clip and get more control, but when I publish bellow only I see is empty background, without any errors.
    import flash.display.MovieClip;
    var BGLoader:Loader = new Loader();
    var BGurl:URLRequest = new URLRequest("HomeBG.swf");
    BGLoader.load(BGurl);
    BGLoader.y = 0;
    BGLoader.x = 0;
    //addChild(BGLoader);
    var animMC = MovieClip(BGLoader.content).getChildAt(0) as MovieClip;
    addChild(animMC);
    Is anything missing?
    Any help would be appreciated, thanks.

    You can only access Loader.content after Load completed successfully.
    Try this,
    import flash.events.Event;
    var BGLoader:Loader = new Loader();
    var BGurl:URLRequest = new URLRequest("HomeBG.swf");
    BGLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
    BGLoader.load(BGurl);
    BGLoader.y = 0;
    BGLoader.x = 0;
    //addChild(BGLoader);
    var animMC:MovieClip;
    function completeHandler(event:Event)
         animMC = event.currentTarget.content;
         addChild(animMC);

  • How can I load an external SWF into a movie clip that's inside other movie clip?

    Hi.
    I creating my first flash (actionscript 3.0) website but I'm
    stuck with a visual effect I want to create.
    I have a window on my website called contentWindow. Every
    time you click a button this window is supposed to leave the stage,
    load the requested content and return to the stage.
    The sliding window is a movie clip with 83 frames, 21 to
    enter the stage, 21 to leave the stage again, 20 for nothing (its
    just to simulate the loading time) and 21 to return to the stage.
    Now my goal is, when the user clicks on a navigation button,
    the window exits the stage, loads an external SWF with the content,
    and then returns to the stage.
    I've the "window" movie clip with an instance name of
    "contentWindow". Inside there is another movie clip with an
    instance name of "contentLoader". The content that the user
    requested should appear inside the "contentLoader".
    Now, when the contentWindow leaves the stage, I get this
    error message:
    quote:
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at rwd_fla::MainTimeline/trigger()
    If I switch
    "contentWindow.contentLoader.addChild(navLoader);" for
    "contentWindow.addChild(navLoader);" it works fine, but the
    external SWF doesn't move with the window.
    How can I load an external SWF into a movie clip that's
    inside other movie clip?

    Hi,
    Recently, I have been putting together a flash presentation.
    And I am just wondering if the following might help you, in your
    communication with the said swf file:
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
    onComplete);
    function onComplete(event:Event):void
    event.target.content.thinggy_mc.y -= 100;
    Not the best example, but this allows you to target a mc
    within an external swf file. I think if you look up this code, you
    will have an answer ;)
    Kind Regards,
    Boxing Boom

  • Need to split long movie into many clips to edit video

    I upgraded to iMovie 11 from iMovie HD 6...it was a long wait to get audio and video editing that was at least as good as HD 6. We had some 40 year old Super 8 movies digitized and used HD 6 to split them into clips so I could edit parts that were almost black, or some almost totally blown out. I realized that this could probably be done better with 11, so purchased it, but couldn't import the HD 6 clips. Was told I had to export the whole movie as a single clip, then import into 11 and break them apart again to edit.
    While I was proficient in HD 6 enough to produce some good stuff, iMovie 11 is befuddling to me, which is a surprise since I do fine with the latest iPhoto, which uses similar terms and processes. I have ordered David Pogue's book; while waiting for it to arrive, my main question is: how do I split this 75 minute movie into multiple clips for editing purposes? Apparently splitting can only be done in the project library, and apparently 11 will only let you split into 2 or 3 clips???
    Thanks for any help.

    First, you may not need to spit the event clips at all. You can select short bits of the long event clip and drag it into your project as you wish.
    Having said that, there are good reasons to split event clips. For example, the 75 minute movie may contain many logical events that you wish to split out by date. In this case, iMovie 11 can do it, but I would not recommend it. It is a slow process and is prone to error.
    I would recomment that you use a free app called MPEG Streamclip from Squared Five (google it).
    To use MPEG Streamclip, drag your long clip into MPEG Streamclip.
    Then, move the cursor to the "in" point of the clip, and press i. Move the cursor to the "Out" point of the clip, and press o. Then, FILE/EXPORT TO QUICKTIME (or FILE/EXPORT TO DV if it is DV). Then repeat until you have done this for all clips you want.
    If you know the date and or time of the footage, name your file
    clip-yyyy-mm-dd hh;mm;ss
    (let mpeg streamclip provide the extension). This will provide metadata that iMovie will use to put the event in the right year and month.
    When finished splitting your long clip, import into iMovie by using FILE/IMPORT...MOVIE

  • Convert Gaphics into Move Clip

    Here, I am create three files. Box.as for making graphich dimentional box, Drag.as is for dragging movieClip and ShowBox.as is to display draggalbe box. I would like to see box with draggable faclity. But I am getting error followig error.
    Description : 1067:Implicit coercion of a value of type Box to an unrelated type flash.display:MovieClip  on Show Box
    Might be I am getting problem of converting into move clip but I am not sure. Would u mind u you gind me in this problem/
    Box.as
    package {
         import flash.geom.*;
        import flash.display.Shape;
         import flash.display.Sprite;
         public class Box extends Sprite {
              public var box:Shape;
              public var boxWidth:Number;
              public var boxHeight:Number;
              public var boxColor:Number;
              public var boxBorderSize:Number;
              public var boxBorderColor:Number;
              public function Box() {
                   //Assign Value
                   boxHeight=100;
                   boxWidth=100;
                   boxColor=0x000000;
                   boxBorderSize=1;
                   boxBorderColor=0xCCCCCC;
                   box=new Shape();
                   box.graphics.lineStyle(boxBorderSize,boxBorderColor);
                   box.graphics.beginFill(boxColor);
                   box.graphics.drawRect(0,0,boxWidth,boxHeight);
                   this.addChild(box);
    Drag.as
    package{
        import flash.events.*;
        import flash.display.Sprite;
        import flash.display.MovieClip;
        public class Drag extends Sprite
            public var clip:MovieClip;
            function dragBox(myClip:MovieClip)
                    clip=myClip;
                    clip=new MovieClip();
                    clip.addEventListener(MouseEvent.MOUSE_DOWN,startMyDrag);
                    clip.addEventListener(MouseEvent.MOUSE_UP,stopMyDrag);
                    addChild(clip);
                    function startMyDrag(evnt:MouseEvent)
                        clip.startDrag();
                    function stopMyDrag(evnt:MouseEvent)
                        clip.stopDrag();
    ShowBox.as
    package{
         import flash.display.Sprite;
         public class ShowBox extends Sprite
              public var myMask:Box;
              public function ShowBox()
                    myMask=new Box();    
                   myMask.boxHeight=100;
                   myMask.boxWidth=100;
                   myMask.boxColor=0x000000;
                   myMask.boxBorderSize=1;
                   myMask.boxBorderColor=0xCCCCCC;
                   addChild(myMask);
                   var myDrag:Drag=new Drag();
                   myDrag.dragBox(myMask);
                   addChild(myDrag);

    I do not understand. Acutally, I want to drag the box . Thus, I want to make it movie clip throug AS. I have made graphic rectangular but could not convert nto movi clip. Is there any function so that I could change my graphic into movie clip .

  • Can't drag clip into movie

    I have a library of clips. I've created projects before. I create a new project. I try to drag a clip into the new movie. It fails. The little clip icon just snaps back to the original location of the clip. I try other clips. Same thing.
    Something has changed iMovie such that I can't create a new project and drag clips into it.

    My bad. Error was between the chair and the keyboard. I was trying to drag whole clips rather than selections of frames.

  • Movie clip breaking into other clips

    Good morning from Tanzania!
    I have exported a movie (around 2mins) from windows media format to M4v format, for use in quicktime.
    I then imported this into imovieHD with the objective of edititing a section of the movie.
    When I imported the movie I was hoping that I would be able to select the targeted clip and edit, However the movie inportes as one clip only.
    Is there a way to break this down to many clips so as they can be edited??
    Thank you.

    Of course. Split at playhead using Command-T.

  • The info you put and the year you put in the info section of a movie you've ripped into your library should appear in the empty space on the left as you scroll down your list. It just makes common sense.

    Seems like Apple would use the empty black space on the left, that appears while scrolling through your shared library, to display the info you enter in the year and comments section.  For example: I should be able to put the synopsis to each of my movies in the comments section and see it on the left as I scroll through my list. Get on that. Thanks

    Welcome to the Apple Community.
    Apple does use tht space for info about the movie, you are obviously entering it into the wrong places.

  • Can a single clip be rendered/exported into a movie?

    Hi Folks,
    I'd appreciate knowing if from event clips or a project clip, can I just take one clip and share/render/export it to a quick time movie, that I could e-mail to someone?
    Thanks for any help given.
    Jim

    The easiest way is to start a new project and drag the clip in from the Event. Then use the Share menu.
    Another way. Select your project clip, and then EDIT/COPY.
    Then, start a new project, and EDIT/PASTE.

  • Import broke down movie into equal clips of 0.01  duration. How can I join them back into the actual length recorded on the camera

    My recent import from my camera into imove resulted in the entire video being seperated into many equal lengh mini clips with a duration of 0.01 seconds.  When playining through these it is sped to quick to even see what is going on.  What happened to cause this?

      ('cause then i can walk away and it makes the separate shoots into separate clips .. instead of having to sit at FCP for hours to log them individually)
    FPC has a feature called DV Start/Stop Detect.  You can Cature Now an entire tape and run the Start/Stop detect and it will separate each of your clips based on the metedata.  It will recognize each individual time you started then stopped recording by placing a marker at the beginning of each clip.  Then you drop all the markered shots into a new bin and it makes subclips out of them.  Easy.  You can read more about it in the manual. It's a very helpful tool.

  • Exporting movies from FCP to go into Avid

    I've just been told that the guy making the actual DVD of my current programme is using Avid - so I need to export my finished movies in the best format for him to import.
    Which format should I choose for maximum quality and minimum hassle at his end?
    Tom

    No this is just a miniDV project - Corporate website thing.
    Obviously I want to give him the highest spec possible (the clips are edited and finished, just need putting into the dvd and web version).
    I'm assuming Export > Quicktime Movie is the best quality, but this makes a file called Final Cut Pro Movie, with the FCP icon and with no .mov on the end.
    I'm fairly sure that other systems can't read these. (They are what I use when I'm making DVDs myself, however).
    I can use Quicktime with Conversion of course, where I think MPEG-4 is the best available, but he now tells me he wants Quicktime files.
    Now. If I open a 339.4 MB Final Cut Pro Movie in Quicktime, then Save As a Quicktime, it makes a 'proper' Quicktime movie, with the correct icon and .mov on the end - but the file is now only 12 KB, so obviously it's been compressed.
    I need to send him QT movies at the best res, that he can open on an Avid.
    Tom

  • Can I sync or import movies from VUDU or Flixter into my Itunes account?  If so how do I do it?

    Can I sync or import movies from VUDU or Flixter into my Iturnes?  If so how do I do it?

    I to would love to know if anyone has found a way to do this.... I purchased several bluray dads, and normally the software gives you the option to use the "ultraviolet" streaming and/or download a copy to iTunes, but these all seem to be Flixter or nothing. I contacted the folks at "UV," "Flixter" and Warner Bros as well, and they all told me "tough luck" on my request to get iTunes versions. Flixter even went so far as to tell me, "...we cannot provide digital copies in every media format for certain films for a variety of logistical reasons." which is total BS, and they know it.
    The problem I have is that SOME of these bluray DVDs offer the option of iTunes and other do not, but this is NOT specifically identified on the package -- you really don't have any way of knowing until you open the package and attempt the download. Some will offer you the choice, others will not, but the package, in my experience, never says, 'This will NOT work with iTunes."
    This really should be the foundation for a class-action lawsuit against the studios who do this BS "bait and switch" to try to force you to use a less then desirable format or poor quality 'streaming' service. I realize the studios want to make more $$ and that means screwing over Apple/iTunes and by default the consumer, by forcing a shoddy product they make more profit on.... No different than an electronics store pushing you to purchase 'brandX' because it has a higher profit margin for them... except that YOU HAVE THE CHOICE.
    Apple could make a killing by accepting their codes for discounts on the iTunes versions... say half-price... just a thought.
    But seriously, to all those out there, this really should be put into a class action suit..... I would be on-board.
    --Dave

  • Can't get some videos into Movies folder

    I have a bunch of mp4 and mpeg video clips that will not import into my Movie file in iTunes. Most are clips from the internet and some are podcast videos. Is there a conversion I need to do to see them in the Movie file (ie in the iTunes library on the left of the window).

    Found the "convert for iPod" option in iTunes

  • Load random swf into movie

    I need to load a randomly selected .swf into my main movie.
    Have found the code below which does all the loading fine...
    ... however, I need to keep elements from the original, so is
    there a way to load the new movie INTO the main one?
    I think I might need to load into an empty instance? If so,
    what does my code need to look like?
    Thanks in advance

    You should use the MovieClipLoader class.
    var mcl = new MovieClipLoader();
    var lis = new Object();
    lis.onLoadInit = function(target:MovieClip){
    //target is loaded and ready when this fires
    mcl.addListener(lis);
    function loadFile(fileURL){
    mcl.loadClip(fileURL, content);
    Now you can just call loadFile with a url and it will be
    loaded into the
    clip 'content', which can be an empty clip on stage. You
    don't have to do
    anything in the listener, but you can set width, height,
    alpha etc. in
    onLoadInit.
    HTH
    Dave -
    www.offroadfire.com
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

Maybe you are looking for

  • Unable to get MSE status.

    My WCS reported the MSE was disconnected. Then i checked the mse status. [root@SHWIPS01 ~]# service msed start Starting MSE Platform MSE Platform is already running [root@SHWIPS01 ~]# service msed status STATUS: MSE Platform is up, getting the status

  • Mapping MDS Characteristics to KM Properties through DMS Connector

    Does anyone who who to map individual characteristics attached to a document in DMS to properties in KM using the DMS Connector for KM? Installing the DMS Connector for KM creates a set of DMS-specific KM propeties.  There is a property named dmsrm_c

  • How do i resolve an error message 5 when starting LR5 from CC?

    I've just signed up for CC Photography. I can't launch LR5 because it tells me there is an Error msg 5 and I should reinstall. I have done that, and used CC clean and deleted a file from the library (as per instructions online, can't remember the fil

  • How to install snow leopard

    .How to install snow leopard

  • Report: 2D-Achssystem mit "gespiegelten" y-Achsen ?

    Folgendes Problem: Bei einer Messung können die Messwerte (abhängig von einer Drehrichtung) positiv oder negativ ausfallen. Um die Kurven von daraus erstellten Reports besser vergleichbar zu machen, sollen negative Daten wie positive Daten, also durc