Results 1 to 2 of 2

Thread: Flash splash page with Javascript

  1. #1
    Join Date
    May 2008
    Posts
    8
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Flash splash page with Javascript

    1) Script Title: Splash page script

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...amicsplash.htm

    3) Describe problem:

    Basically I have a flash splash page without the header on the script. Instead i have a button, in the swf, which needs to have the javascript action to close the splash page window, I think it's something simple that I am doing wrong, I hope

    The actionscript for my button in the flash movie is as follows:
    Code:
    b1.onRelease = function() {
    	getURL("javascript:splashpage.closeit();");
    ;
    }
    But when I click the button, nothing happens, I have to rely on the auto-close feature of the script. Any idea's of why the javascript isnt working? I did start to wonder is it because the script i have is in a nested movieclip, but that didnt stop getURL from opening a new window if i change it from javascript.

    Any help at all would be much appreciated

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Is b1.onRelease a Flash event handler that executes any JavaScript code put inside it when the Flash button is clicked on? If so, try this instead:

    Code:
    b1.onRelease = function() {
    	splashpage.closeit();
    }
    DD Admin

Bookmarks

Posting Permissions

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