Jump to content

Is this possible?


mark110384

Recommended Posts

Hello all, is the following possible, I have a flash movie (A jotter that users can scribble on), a user will then select a button which calls to a JS Function that captures the swf as an image or cache to memory so it can be recalled at a later point? Any help will be greatly appreciated.

Link to comment
https://forums.phpfreaks.com/topic/176210-is-this-possible/
Share on other sites

ok, lets try this method:

 

<html>
<head>
<SCRIPT type="text/javascript">
function CopyFlash()
{
// We're going to use a textarea that will be hidden on the page
// the textarea will contain your embed code.
// lets make a variable hold the value of that textarea.
var flashit = document.getElementById("flashtxt").value;

// This is one method to call your flash Variable.
document.getElementById("showflash").value = flashit;
// Now you have your Flash Variable, Containing the content of (flashtxt)
}

</script>
</head>
<body onload="CopyFlash(), ShowFlash()"> <!-- This copies then shows the flash on body load -->
<br>
<!-- Here is the hidden textarea containing the source -->
<textarea rows="7" style="display: none;" cols="45" id="flashtxt">
<object width="550" height="400">
<param name="movie" value="somefilename.swf">
<embed src="somefilename.swf" width="550" height="400">
</embed>
</object>
</textarea>

<!-- Below will display your Flash code when website loads -->
<br><br>Output: <input type="text" ID="showflash">
<!-- Above is just an example on how to collect your flash code. -->
</body>
</html>

 

Hopefully this helps.

Link to comment
https://forums.phpfreaks.com/topic/176210-is-this-possible/#findComment-929981
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.