#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Location
    london
    Posts
    3
    Rep Power
    0

    forcing Flash movie browser to top...


    Hi guys,

    I am putting a flash movie together that will load into the background and i want it to pop to the top of the browser pile once it has loaded.

    I was wondering if anyone knows of a way to force a flash movie to the top of the browser pile once it has loaded.

    I have been playing around with trying to put javascript style onblur:self.focus commands on frame one of the loaded movie, but no success yet.

    Any help appreciated!
  2. #2
  3. macho member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2002
    Posts
    207
    Rep Power
    12
    Not sure this is the best way, I've heard it does not work in some version of IE on the mac.

    function focusMe(){

    window.focus();

    }

    place above script in the HTML holding your Flash.

    then, when your flash has finished loaded. Instead of just a gotoAndPlay(), also place:

    getURL("javascript:focusMe()");

    Can anyone clarify whether this works on the Mac?

    Thanks
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Location
    london
    Posts
    3
    Rep Power
    0
    It does the trick.

    Thanks for your help!


IMN logo majestic logo threadwatch logo seochat tools logo