hello,
I am sort of a newb and I am still learning js and as. I am in the
process of writing a simple gadget that plays back an swf file but I
was wondering if it was possible to add controls like "play","pause"
to the videos i embedded. here is my code:
<Require feature="flash"/>
</ModulePrefs><Content type="html">
<![CDATA[<script type="text/javascript">
function weather(form) {
var zipCode= form.inputbox.value;
if(zipCode.length==5)
{
for (var i=0;i<zipCode.length ; i++)
{
if(zipCode.charAt(i)>=0 ||
zipCode.charAt(i)<10)
{ /*this is for the northwest
region*/
if(((zipCode.charAt(0)==9)&&(zipCode.charAt(1)>=7))||
((zipCode.charAt(0)==8)&&((zipCode.charAt(1)==2)||
(zipCode.charAt(1)==3)))||
((zipCode.charAt(0)==5)&&(zipCode.charAt(1)==9)))
{
if(form.view1[0].checked)
{
var url = "http.mysample/radar_videos/
Sample3.swf";
_IG_EmbedFlash(url, "flashcontainer", {
swf_version: 6,id: "flashid",width: 310,height: 300
})
}
</script>
<FORM NAME="myform" ACTION=""
METHOD="GET"style="background:#424242;color:#D8D8D8">Enter Zip Code:
<INPUT TYPE="text" NAME="inputbox" VALUE=""
style=";background:#000000; color:#FFFFFF" >
<INPUT name="" type="t" value="" style="display:none"> <br>
<input TYPE="radio" name="view1" VALUE="0" > Top View
<input TYPE="radio" name="view1" VALUE="1"> Rotational View
<INPUT TYPE="button" NAME="button" Value="Visualize"
onClick="weather(this.form)" style=";background:#BDBDBD;">
</FORM>
<div id="content_div" style = "background:#424242;color:#FFFFFF" ></
div> <div id="flashcontainer" style="background:#424242;margin-
top: -1em;text-align: center;">
</div>]]>
</Content> </Module>
this is just a part of the code...So I was wondering if it is possible
to add controls to the swf file being played..i tried setting
attributes like "menu=true" but I guess that just makes the menu show
up when i right click on the video.
is it possible to 'harness' the options i get when I right click on
the video and add them to the swf file being played back.
Any help would be greatly appreciated.
thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"iGoogle Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Gadgets-API?hl=en
-~----------~----~----~----~------~----~------~--~---