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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.