Can you tell when a loaded SWF has reached its final frame?

I used loadMovie to load an external SWF into the bottom-half
of a main "shell" swf. When that loaded SWF finishes playing (it's
just an animation), I need to populate a text field with the word
"DONE" . The text field resides on the _root, so I need some way to
know when the loaded SWF has reached its last frame...
This would obviously be easy if I had the .FLA of the loaded
SWF because I could just write the actionscript on the last frame
of that SWF to populate the _root textfield. Alas, I do not have
the source FLA of that loaded SWF, so I need some way to have the
main "shell" SWF/FLA know when that loaded SWF has reached its end.
Is this possible???
Thanks!!!

DIY_Lobotomy,
> The reality of my situation is that there's a "menu" of
sorts that
> gets loaded into "contentClip". This "menu" has a bunch
of links.
So far, so good.
> When clicked, each link loads a DIFFERENT swf into
"contentClip".
> It is THOSE swfs that I need to note the end of.
That's still okay.
> So, there's actually more than one, and they're not
exactly being
> loaded directly from my main movie, since they're
actually loaded
> based on a link being clicked in the movie that is
currently loaded
> into "containerClip"
The concept is still the same, no matter what. No matter how
deep the
one-clip-loads-another chain goes, you have to keep taps on
each chain link.
When the final link has loaded, you'll be able to make your
object reference
to that movie clip. That movie clip -- because it's an
instance of the
MovieClip class -- will have the _currentframe and
_totalframes properties.
You'll just be checking *that* cliip's properties instead of
the one named
contentClip in my own example.
You can loop using onEnterFrame or, if you prefer, with
setInterva().
That doesn't much matter either, so long as you repeatedly
poll the deepest
clip to test its current frame against its last frame (this
all assumes that
the clip being tested is a linear animation whose end
corresponds to its
last frame; otherwise, you could check _currentframe against
any arbitrary
frame number).
> I hope that wasn't too confusing! Do you still have a
solution???
Not too confusing to understand, but it might be confusing
to route
through in practice. Not confusing, actually, but meticulous
... you'll
have to be careful with your pathing. Nested movie clips are
very much like
nested folders on your hard drive. Their instance names
relate to the
folder names.
Now, if that menu doesn't have an instance name you provided
-- or if
any fork along the path has an instance name you can't
control -- you can
still reference the nested movie clips. If you test your file
in the
Debugger panel, you'll see all the instances laid out in
hierarchical order.
You'll see that automatic instance names are provided
(something like
"instance1", "instance2", etc.).
David Stiller
Contributor, How to Cheat in Flash CS3
http://tinyurl.com/2cp6na
"Luck is the residue of good design."

