I am working on a project to pass a variable from a link on a page that already exists, to a swf file. The old way of doing this will not work for this project, I must avoid the blackbox/click to activate issue. Also, I have multiple links that will each send a different value to the variable, so it cannot be hardcoded (i'll show this later.)
Goals: 1) Open swf in new page without the 'click to activate' issue 2) Pass the appropriate value in the varible to use to control the movie.
This is the old code, and give the black box issue. But, it does pass the variable well enough at the moment.
This is the new code that is being used by Adobe to address the issue...
In the code above I am attempting to replicate what I am doing in the old code, by passing the variable 'vars'. I need the value of 'vars' passed to the movie, but nothing is happening.
Additionally, it turns out I need the .js for this to run. Now I currently have that living in the same folder as the index page...so I am figuring I call it like so...
Has anyone figure out this new stuff yet and is there a way to do what I need to do?
"Credit belongs to the man who is actually in the arena - T.Roosevelt
Goals: 1) Open swf in new page without the 'click to activate' issue 2) Pass the appropriate value in the varible to use to control the movie.
This is the old code, and give the black box issue. But, it does pass the variable well enough at the moment.
Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="[URL unfurl="true"]http://download.macromedia.com/pub/shockwave[/URL]
/cabs/flash/swflash.cab#version=7,0,19,0" width="400" height="250" id = "varMovie" title="varMovie">
<param name=movie value="passVar.swf?vars='+vars+'" />
<param name="allowScriptAccess" value="sameDomain" />
<param name="quality" value="high" />
<embed src="passVar.swf?vars='+vars+'" quality="high" pluginspage="[URL unfurl="true"]http://www.macromedia.com/go/getflashplayer"[/URL] type="application/x-shockwave-flash" width="400" height="250" name = "varMovie">
</embed>
</object>
This is the new code that is being used by Adobe to address the issue...
Code:
<script type='text/javascript'>");
"AC_FL_RunConten('codebase','[URL unfurl="true"]http://download.macromedia.[/URL]
com/pub/shockwave/cabs/flash/swflash.cab#
version=7,0,19,0',
'width','400',
'height','250',
'title','passVar',
'src','passVar.swf?vars="+vars+"',
'quality','high',
'pluginspage','[URL unfurl="true"]http://www.macromedia.com/go/getflashplayer',[/URL]
'swLiveConnect','true',
'movie','passVar');
//end AC code
</script>
In the code above I am attempting to replicate what I am doing in the old code, by passing the variable 'vars'. I need the value of 'vars' passed to the movie, but nothing is happening.
Additionally, it turns out I need the .js for this to run. Now I currently have that living in the same folder as the index page...so I am figuring I call it like so...
Code:
<script src='AC_RunActiveContent.js' type='text/javascript'>
</script>
Has anyone figure out this new stuff yet and is there a way to do what I need to do?
"Credit belongs to the man who is actually in the arena - T.Roosevelt