am new in flash
here am using a javascript function for views a flash video
the flash files name are a0.swf,a1.swf ...
this is my javascript function
<script>
var count=0;
function mafunct(newSrc){
alert("hi");
var path="a"+count+".swf";
flash+='<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="100%" HEIGHT="100%">';
flash+='<PARAM NAME=movie VALUE="'+path+'">';
flash+='<PARAM NAME="PLAY" VALUE="false">';
flash+='<PARAM NAME="LOOP" VALUE="false">';
flash+='<PARAM NAME="QUALITY" VALUE="high">';
flash+='<PARAM NAME="SCALE" VALUE="SHOWALL">';
flash+='<EMBED NAME="testmovie" SRC="Menu.swf" WIDTH="100%" HEIGHT="100%"PLAY="false" LOOP="false" QUALITY="high" SCALE="SHOWALL"swLiveConnect="true"PLUGINSPAGE="http://www.macromedia.com/go/flashplayer/">';
flash+='</EMBED>';
flash+='</OBJECT>';
count++;
alert(path+"aa");
}
</script>
<button onclick="mafunct()">next</button>
when this button click nothing will happen
Is here any problem with coding...
if you have the same isuue happened before and solve it or you know the answer for this please mention below
with regards ..Prasanth AR
Update my Question here..
<script>
var count=0;
function mafunct(flash){
var path="a"+count+".swf";
flash+='<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="100%" HEIGHT="100%">';
alert(path);
flash+='<PARAM NAME=movie VALUE='+path+' >';
flash+='<PARAM NAME="PLAY" VALUE="false">';
flash+='<PARAM NAME="LOOP" VALUE="false">';
flash+='<PARAM NAME="QUALITY" VALUE="high">';
flash+='<PARAM NAME="SCALE" VALUE="SHOWALL">';
flash+='<EMBED NAME="testmovie" SRC="Menu.swf" WIDTH="100%" HEIGHT="100%"PLAY="false" LOOP="false" QUALITY="high" SCALE="SHOWALL"swLiveConnect="true"PLUGINSPAGE="http://www.macromedia.com/go/flashplayer/">';
flash+='</EMBED>';
flash+='</OBJECT>';
alert(flash);
count++;
}
</script>
<button onclick="mafunct()">next</button>
and here the alerts are work but the flash id not viewed...
flashbefore declaring it? Line 3 ofmafunctvar path="a"+count+".swf"you haveflash += '<OBJECT CLASSID...', before the variableflashexists. In the next line,var flash = ...is when you actually declareflash. And since you're assigning it to the same string in those two lines, do you actually need the lineflash += '<OBJECT CLASSID...'?var flash = <OBJECT CLASSID..., not the one that startedflash += <OBJECT CLASSID...