|
Subject:
|
I cant get my flash button to open one of my links
|
|
Posted By:
|
hijinn
|
Post Date:
|
12/12/2005 9:15:00 PM
|
I made this button, but i can't get it to open one of the links it should. my works are in .php extension.
My code: onClick="window.open('Bautismo.php')"
but it doesnt do it if like the button never existed.
|
|
Reply By:
|
Yahoa
|
Reply Date:
|
12/12/2005 11:47:53 PM
|
Hi, First: "my works are in .php", do you that the file you are writing is name for exemple name.php, if so, you should have in your php file:
<? echo "<form><input type=button value=button onClick=\"window.open('Bautismo.php')\"></form>" ?>
----------------------------------------------------------- Seconde: if your file is an html file for exemple name.htm then you should write in it:
<html> <body> <form> <input type=button value=button onClick="window.open('Bautismo.php')"> </form> </body> </html>
---------------------------------------------- I would like to ask you what program are you using as a php server on your computer?
|
|
Reply By:
|
hijinn
|
Reply Date:
|
12/13/2005 12:25:21 AM
|
im using xammp
|
|
Reply By:
|
hijinn
|
Reply Date:
|
12/13/2005 12:30:50 AM
|
the thing is that i created the button and, i used the object classid=xxxxx, onclick=++++++
|
|
Reply By:
|
hijinn
|
Reply Date:
|
12/13/2005 12:39:22 AM
|
this is the code im using: <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="250" height="170" onClick=\"window.open('Bautismo.php')\"> <param name="movie" value="bapt1.swf"> <param name="quality" value="high"> <embed src="bapt1.swf" width="250" height="170" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed> </object>
|
|
Reply By:
|
Yahoa
|
Reply Date:
|
12/13/2005 2:18:37 AM
|
This could help for the moment (i am searching for layers or iframes) : it works by making the event onMouseOver=..., without / before " :
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="250" height="170" onMouseOver="window.open('Bautismo.php')"> <param name="movie" value="bapt1.swf"> <param name="quality" value="high"> <embed src="bapt1.swf" width="250" height="170" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed> </object>
|
|
Reply By:
|
Yahoa
|
Reply Date:
|
12/13/2005 8:26:17 AM
|
Hi, I found a method with layers(and tried it), it isn't hard, i hope that it will help.I will
explain then give the source and a transparent .swf file.
FIRST: There will be tow files.swf (bapt1.swf & tr.swf), and they will be
superposed, BUT, it will depend on the screen resolution to place the object, because the
exact place on the screen will be specified as distance from TOP or LEFT...
SECOND: The tr.swf is a transparent .swf file that has a programed onClick button
to Bautismo.php, it will be the overall layer (top layer), BUT it will prevent to click on
your flash file, so i hope that your is a movie flash file, and not an interactive flash
file.
THIRD: Code : <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" style="position: absolute; width: 250px; height: 170px; z-index: 2; left: 500; top: 87" id="LayerTop"> <param name="movie" value="tr.swf"> <param name="MouseEventsEnabled" value="1"> <param name="quality" value="high"> <param name="wmode" value="transparent" /> <embed src="tr.swf" width="250" height="170" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed> </object> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" style="position: absolute; width: 250px; height: 170px; z-index: 1; left: 500; top: 88" id="LayerBottom"> <param name="movie" value="bapt1.swf"> <param name="quality" value="high"> <param name="wmode" value="transparent" /> <embed src="bapt1.swf" width="250" height="170" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed> </object> in bold : what ihave added in italic : transparency for your bapt1.swf file in underline : to change the position of the tow objects or files
FOUR: LINKS: http://www.rissala.shajara.net/p2p/t.htm : a test page to show how it works (just the flash file) http://www.rissala.shajara.net/p2p/bapt1.swf : the transparent flash bapt1.swf file http://www.rissala.shajara.net/p2p/tr.swf : the transparent flash tr.swf file http://www.rissala.shajara.net/p2p/tr.fla : the transparent tr.fla file http://www.rissala.shajara.net/p2p/button.rar : the files t.htm tr.swf tr.fla bapt1.swf in a rar file http://www.rissala.shajara.net/p2p/button.zip : the files t.htm tr.swf tr.fla bapt1.swf in a zip file http://www.rissala.shajara.net/p2p/button.exe : the files t.htm tr.swf tr.fla bapt1.swf in a zip self-extract file.
FIVE: Sorry for the very long message, i ask God that it will help you.
|
|
Reply By:
|
hijinn
|
Reply Date:
|
12/13/2005 3:40:55 PM
|
Thanks, the first one worked, Be blessed.
|
|
Reply By:
|
Yahoa
|
Reply Date:
|
12/14/2005 3:13:53 PM
|
You are welcome, Thank you,
|