Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic pictures online/offline

Status
Not open for further replies.

FCiL

Technical User
Jan 23, 2003
21
0
0
DK
I have this code:

Code:
i=1;
_root.createEmptyMovieClip("Skaerm", 1);
loadMovie("PICT"+i+".jpg", Skaerm);

It works fine when i publish it and run the html file created from my lokal drive.

When I transfer all the files to the internet it doesn't work. Any ideas?

FCiL
 
you did remember to load the jpeg onto the sever as well and place it in the same folder as the swf ?

if you have done that then alter the loadmovie action to show the full url of the jpg
 
I tried to use the full url of the jpg, and again it worked on my local drive, but not on the internet.

Then I deleted my temporary internet files, and it worked.

Is there a reset or unload function in flash that will have the same effect?

FCiL
 
Couldn't get it to work, but found this solution

Code:
i=1;
_root.createEmptyMovieClip("Skaerm", 1);
rn = Math.round(Math.random()*1000000);
loadMovie("[URL unfurl="true"]http://xxx.xxx.xxx/pict"+i+".jpg?reload="+rn,[/URL] Skaerm);

I have no idea what it does, but it works.

thanks to the person who made this:
FCiL
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top