vote up 1 vote down
star

I want to embed this tutorial library.acadiau.ca/tutorials/plagiarism/ into the SoftChalk lesson at www.richlandcollege.edu/library/infolit-ol/mlasl/. Acadia sent me the following code, but SoftChalk says only widgets with embed code can be added. Can the following code be rewritten to work?

<?php
  $classid = 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000';
  $width = 600;
  $height = 450;
  $movie ='http://library.acadiau.ca/tutorials/plagiarism/gmodule3.swf';
  $param['base'] = 'http://library.acadiau.ca/tutorials/plagiarism/';
  $param['title'] = 'You Quote It, You Note It!';
  $param['quality'] = 'high';
  $param['wmode'] = 'opaque';
  $param['swfversion'] = '7.0.70.0';
  include_once('flash_object.php');
?>

Thanks,

Amy

flag

2 Answers

vote up 2 vote down
check

Disclaimer: I've never heard of SoftChalk, so I don't really know what I'm talking about ;).

It looks like that page already includes a javascript library that might help (FlashObject). You might be able to do something like this:

<div id="flashcontent1"></div>
<script type="text/javascript">
   var fo = new FlashObject("http://library.acadiau.ca/tutorials/plagiarism/gmodule3.swf", "gmodule3", "600", "450", "7.0.70.0", "#ffffff");
   fo.addParam("base", "http://library.acadiau.ca/tutorials/plagiarism/");
   fo.addParam("wmode", "opaque");
   fo.addParam("title", "You Quote It, You Note It!");
   fo.addParam("quality", "high");
   fo.write("flashcontent1");
</script>

Here's the documentation I found for FlashObject, if you're interested: http://blog.deconcept.com/flashobject/

link|flag
It worked! You can see the results on page 2 of the lesson at richlandcollege.edu/library/infolit-ol/mlasl. Thanks! Amy – Amy Feb 4 at 14:38
vote up 1 vote down

I took a quick look at SoftChalk. My guess is that they only allow you to embed actual HTML, but not PHP. Here's a tutorial about embedding Flash in HTML, which may be helpful.

link|flag
(If I'm right then one reason you may not be getting answers is that your question is scaring away people who don't know PHP - you might want to retitle it accordingly) – Bill Barnes Dec 2 at 17:24

Your Answer

Get an OpenID
or

Not the answer you're looking for? Browse other questions tagged or ask your own question.