Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-10-2007, 05:15 AM   #1
dsdsdsdsd
Senior Member
 
Join Date: Oct 2003
Location: north carolina
Posts: 344
Default object/embed seems to prevent loadMovie command in swf

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
dsdsdsdsd is offline   Reply With Quote
Old 11-10-2007, 05:20 AM   #2
atomic
Banned by AS.org Staff
 
Join Date: Jan 2007
Location: Montréal, Québec
Posts: 14,075
Default

What are you trying to do? Use loadMovie to load a movie in an iframe?
atomic is offline   Reply With Quote
Old 11-10-2007, 04:14 PM   #3
dsdsdsdsd
Senior Member
 
Join Date: Oct 2003
Location: north carolina
Posts: 344
Default

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
dsdsdsdsd is offline   Reply With Quote
Old 11-10-2007, 04:21 PM   #4
atomic
Banned by AS.org Staff
 
Join Date: Jan 2007
Location: Montréal, Québec
Posts: 14,075
Default

Quote:
Originally Posted by dsdsdsdsd View Post
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?
atomic is offline   Reply With Quote
Old 11-10-2007, 04:44 PM   #5
dsdsdsdsd
Senior Member
 
Join Date: Oct 2003
Location: north carolina
Posts: 344
Default

yikes, I did say that - BRAINFART on my part;

should say:

Quote:
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;

dsdsdsdsd is offline   Reply With Quote
Old 11-10-2007, 04:51 PM   #6
atomic
Banned by AS.org Staff
 
Join Date: Jan 2007
Location: Montréal, Québec
Posts: 14,075
Default

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?
atomic is offline   Reply With Quote
Old 11-10-2007, 11:55 PM   #7
dsdsdsdsd
Senior Member
 
Join Date: Oct 2003
Location: north carolina
Posts: 344
Default

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 is offline   Reply With Quote
Old 11-11-2007, 05:48 AM   #8
dsdsdsdsd
Senior Member
 
Join Date: Oct 2003
Location: north carolina
Posts: 344
Default

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
dsdsdsdsd is offline   Reply With Quote
Old 11-11-2007, 06:17 AM   #9
atomic
Banned by AS.org Staff
 
Join Date: Jan 2007
Location: Montréal, Québec
Posts: 14,075
Default

Best and simple, is to have all files in the same directory.
atomic is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Loading a swf created using document class gives error #1009 charlieFlash ActionScript 3.0 1 08-30-2007 06:36 PM
problem in passing value to dynamic text field of and loadMovie swf from an AS file jeith ActionScript 2.0 0 07-19-2007 07:22 PM
How to prevent someone from decompiling your SWF files... mattkenefick ActionScript 2.0 36 07-10-2007 05:30 PM
Force loadmovie to scale swf to 100% stage size? subzerohk ActionScript 2.0 3 02-25-2007 07:37 AM
a "close" button on child swf bloombloom ActionScript 2.0 0 02-14-2007 02:26 AM


All times are GMT. The time now is 01:16 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.