Groups | Blog | Home
all groups > flash (macromedia) > june 2004 >

flash (macromedia) : loaded swf doesn't quite work


seb
6/25/2004 7:53:45 PM
it's probably because the path to the zooming photo is an absolute path,
like:

_root.zooming_photo.doSomething();

that is right when the movie is on its own, but that becomes wrong if
the movie is loaded in another movie.
because then it should be:

_root.loadedMovie.zooming_photo.doSomething();

Better, you should change the path to a relative path, like:

this.zooming_photo.doSomething();

or

_parent.zooming_photo.doSomething();

or whatever the correct relative path should be....

I assume you understand flash enough to know that all names i used in
the path examples are just examples and you should replace them with the
actual instance names of your MCs.


[quoted text, click to view]
kielbasa
6/25/2004 11:03:53 PM
hi

i've created a site, and on the site for each section i load an external swf
to save load time.
one of the swf's doesn't quite do what its supposed to do when loaded in the
site. it works fine if you open it separetly.

the external swf is this ---- http://www.njam.pwp.blueyonder.co.uk/bands.swf
role over the picture button and a picture comes up.

goto the actual site ------ http://www.fairfightrecords.com/

and goto bands section, you'll notice the swf doesn't do the same.

why is this??
urami_
6/26/2004 7:52:59 AM

[quoted text, click to view]


Must be path problem , once you load movie in level it no longer is in level zero so any action
that use _level0.action , will automatically work incorrectly , same apply to loading in target
movie clip , once loaded in movie , it shares root with the movie you loaded it in.
If you had _root.mc.gotoAndPlay, it will change to _root.HOLDER.mc.gotoAndPlay....


--


Regards


urami_*

<hol>
http://flashfugitive.com/
</hol>


By The way:
If you try to mail me , DO NOT *laugh*
AddThis Social Bookmark Button