# Publishing/Detection Issue

**URL:** <https://forum.kirupa.com/t/publishing-detection-issue/262156>\
**Category:** flash\
**Created:** [June 3, 2008, 7:48pm UTC](https://forum.kirupa.com/t/publishing-detection-issue/262156 "2008-06-03T19:48:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![agabriel](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@agabriel](https://forum.kirupa.com/u/agabriel)\
**Post date:** [June 3, 2008, 7:48pm UTC](https://forum.kirupa.com/t/publishing-detection-issue/262156/1 "2008-06-03T19:48:34Z")

</div>

Hey friends, I was wondering if anyone has experience working with the publishing process built-in to Adobe Flash CS3. I’m having a tricky problem that needs some expert diagnosis.

My site structure looks like this:

Root[INDENT]index.html  
/images[INDENT]myimage1.jpg  
myimage2.jpg  
myimage3.jpg  
…  
[/INDENT]/swf[INDENT]myFile.fla  
myData.xml

[/INDENT][/INDENT]If I open myFile.fla the project works great. The .fla reads that .xml file in the same directory, traverses the folders and gets the images. If I embed the same file in index.html it can’t find the images.

The XML

The xml contains the path to the images. Right now,

```auto
 imgsrc="../images/myImage1.jpg" 

```

is the value that works correctly with my .fla when I open it. It does not work when I embed that .fla in an HTML file located in the root directory. Neither does making the path relative to the site root

```auto
 imgsrc="images/myImage1.jpg" 

```

which I had expected to be my problem.

I believe this to be a problem with AC\_RunActiveContent.js and the way the flash detection uses JavaScript, but I could be wrong.

---

<div class="post-metadata">

**Author:** ![unformatt](https://avatars.discourse-cdn.com/v4/letter/u/58956e/32.png) [@unformatt](https://forum.kirupa.com/u/unformatt)\
**Post date:** [June 4, 2008, 1:50pm UTC](https://forum.kirupa.com/t/publishing-detection-issue/262156/2 "2008-06-04T13:50:50Z")

</div>

Try making it an absolute url by starting with a slash:  
imgsrc="/images/myImage1.jpg"

---

<div class="post-metadata">

**Author:** ![agabriel](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@agabriel](https://forum.kirupa.com/u/agabriel)\
**Post date:** [June 4, 2008, 6:21pm UTC](https://forum.kirupa.com/t/publishing-detection-issue/262156/3 "2008-06-04T18:21:24Z")

</div>

Thanks for the advice, but that didn’t solve it. What’s really strange is how the swf can find the files just fine when opened from the folder its in.

Again, I’m speculating that there is a problem with the AC\_RunActiveContent.js and the way one of the JavaScript variables gets passed in.

---

<div class="post-metadata">

**Author:** ![unformatt](https://avatars.discourse-cdn.com/v4/letter/u/58956e/32.png) [@unformatt](https://forum.kirupa.com/u/unformatt)\
**Post date:** [June 4, 2008, 6:29pm UTC](https://forum.kirupa.com/t/publishing-detection-issue/262156/4 "2008-06-04T18:29:32Z")

</div>

File names are case sensitive - that’s another thing you could check.

---

<div class="post-metadata">

**Author:** ![agabriel](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@agabriel](https://forum.kirupa.com/u/agabriel)\
**Post date:** [June 4, 2008, 7:00pm UTC](https://forum.kirupa.com/t/publishing-detection-issue/262156/5 "2008-06-04T19:00:58Z")

</div>

Thanks again for your help. I’m able to launch this app from it’s location and get the images to display ok. The problem happens when it is embedded into the index.html page in the parent directory. Changing the path to reflect the images locations based on the index.html page also does not work.

The situation makes me want to headbutt something.

---

<div class="post-metadata">

**Author:** ![agabriel](https://avatars.discourse-cdn.com/v4/letter/a/bc8723/32.png) [@agabriel](https://forum.kirupa.com/u/agabriel)\
**Post date:** [June 4, 2008, 8:08pm UTC](https://forum.kirupa.com/t/publishing-detection-issue/262156/6 "2008-06-04T20:08:43Z")

</div>

At this point is makes sense to just sacrifice my organization and place it in the root directory.

It doesn’t solve the issue but I’ve contacted Adobe about it and maybe they can provide a correct solution for later on down the road.

Thanks for your help.
