Click to See Complete Forum and Search --> : Flash CS3 - Movie can't find skin in same directory


tarsus
02-07-2008, 12:02 PM
My movie simply contains an FLVPlayback component. I have the HTML file embedding my movie in a different directory from the movie itself. My directory structure looks like this:

/flash_test.html
/scripts/AC_RunActiveContent.js
/media/posimain-qt-320x240-low.swf
/media/posimain-qt-320x240-low.flv
/media/SkinUnderPlaySeekMute.swf

And the embedding code in flash_test.html looks like this:

<script src="/scripts/AC_RunActiveContent.js" language="javascript"></script>
<script type="text/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', '320',
'height', '285',
'src', '/media/posimain-qt-320x240-low',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'posimain-qt-320x240-low',
'bgcolor', '#ffffff',
'name', 'posimain-qt-320x240-low',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', '/media/posimain-qt-320x240-low',
'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="320" height="285" id="posimain-qt-320x240-low" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="/media/posimain-qt-320x240-low.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />
<embed src="/media/posimain-qt-320x240-low.swf" quality="high" bgcolor="#ffffff" width="320" height="285" name="posimain-qt-320x240-low" align="middle"
allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>When I test out this page, the movie runs (meaning the FLV file is being found in the same directory as the SWF), but the FLVPlayback skin cannot be found (even though SkinUnderPlaySeekMute.swf is, in fact, in the same directory as the SWF). The error:

Error #2044: Unhandled skinError:. text=[IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2035: URL Not Found. URL: SkinUnderPlaySeekMute.swf"]


If I put flash_test.html in the /media directory along with all the Flash files, the skin is found properly.

Since it's posimain-qt-320x240-low.swf that is importing SkinUnderPlaySeekMute.swf, why can't it find it just because the embedding HTML file is in a different directory? (Especially since posimain-qt-320x240-low.flv is successfully found). How can I get this to work properly without storing the HTML file in the same directory as the Flash files?

JKnoch
02-21-2008, 09:20 AM
I have been having the same problem and been looking for an answer. In all my experience I have found that the .flv and movie.swf can be in any directory that you want it to be but the player and the player control.swf must be on the root level or atleast on the same level. If there is a way to direct the locations to these files in actionscripting, I would love to knwo how.