Welcome, Guest. Please login or register.
Did you miss your activation email?
05/23/12, 02:21
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  General
| |-+  General Conversation (Moderators: Flash-db, vesa kortelainen, Ronald Wernecke, Mohsin Sumar, Jorge Solis, Mattias Robo)
| | |-+  HTML question
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: HTML question  (Read 2947 times)
mmp770
Server what's that
*
Posts: 24



View Profile WWW Email
« on: 01/30/02, 10:02 »

I'm opening a movie in a new window that has no navigation bar, scroll bars or any of that stuff, just the window title bar.

I cannot position the movie in the upper left corner of the window.

What tag should I use to do it?

Thanks,

mmp770
Logged
Flash-db
Administrator
Systems Administrator
*****
Posts: 1867



View Profile WWW
« Reply #1 on: 01/30/02, 14:21 »

Hey,

I assume that you are using a Javascript function to open this window.  Right next to the width and height attributes - you can place the left, and top attributes.  set   left=0,top=0.  

For example:

('ShowPopup.php','newWin','width=400,height=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');  

etc etc.   If you do not want to use the javascript in the html part of the Movie, You can use something like this:

on (release) {
getURL ("javascript:NewWindow=window.open('ShowPopup.php','newWin','width=400,height=300,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No');  NewWindow.focus();      void(0);");
}

If you place that on any button in Flash it will open up a window with dimensions 300x400  in the upper left had corner of the movie.  The important thing to look at is the  left=0,top=0, part of the above.  You can change any of the values around to fit your movie - For example change the Width= and Height= part to reflect the size of your movie.  
Logged

-Jeff.
mmp770
Server what's that
*
Posts: 24



View Profile WWW Email
« Reply #2 on: 01/31/02, 04:09 »

Jeff,

I think I did not express myself well.

I open the new window from a standar HTML page. The new window has a Flash movie and I want that movie to be located in the top left corner of the newly opened window.

The code you sugest I use will place the new window in the top left corner of the display (which by the way I also want).

Thanks,

mmp770
Logged
Flash-db
Administrator
Systems Administrator
*****
Posts: 1867



View Profile WWW
« Reply #3 on: 01/31/02, 18:40 »

In the html that you are embedding the movie in add this code:

<body bgcolor="#FFFFFF" topmargin="0" leftmargin="0" rightmargin="0" marginheight="0" marginwidth="0">

Right after that add the <Object> <embed> code for the swf movie you are using.

-This will eliminate any margins or white space around your movie.  Then by default it will be in the upper left hand corner of the page, with no margins or borders.

(Is that what you meant?)  
Logged

-Jeff.
mmp770
Server what's that
*
Posts: 24



View Profile WWW Email
« Reply #4 on: 02/03/02, 03:07 »

Yup,

That solved the problem.

Thnx
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything