title: Embeded swf file with its external resources to Content asp.net page
body: <p>Under Visual Studio 2010, I’m developing an asp.net application.
  I added a folder to my project called Flash. Under Flash folder I added a swf file with its external resources to run.
  The folder content:
  1- ScrollingImages.swf file to lunch the flash
  2- ScrollingImages.xml file that the swf file uses to read images from thumbnails folder
  3-thumbnails folder which content images used by swf file.</p>
  
  <p>I can embed the swf file to html easily using this code:</p>
  
  <pre><code>&lt;object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" name="ScrollingImages" width="800" height="400" align="middle" id=" ScrollingImages"&gt;
      &lt;param name="allowScriptAccess" value="sameDomain" /&gt;
      &lt;param name="movie" value=" ScrollingImages.swf" /&gt;
      &lt;param name="quality" value="high" /&gt;
      &lt;param name="bgcolor" value="#000000" /&gt;
      &lt;embed src="ScrollingImages.swf" quality="high" bgcolor="#000000" width="800" height="400" name="ScrollingImages" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /&gt;
    &lt;/object&gt;
  </code></pre>
  
  <p>But when I use the same code to embed it to asp.net page I will have a problem that the flash will run but I cannot see the images so the swf file unable to locate the xml file and the folder of the images location and they all in the same folder.
  Here is the code I used in the aspx.net content page.</p>
  
  <pre><code>&lt;%@ Page Title="" Language="C#" MasterPageFile="~/Master.Master" AutoEventWireup="true" CodeBehind="Gallary.aspx.cs" Inherits="HabibWebSite.Gallary" %&gt;
  &lt;asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server"&gt;
  &lt;/asp:Content&gt;
  &lt;asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server"&gt;
  
     &lt;object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" name="ScrollingImages" width="800" height="400" align="middle" id=" ScrollingImages"&gt;
          &lt;param name="allowScriptAccess" value="sameDomain" /&gt;
          &lt;param name="movie" value=" ScrollingImages.swf" /&gt;
          &lt;param name="quality" value="high" /&gt;
          &lt;param name="bgcolor" value="#000000" /&gt;
          &lt;embed src="ScrollingImages.swf" quality="high" bgcolor="#000000" width="800" height="400" name="ScrollingImages" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /&gt;
        &lt;/object&gt;
  
  
  &lt;/asp:Content&gt;
  </code></pre>
  
  <p>I also tested it in aspx.net page and I’m getting same result no images appear.</p>
  
  <p>I know that the problem is related to  who to embed the swf external resources (the xml file  and the images folder) to the aspx.net page but I searched a lot and I could solve it.</p>
  
  <p>Please advise me how solve this problem to make the swf file work OK.</p>
  
  <p>Regards,</p>