Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

java pop up-exact size with no scroll or navbar from flash 1

Status
Not open for further replies.

deecee

Technical User
Aug 25, 2001
1,678
US
how do i link an image--which is a symbol (or does it not matter)--to pop up a bigger image from flash--just like some webpages that have thumnails and when u klik the thumb a bigger one pops up and the image is exact size of explorer window....basically what im asking "is it possible to have a popup exact size window from flash and whether i can have it pop up to an absolute location on the monitor?"
Im new to flash and am working on my first site.....plz help.


DEECEE
 
Hi,
Put this in the html file that flash maid for you.
<script language=&quot;JavaScript&quot;>
//<!--

var launchMap = null;

var w = 0;
var h = 0;

function deadCentre(url,w,h) {
if (window.screen) {
var chasm = screen.availWidth;
var mount = screen.availHeight;
launchMap = window.open(url,'posB','width=' + w + ',height=' + h + ',left=' + ((chasm - w - 10) * .5) + ',top=' + ((mount - h - 30) * .5));
}
}
// -->
</script>


Then in flash right click on your button and go to actions/basic actions/get url and put this in the url section..
&quot;javascript:deadCentre('myPage.htm',620,440)
make sure to change &quot;mypage.htm&quot; to the name of your html file or pic u want to opean.
620 is the width of the window
440 is the height of the window
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top