Welcome, Guest. Please login or register.
Did you miss your activation email?
05/23/12, 12:34
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)
| | |-+  window size doesnt fit exactly to image loaded?!?!?!?!
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: window size doesnt fit exactly to image loaded?!?!?!?!  (Read 2273 times)
fire_for_SiN
Server what's that
*
Posts: 2



View Profile Email
« on: 01/31/02, 23:31 »

I need to make a window pop up when clicking a button in flash that will load an image and the window will fit exactly to the size of the image without bars, scrollbars...etc...

go to http://www.andallthatcouldhavebeen.com and enter. Then click on the little box in the left hand bottom corner and an image should pop up in a window that fits it exactly...that's what I need to do, can anyone help!?!??!

Mike


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



View Profile WWW
« Reply #1 on: 02/01/02, 00:02 »

Ok - What your going to have to do.

1) Find out what the dimensions of the image you want to use are.  You will need a width and Height for the image.

2) Embed this image in an html page - like <img src="yourimage.jpg">  

3) Use the following Body Tag for that Html page:
<body bgcolor="#FFFFFF" topmargin="0" leftmargin="0" rightmargin="0" marginheight="0" marginwidth="0">

(You can change the background color if you want but it will not matter).

4)  The place the following Javascript on a Flash Button:

on (release) {
getURL ("javascript:NewWindow=window.open('TheNameOfYOurHTMLPage.html','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);");
}

5) Change the Name of the HTML page (Shown in Green) - To the name of the html page containing your image.

6) Change the Width and Height values (shown in red) - To the exact dimensions of your movie.
Logged

-Jeff.
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