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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ActiveX 1

Status
Not open for further replies.

ridge

Technical User
Jan 31, 2000
91
0
0
US
Can someone explain ActiveX Control in simple terms? Frankly, When I go to certain web sites, I have to click on flash buttons, or some other effect once to start the effect. Is there any way to get around this?...is it required?... I dont care for it at all....
 
Thank you... I understand some of it now....
I am building this site.. The Buttons are my concern...
But if I may ask... what code do I need to
put in to bypass the ActiveX?... I dont want everyone to have to click to actvate and then click again to navigate...
 
I assume you're using Flash for Navigation and other items then?

If so, take a look at DeConcept's website for one way to embed flash dynamically.

- George
 
I have already read this...and I understand some of it..some of it, I don't. So once more, if my flash is named Starlight.swf, should this work in the body part of the code?

<script type="text/javascript" src="Starlight.swf"></script>

<div id="Starlight.swf">
</div>

<script type="text/javascript">
var so = new SWFObject("movie.swf", "mymovie", "200", "100", "7", "#336699");
so.write("flashcontent");
</script>
 
The only things you'd need to change are in the call to execute the SWFObject code... you'd want to set the movie name (Starlight.swf), an ID for the movie (mymovie), the width and height (in that order), required player version, and the background color for the movie. All other code should stay the same unless you change the name of the Javascript or surrounding DIV tag.

- George
 
George,
Thanks for your time & efforts. I still cannot get it to work....
Ridge
 
What does your code look like now? Something like so?

Code:
<script type="text/javascript" src="swfobject.js"></script>
		
<div id="flashcontent">
  This text is replaced by the Flash movie.
</div>

<script type="text/javascript">
   var so = new SWFObject("Starlight.swf", "mymovie", "200", "100", "7", "#336699");
   so.write("flashcontent");
</script>

- George
 

I copied the code just like you have it....
It's giving a error messge...
"SWFObject is undefined"


Above is the link. Do you mind looking at the source code and see what might be wrong.
 
You have to copy the swfobject.js file into your web server for it to work... right now, I'm getting a 404 Not found error for that file.

- George
 
