all groups > flash actionscript > january 2004 >
You're in the

flash actionscript

group:

loadMovie problem when Flash placed in HTML


loadMovie problem when Flash placed in HTML jay54321
1/24/2004 11:39:40 PM
flash actionscript:
I've placed my Flash file in a HTML document, but now my loadMovie commands will not work.....

Pics = ["/images/SG1.jpg","/images/SG2.jpg"];

loadMovie(Pics[Picture_counter], _root.picture_1);

Anyone know what the problem is?



Re: loadMovie problem when Flash placed in HTML urami_
1/25/2004 10:14:01 AM


[quoted text, click to view]


Well , you need to keep in mind that SWF does not remember its location on server.
If you have index.html on the root of the server and your swf in IMG folder
than the SWF once open seek for files in the root , from the perspective of the html document.
So if you directly loaded jpg into level , the file no longer find them .
You must take such changes in patch while authoring.
best to use absolute path http://www.name.com/dir/moreDir/some.jpg , you can never go wrong with that.





Regards


urami_*

<xmas>
http://flashfugitive.com/
Re:loadMovie problem when Flash placed in HTML kglad
1/25/2004 4:05:12 PM
there's nothing wrong with your code assuming your path/filename's are correct, Picture_counter is 0 or 1 and _root.picture_1 is instantiated. for this to work you're jpg's can't be in a progressive format.

AddThis Social Bookmark Button