When user browses away from my html

Like most of the use of swf, my swf is embedded in an html.
I'm wondering if I can catch the event in my swf when user browses
away from the html. Is swf gets unloaded at the time? Can I do
certain things in actionscript when it happens?
Help is appreciated.
thanks,
Ted

Hi Ted,
Tough to say how much you will be able to do as the URL is
changing,
but I believe JavaScript has some function like "onUnload"
that you can
use. You can then use the fscommand-style call to invoke a
function in
your Flash movie to let it now it's about to be gone.
I haven't tried this though so I don't know how effective it
is.
Patrick
nehcdet wrote:
> Like most of the use of swf, my swf is embedded in an
html. I'm wondering if I
> can catch the event in my swf when user browses away
from the html. Is swf
> gets unloaded at the time? Can I do certain things in
actionscript when it
> happens?
>
> Help is appreciated.
>
> thanks,
> Ted
>
http://www.baynewmedia.com
Faster, easier, better...ActionScript development taken to
new heights.
Download the BNMAPI today. You'll wonder how you ever did
without it!
Available for ActionScript 2.0/3.0.

Similar Messages

  • Clear Dashboard prompts when user navigates away from the dashboard

    We show our users several dashboards with similar dashboard filters, for example region. When the user applies the dashboard filter on one dashboards, subsequently navigates to a second dashboard, the filter sticks. Is there a way to automatically clear the dashboard prompt?
    Thanks for the support!

    The below code is used for clearing the prompts values by hitting the button.
    See how it helps you
    To get this use Dashboard objects->Text->Check 'Contains HTML Markup' and use this content
    &lt div class="XUIPromptEntry minibuttonOn"&gt&lt a href="#" onclick="return PersonalizationEditor.removeDefaultSelection(false)"&gtClear&lt/a&gt</div>
    Replace &lt with < and &gt with >
    If it is helpful, please mark as correct or helpful
    Edited by: svee on Jun 28, 2012 6:44 AM
    Edited by: svee on Jun 28, 2012 6:47 AM

  • DW CS6 - Spry collapsible panels - How to have panel close when you click away from it?

    I know typically onmouseout is used to close other items, but I could not figure it out with the spry collapsible panel. I have the panel opening onclick and closing onclick, but I would really like for it to close when you click anything else on the page outside of the panel.
    Thank you!

    Sorry, I did not mean other collapsing panels close when you click away from it. I simply meant in general for the closing after clicking away function, you can use onmouseout. I was working on something with collapsing panels and I wanted it to show the information when you clicked on it, but when you click on another panel, they both remain open. I really want both to close. I believe accordion does this, but not quite what I am looking for either.
    Here is a better example of what I would prefer: Houston Public Library
    If you visit their page and click "Find it" a box pops down with information and then when you click anywhere else on the screen, it closes that box. When you click "Research," it closes the "Find It" box and opens the "Research" box. There is likely a much better way to do this, but I am pretty new to this.
    Any assistance is very much appreciated.
    Thank you!

  • Hello, I am running Mac os 10.6.8. It is shutting down without warning when I walk away from the computer for about 5 minutes. It happened twice. It was not asleep, i had to turn the computer back on...Any ideas...

    Hello, I am running Mac os 10.6.8. It is shutting down without warning when I walk away from the computer for about 5 minutes. It happened twice. It was not asleep, i had to turn the computer back on...Any ideas...
    G. Mendel

    Crashes
    The next time the problem happens, note the date and time the problem occurred, then go to Applications/Utilities/Console and copy the log starting at the time of the crash. Paste the log in a reply. Please do not use a screen shot as they can be hard to read. If there are repeated runs of the same messages, please post only one run. Be selective about what you post and don’t  post huge amounts. Make sure there is no personal data visible. Information learned from Linc Davis.

  • HT4623 I keep losing my wifi signal when I move away from my router on my iPhone 4

    I keep losing signal on my iphone4 when I move away from router,I can't seem to get any wifi in another room in house.any ideas

    Yes it's the long srew on the top inside the phone wich rely the board with the alluminum chassis oh the iphone 4.
    Good luck

  • Is it possible to transfer iMOVIE 11 projects between my iMac and iPad2 so that I can work on projects when I'm away from home?

    Is it possible to transfer iMOVIE 11 projects between my iMac and iPad2 so that I can work on projects when I'm away from home?

    ARD is totally unnecessary and inapplicable for your scenario. ARD is a Mac OS X application for managing other Macs and is not useful if you want to connect to a Mac from some other OS. Mac OS X has a VNC client build int, so VNC,  or one of the number of other remote control solutions - LogMeIn, for instance, if they offer a Linux version - is where you want to be looking.
    Regards.

  • HT1937 Since I downloaded ios7 on my iPhone 5 I have not been able to access the internet at all when I am away from a wifi connection.

    Since I downloaded ios7 on my iPhone 5 I have not been able to access the internet at all when I am away from a wifi connection.

    Is Cellular Data turned ON? See Settings > Cellular Data.

  • Please help - I found a sent message in my ms outlook (that I didn't send) with no senders listed - mozilla firefox.ink . this happened when I was away from my computer.

    This situation happened when I was away from my computer. I did have a glitch in sending an email directly from word right before this email went out. I can see the email - it shows no senders but when I try and open the email - outlook gives a message stating it blocked a potentially unsafe item. I've never seen an email in my sent items without me sending it. I am not a technical person and would greatly appreciate your help!

    Are you sure Duane?
    Then how come ALL of my neighbor's routers don't appear inside my Airport Utility.
    I have never ever seen the image of somebody else's wireless router INSIDE my Airport Utility window.
    Yes, I can see a lot of my neighbors' router's in the drop down menu list of the
    airport utility icon in the right upper corner of my monitor screen. I can even see another
    neighbor's Time Capsule on that list. But they don't appear inside my Airpor Utility window.
    Just this one particular one.
    This is the first time that I have ever seen the image of somebody else's router inside my
    Airport Utility window.
    Is there any way that I can delete it from my Airport Utility window? It freaks me out
    to see the image of somebody else's router inside my software.
    thanks!!

  • Why can't I get my email messages when i'm away from home?

    My Blackberry gets emails when i'm at home via our wireless network, but when I'm away from home, I don't get any email messages or text messages at all.  We have both the home WiFi wireless network "on" and the Mobile Network is on.  What should I do so I can get emails when I'm away from home?

    Without a Blackberry Data Plan you can't get email pushed to your Curve.  While on your wi-fi network you are able to access your email, but away from that link you need a data plan.
    Наглый пес! Вы должны быть благодарны мы даем Вам возможность проживать в нашем мире!
    BB 9550 Verizon OS 5.0.0.1015 My Storm My Blackberry My Lifeline
    If there is a Theme on my Blackberry, Hedone it!
    If someone successfully helped you with an issue, say thank you by clicking "kudos" in their post and clicking the star.
    Antiquis temporibus, nati tibi similes in rupibus ventosissimis exponebantur ad necem
    If your issue has been solved, please mark the post that solved it for you!

  • Why does my recording stop when I navigate away from AA3?

    I noticed recently that when I navigate away from AA3, my recording stops. This is extremely inconvenient. How do I fix it?

    Well, the first thing to do is go to Edit/Audio Hardware Setup and make sure the box beside "Release ASIO Driver in Background" is NOT ticked.
    However, when using ASIO drivers remember that you can't have mutliple pieces of software trying to use the driver at the same time.  This is a restriction of ASIO itself and not an Audition restriction.
    Bob

  • I suddenly can't get email or internet access on my I-phone 4G when I'm away from home. how can I fix this?

    Yesterday, I suddenly lost the ability to access email and Internet on my I-phone when I'm away from home (where we have Wifi).   Is there a simple way to fix this?  I have gone into Settings and can't figure out what to do. 

    if you're away from how do you access data? through your network? check if you turned off your data. Go to SETTINGS>GENERAL>NETWORK
    turn on Cellular Data if it's OFF
    3G should also be ON for faster access.

  • I went from an I-Phone 3GS to I-Phone 5, I can make phone calls out but I can't access the internet when I am away from my WI-FI connection... any ideas?

    I went from an I-Phone 3GS to I-Phone 5, I can make phone calls out but I can't access the internet when I am away from my WI-FI connection... any ideas?

    but in the home with wireless internet access , it is continued when off, sometimes can not working,
    What does "it is continued when off" mean?
    And the same for "somtimes can not working"?

  • HT3867 Can I get wifi when I'm away from my wifi

    Can I get wifi when I'm away from mine

    But you wont get your personal WIFi though
    My Site :http://multishopbd.com

  • Since updating firefox it constantly crashes when i navigate away from the homepage

    I have recently updatedFirefox to the latest version, but since doing this it crashes when i navigate away from the homepage

    Problem solved.I removed mozillateam/stable repo from my sources list.Then removed firefox using 'apt-get remove firefox' and then installed firefox after a restart.Also removed '.mozilla' folder in my home directory which was probably the root of this problem.Now replaced my previous profile FF 10 woking great.

  • Is it possible to detect when a user navigates away from a webdynpro page?

    I need to detect when a user navigates away to stop a timer set for the purpose of logging out a user after a certain amount of time. If they click exit I can capture the event but if they click another tab then I cannot. I know when in edit mode the SAP code for work protect will catch that and ask if you would like to save, but I don't think I have any access to that code. Does anyone know how they accomplish this and can it be done if the user is just looking at data also?

    Yes, you can do that using Exit Hook method wdDoExit
    We have used following hook to unlock the locked record of database table, which was open in edit mode.
    //@@begin javadoc:wdDoExit()
      /** Hook method called to clean up controller. */
      //@@end
      public void wdDoExit()
        //@@begin wdDoExit()
         wdComponentAPI.getMessageManager().reportSuccess("exit called");
        //@@end

Maybe you are looking for