The Starlight.swf file is there... but I loaded it again.... Thank you for your help...
 
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:eek:="urn:schemas-microsoft-com:eek:ffice:eek:ffice" xmlns="
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta http-equiv="Page-Enter" content="blendTrans(Duration=3.0)">
<link rel="File-List" href="games_files/filelist.xml">
<title>Games</title>
<!--[if !mso]>
<style>
v\:* { behavior: url(#default#VML) }
o\:* { behavior: url(#default#VML) }
.shape { behavior: url(#default#VML) }
</style>
<![endif]--><!--[if gte mso 9]>
<xml><o:shapedefaults v:ext="edit" spidmax="1027"/>
</xml><![endif]-->
</head>

<body bgcolor="#FFFFCC">
<script type="text/javascript" src="swfobject.js"></script>

<div id="flashcontent">
This text is replaced by the Flash movie.
</div>

<script type="text/javascript">
var so = new SWFObject("Starlight.swf", "mymovie", "605", "46", "7", "#336699");
so.write("flashcontent");
</script>


<blockquote>
<div style="position: absolute; width: 729px; height: 220px; left: 35px; top: 44px" id="layer1">
<img border="0" src="Unrnest50.jpg" width="729" height="220"></div>
</blockquote>

<div style="position: absolute; top: 35px; left: -1px; width: 36px; height: 736px; z-index: 9">
<!--[if gte vml 1]><v:rect id="_x0000_s1036"
alt="" style='width:27pt;height:793.5pt' fillcolor="red" stroked="f">
<v:fill color2="#a20000" rotate="t"/>
</v:rect><![endif]--><![if !vml]><img border=0 width=36 height=1058
src="games28_files/image001.gif" v:shapes="_x0000_s1036"><![endif]></div>
<p align="justify" style="margin-top: 4px; margin-bottom: 4px">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
<p align="justify" style="margin-top: 4px; margin-bottom: 4px">&nbsp;</p>
<p align="justify" style="margin-top: 4px; margin-bottom: 4px"><!--[if gte vml 1]><v:line
id="_x0000_s1026" style='position:absolute;left:0;text-align:left;top:0;
flip:y;z-index:3' from="24.75pt,35.25pt" to="576.75pt,36pt" strokeweight="1.5pt"/><![endif]--><![if !vml]><span
style='mso-ignore:vglayout;position:absolute;z-index:3;left:32px;top:46px;
width:739px;height:3px'><img width=739 height=3 src="games28_files/image002.gif"
v:shapes="_x0000_s1026"></span><![endif]><!--[if gte vml 1]><v:rect id="_x0000_s1027"
alt="" style='position:absolute;left:248.25pt;top:24.75pt;width:81.75pt;
height:11.25pt;z-index:6' fillcolor="red" stroked="f"/><![endif]--><![if !vml]><span
style='mso-ignore:vglayout;position:absolute;z-index:6;left:331px;top:33px;
width:109px;height:15px'><img width=109 height=15
src="games28_files/image003.gif" v:shapes="_x0000_s1027"></span><![endif]>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
<p>&nbsp;</p>
<p>&nbsp;</p>

<p><!--[if gte vml 1]><v:rect
id="_x0000_s1029" alt="" style='position:absolute;left:-.75pt;top:-.75pt;
width:585pt;height:36.75pt;z-index:4' fillcolor="red" stroked="f">
<v:fill color2="#c00" rotate="t" type="gradient"/>
<v:shadow color="maroon" opacity=".5" offset="1pt,4pt" offset2="14pt,20pt"/>
</v:rect><![endif]--><![if !vml]><span style='mso-ignore:vglayout;position:
absolute;z-index:4;left:-1px;top:-1px;width:780px;height:49px'><img width=780
height=49 src="games28_files/image004.gif" v:shapes="_x0000_s1029"></span><![endif]></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p style="margin-top: -3px; margin-bottom: -3px">&nbsp;</p>
<p style="margin-top: -3px; margin-bottom: -3px">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<b> </b></p>
<p style="margin-top: -3px; margin-bottom: -3px">R<b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </b></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><!--[if gte vml 1]><v:rect
id="_x0000_s1033" alt="" style='position:absolute;left:63pt;top:782.25pt;
width:213pt;height:20.25pt;z-index:1' filled="f" stroked="f">
<v:textbox>
<table cellspacing="0" cellpadding="0" width="100%" height="100%">
<tr>
<td align="center"><font size="2">Copyright 2006&nbsp;&nbsp; rnest.net&nbsp;&nbsp; All
Rights Reserved</font></td>
</tr>
</table>
</v:textbox>
</v:rect><![endif]--><![if !vml]><span style='mso-ignore:vglayout;position:
absolute;z-index:1;left:84px;top:1043px;width:288px;height:31px'><img
width=288 height=31 src="games28_files/image005.gif" v:shapes="_x0000_s1033"></span><![endif]></p>

</body>
<div style="position: absolute; top: 0px; left: 84px; width: 605px; height: 45px; z-index: 4">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="605" height="46">
<PARAM name="movie" value="Starlight.swf">
<PARAM NAME="wmode" VALUE="transparent">
<PARAM name="quality" value="high">
<PARAM name="menu" value="true">
<EMBED src="Starlight.swf" WMODE="transparent"quality="high" menu="true" pluginspage="download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="605" height="46">
</EMBED>
</OBJECT>


</div>



<p><!--[if gte vml 1]><v:line
id="_x0000_s1034" style='position:absolute;left:0;text-align:left;top:0;
flip:x y;z-index:3' from="25.5pt,34.5pt" to="26.25pt,8in" strokeweight="2.25pt"/><![endif]--><![if !vml]><span
style='mso-ignore:vglayout;position:absolute;z-index:3;left:32px;top:44px;
width:5px;height:726px'><img width=5 height=726 src="games28_files/image006.gif"
v:shapes="_x0000_s1034"></span><![endif]></p>




<p>&nbsp;</p>
<p></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><!--[if gte vml 1]><v:rect id="_x0000_s1035"
alt="" style='position:absolute;left:239.25pt;top:24.75pt;width:91.5pt;
height:10.5pt;z-index:5' fillcolor="red" stroked="f"/><![endif]--><![if !vml]><span
style='mso-ignore:vglayout;position:absolute;z-index:5;left:319px;top:33px;
width:122px;height:14px'><img width=122 height=14
src="games28_files/image007.gif" v:shapes="_x0000_s1035"></span><![endif]></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<div style="position: absolute; top: 0px; left: 84; width: 605px; height: 45; z-index: 4">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" width="605" height="46"><PARAM name="movie" value="Starlight.swf"><PARAM NAME="wmode" VALUE="transparent"><PARAM name="quality" value="high"><PARAM name="menu" value="true"><EMBED src="Starlight.swf" WMODE="transparent" quality="high" menu="true" pluginspage=" type="application/x-shockwave-flash" width="605" height="46"></EMBED></OBJECT>

</div>

</html>
 
No, not the Flash file, you need to add the JavaScript file which kicks off the entire process to begin with. You can get it from the DeConcept website.

- George
 
OK...look now.... On the right track....
How to make the background Transparant?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top