simple flash question?
- Started
- Last post
- 5 Responses
- getdown177
Here is my directory stucture.. have index.htm in the root then a folder called flash that has the index.swf and sample.swf
Index.swf is in the index.htm page of the root.. but when I use load movie sample.swf it works in flash but doesnt work when published.. I think it is cause it is loading from the root and not from the source of the index.swf.
Anyone know a fix besides putting everything in the root of the site..
- ********0
show the code.
- ********0
instead of
loadMovie("movie.swf")
do
loadMovie("assets/movie.swf")
where assets is the name of your folder
- caseyc0
When embedded in a web page the swf assumes the base as being that of the page. You can make it use its own location as the base by specifying it with the "base" param between the object tags:
and in the embed tag as an attribute:
- caseyc0
oops, no html... read this
- unfittoprint0
and
avoid using _root. using _parent instead.
ie. for a sub.sub.sub.MC:
_parent._parent._parent