# Code only works when not embedded in html?

**URL:** <https://forum.kirupa.com/t/code-only-works-when-not-embedded-in-html/231905>\
**Category:** Uncategorized\
**Created:** [July 9, 2007, 2:33pm UTC](https://forum.kirupa.com/t/code-only-works-when-not-embedded-in-html/231905 "2007-07-09T14:33:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sourgasm](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@sourgasm](https://forum.kirupa.com/u/sourgasm)\
**Post date:** [July 9, 2007, 2:33pm UTC](https://forum.kirupa.com/t/code-only-works-when-not-embedded-in-html/231905/1 "2007-07-09T14:33:02Z")

</div>

This has kind of thrown me for a loop. Maybe there’s some simple little option in the publish settings that i’m screwing up. Here’s the relevent directory:

[http://sour.org/testing](http://sour.org/testing)

Save “doeet.swf”, “illustration.swf” and “01\_n.jpg” to your hard drive. Open up doeet.swf and click on the illustration button when able. You’ll be presented with two viewing options, choose the second [to remain in flash only]. Click on the very first icon. Presto, a draggable imported JPG. No big deal.

Now save the doeet.html to the same directory and try through that. Or try just clicking on doeet.swf within that open directory on [sour.org](http://sour.org). Navigate to the same area and, pffft. It loads up partially masked, it seems [i’m using no masks] and completely flops.

Anyone have any clue why it would do this?

The FLA files are in that directory. To briefly explain the scripting:  
doeet.swf - illustration button has code to first shut down any currently loaded section, then load up the external swf for the illustration section.  
illustration.swf - the thumbnail panels [three: illustration, flyers, doodles] have actionscript in their first frame containing various functions [one to load up external JPGs and position them. one to launch a popup with the external JPG]. the thumbnails themselves have coding to delegate that scripting. It’s all very messily scripted right now. still in an early development stage.

* * *

josh

> **[Portfolio](https://josh-godin.squarespace.com/)**
>
> The Portfolio of Josh Godin, video game concept artist and illustrator. Check out my character concept art, mobile games work, and some traditional Pen & Ink illustration.
