View Full Version : object/embed seems to prevent loadMovie command in swf
dsdsdsdsd
11-10-2007, 05:15 AM
hello;
when I use the object/embed tags to run a .swf, the loadMovie command does not execute;
if I instead run the swf from a <iframe src="my.swf"> the loadMovie works fine;
any thoughts?
thanks
dsdsdsdsd
atomic
11-10-2007, 05:20 AM
What are you trying to do? Use loadMovie to load a movie in an iframe?
dsdsdsdsd
11-10-2007, 04:14 PM
atomic, thanks for responding;
no, the loadmovie command is simply a typical loadMovie command that loads one swf into another, nothing fancy;
I mentioned the loadMovie command because it seems to be failing WHEN I insert the swf ( call it parent.swf, or, as in my first post, my.swf ) into the webpage via an object/embed tag;
however, if I load that same swf ( call it parent.swf, or, as in my first post, my.swf ) into the webpage via <iframe src="parent.swf">, the loadMovie command within does not succeed;
thanks
dsdsdsdsd
atomic
11-10-2007, 04:21 PM
atomic, thanks for responding;
no, the loadmovie command is simply a typical loadMovie command that loads one swf into another, nothing fancy;
I mentioned the loadMovie command because it seems to be failing WHEN I insert the swf ( call it parent.swf, or, as in my first post, my.swf ) into the webpage via an object/embed tag;
however, if I load that same swf ( call it parent.swf, or, as in my first post, my.swf ) into the webpage via <iframe src="parent.swf">, the loadMovie command within does not succeed;
thanks
dsdsdsdsd
But now you're saying above that both methods fail?
dsdsdsdsd
11-10-2007, 04:44 PM
yikes, I did say that - BRAINFART on my part;
should say:
however, if I load that same swf ( call it parent.swf, or, as in my first post, my.swf ) into the webpage via <iframe src="parent.swf">, the loadMovie command within DOES succeed;
atomic
11-10-2007, 04:51 PM
When you don't use the object/embed tags, but link directly to your parent .swf, does the loadMovie action work?
If the above works, which I suppose it should, were all your files, including the parent's .html, in the same folder, in your previous attempt?
dsdsdsdsd
11-10-2007, 11:55 PM
atomic, thanks for responding;
my file structure looks like this:
my_dir/my.htm
my_dir/sub_dir/parent_that_uses_loadMovie.swf
my_dir/sub_dir/child_movie_to_be_loaded.swf
I have not tried to place the parent.swf in the same directory;
I will give it a try;
thanks
dsdsdsdsd
dsdsdsdsd
11-11-2007, 05:48 AM
yep, when I place the parent.swf and the child.swf into the same directory as the .html, the object/embed tags do not effect the loadMovie;
so, when I have the parent and child.swf in a subdirectory, the object/embed tags effect the loadMovie ( prevent it );
therefore I am having to rely on an <iframe src="parent.swf"> to load the parent.swf so that the loadMovie will work;
Shannon
atomic
11-11-2007, 06:17 AM
Best and simple, is to have all files in the same directory.
vBulletin® v3.7.1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.