Hide movie clip of external swf

Hi there.
I have my main.swf and in the second frame i load an external swf called first.swf with this method:
[AS]var loader:MovieClipLoader = new MovieClipLoader();
this.createEmptyMovieClip("myGalleryContainerproducts",5);
myGalleryContainerproducts._lockroot=true;
loader.loadClip("first.swf",myGalleryContainerproducts);
myGalleryContainerproducts._y =86;
myGalleryContainerproducts._x =50;
[/AS]
In first.swf i have two movie clips with instance names ena and dyo
I want in main.swf in the third frame to hide these movie clips of first.swf  (only the movie clips not the whole .swf) or to move them (change x and y values) so they practically hide.
Any solutions?
Thank you in advance

You will need to wait until the file is loaded to be able to interact with it, so if that might be an issue timing-wise then look into using the addListener method of the MovieClipLoader class.  If the movie is loaded you should be able to access the movieclips within it using the movieclip name you assigned (mygalleryContainerproducts) to target them.

Similar Messages

  • Wie kann man mit dem neuen I-Movie Clips auf externe Festplatte speichern um Computer zu entlasten. Gruss

    Wie kann man mit dem neuen I-Movie Clips auf externe Festplatte speichern um Computer zu entlasten.
    Gruss
    Remy

    Ich habe das gleiche problem....ich hoffe auf eine schnelle loesung...

  • Mask - movie clip loaded from .swf

    Hi!
    I have made an application where a movie clip (map_mc) is
    masked by another movie_clip (map_window_mc:
    map_mc.setMask("map_window_mc");
    This works fine until I try to load an "external" .swf into
    map_mc:
    map_mc.loadMovie("Testmap.swf");
    Then the mask does not work anymore......
    Any suggestions?
    (The testmap.swf is also displaced from map_mc.........)
    I use Flash 2004 MX pro
    terjem

    terjem,
    > My problem is probably that I really don't know wath
    event
    > handler I should use...
    Depending on the approach you're using, there may not even
    be an event
    handler when the external SWF loads. If you're using the
    MovieClipLoader
    class, there will be. If you're using a
    MovieClip.onEnterFrame loop, there
    won't be.
    > Here is the first ("non-automatic") code that works:
    Okay.
    > map_mc.loadMovie("Testmap.swf");
    > trace("Loading started!");
    > this.onEnterFrame = function() {
    > if (
    > map_mc.getBytesLoaded() > 0 &&
    > map_mc.getBytesLoaded() >= map_mc.getBytesTotal()
    > ) {
    > trace("Loading complete!");
    > trace("File width: " + map_mc._width);
    > delete this.onEnterFrame;
    > } else {
    > trace("File width: " + map_mc._width);
    > }
    > };
    Okay. So far, so good. When bytes loaded is greater than
    zero and
    greater than or equal to bytes total, you'll know the
    external SWF has fully
    loaded. You'll know, because the "Loading complete!" trace
    will be visible
    in your Output panel. Well, that means the place in this
    script that
    represents "where to put additional code" is right were your
    trace()
    functions are. Not in the "else" clause, but the first one
    this.onEnterFrame = function() {
    if (
    map_mc.getBytesLoaded() > 0 &&
    map_mc.getBytesLoaded() >= map_mc.getBytesTotal()
    trace("Loading complete!");
    trace("File width: " + map_mc._width);
    [delete these trace() functions, if you like]
    [add your masking code here]
    delete this.onEnterFrame;
    // etc.
    > The code below does not work (the positioning of the
    > map_mc works, but not the setMask):
    Your problem may be right here ...
    > map_mc.setMask("map_window_mc");
    ... because "map_window_mc" is in quotes. Yes, the
    ActionScript Language
    Reference says the parameter of setMask() may be a string,
    but leave the
    quotes out and see what happens. In any case,
    David
    stiller (at) quip (dot) net
    Dev essays:
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Accessing movie clip from flash swf file

    I have the situation where in flash i created a simple
    animated movie clip with few stop() commands on timeline. Movie
    clip consists of simple animatio played on roll over and on roll
    out which is controlled using actionscript. I loaded movie clip
    into flash using [embed] tag but actionscript code is stripped,
    there is no stop() action so movie clip loops continously. I guess
    that's normal behaviour for embedded flash swf files but i would
    like to know is there a way to still achieve that? Can i load swf
    some other way with its actionscript and then control movie clip
    from flex?

    You need the FLA's to open in Flash.
    You could download the free trial of a flash decompiler
    (www.sothink.com). The free trial won't give you actionscript, but
    it will give you all of the art in the swf.

  • Same button on single frame to display/hide movie clip?

    Hi, can a button on a single frame be coded to both display a movie clip on its first click and, after a second click, hide the movie clip?  Thanks

    Yes, assuming you make the movieclip invisible to start with, in the event handler function just use...
    mc_name.visible = !mc_name.visible;

  • Auto hide (movie clip) task bar

    How do I make a auto hide task bar (which is a movie clip)?
    auto hide bar similar to windows task bar, when move mouse to
    bottom of screen, the task bar come up, else task bar auto hide.
    http://www.oniva.com/upload/1356/hide.jpg
    I try to set code in movie clip (task bar) but don't work
    well
    =====================
    on (rollOver)
    _root.top._x = 400;
    _root.top._y = 220;
    on (rollOut){
    _root.top._x = 400;
    _root.top._y = 150;
    }

    just found here is the trick
    ==========
    import mx.transitions.Tween;
    import mx.transitions.easing.*;
    function tweenY(mc, newLoc) {
    var myTween = new Tween(mc, "_y", Strong.easeOut, mc._y,
    newLoc, 0.5, true);
    var mouseListener = new Object();
    mouseListener.onMouseMove = function() {
    if (_ymouse > 394) {
    tweenY(taskBar, 360);
    } else if (_ymouse < 360 &&
    !taskBar.hitTest(_xmouse, _ymouse, true)) {
    tweenY(taskBar, 400);
    Mouse.addListener(mouseListener);

  • Hide Movie Clip

    i have 50 movic clip (box 10px by 10px) in my flash with the
    instance name is "test_mc" (all 50 MC same name of instance)
    then i write this code
    this.createEmptyMovieClip("test_mc", 0);
    test_mc._visible = false; // try to hide the movie clip
    but when i publish the file only single (1) MC is hide, why
    is happan
    here is i want to hide all my 50 movieclip at a time
    can anybody modify tish code or give me new code for tha

    give each instance an incrementing name
    for(i=1; i<=50; i++){
    this.createEmptyMovieClip("test_mc"+i,
    this.getNextHighestDepth());
    this["test_mc"+i]._visible = false;

  • Movie clip to seperate swf

    hey quick question,
    i already made my flash site but realized afterwards that swf file is way too big. i compressed the images in photoshop as jpgs (72 dpi) but the site still loads way too slow during the preloader. the only option that i can think of is to make the site a swf file and the work section as another swf file. how would go about creating a seperate swf from my work section (which is a movie clip)?
    thanks

    have you considered removing all the jpgs from the swf and loading them?

  • Target movi clip in separate swf

    Hi, i am updating a website and am trying to move the "skip"
    button to appear earlier. To do this I have to move the button to
    another swf file.
    now I can load the swf (dbo.swf) into an empty movie clip
    (named empty_mc) easily enough, but I am trying to target different
    things to happen inside of the newly loaded swf instead of playing
    from the beginning. I tried this:
    on (release) {
    empty_mc.loadMovie("swfs/dbo.swf");
    empty_mc.boxes_mc.gotoAndPlay("quickbuild");
    empty_mc.gotoAndPlay("jump_home");
    empty_mc.stopAllSounds();
    ...but it still plays from the first frame of dbo.swf instead
    of playing the appropriate movies and frames. any suggestions?

    When I load in a new .swf file into my main movie, it appears to load on top of the main movie.
    This is the load function that we set up:
    this.createEmptyMovieClip("target1MC",this.getNextHighestDepth());
    this.createEmptyMovieClip("target2MC",this.getNextHighestDepth());
    var currMC:MovieClip = target2MC;
    target1MC._alpha = 0;
    function loadF(y:Number, d:Number) {
    otherTargetF(currMC).swapDepths(Math.max(target1MC.getDepth(), target2MC.getDepth()));
    mcl.loadClip("floors_swf/"+y+"_"+d+".swf",otherTargetF(currMC));
    Is there a way to get the .swf file that gets loaded in to load behind the graphics in my main movie?
    It appears to be loading into the target1MC, but I don't see where to set the level that it loads into?
    Thanks

  • Controlling color of movie clip "rectangle" externally

    I have a project that demands control of the fill color of a
    rectangle shaped mc externally. So the user would have the control
    to change the fill color of a movie clip by editing something
    externally, not having to edit the flash file. Is this
    possible?

    yes. you could use an xml or text file to furnish colors to
    flash.

  • Loading library movie symbol from external swf

    Hi, I have a Flex/Air Application and I want this application
    to load in an external SWF and display a particular asset from the
    SWF library (just like attachMovie in AS2). I dont want to embed
    the SWF into the Air application. For the life of me I can't find
    any tangible info on how to do this. My second problem is that the
    assets sit in an SWF published for AS2 (is that an issue?). All
    content resides locally.
    Can anyone help or point me in the right direction?

    I see now how to import and display a library class object
    using:
    var MovieClipClass:Class =
    Class(loader.contentLoaderInfo.applicationDomain.getDefinition("myLibraryAsset"))
    var movieClip:Sprite = new MovieClipClass();
    addChild(movieClip)
    But this seems to only work for SWF's published for AS3 Flash
    Player 9.
    I need to do the same for SWF's published with AS2 Flash
    Player 7.
    Any ideas?

  • HitArea hide movie clip

    Im trying to hide a clip on when one clips collide with
    another using hit Tes and also hitArea, both of them doesnt
    work....
    I write the following code:
    onClipEvent (enterFrame) {
    if (_root.guardia, hitTest(_root.quienes)) {
    hide == true;
    } else {
    hide == false;
    Is something there i mess?
    best,
    IN

    ok im understanding
    "guardia" is the instance name of the mc also is a layer on
    scene 1
    "quienes" is the instance name of the mc that is inside a
    mouse over buttom that is on scene 1
    the action (the code) is inside frame 1 that is in other
    layer on scene 1
    I try these as you said:
    onClipEvent (enterFrame) {
    if (_root.guardia.hitTest(_root.quienes)) {
    guardia.hide =true;
    } else {
    guardia.hide =false;
    but still doesnt work
    in

  • Importing Movie Clips from External Hard Drive

    Apologies if this has been answered elsewhere...
    I use my Sony SD card camcorder to save in AVCHD. I can import clips through iMovie to an external HD for editing etc. No problems. I want to know if rather than importing through iMovie, I can copy my AVCHD file directly to my external HD (using Finder) & then import the file from my external HD for processing later?
    I tend to end up with numerous clips on my card, might be covering differnt events, differnt days etc. I don't always have time to import into iMovie on the day I shoot. For , the ability to just dump files to my HD quickly to free up SD card space would be really useful, but I am not sure it is possible
    Any feedback welcome
    D

    Yes.
    The best way is to use the iMovie import screen. At the bottom left you will see a button that says "Create Camera Archive". Press that button and you will copy the AVCHD to the location you specify.
    Try IMPORT/FROM CAMERA ARCHIVE and verify that your clips show up. Then it is safe to erase your card.
    Another way. Go into Disk Utility, Select your card. Choose Create Disk Image.
    Another way. Go into Finder. Create a folder. Drag the entire contents of your card, including folders, and especially empty folders to this new folder. If you do it right, that is the same as an Archive.

  • How to access dynamic movie clips in a loaded swf

    Hello,
    I have a main movie file that loads a swf through loadclip.
    There are several dynamic movie clips in the library of the
    loaded swf (all set to export in first frame).
    I'm trying to create a popup window (using the Window
    component) by using code in the main movie to popup content that is
    in a dynamic movie clip within the swf loaded by loadclip.
    So far, I can create the popup without any problem as long as
    the contentPath refers to a linkage identifier of a library item in
    the main movie, but it won't work for a library item in the loaded
    movie. Is there a way to make this work? Is there a special way to
    reference library items in loaded movies?
    Here's my code to create the window:
    myWin = mx.managers.PopUpManager.createPopUp(this,
    mx.containers.Window, true, {title:mytitle, contentPath:myref,
    closeButton:true});
    where myref is a string containing the linkage identifier for
    the library item within the loaded swf.
    Thanks in advance for any assistance,
    Julia

    I have found out that I can access a dynamic mc from the
    loaded library (using attachMovie), but cannot use that same
    dynamic mc as the contentpath for a popup window.
    Any ideas why?

  • External swf path problem

    Hi there,
    I've just added some external swf.'s to my site which contain
    various slideshows and galleries which now don't work at all. I
    understand that all the paths in my external swf.'s containing
    _root will assume that the main timeline is now the _root movie, so
    I wondered if there might be a quicker way of correcting all the
    paths without having to go through each one individually as there
    are literally hundreds!
    Any help would be greatly appreciated. Many thanks.

    Hey batchas07,
    Thanks for getting back to me. Erm, I'm pretty new to flash,
    (the actionscript side of it anyway), so I didn't really follow
    your first solution. I'm currently using Flash MX so would that
    still work?
    I read somewhere else to try the 'this._lockroot = true;'
    script in the first frame of my external swfs. but this doesn't
    seem to have done the trick either?
    To give you a bit more of an idea, I'm building a site which
    has five links at the bottom of the stage which each take you to a
    different container movie clip, (each with an instance name of
    'holder'), which each of the external swfs load in to. I'm using
    the (loadMovie("external.swf", "holder") ) method of getting the
    movies. All the movies load in fine, but as some of them are
    slideshows with movie clips inside them I'm guessing their paths
    will all be wrong which is why they don't work. The only way I have
    managed to make the main movie recognize the external swfs is to
    add 'holder.' after '_root.' to all the paths to buttons and movie
    clips in these external swfs, but doing this to all of them will
    take a long time.
    Really not sure why the 'this._lockroot = true' method isn't
    working out for me???
    Thanks again for the help.

Maybe you are looking for

  • Irregularity with anchor behaviour - inserting anchors in anchored frames

    I am experiencing irregular behaviours with anchors and I'm not sure if it's a glitch or something I am overlooking. Sometimes it works, sometimes it dosen't, and I can't tell what is causing the difference. What I want is an anchored text fram to a

  • Satellite P10-221, problem hotkey Fn F5

    On my Toshiba Satellite P10-221, running WinXP, I used to be able to use Fn F5 to switch to my external display. Recently pressing Fn F5 brings up the same menu as always, but the only option is the LCD display. I used to have CRT and TV as options.

  • Blackberry bold 9900

    I recently downloaded an app (gps for google) and  after the trial period I deleted it but I get notifications to renew (upgrade for pay) I do not want it, how I stop it from receiving the notices?

  • Bookmarks missing from documents

    Hello, I have adobe acrobat 9 professional 9.0.0, we have hundreds of PDF documents going back around 8 years - each document has bookmarks which have worked fine up until yesterday. Each document I open now has no bookmarks at all, the bookmarks bar

  • Order went back to Not yet shipped!

    Hi all, Ordered Macbook Air i7 two days ago. It went to "Prepared for Shipment" in about a day and now it's back to "Not yet shipped". What does this mean??? Should I simply wait?