A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Here's a quick one...

  1. #1
    Professional Air Guitarist Frag's Avatar
    Join Date
    Dec 2002
    Location
    Brain, Body, Clothes, Computer Chair, Room, House, Neighborhood, City, State, Country, Continent, World, Galaxy, Universe, and on?
    Posts
    811

    Here's a quick one...

    Is there a way to do
    Code:
    html:
    body onunload="..."
    in Flash? Maybe
    Code:
    actionscript:
    on (movieUnload) {...}
    or something? I need to know because I'm making a chat room and I'm trying to figure out how to detect a user leaving the chat.

    Thanks
    Last edited by Frag; 04-22-2003 at 02:06 AM.

  2. #2
    Senior Member
    Join Date
    Feb 2002
    Location
    Lebanon
    Posts
    573
    hi..
    please make your question clearer..
    do you want to detect that the whole movie is closed or the movieclip is unloaded, because you can do the latter by usint eh handler:
    Code:
    onClipEvent(unload)

  3. #3
    Professional Air Guitarist Frag's Avatar
    Join Date
    Dec 2002
    Location
    Brain, Body, Clothes, Computer Chair, Room, House, Neighborhood, City, State, Country, Continent, World, Galaxy, Universe, and on?
    Posts
    811
    the whole movie

  4. #4
    Senior Member
    Join Date
    Feb 2003
    Posts
    825
    the only way I can think of doing it is by loading it through a JavaScript function & then unloading it w/ javascript as well...

  5. #5
    Professional Air Guitarist Frag's Avatar
    Join Date
    Dec 2002
    Location
    Brain, Body, Clothes, Computer Chair, Room, House, Neighborhood, City, State, Country, Continent, World, Galaxy, Universe, and on?
    Posts
    811
    and how would i do that?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center