Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loadMovie or embedded Flash NOT working

Status
Not open for further replies.

frozenpeas

Technical User
Sep 13, 2001
893
CA
Hi,

I have shell.swf embedded in an html page. It is supposed to load four other swfs into levels above it.

What happens when you go to the page is the shell loads, displays what it contains for a split second, then goes away. It all turns white as if there is nothing there. It doesn't load any of the swfs like it is supposed to. When you right-click, the Flash menu still comes up (even though the shell disables it).

I am seriously going crazy now.

The swfs are loaded via a frame action:

Code:
loadMovieNum ("borders.swf", 3);
loadMovieNum ("cursor.swf", 6);
loadMovieNum ("menu_main.swf", 5);
loadMovieNum ("menu_config.swf", 4);

I have tried several different ways of doing this. I have tried mouse events, I have tried loading just one other swf, etc. But it still displays for only a split second, then vanishes.
 
do you have a link to shell.fla? Or you can email it zipped if it ain't too big and I'll have a look?

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Bye the way...

When working in shell.fla I am able to preview with the other swfs loading successfully.

HTML code (Dreamweaver):

Code:
<div align=&quot;center&quot;><object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot;[URL unfurl="true"]http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0&quot;[/URL] width=&quot;700&quot; height=&quot;400&quot; name=&quot;flashshell&quot;>
                <param name=movie value=&quot;flash/shell.swf&quot;>

                <param name=quality value=high>

                <embed src=&quot;flash/shell.swf&quot; quality=high pluginspage=&quot;[URL unfurl="true"]http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash&quot;[/URL] type=&quot;application/x-shockwave-flash&quot; width=&quot;700&quot; height=&quot;400&quot; name=&quot;flashshell&quot;>

                </embed> 

              </object></div>

My paths are correct.

Thanks.
 
your code will only work like that if the loaded movies are in the same folder as your HTML, not if they are in the 'flash' folder. Any joy?

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Okay, I put everything at the root level. They load properly now. Thanks for the tip.

My next question is: why do you have to do this? I have having everything in one folder.

Thanks again.
 
it's because the 'player' is embedded in the HTML code, so wherever the HTML code is placed is where the 'player' sees as being the root folder, or in other words, it's not the Movie looking to load a movie, it's the embedded 'player'.

If both versions of that explanation don't make sense, I apologise, but I guess you'll know what I'm getting at anyway.

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top