Unload parent movie after onloadInit of child movie

Hi,
I am loading external swf's into a main load.swf, using a Moviecliploader object. What I basically want to do is that, after an external movie, say home.swf, loads another external swf, say about.swf, home.swf should be unloaded.
home.swf is loading about.swf into the _root.mc_holder, which is placed inside load.swf. I want all external files to be placed within this holder. Now this is working with some files, but not with others. My standard code within all files is this:
//code within home.swf to load about.swf
var loader:MovieClipLoader = new MovieClipLoader();
var ldrlistener = new Object();
loader.addListener(ldrlistener);
ldrlistener.onLoadStart = function(_mc:MovieClip) {
    trace("about loading started");
ldrlistener.onLoadProgress = function(_mc:MovieClip, loaded:Number, total:Number) {
    var prcnt:Number = Math.floor((loaded/total)*100);
    if (prcnt == 10) {
        trace("loading:10");
        ldgraphic.gotoAndStop("ten");
    if (prcnt == 15) {
        trace("loading:15");
        ldgraphic.gotoAndStop("fifteen");
    if (prcnt == 20) {
        trace("loading:20");
        ldgraphic.gotoAndStop("twenty");
    if (prcnt == 25) {
        trace("loading:25");
        ldgraphic.gotoAndStop("twentyfive");
    if (prcnt == 30) {
        trace("loading:30");
        ldgraphic.gotoAndStop("thirty");
    if (prcnt == 40) {
        trace("loading:40");
        ldgraphic.gotoAndStop("forty");
    if (prcnt == 50) {
        trace("loading:50");
        ldgraphic.gotoAndStop("fifty");
    if (prcnt == 55) {
        trace("loading:55");
        ldgraphic.gotoAndStop("fiftyfive");
    if (prcnt == 60) {
        trace("loading:60");
        ldgraphic.gotoAndStop("sixty");
    if (prcnt == 70) {
        trace("loading:70");
        ldgraphic.gotoAndStop("seventy");
    if (prcnt == 80) {
        trace("loading:80");
        ldgraphic.gotoAndStop("eighty");
    if (prcnt == 100) {
        trace("loading:100");
        ldgraphic.gotoAndStop("hundred");
ldrlistener.onLoadInit = function(_mc:MovieClip) {
    ldgraphic._alpha = 0;
    trace("load completed");
loader.loadClip("about.swf",_root.mc_holder);
this.unloadMovie();                    //unloads home.swf, which was loaded from load.swf
Now the problem is, it is successfully unloading the movie, but after a while it stops doing this. Is there something wrong with the code?? Any help will be greatly appreciated.

Hi Kglad,
I seem to have managed to get it to work so far. But once again, I can't be sure as it seems to stop working on its own. Also, if I do not insert the this.unloadMovie, the next movie does not load in some cases. I think I need to reconsider my strategy, but for now this will have to do. Thanks for the response

Similar Messages

  • ADF Tree setting focus back to parent node after deletion of child node

    Hi,
    Is there a way to get the focus back to the parent node (or rather any particular node) in a tree?
    I have a use case where we need to get the focus back to the parent node after a child node is deleted.
    Currently the focus is shifted to the next node in the tree, but the need is to get the focus shifted back to the parent node. Also the parent node should be re-invoked to populate to get the latest status after deletion of the child node.
    Any help/pointers?
    Thanks

    Thanks for the reply Frank.
    I saw the link http://sreevardhanadf.blogspot.in/2012/07/showing-next-row-as-current-row-after.html
    However the issue is since I am using custom created tree using POJO tree item (composite object).
    calling myTree.getWrappedData() doesn't gives me a handle to JUCtrlHierBinding and subsequent access to JUCtrlHierNodeBinding.
    my program gives me data like -
    List<MyTreeItem> treeData = (List<MyTreeItem>)treeModel.getWrappedData();
    because my tree model is build using -
    treeModel = new ChildPropertyTreeModel(items, "children");
    where items is List of <MyTreeItem>
    Hence I am unable to get a handle using -
    List nodeParentList = nodeParent .getKeyPath();
    I am programmatically able to invoke the parent node to get the fresh data, only issue is the focus/selection of that node is not happening
    Is there a way around?
    Thanks
    Sachin

  • After Effects error: opening movie - you do not have permission to open this file (-54)

    Hi all,
    I'm new to after effects. I have just started receiving the following error every time I try to render my movie:
    "After Effects error: opening movie - you do not have permission to open this file (-54)".
    Yesterday morning, I was able to render movies, however, after I did Apple's latest update I've started receiving the following error. What is happening is that I'm trying to render a movie. It gets to a certain point in the movie (about 0;00;16;09) and then this error pops up. This morning I've tried to repair the permissions with disk utility, but that doesn't seem to have helped.
    I've searched Google and the Adobe support forums with no luck. Please help.
    Thanks in advance for you help,
    William

    Have been able to downgrade to QT 7.3 using Pacifist. Did NOT require re-install of OS.
    http://discussions.apple.com/thread...347251&tstart=0
    Download the right version here:
    http://www.apple.com/support/downloads/
    Panther: http://www.apple.com/support/downlo...forpanther.html
    Tiger: http://www.apple.com/support/downlo...31fortiger.html
    Leopard: http://www.apple.com/support/downlo...forleopard.html
    Install with Pacifist
    http://www.charlessoft.com/
    Now that I am back to QT7.3, iTunes7.6 is now asking me to update QT to 7.4 in order to be able to view the new movie rental feature of the iTunes store... which sorta sheds some light on the no permission error. Now that iTunes is renting, not just selling, movies, QT is now all fussy about ownership and permissions. Just a guess.

  • Loaded child movie controlling container parent

    hi,
    i'm a designer trying to step up my flash skills and have a scripting problem that's causing me trouble.
    essentially i have a child swf loaded into a container in a parent swf and want the child to be able to instruct the parent.
    to explain in full, the child contains an flv with bespoke video player components. it's container sits in one frame of the parent.
    when the flv finishes playing, i need the parent swf to move onto another frame.
    as it's a controllable flv, it isnt possible to predict the exact length of time the child will need to be present, so it literally needs to tell the parent it's finished playing at that very point.
    it's actionscript 2 for flash 8.
    unfortunately my scripting isnt up to this, and i cant seem to find any info to help me out.
    any help would be greatly appreciated.
    thanks in advance!

    thanks, that's one half of the battle!
    the remaining problem is i have a controllable flv in the child swf, therefore i can't guarantee the length of time the flv will run as it may be paused etc.
    is there some script i can tag on first that recognizes when the flv has ended?
    realistically this is a topic in itself, but if you can help it would be appreciated.
    thanks.

  • After I import a movie file from the camera memory card, Imovie 10.0.1 acts as if the memory card is empty though I know it isn't.... I can't import that file to iMovie again.. is that the way it worksnow?  Thank you, Filippo

    On IMac 10.9  After I import a movie file from the camera memory card to Imovie 10.0.1 it acts as if the memory card is empty though I know it isn't.... I can't import that file to iMovie again.. is that the way it works now?  Anyone know?  Thanks, Filippo

    I would like to know this too. I imported a lot of files, then Imovie crashed. I went back in and they are not in imovie at all.
    I reconnected the camcorder to import again and though they are still on the camcorder, I no longer see them in the available list of files to import. I'm sure there is some sort of simple setting somewhere that reveals all files even if it thinks they are imported.
    Thanks

  • TS1702 I am having problems downloading 2 purchased movies. Cars 2 & Toy Story. I had it on My iPad, then after a while the movies would not play. I went to the apple store and they deleted it and told me that all I need to do is download it again. Not wo

    Hi
    I am having problems downloading 2 purchased movies. Cars 2 &amp; Toy Story. I had it on My iPad, then after a while the movies would not play. I went to the apple store and they deleted it and told me that all I need to do is download it again. I tried what they suggested at the apple store, but I am still not successful. It continues to tell me there is a download error. Please help! Need these movies for my 3 year old!

    User to user forum.
    Apple is not here.
    You need to contact iTunes support:
    http://www.apple.com/support/itunes/contact/

  • HT201659 Help! can't play movies after turning on Restrictions on iOS 8.1.1

    Hi guys please help me solve this issue..
    I have synced a couple of movies from iTunes, then turning on restriction on Movies in my iphone 6+ (iOS 8.1.1).
    After checking that my movies really "dissapear" from Videos app, i turned off the restriction again to access the movie. There has been no problem after I turned on the restriction again and wait for a couple days.
    A couple days later, I want to access the movies again, so I turned off the restriction. But when i open the movie it doesn't play at all, and just return to the video summary screen, as if the movie had ended. And on top right corner there is a thin circle line like it was trying to download something, but it never really progressing to any stage.
    I have tried restarting the device, turning the restriction on and off, to no avail. Finally I erased all movies and synced it right back using iTunes and the problem dissapear, but I did the same thing and a couple days later it happened again.
    Please tell me that there are other ways to solve this other than re-sync to iTunes or via iCloud. Cheers!

    Hi Selena thanks for your reply. I just did that, not solving it. But now there's a new development.. I got a message saying Connect to a Wi-Fi network to play "movie_name"
    Then I also got another message saying:
    The Operation couldn't be completed
    mpavcontroller error domain error 3
    Which brings me to this thread discusssion:
    Mpavcontroller error domain
    Did what others do with their rented videos (my case is not rented videos though):
    1.  From Settings, signed out of iTunes.
    2.  Turned off iPad.
    3.  Turned on iPad.
    4.  From Settings, signed into iTunes.
    5.  Re-opened "Videos" and was able to view rental without error recurring.
    Did not work.. Help!!

  • After I download a movie onto my laptop,it plays it ,no proplem,but when I connect the laptop to the TV the movie freezes

    After I download a movie onto my laptop,it plays it ,no problem,but when I connect the laptop to the TV the movie freezes?
    Can anyone help please?

    I'm plugging in with  the 15 pin type connector that has finger screws each side of it,(can't remember what it is called) with a separate usual plug into the earphone socket of the laptop and at the other end, into the audio output of the TV. I have been doing this for some time, with Netfix,and  other programs,and never encoutered a problem till I tried Playing a film off I tunes.

  • Block Sections in movie after burning

    After I burn a movie I put it in to watch and during faster sequences it gets all blocky. Here's what I've tried:
    I've done a test on the burner
    Burned it to the HD and it did looked the same way
    It looks fine when I watch it in QuickTime before I burn
    Changed the Performance Setting to the Quality Setting
    Exporting it from Final Cut Pro 3 in many differnet formats
    Tried it in Widescreen and 4:3
    Played it in different DVD players
    All this and nothing seems to work. I'm all out of ideas. Could someone please help??? Thanks

    Exporting it from Final Cut Pro 3 in many differnet formats
    Take a look at this:
    http://docs.info.apple.com/article.html?path=iDVD/6.0/en/22.html
    Suggest you create a disc image and then burn the DVD. File/Save As Disc Image...
    http://docs.info.apple.com/article.html?artnum=164927
    This will isolate any encoding/burning issues you may encounter. Once the disc image is created, double-click the .img and burn the virtual disc that should appear on your desktop, using Toast to burn the DVD. Disk Utility to burn the .img file. Usually, you can select a burning speed in Disk Utility.
    There are variations to this process based on which OS X you are using...
    Open Disk Utility (in Utilities folder in Applications folder), click on the virtual disc (maybe the .img) in the left-hand window. Click the Burn icon. A new window should drop down and your SuperDrive tray will open after clicking the Burn icon. Insert a recordable DVD. (Verbatim DVD-R preferred by me.) Click the Close button. Wait. Select a burn speed. If you hold your mouse cursor over the pop-up it says: "Select a slower speed to work around burn failures," so select 4x or slower for best results. Then click the Burn button.
    -->If the virtual disk selection won't allow you to click the Burn icon, use the .img file instead. This may have changed in 10.3.9 and did change in Tiger.
    Also, you can use DVD Player to play the virtual disk to check your iDVD project before burning to DVD. Launch DVD Player. File/Open VIDEO_TS (Open DVD Media... in Player 4.6). Find the VIDEO_TS folder and open that. (The audio folder is for DVD-Audio disks.)
    http://docs.info.apple.com/article.html?artnum=93006

  • Movie after playing doesn't stop at the last frame.

    Movie after playing doesn't stop at the last frame but goes back to frame one. Movie stops normaly when played on iMac but makes trouble when placed in the iBooks Author. That's not eve problem of looping (repeat none). Help, this makes me mad.

    laura4life
    You have fragments (leftovers) beyond the end of the Timeline content that you intended.
    I am going from an Elements Windows workspace, so please translate into Mac accordingly.
    Expand your Timeline content to the maximum with the Zoom Out Zoom In slider above the Timeline.
    Press the End key of the computer keyboard. That should take the Timeline Indicator to the fragments which must be deleted.
    Explore all the tracks in that area.
    Repeat the End key press until the Timeline Indicator stops at the end of the intended Timeline and not some 3 hours afterward.
    What you find at "end of track" could be fragments or files that you moved out of the way of the active project and forgot were there.
    The fragments typically present as thin vertical black lines scattered about the tracks.
    Please let us know the outcome.
    Thank you.
    ATR

  • HT4859 I am unable to recover a rented movie after changing one iPad for another. Music and books were easily restored

    I am unable to restore a rented movie after Changing out my iPad for a new one. All music and books were restored easily

    PS - have found other posts indicating that clips smaller than 2s or sometimes 5s, or "short files" can cause this. Modern style editing often uses short takes ! Good grief I cannot believe Apple. Well I deleted a half a dozen short sections and can export, but now of course the video is a ruined piiece of junk and I need to re-do the whole thing, the sound etc. which is basically taking as much time as the original. And each time I re-do it I risk again this lovely error -50 and again trying to figure out what thing bugs it via trial and error instead of a REASONABLE ERROR MESSAGE POINTING TO THE CLIP IT CAN'T PROCESS. What a mess. I HATE this iMovie application - full of BUGS BUGS BUGS which Apple will not fix obviously, since I had this product for a few years and see just hundreds of hits on Google about this error with disappointed users. Such junk I cannot believe I paid money for it and Apple does not support it with fixes !!!
    If anyone knows of a GOOD reasonably priced video editing program NOT from APPLE I am still looking for suggestions. I want to do more video in future, but obviously NOT with iMovie !!!

  • HT3209 after i download a movie from i tunes where do i find it so i can watch the movie? thanks

    after i download a movie from itunes where do i fine it so i can watch it, thanks

    Never mind. I just perused the other questions and found my answer. Thanks anyway. I'm an idiot.

  • Why after I rented a movie and finish watching it and wanna watch it again with in the 24 hours, have to pay another rent fee to watch it?

    Why after I rented a movie and finish watching it and wanna watch it again with in the 24 hours, have to pay another rent fee to watch it? When I already paid the the fee to rent it for 24 hours?

    Start the video and slide all the way to the beginning. If the video isn't in your Movie app, then the rental expired.

  • Project pane greys out after adding either HD movie footage or a photo'

    Project pane greys out after adding either HD movie footage or a photo' into iMovie '08. Since using a HD camcorder, quite often, after adding either HD movie footage or a photo', the project pane greys out. I have to exit the project and re-enter to continue viewing the project; this is tiresome. Any thoughts or is this yet another iMovie '08 bug?

    blackcomb greens wrote:
    PS ~ what is the plist?
    every app as a preference list, which can get corrupted.
    quit iM
    look in user/Library/Preferences for a file called com.apple.iMovie(x).plist (x stands for any number) ....
    trash that.
    restart iMovie..
    it doesn't hurt your projects nor does it touch any files.. it just 'resets' an app.. => slapp on backhead.. as I like to call it..
    yes, hardware is nice, as long as you don't dare to handle AVCHD .. that is on Intel Mac only..
    all Folders (Project/Events) is on local harddrive?
    no plug-ins installed (DivX etc)?

  • Inventory: Movement after count with post date before the count date.

    Hi,
    We have stock movements all the days of the week.
    We conduct physical inventories on Sunday mornings. There are not stock movements on Sunday mornings (stock movements on Sunday starts at night).
    Usually we create the SAP Physical Inventory Document on Fridays, assigning Saturday as the Planned Count Date.
    We enter the SAP Physical Inventory Count on Sunday (at the end of the count) or on Monday.
    How you recommend us to use SAPu2019s Physical Inventory feature in order to calculate the Book Inventory considering all stock movements with posting date less than or equal to Saturday?
    Please, suggest us a solution that If we register a movement after we enter the count but with post date before the count date (and the count is not posted yet), the Book inventory is modified accordingly.
    Thanks in advance for your support!!

    SAP takes the book inventory in the moment you enter the count.
    Best you set  block movements , this block will be removed automatically when you enter the count. So you can prevent users from posting until you have entered the count.
    If you set the freeze book inventory, then SAP takes the book inventory in the moment you create the document.
    This is not a good way if you still have movements after inventory document creation and actual count.
    You have to make sure - organisational  wise, outside SAP - that all movements that happened before inventory count  are posted before you start entering the count. There is nothing in SAP that can help you in this case.

Maybe you are looking for

  • Master data not present in the reporting cube

    Dear Experts, There is a scenario in report design for me. I have already created the Bex report and all the fields as mentioned are in the  sales report. Client now wants to include two more fields in the report. One is the keyfig  " Net value" whic

  • Can my wife and I share audiobooks?

    My wife and I have separate iTunes accounts but wish to share some audiobooks.  Can I download an audiobook from my wife's iTunes account (she uses an iPad) to my iPhone 5S?  It would seem appropriate to be able to synch to a different device and cho

  • Error while posting payroll results to FI  - Documents not getting created

    Hi all, While posting payroll results to FI for Dec 2011 a failure of our Production Server resulted in erroneous posting of payroll results. Posting run no: 1756 did not get posted at all though the run status shown was "document posted". The issue

  • Downloading personal video stored on computer to iPod

    Is it possible to get video that I have stored on my computer (recording from a DVR in an mpg4 file) onto the iPod? I cannot transfer it to iTunes but is there a way to transfer it to the iPod directly? Do I need to purchase a special app to do this?

  • Bad readings from DAQCard-6036E after DAQmxSelfCal() call

    Hi, I have a very urgent problem that I would like investigating. I have a DAQCard-6036E and have noticed that, occassionally, after a call to DAQmxSelfCal(), the AI readings are incorrect. All channels in my application are configured in differentia