Page 1 of 1

flash actionscript and load external resource

Posted: Fri Jan 11, 2008 2:52 pm
by mox
Hi,
I have a little problem:
when I embed a flash movie wich, in turn via actionscript, load some external jpeg, the movie is on but the image don't show up inside it; I try all the possible manner to point at the image, relative and absolute path.
I try to recreate the directories structures and, with a normal html, all works but in cmsms don't.
the action script, siplified, in the movie:
var mc:MovieClip = this.createEmptyMovieClip("mc", this.getNextHighestDepth());
mc.onRelease = function():Void {
    getURL("http://MySite/uploads/images/opere/0001-0050/0001.jpg", "_blank");
}
var image:MovieClip = mc.createEmptyMovieClip("image", mc.getNextHighestDepth());
image.loadMovie("http://MySite/uploads/images/opere/0001-0050/0001.jpg");

the movie is inside a page, the page call the movie right but the movie call the jpeg wrong

I made many different test, but without any  result

Any help is appreciated
MoX

Re: flash actionscript and load external resource

Posted: Fri Jan 11, 2008 2:56 pm
by calguy1000
I don't know actionscript, but....

Since your accessing via http make sure that there isn't a .htaccess files in the appropriate directory that could cause the problem..... can you paste that url into the navigation bar of your browser and display the image?

Re: flash actionscript and load external resource

Posted: Fri Jan 11, 2008 11:13 pm
by mox
Hi calguy1000 and thank for the response,
no there isn't .htacces and, when I try to open the image pasting the correct path in address bar, the image show up...

ok, my dubt is: there are some problem about the path becouse the page generate dynamically by php from the db create confusion to action script? but assign an absolute path I thought was the right solution...

There are something wrong somewhere else...

Any idea?
MoX