Similar Messages

  • On IOS 7, how can you tell when your battery is charging for your phone?

    on IOS 7, how can you tell when your battery is charging for your phone?

    thanks everyone=you all helped.
    I wasn't used to not getting the 2 sided plug- now I know I am ok>
    **hugs**

  • Hi Can you tell me any datasource whcih has both action type and wagetype.

    Hi
             Can you tell me any datasource or cube or multiprovider whcih has both action type and wagetype.
    Edited by: manukonda anil kumar on Oct 11, 2010 1:45 PM

    hi Manu,
    I think this question has been answered check the below thread.
    Datasource in HR which has both payroll and wagetype.
    Regards
    Kp

  • Can you tell if your MacBook Pro has latest revision logic board??

    is there any way to tell if your MacBook Pro has latest revision logic board??

    I'm awaiting the same thing, also in the U.K. The service center told me that they've had many of these repairs, and that there is a substantial backorder for logic boards in the U.K. I was told that it could be 6-8 weeks, which is absolutely appalling. I think that's an intolerable amount of time to repair a brand new, quite expensive computer.
    MacBook Pro + Powerbook G4   Mac OS X (10.4.8)  

  • How can you tell when your timeline has surpassed making one DVD?

    Is there a way that Final Cut Express lets you know that you have passed a certain amount of space to record on one DVD?
    Thanks,

    There are many variables to this problem. iDVD, for instance, lets you record 1 hour of video [total] for the best quality. It also can record up to 2 hours compressing it down as needed, so you loose quality. If you are using DVD Studio Pro, you have many different compression options, and therefore, you can have different maximum lengths of time that can be recorded onto DVD. Then, there are applications like Burn* that are simple, and don't do menus, so it offers more room for video. Then, of course, you can use a Dual-Layer DVD, which doubles the capacity of a DVD, so there's more content you can burn using iDVD** (or just better quality). I'm sure others can contribute more than I did.
    - Craig
    * http://burn-osx.sourceforge.net/
    ** Using iDVD 6

  • Can you tell if your stolen ipad has been updated

    I don't understand why apple cannot check my serial number to my lost or stolen ipad 2 and tell me if anyone has re-regestered or updated it since my loss of it.
    Aplle can find me any where on the globe but I can't get them to see if my ipad was stolen or I really just lost it. I had find my ipad installed but it hasn't turned on. unless the person whoi stole it cleared it out before I noticed it missing. If it has been updated since its lost than someone has it, if not it's somewhere and I will find it. I feel like I am not the only one with this problem. with all the money we spend on apple products a request like this should be done with out hesitation..
    thanks to anyone listening or who ever feels my pain,
    wjforbes

    no one asked apple to be in law enforcement. they don't seem to have a problem sending push notifications and using my location for thier benefit. i'm only asking for a little help to find my ipad that i paid $5600 for.  any device these days can be located if lost or stolen. these companies choose not to use thier abilty to locate these devices because they would rather you go out and buy another device. please don't take me wrong, i do not hold apple responable for my ipad. after spending hundreds of dollars on ipads iphones and apps i only asked for a little help. i am sure that i am not the only person who is frustrated by this. i am sure if law enforment came to them(apple) and told them to locate me on my ipad or iphone they would have no trouble finding me.

  • How can you tell when your new tablet was first actervated

    I bought a HP Omni 10 window's 8.1 tablet display model (last one) and was told it was never turned on ,when i first turned it on windows was activated and the tablet was running and i did not have to set any thing up .
    My question is ,is there a place on my tablet that has recored the time it was activated.
     Lewis from Australia.
    This question was solved.
    View Solution.

    Hi justlewis. I understand you want to determine when Windows 8.1 was originally activated. This will show you when it expires, but I am not certain how long it takes to expire:
    How to Confirm that the Windows 8 System is Activated Successfully
    TwoPointOh
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

  • How can you tell if an iPod touch has the new apps?

    Having seen the updates to the ipod Touch I'm finally ready to buy one. From the keynote I gather that new units shipping from the factory after 15 Jan have the new software, old units do not and, unusually for apple, even if you buy an old software unit after the announcement, you don't get the software for free. Worse still, I'm in one of those countries they sell the touch, but don't have an iTunes store, so if I buy an old one, I'm stuck with it, cannot upgrade.
    Is there any way to tell from the box which version you have, change in part number, anything? I'm sure they aren't doing the M$ sticker approach "now with 1.1.3 and lots of new apps". The return policy out here in Singapore is basically you can't, so I need to figure out in the store if the box I'm buying is new, or old, and I have no clue at all how much stock is left out there.
    Any suggestions?

    Hello, 
    If you're going to buy in a real shop then why not have the retailer open the box for you. Especially if they don't do returns - that's a must.
    The next suggestion is a little more hit-and-miss but the fourth and fifth digits of the Serial Number are the week of production. If you get a week 02 or later it should be okay. Perhaps someone with a brand new one could confirm.
    mrtotes

  • How can you tell when the battery is fully charged?

    when done syncing, i have a totally green large battery icon- but thats what i always have- any other indication- or am i misreading the large green battery as an indicator to charge completness?
    the little white battery icon never seems to change when using touch 2g?
    what am i missing please
    thank you very much
    bob donchez

    The small battery symbol has a lightning bolt symbol when the battery is charging and a electrical plug symbol when it is completely charged.
    There are pictures in the users guide, page 27: http://manuals.info.apple.com/enUS/iPod_touch_2.1_UserGuide.pdf

  • HT201328 HOW CAN YOU TEL WHEN YOUR IPHONE IS UNLOCKED ?

    I RECIEVED THE UNLOCK CODE FROM AT&T , DID WHAT IT TOLD ME TO  DO BUT IM NOT SEEING ANYTHING SAYING THE PHONE IS UNLOCKED . HOW DO I TELL IF IT HAS BEEN UNLOCKED OR NOT ?

    What unlock code .There is no code it is all processed through iTunes
    http://support.apple.com/kb/HT5014

  • How to enable a reminder for when a shared review has reached its end date?

    I thought Acrobat will send the initiator of a shared review a reminder before the "end review" date is reached. This will allow him/her to check with the reviewers how they are going.
    It seems we aren't receiving that reminder anymore.
    When I setup the shared review process initially I thought I saw a reminder that the review is ending in a day or so.
    Lately it looks like that has stopped...
    We use Acrobat X Pro & Std, SharePoint and Outlook 2010
    Appreciate your help

    Acrobat doesn't send scheduled emails and never has done. You have the option to manually 'email all reviewers' via the Tracker dialog, and of course when someone opens the PDF they'll be told the deadline.

  • How can I tell when a text message is  received and opened

    how can I tell when a txt message has been received and opened ?

    Correction: How will I know when a SMS or MMS text message has been received and opened when the person I'm texting has an Android phone ? My last phone was Android and had a setting that notified me when my sent texts were received by someone. Just got my iPhone about a week ago.  Totally different.                                                                                                                                                                                             
                     

  • Can you tell me what to do? "This iPad has not been backed up in 4 weeks.Back ups happen when this iPad is plugged in locked and connected to Wi-Fi" What do I do?

    Can you tell me what I should do? My iPad shows the following message, " This iPad has not been backed up in 4 weeks. Back ups happen when this iPad is plugged in locked and connected to Wi-Fi"  Thank you in anticipation you will be able to help me, Ray Mill.

    Try a reset. Hold the Sleep and Home button down (together) for about 10 seconds until you see the Apple logo. Ignore the red slider.

  • I have been using firefox aurora 7 for mac. Most of my handful of add-ons have been disabled -- including Read It Later and Feedly, which I was making good use of. Can you tell me when they will be enabled for firefox aurora 7?

    I have been using firefox aurora 7 for mac. Most of my handful of add-ons have been disabled -- including Read It Later and Feedly, which I was making good use of. Can you tell me when they will be enabled for firefox aurora 7? Maybe I should go back to firefox 6

    You can use the Tab key to select a search engine on the bottom bar and press Enter to use the search engine to do the search.
    *https://support.mozilla.org/kb/Search+bar
    In the current Firefox 34 release there is a new "one-off" search bar.
    This search bar doesn't show the name of the search engine and a logo.
    You can type one letter to make a drop-down list appear where you can see suggestions and see the used search engine and that also has bar at the bottom where you can select other search engines that are enabled via the Search tab in Options/Preferences.
    You can use the Tab key to select one of the other available search engines and press the Enter key to search with the selected search engine.
    Click the search engine icon and click "Change Search Settings" to open the Search tab in Options/Preferences (positioned between Tabs and Content) to select the default search engine and select which search engines to show in the search bar drop-down list that opens when you start typing search terms.

  • Can you tell me How to loading sessions.xml in servlet

    Can you tell me How to loading sessions.xml in servlet

    Getting a session in a servlet is no different than in any other environment except that you need to be careful which classloader you pass to the SessionManager and correctly configure what to do if your application is reloaded. If you use the oracle.toplink.util.SessionFactory introduced in 10.1.3.1 you don't have to worry about these details--it uses the correct settings. The SessionFactory greatly simplifies the code required to get a session or unit of work. It's well documented in the SessionFactory javadoc.
    If you do use SessionFactory beware there is a bug when running in a JTA environment and there's no transaction started. Doug posted a work around in his blog[1].
    --Shaun
    [1] http://www.jroller.com/page/djclarke/20060412

