Issue loading MC from library in MC Holder

I searched previous posts last week about this and learned that I can load a movie clip from the library in a blank mc holder similar to how I load an exernal swf. But so far that code is not working for me. I also need a way to close/make invisible the clip on user clicking an X.
I have a page with about 6 key words over which I will place invisible buttons. First button instance is named compworkBtn. I have a blank mc on the stage, name of mcLoadertop. My mc I want to play is in the library and named compworkMC. I read that I need to set the properties to export and I have done this (picture attached for compworkMC).
Here is my action script to load the compworkMC:
//load popups in movie clip loaders top and bottom//
compworkBtn.onRelease=function(){
mcLoadertop.attachMovie("compworkMC");
So first I need to get the thing to load.
Then I want the user to click on the X or close button and it goes away. I thought the easiest thing for this work be to program the Close button itself to drive the MC to a frame that had no content. It will still be there, of course, but not be visible. Then the user would click on the next key word and the next MC will load. Not sure that is a good solution though, because they will both still be there. So, I'd like a suggestion for another solution to unload the first mc and load the second one. I have done a similar thing with external swfs, but I will need a close button instance for each of the unloads, right?
Any help is appreciated here!

If you look at the attachMovie() method in the help files they will explain most of what you need to deal with.  The attachMovie method takes a minimum of three arguments..
attachMovie(id:String, name:String, depth:Number)
To remove a movie added using attachMovie you can use the removeMovieClip() method.  That is also explained in the help documents.
As far as assigning functionality to that X button, you can do that after you have attached the movie via using its instance name... something along the lines of... (this is not a verbatum example, just the concept):
instanceName.btn.onRelease = function(){
     removeMovieClip();

Similar Messages

  • IPod Nano - iPOD auto updates - can't load music from library to music file

    Every time I plug my nano in it automatically updates. How do I stop this?
    Also I cannot load songs from my iTunes library to my personal music file. There is a padlock that appears to the right of the bar that indicates space useage at the bottom of the page. I am not sure if that has anything to do with not being able to load songs from my library to my personal music file. PLEASE HELP I AM DESPERATE!!
    Parrott

    Grey text when you look at the content and lock symbol at the bottom of the screen simply shows that your iPod is set to automatically update. If you want to access your iPod directly, drag songs to it, play it through your iTunes, connect it to a second computer etc. you just need to change the update method to "Manually manage songs and videos" in the iPod Summary tab and click Apply. The text will change from grey to dark and the padlock will disappear: Managing content manually on iPod
    One thing to be aware of with manually updating is that the iPod also has to be manually ejected before the "Do Not Disconnect" message will go away. Safely disconnect iPod

  • Load MC from library

    Hi all
    I have a Movieclip with a base name called 'movie_main' and class  name as 'Main_mc'
    I am trying to load the movie from the library into a  contanier that also loads in a tooltip. The container is called  'holder'
    this is the script I am working with
    var movie_main:Main_mc = Main_mc();
    holder.addChild(movie_main);
    problem is when it loads in other parts  of my menu are missed placed.
    Question:
    is this the correct script I  should use?? Is there issues with loading in more than 1 movieclip into one  contanier??
    aaarrrggggghhhhh!!!!!!!
    help please

    maybe this will help, this is my script for loading in tooltip
                    var tooltip:ToolTip = new ToolTip();
                    tooltip.field.text = titles;
                    tooltip.field2.text = texts;
                    tooltip.x = -350;  // where to have the tooltip on x axis in the holder
                    tooltip.y = 0;    // where to have the tooltip on y axis in the holder
                    holder.addChild(tooltip);
                    // Same proceedure as before
                    holder.buttonMode = true;
                    holder.addEventListener( MouseEvent.CLICK, onMenuItemClick );
                    // Add it to the menu
                    circleMenu.addChild(holder);
    and this is what I am trying to also add also to the same container
    var movie_main:Movie_mc = new Movie_mc();M
    holder.addChild(movie_main);
    is there a way to combine all in one??

  • Why is my symbol loaded dynamically from library not working?

    Hope someone could help,
    The code in "Example1" work fine if the video symbol is located on the stage. But what I'm trying to do is load the video symbol from the library dynamically and that doesn't work as illustrated in "Example2".
    My question is why does Example1 work and Example2 not work?
    Example1:
    var youtube = $("<iframe/>");
    sym.$("video").append(youtube);
    youtube.attr('type', 'text/html');
    youtube.attr('width', '560');
    youtube.attr('height', '315');
    youtube.attr('src', 'https://www.youtube.com/embed/A3PDXmYoF5U');
    youtube.attr('frameborder','0');
    youtube.attr('allowfullscreen', '0');
    Example2:
    sym.myVideo;
    sym.myVideo = sym.createChildSymbol("video", "Stage");
    var youtube = $("<iframe/>");
    sym.$("myVideo").append(youtube);
    youtube.attr('type', 'text/html');
    youtube.attr('width', '560');
    youtube.attr('height', '315');
    youtube.attr('src', 'https://www.youtube.com/embed/A3PDXmYoF5U');
    youtube.attr('frameborder','0');
    youtube.attr('allowfullscreen', '0');
    Thanks in advanced,
    -Angel

    Have you tried a reset:
    Hold the Sleep and Home button down for about 10 second until you see the Apple logo.

  • Issue loading data from PSA to Cube

    Hi Gurus:
    I have a strange issue.  My DELTA load to ODS from R/3 come thru fine.  However, the load fails while moving
    from ODS to the cube.  The error is in 'Fiscal Year/Period'.  It is a straight 1:1 map in update rules.  If I bring the
    data just to PSA there is no error.  But when the data moves from PSA to cube, one record in each of the 2
    packages the valiue of Fiscal Year/Period changes from "012/2009" to "015/2009".
    Any idea why this might be happeing and suggestions on How can I move this data to cube?
    Thanks in advance and a very happy New Year!
    Best.....PBSW

    Are you using or copying Busines Content in your start routines?
    In the SD data extractors, the Fiscal Year/Period was provided WITHOUT a Fiscal Variant.
    In the Start Routine, the Fiscal Variant was hard coded to "K4" (I think).
    If you are using the code and a Fiscal Calendar other than the Hard coded one, you might get this type of error.
    If so, consider setting the Fiscal Variant as a constant in the update rules.
    Good Luck,
    John Hawk

  • Issues loading lessons from classroom in a book

    I am having problems loading some lessons from classroom in a book.  Some work fine with others I get an error message that says there is a file import failure  as the file format cannot be recognised.  I have reloaded the lessons from te disc but the problem is still there is there an issue with the disc?
    I am new to editing and find this most frustrating.
    Many thanks for any help

    >.prproj
    That is a project file, not a data (video or sound) file
    When you copied from the DVD to your hard drive, did you copy with the complete folder structure, to a folder on your hard drive?
    If you tell PPro to load a project file, and the various data files are not where the project expects, you may receive an error message
    But, I have never worked with Classroom in a Book, so don't really know what the project files need to work

  • Using one instance of a Movie Clip to load Graphics from library

    Hi all,
    another question... How would i go about loading a variable into a movie clip and have it pull different graphics from my library at different spots in the main timeline???
    thanks!
    Patrick

    Hi NED! thank you for all your help so far!!!
    I was wondering about the flexability of loading movies into a movie clip.
    Currently, thanks to your help i am well able to load one movie into a movie "loader" clip, but thought maybe there is a way to load additional movie clips into that same "loader" clip, as i am starting to accumulate several different graphics that i need to have be inside movie clips so that i can make them change colors on the same frame when needed.
    i shot from the hip and tried this code, but didnt have any luck:
    mc_LCD_loader.attachMovie("hilight", "g", 1), ("header", "X", 1);
    mc_LCD_loader.g._x = 0;
    mc_LCD_loader.g._y = 1000;
    mc_LCD_loader."X"._x = 0;
    mc_LCD_loader."X"._y = 1000;
    - - - where "hilight" is the identifier name of a given movie clip and "header" is the identifier of a given movie clip in the same library...
    "hilight" loads fine
    i dont fully understand what "g" means to the identifier...
    i am just unsure of how or if it is even possible to load another MC into the same MC Loader...
    is it possible? if so could you give me a hint?
    thank you!
    - patrick

  • Load FLV from library into FLVPlayback?

    Is this possible?  I've figured out dynamically loading an external FLV, but I'd like to be able to do it from my library. Really appreciate any help.

    no.
    but you can import an flv to a movieclip timeline and you can instantiate the movieclip using the "new" constructor.

  • Load movie from library

    is it possible to load a mc from the library on to the stage with specific coordinates, without uning a mc to load it in to? Simply something like this:
    load the menuMc on the stage at x = 200 and y = 300;
    i called the identifier menuMcAs

    ok i tried about everything i know..(which isnt a lot)
    i think the correct way to write it is this:
    var emptyMc:MovieClip = this.createEmptyMovieClip("emptyMc", this.getNextHighestDepth());
    emptyMc.attachMovie("menuMcAs", "menuMc", this.getNextHighestDepth(), {_x:400, _y:100});
    menuMc (instance name of the menu mc in the library)
    menuMcAs (linkage id of the menuMc in the library)
    emptyMc (nothing. i should be created with this code...?)
    and i put this line at the very top of my code, which is in a .as file.
    i cant see the menu!!! its not working.
    any ideas?
    btw: i did NOT create an empty movie clip on stage...
    EDIT
    I tried this too:
    var emptyMc:MovieClip = this.createEmptyMovieClip("emptyMc", this.getNextHighestDepth());
    this.attachMovie("menuMcAs", "menuMc", this.getNextHighestDepth(), {_x:400, _y:100});
    still nothing..
    EDIT 2
    after reading the help files, i have a feeling i'm only creating a mc, but that i'm not placing it on stage...??

  • Unable to d/load game from library to iPod

    I have a 5th Gen/Video iPod.
    I managed to download Mini Golf and it's sitting in my library. I've followed the help section and made sure that the game is synced in my games menu but nothing's happening. I can't drag and drop the game to the iPod like you can do with songs. In my Devices List (left hand side of screen) I've got "music", "movies", "tv shows" and "podcasts" but there's no mention of "games".
    Any ideas?

    QTKirk,
    THANK YOU!!!!
    I was able to d-load this and got everything going again.
    I wanna say Thank you for the almost instant reply and
    assistance.
    Trust this guy, he knows of which he speaks.
    RadAZCads

  • Down load music from library to sd card for my phone

    I'd like to download music from my library to a micro SD card , so i can have music on my phone. (samsung Convoy).
    I have the adapter so the card plugs into my Mac mini.
    I've also made up a playlist labeled phone music.
    I just can't figure out how to get it to the SD card.

    drag the tracks from an iTunes window to your desktop, and from there to the icon of the SD card on your desktop.

  • Loading from library conflicts with loading external swf

    I'm very new to ActionScript, so this might be incredibly basic. However, I've Googled and read myself into a coma and I'm not finding a solution.
    I have a movie with 6 navigation buttons.  Four of them load external .swf slideshows, and they work fine - as each file loads, the previous one clears the stage, etc.  The other button that I currently have set up is loading, from the library, an image.  The problem I'm having is that the slideshows replace each other on the stage - they're not stacking, they're replacing - but when the user selects the button that loads the image, the image overlays the last-selected slideshow.  If the user selects the image first, the image is visible when two of the external files transition.  Because of that 6th button, which is not yet even started, it's not desirable to me to simply set up the single image as another external file; if it's at all possible, I need to be able to pull from a library file when I build that last button.
    What I'd like to do - because there is no logical order that the buttons should be selected in - is figure out how to tell every button to remove the image file on click.  I've tried using this in the four buttons that link to the slideshows, to deal with the image (that's the one called quoteImage):
         if(myLoader != null && contains(quoteImage)){
            myLoader.removeChild(quoteImage);
    which has the advantage of not giving me any errors, but doesn't actually fix my problem.  I've tried many, many other things, and I'm just really stumped on what exactly I need to do to make this work the way I want it to.  Based on the fact that the books and online resources I've been using don't really cover this specific example, I suspect it might be an incredibly idiot thing to do, but I'd really like it to work this way if that's possible.
    The code as it stands, with the global variables and the first two buttons (the next three are identical to the second button and the sixth button doesn't exist) looks like this:
    var myLoader:Loader=new Loader(); 
    var quoteImage:Bitmap;
    stop();
    // Loads quoteImage from library
    btnQuotes.addEventListener(MouseEvent.CLICK, showquote);
    function showquote(event:MouseEvent):void {
    var myBitmapDataObject:myBitmapData = new myBitmapData(500, 350);
    var quoteImage:Bitmap = new Bitmap(myBitmapDataObject);
    quoteImage.x=150;
    quoteImage.y=180;
    addChild(quoteImage);
    // Loads industrial.swf from external file
    btnIndustrial.addEventListener(MouseEvent.CLICK, showindustrialcontent);
    function showindustrialcontent(event:MouseEvent):void {
    var myURL:URLRequest=new URLRequest("industrial.swf");
    myLoader.x=150;
    myLoader.y=180;
    myLoader.load(myURL);
    addChild(myLoader);
    Help is very much appreciated.

    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?

  • HT202157 Does anyone else have a problem with the latest Apple TV update?  My Apple TV no longer can load movies from my iTunes library, including ones I've already watched or were watching.  Can I roll back this update, and if so, how?

    After updating my Apple TV, it will no longer load movies from my iTunes library.  Music works, but no movies.  I've turned this puppy every which way but loose, but no joy.  Is there a way to roll back an update?

    Greetings,
    I've never seen this issue, and I handle many iPads, of all versions. WiFi issues are generally local to the WiFi router - they are not all of the same quality, range, immunity to interference, etc. You have distance, building construction, and the biggie - interference.
    At home, I use Apple routers, and have no issues with any of my WiFi enabled devices, computers, mobile devices, etc - even the lowly PeeCees. I have locations where I have Juniper Networks, as well as Aruba, and a few Netgears - all of them work as they should.
    The cheaper routers, Linksys, D-Link, Seimens home units, and many other no name devices have caused issues of various kinds, and even connectivity.
    I have no idea what Starbucks uses, but I always have a good connection, and I go there nearly every morning and get some work done, as well as play.
    You could try changing channels, 2.4 to 5 Gigs, changing locations of the router. I have had to do all of these at one time or another over the many years that I have been a Network Engineer.
    Good Luck - Cheers,
    M.

  • How to load images from the library (png)?

    This is my first time using the forum so sorry if it's not professionally set up. I am trying to make an inventory system and I'm trying to find a way to have a Slot (MovieClip) holding a child of probably another MovieClip witch will display the icon according to whatever is in that Slot... As soon as I figure out how to have a MovieClip display an image and then change that image by loading it from the library, I can finish the rest! So let me try to demonstrate:
    (Note: This is not actual code, it's just a demonstration of what I'm trying to accomplish)
    Item1 = Name: "HP Potion", Icon: "HP_Potion.png"
    Item2 = Name: "MP Potion", Icon: "MP_Potion.png"
    Item3 = Name: "Sword", Icon: "Sword.png"
    Item4 = Name: "Shield", Icon: "Shield.png"
    Slot1.nameField.text = Item1.Name //HP Potion
    Slot1.mc_img = Item1.Icon//HP_Potion.png
    ~Ok so what I am trying to do is see if there is a way to change what image the MovieClip displays, just by code. I don't want to put each individual picture in a frame on the MovieClip's timeline
    Sorry about not having any code, I've been working on it for a few hours, and I can't find anything online that doesn't say put it in a timeline.
    If you know how to do what I'm asking with a spritesheet instead of individual images, that's fine too! I'll just have to join all the images together

    Alright so let's get down to buisness... what I'm asking, is it impossible to make it simple? I can't just change the bitmap of the MovieClip. If you open up the MovieClip and view it's timeline, the image is a bitmap file withing that MovieClip so if you're able to manipulate other things of a MovieClip, you should be able to manipulate that too right? Such as "MovieClip.Bitmap" (I know that's not the actual property but could it be done?).

  • Issue in loading images from Apache webserver in JSF image tags on WLS 10

    I have configured the apache webserver2.0 for passing on the request to weblogic 10.0. I have images in apache webserver. In my application on weblogic i am using JSF f. In JSF for <h:graphics> tag i am not able to load images from apache webserver. issue we found out that it prepend a context url on it.
              pls provide if u have any solution for it.
              Edited by neerajr at 11/16/2007 3:33 PM

    Hi, Neeraj,
              Are you actually telling <h:graphicImage>? As per html_basic.tld, the "uri" attribute is context-relative.
              Using "value" attribute instead of "url" attribute may be helpful. Something like
              <h:graphicImage id="fooImage" value="http://www.foosite.com/image/foo.jpg"/>
              This should work on WLS10.0 if you are using the JSF library bundled in it.
              Thanks,
              -Fred.

Maybe you are looking for

  • How can I get my web page to center in IE?

    My web page aligns left in IE, but not in other browsers.  Any suggestions?   http://www.theolderuggedcross.com/

  • Seurity Upgrade question

    Hi All, We are process of upgrade from ECC 5.0 to ECC 6.0. I need some information regarding the authorisation upgrade. q1) If we haven't made any changes to authorisation check values in su24, then is it mandatory to perform upgrade using SU25. q2)

  • Importing and exporting to garage band

    I am trying to import some spoken word in garageband, do some minor editing, and then burn a cd. I made the recording on both an iPod and a Marantz digital recorder. I imported them via iTunes. When played in Garageband, they sounded like micky mouse

  • ICloud 3.0 Control Panel for Windows - Non-IE Bookmark Sync

    FYI The new iCloud Control Panel for Windows 3.0 offers bookmark sync with Chrome and Firefox I could not get the new iCloud Control Panel for Windows 3.0 to recognize bookmark sync for any browser except IE. I downloaded the Firefox add-in and enabl

  • After upgrading my Ipad 1 to iOS 4.3.3 I can no longer print with airprint?

    After I upgraded to iOS 4.3.3 i cannot get airprint to function.  My ipad sees the printer and says it is trying to connect but it never prints.  I have a  HP b210a and I can print by using the email function but I can no longer get it to print from