PDA

View Full Version : HTML page wont load .swf from sub-directory


essence
04-03-2005, 06:24 PM
I've got a HTML page with an imbeded .swf which is located in a sub-directory (i'll call this directory "level2")


the swf dynamically loads jpes (which are also in "level2)


the problem is, when i open the HTML page.. the swf is loaded but none of the dynamic content is shown.


am i doing something wrong?


btw: I used Dreamweaver to ember the swf.

[Sx]
04-03-2005, 07:06 PM
Are paths to files whom your main .swf file uses over loadMovie() relative or absolute?

blocky_wocky
04-03-2005, 07:12 PM
Hi,

Are you sure your paths to the image directory are correct?

Have you tested the swf in the url to check whether they are loading into your swf? e.g. www.myDomain.com/level2/movieName.swf

If they don't load in, then your problem could probably be in Flash.

Just a thought.

essence
04-03-2005, 07:22 PM
if i run just the swf, the images load.

also, if i run the html with the embeded swf... all non-dynamic content (that which is directly on the stage) gets displayed fine.

its just the external jpegs

[Sx]
04-03-2005, 07:26 PM
how about showing us your html file...

essence
04-03-2005, 07:38 PM
I dont get it?!

Its working now... :confused:


computers are stupid! i hate them!!

[Sx]
04-03-2005, 08:08 PM
You probably had old .swf cached...

essence
04-03-2005, 08:58 PM
i think you're right.. cos its stopped working now!!

i dont understand?!

blocky_wocky
04-03-2005, 09:04 PM
If you can put your html code on here, then we can have a quick look at it, you never know.

Plus.... can you put your URL here so we can see if it works?

essence
04-03-2005, 09:18 PM
This is the directory structure that i'm hoping to achieve.

level1 is going to contain other bits and bobs
level2 will contain the html
level3 will contain the swf and jpegs


I've included the fla (located in level3)


this is really annoying!!
Please help

essence
04-03-2005, 09:22 PM
the file didnt get uploaded.


download it from here

essence-directory_structure_problems.zip (http://www.djessenceonline.com/misc/page/essence-directory_structure_problems.zip)

blocky_wocky
04-03-2005, 11:37 PM
Essence:

For some reason, the .swf was looking at the 'level2' directory for the images. I think because you had the html page in that directory.

so, I changed the line:

image_arr = new Array("image1", "image2", "image3");

to:

image_arr = new Array("level3/image1", "level3/image2", "level3/image3");

and it works for me :)