Maybe you are looking for

  • Error while deployingejb  jar file in weblogic 8.1

    Exception:weblogic.management.ApplicationException: prepare failed for testsix Module: testsix Error: Exception preparing module: EJBModule(testsix,status=NEW) Unable to deploy EJB: C:\bea\user_projects\domains\mydomain\applications\testsix.jar from

  • SAP J2EE Engine : does not work !!!

    Hi everyone, I have installed SAP NW2004s Java SP9 Trial (on Windows XP and Sapdb as database). The installation finished without problems. But when I start my SAP system, the SAP J2EE engine (process <b>jcontrol</b>) is still stopped [... I have alr

  • Palm Pre on Go Daddy Accounts (Pop Accounts) - Can't Get It To Work

    I have successfully set up both my Gmail and my Comcast accounts to work on my Pre.  However, though the Go Daddy accounts say they are syncing, they do not receive e-mail.  When I send e-mail from this account I get an "Email Application Alert Error

  • Styling components

    Can someone give me some general examples of how to apply style to components? I already have components on the stage (so not generating them new from classes in ActionScript). Specifically, I need to designate the display text for both the checkbox

  • Help w/ screwdriver for upgrading SSD

    I have opened my lenovo yoga to upgrade the ssd but don't have a phillips screwdriver small enough for the screws holdingthe metal piece down. I went to radioshack and the smallest they had was 00, which was too big. Ive looked on amazon but am not s