A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: Flash movie shows off-center in the pop-up window

  1. #1
    Junior Member
    Join Date
    Dec 2001
    Posts
    4
    Hi, I am relatively new to Flash and HTML so I hope that there is some one out there who can help me.
    I am working on a flash site that opens in a pop up window (450x580). The home page is a regular HTML site, containing a button that opens the pop up window (450x580) with the main site designed in Flash. The window opens, in Explorer 4 however, the Flash movie in it is shifted towards the lower right corner even though the movie is set to "center" in Publish settings.
    Here is the link so that you can see
    http://adriana_d.tripod.com/daeMonAD/title.htm
    (click the upper dark pannel to open the pop up window)
    I have tried different settings, still the movie remains off center and therefore cutting off the rest of the design. Please, if you have any idea why is this happening let me know.
    I would greatly appreciate it.

  2. #2
    Senior Member
    Join Date
    Oct 2000
    Location
    California
    Posts
    357
    Try adding the following code to the Body tags in the popup html file:

    LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0" STYLE="margin:0px"

    That should bring it all in.

  3. #3
    Junior Member
    Join Date
    Dec 2001
    Posts
    4

    pop up window

    Thank you very much for the suggestion. I have added the code but it still doesn't work. Here is the segment of html where I have added the code.

    <td width="23%" bgcolor="#000000" align="center"><a href="#" onMouseOut="MM_swapImgRestore()"><img name="Image4" border="0" src="pannel1.gif" width="112" height="209" onMouseDown="MM_openBrWindow('http://adriana_d.tripod.com/daeMonAD/main.html','daeMonAD','resizable=no,width=580,heig ht=450','LEFTMARGIN=0','TOPMARGIN=0','MARGINWIDTH= 0','MARGINHEIGHT=0','STYLE=margin:0px')" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image4','','FlashOver.j pg',1)"></a>
    </td>

    First I pasted the code exactly as you wrote it, and since that didn't work I changed the quatation marks to single apostrophe sign. But that made no difference either.
    I believe that I didn't add the code in the right place.

    Thank you anywaysOne day it will show properly, I know.


  4. #4
    Senior Member
    Join Date
    Oct 2000
    Location
    California
    Posts
    357
    No, you need to put them in the <BODY> tags right after your <HEAD> tags at the beginning of your html document.
    Take them out of the javascript.

  5. #5
    Junior Member
    Join Date
    Dec 2001
    Posts
    4
    Originally posted by blakew
    No, you need to put them in the <BODY> tags right after your <HEAD> tags at the beginning of your html document.
    Take them out of the javascript.
    LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0" STYLE="margin:0px"

    Thank you once again.
    I only added the STYLE="margin:0px" tag because I had the other tags already in. SO now the beginning of <body> tag looks like this:
    <body bgcolor="#FFFFFF" text="#000000" link="#CCCCCC" alink="#FFFFFF" vlink="#FFFFFF" leftmargin="0" rightmargin="0" bottommargin="0"topmargin="0" marginwidth="0" marginheight="0" STYLE="margin:0px"


    AND I am doing it wrong again because it still doesn't work.

  6. #6
    Senior Member
    Join Date
    Oct 2000
    Location
    California
    Posts
    357
    Yes.
    You need to have a space in between the following:

    bottommargin="0"topmargin="0"

  7. #7
    Senior Member
    Join Date
    Oct 2000
    Location
    California
    Posts
    357
    Also, I was just looking at your code and you need to place the corrected code into the <BODY> tags of your popup html page. That would be the file main.html
    That is actually what I was saying in my first reply.

  8. #8
    Junior Member
    Join Date
    Dec 2001
    Posts
    4
    THANK you ....IT WORKED!!!!
    I appreciate your patience with ignorant people like myself. Soon I can get a domain name, thanx to you.

    Adriana

  9. #9
    Senior Member
    Join Date
    Oct 2000
    Location
    California
    Posts
    357
    Glad to help.

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