Help - Search - Member List - Calendar
Full Version: Link a flash file and have it open correctly
WorkTheWeb Forums > Webmaster Resources > Macromedia Flash
Support our Sponsors!
Dave
How do I link a flash file from an html page and have it open in a new page
at the correct size.

An example, the flash is 320x240, but it open as a full page and is
distorted.

I am link from a button in an html page.

Is there a better way to show and flash file?

Thanks

Dave K

Michael Brown
You need to use JavaScript to do this an example would be...

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<a href="void()"
onClick=window.open("myfile.swf","flash","HEIGHT=320,WIDTH=240")>Click
Here</a>
</body>
</html>

Replace myfile.swf with the path to the Flash file you want to open.

Hope this helps

Michael

"Dave" <[Email Removed]> wrote in message
news:7mdfb.13404$[Email Removed]...
QUOTE
How do I link a flash file from an html page and have it open in a new
page
at the correct size.

An example, the flash is 320x240, but it open as a full page and is
distorted.

I am link from a button in an html page.

Is there a better way to show and flash file?

Thanks

Dave K



Dave
This works as advertised :-)

Thanks

Dave K

"Michael Brown" <[Email Removed]> wrote in message
news:nQefb.24284$[Email Removed]...
QUOTE
You need to use JavaScript to do this an example would be...

<html
<head
<title>Untitled Document</title
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
</head
<body
<a href="void()"
onClick=window.open("myfile.swf","flash","HEIGHT=320,WIDTH=240")>Click
Here</a
</body
</html

Replace myfile.swf with the path to the Flash file you want to open.

Hope this helps

Michael

"Dave" <[Email Removed]> wrote in message
news:7mdfb.13404$[Email Removed]...
How do I link a flash file from an html page and have it open in a new
page
at the correct size.

An example, the flash is 320x240, but it open as a full page and is
distorted.

I am link from a button in an html page.

Is there a better way to show and flash file?

Thanks

Dave K






PHP Help | Linux Help | Web Hosting | Reseller Hosting | SSL Hosting
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2006 Invision Power Services, Inc.