|
Sample:
<logo href=“www.123flashchat.com“ src=””>
A white paper detailing the ActiveX changes has been published on the MSDN.
Also here: http://www.adobe.com/devnet/activecontent/articles/devletter.html#otheractivecontent
The major difference is now you must include 123flashchat.js which contains the “openSWF” method, with this method, 123flashchat.swf URL, width and height can be defined.
//The following code should be inserted between the HTML tag <head> and </head>.
<script language=“javascript” src=“123flashchat.js”></script>
//The following code must be inserted between the HTML tag <body> and </body>.
<script language=“javascript”>
openSWF('123flashchat.swf','634','476');
</script>
<noscript>
<DIV id=“flashchat”>
<OBJECT classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000” codebase=“http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,19,0” WIDTH=“634” HEIGHT=“476” id=“topcmm_123flashchat”>
<PARAM NAME=movie VALUE=“123flashchat.swf”>
<PARAM NAME=quality VALUE=“high”>
<PARAM NAME=“menu” value=“false”>
<EMBED src=“123flashchat.swf” quality=high menu=false WIDTH=“634” HEIGHT=“476” TYPE=“application/x-shockwave-flash” PLUGINSPAGE=“http://www.macromedia.com/go/getflashplayer” scale=“noscale” name=“topcmm_123flashchat” swLiveConnect=“true”></EMBED>
</OBJECT>
</DIV>
Note: Please remind your users to enable javascript code in their browsers to allow “123flashchat.js” to work. Details: https://www.google.com/adsense/support/bin/answer.py?hl=en&answer=12654
If the webpage, the 123flashchat.js and the 123flashchat.swf are in the same folder, then just paste above code into your webpage would work.
If on the same server but different folder, then “init_root” shall be appended.
Paste above code to your page and replace the “123flashchat.swf” with this:
../another_directory/123flashchat.swf?init_root=../another_directory/
If the 123flashchat.swf is on another domain, the parameter “init_root” is also indispensable to ensure 123flashchat.swf can find the relevant files to load:
Paste above code to your page and replace the “123flashchat.swf” with http://www.another_domain.com/chat/123flashchat.swf?init_root=http://www.another_domain.com/chat/
Resize Chat Client
Meanwhile, you can also control the size of the 123 Flash Chat flash client in the HTML code.
Find: WIDTH=“634” HEIGHT=“476”, replace the values with the expected width and height. And replace values of the second parameter (WIDTH) and the third parameter (HEIGHT) of the openSWF() method with the expected width and height.
Technically the smallest size is 550*250, and for the width, we recommend it be no less than 400 pixels. You can if you prefer, remove the logo, buttons and other decorations to make it even smaller. For Client Configuration details, please refer to: 4.2 Client Configuration
Append init_xxx arguments to 123flashchat.swf:
There are some parameters could be appended to the “123flashchat.swf”, for the details of parameters, please refer to 7.2 Client Parameters.
When you use the openSWF method, there are two way to append parameters to the “123flashchat.swf”
1.Append after “123flashchat.swf” directly:
openSWF(‘123flashchat.swf?init_lang=en&init_skin=standard’,’634’,’476’);
A full sample:
<script language=“javascript” src=“123flashchat.js”></script>
<script language=“javascript”>
openSWF('123flashchat.swf?init_lang=en&init_skin=standard ','634','476');
</script>
<noscript>
<DIV id=“flashchat”>
<OBJECT classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000” codebase=“http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,19,0” WIDTH=“634” HEIGHT=“476” id=“topcmm_123flashchat”>
<PARAM NAME=movie VALUE=“123flashchat.swf?init_lang=en&init_skin=standard “>
<PARAM NAME=quality VALUE=“high”>
<PARAM NAME=“menu” value=“false”>
<EMBED src=“123flashchat.swf?init_lang=en&init_skin=standard “ quality=high menu=false WIDTH=“634” HEIGHT=“476” TYPE=“application/x-shockwave-flash” PLUGINSPAGE=“http://www.macromedia.com/go/getflashplayer” scale=“noscale” name=“topcmm_123flashchat” swLiveConnect=“true”></EMBED>
</OBJECT>
</DIV>
2.Use the predefined parameter: (recommended)
init_lang=”en”;
init_skin=”standard”
openSWF(‘123flashchat.swf’,’634’,’476’);
A full sample:
<script language=“javascript” src=“123flashchat.js”></script>
<script language=“javascript”>
init_lang=”en”;
init_skin=”standard”;
openSWF('123flashchat.swf ','634','476');
</script>
<noscript>
<DIV id=“flashchat”>
<OBJECT classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000” codebase=“http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,19,0” WIDTH=“634” HEIGHT=“476” id=“topcmm_123flashchat”>
<PARAM NAME=movie VALUE=“123flashchat.swf?init_lang=en&init_skin=standard “>
<PARAM NAME=quality VALUE=“high”>
<PARAM NAME=“menu” value=“false”>
<EMBED src=“123flashchat.swf?init_lang=en&init_skin=standard “ quality=high menu=false WIDTH=“634” HEIGHT=“476” TYPE=“application/x-shockwave-flash” PLUGINSPAGE=“http://www.macromedia.com/go/getflashplayer” scale=“noscale” name=“topcmm_123flashchat” swLiveConnect=“true”></EMBED>
</OBJECT>
</DIV>
updated at 2008-2-28 |