ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Stretching Flash


  • 2008-12-16 13:39:50

    Stretching Flash

    Hi,

    I'm VERY new to ATutor, and not really a coder. A tough combination. I have been having some success with it, but have run into a problem.

    I would like to display a flash movie within a course. If i make the movie a fixed size, it goes in no problem. But, i would like the movie to fill the users screen (within the content area, not the entire screen).
    I have a html page, which i made, which does this, but if i put that code into ATutor, nothing shows up. I'm sure there is a simple reason for this, but i have no idea what it is (maybe the external javascript file ?).
    If i am doing this wrong, does anyone have any suggestions on a better way of accomplishing this? IS this even possible?

    Here is the HTML code i'm using (and yes, i've uploaded the Flash and .js files).

    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>sample3</title>
    <script language="javascript">AC_FL_RunContent = 0;</script>
    <script src="AC_RunActiveContent.js" language="javascript"></script>
    </head>
    <body bgcolor="#ffffff">
    <!--url's used in the movie-->
    <!--text used in the movie-->
    <!-- saved from url=(0013)about:internet -->
    <script language="javascript">
    if (AC_FL_RunContent == 0) {
    alert("This page requires AC_RunActiveContent.js.");
    } else {
    AC_FL_RunContent(
    'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
    'width', '100%',
    'height', '100%',
    'src', 'sample3',
    'quality', 'high',
    'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
    'align', 'middle',
    'play', 'true',
    'loop', 'true',
    'scale', 'showall',
    'wmode', 'window',
    'devicefont', 'false',
    'id', 'sample3',
    'bgcolor', '#ffffff',
    'name', 'sample3',
    'menu', 'true',
    'allowFullScreen', 'false',
    'allowScriptAccess','sameDomain',
    'movie', 'sample3',
    'salign', ''
    ); //end AC code
    }
    </script>
    <noscript>
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="100%" height="100%" id="sample3" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="false" />
    <param name="movie" value="sample3.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /> <embed src="sample3.swf" quality="high" bgcolor="#ffffff" width="100%" height="100%" name="sample3" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
    </noscript>
    </body>
    </html>


    Any help is appreciated.



    If you are asking for help, provide lots of detail so problems can be reproduced.

    Things to describe:
    Operating system ATutor is installed on - Vista 64
    ATutor version - 1.6.1
    Patch #s applied - 001-0012
    ATutor theme name - Classic
    PHP version -
    MySQL version -
    Webserver & version -
    Copies of error messages -
    Changes to default settings -
    Web browser being used - IE, Firefox.
    ...and anything else relevant -

  • 2008-12-16 15:08:50

    Re: Stretching Flash

    In the content editor, paste the following two lines into the head area of a content page.

    <script language="javascript">AC_FL_RunContent = 0;</script>
    <script src="AC_RunActiveContent.js" language="javascript"></script>


    And the following in the body area
    <script language="javascript">
    if (AC_FL_RunContent == 0) {
    alert("This page requires AC_RunActiveContent.js.");
    } else {
    AC_FL_RunContent(
    'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
    'width', '100%',
    'height', '100%',
    'src', 'sample3',
    'quality', 'high',
    'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
    'align', 'middle',
    'play', 'true',
    'loop', 'true',
    'scale', 'showall',
    'wmode', 'window',
    'devicefont', 'false',
    'id', 'sample3',
    'bgcolor', '#ffffff',
    'name', 'sample3',
    'menu', 'true',
    'allowFullScreen', 'false',
    'allowScriptAccess','sameDomain',
    'movie', 'sample3',
    'salign', ''
    ); //end AC code
    }
    </script>
    <noscript>
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="100%" height="100%" id="sample3" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="false" />
    <param name="movie" value="sample3.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /> <embed src="sample3.swf" quality="high" bgcolor="#ffffff" width="100%" height="100%" name="sample3" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
    </noscript>

  • 2008-12-16 16:06:33

    Re: Stretching Flash

    I tried what you suggested, but no luck.
    It doesn't give me errors or anything, it just doesn't show any content.
    I tried moving the .js file to make sure it was in the correct location, and as soon as i moved it i started getting "can't find the js" popup errors, so i have to assume when i don't get the errors it's in the correct location (the root directory).

    Thanks for your suggestion, any other ideas?

  • 2008-12-16 16:20:33

    Re: Stretching Flash

    Where exactly did you put the files?

    They need to be uploaded into the Manage>File Manager. Relative paths are relative to the file manager home directory.

  • 2008-12-16 16:36:19

    Re: Stretching Flash

    I used the file manager to put them into the home directory.

    When i used the code from the ATutor HowTo document, the Flash file worked (and still does with that code).

    Attached is a pic of my file manager (in case i'm seeing stuff incorrectly).

    Thanks for looking at this with me, especially so quickly.

  • 2008-12-16 16:44:53

    Re: Stretching Flash

    The paths seem okay. I can only suggest experimenting.