Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

Closed Thread
Results 1 to 4 of 4
  1. #1

    Exclamation Website loading blank page

    I've searched the forums and apologize if this has already been covered, jsut point me in the right direction if so.

    I have an iMac G5 OSX10.4something, FLash plug-ins installed in Firefox and Safari.

    I created a multi-scene flash project in Flash 8, and used the "Publish" option to export it into HTML and SWF files. When I load the HTML file in Firefox I can see it, but in Safari all I get is a blank white page. I went to "View Source" and all the code is there, but the page is completely white. No errors, no pop-ups. I have any and all ad-blockers disabled.

    Two other people have seen the same thing, and I am 99% sure they have Windows with IE or PC-Firefox.

    I am able to see the SWF file if I link to it directly, But something in the HTML isn't working properly.

    Help!!!! I need people to be able to see my site because I'm looking for a job.
    Last edited by therachel84; 06-12-2008 at 02:31 AM.

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2

    Default

    well lucky me... or stupid, one of the two. i just kept removing different parts to see if i could figure it out on my own. flash 8 automatically puts blank links in there to all the SWF files it needs. i thought they needed to stay in order to function within the main file but i tried removing them and it worked! they all looked like this (minus the spaces):
    <!--url's used in the movie-->
    < a href="video/video_01.swf" > < / a >

  4. #3

    Default

    well, actually, that wasn't the problem; it was my javascript. i have a js function to open a popup window with an HTML version of my site for users who don't want flash. the js works fine on my index2 page, but on my new index page (with the flash and embedded swf object) it won't work. is that a glitch you think, or do flash and javascript not work together? it's the same exact code in both files.

  5. #4
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    Flash and Javascript work quite well together. In fact, Actionscript and Javascript are very similar languages. Is the Javascript function defined in the correct place in the HTML page?

    You can use Javascript in conjunction with the getURL method to open a customized window directly from flash...

    Basic getURL from a button event....object code...
    Code:
    on (release) {
    	getURL("javascript:NewWindow=window.open('http://msn.com','newWin','width=400,height=300,left=200,top=200,toolbar=No,location=No,scrollbars=Yes,status=No,resizable=Yes,fullscreen=No');  NewWindow.focus();      void(0);");
    }
    Custom Actionscript function for Javascript pop up windows ... bonus...also centers the window on screen...


    Code:
    function launchNewWin(url, wdth, hdth, windowNewName) {
    	if (windowNewName == undefined) {
    		var windowNewName = "newWin";
    	}
    	//End if
    	getURL("javascript:window.open(\""+url+"\",\""+windowNewName+"\",\"width="+wdth+",height="+hdth+",top=\"+((screen.availHeight/2)-("+hdth/2+"))+\",left=\"+((screen.availWidth/2)-("+wdth/2+"))); void(0);");
    }
    _root.launchNewWin("http://flashadvisor.com", 700, 380, "myNewWindow");
    Regards
    NTD
    A mind once stretched by a new idea never regains its original dimensions.
    - Oliver Wendell Holmes

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

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
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial