Go Back   SitePoint Forums > Forum Index > Design Your Site > Flash and Actionscript
Newsletter FAQ Members List Calendar Mark Forums Read

New to SitePoint Forums? Register here for free!

SitePoint Sponsor
 
Reply
 
Thread Tools Display Modes
Old Jan 3, 2006, 16:05   #1
Bradleyscott
SitePoint Member
 
Join Date: Oct 2004
Location: Indianapolis, IN
Posts: 21
Flash Satay: Flash Not Loading Properly

I have just used the Flash Satay method of putting my swf into my php page and all that shows up is a white space that is the size of my flash movie.

What part of it could I be doing wrong.

Right now I have added the embed tag just to get it up and will switch it out once I have figured out this problem...

The code I was using was this:

<object type="application/x-shockwave-flash"
data="c.swf?path=mediaPlayer.swf"
width="780" height="240">
<param name="movie"
value="c.swf?path=mediaPlayer.swf" />
</object>



and I have a c.swf that calls upon this:

_root.loadMovie(_root.path,0);

in the first frame.

Yet all I get is a white space that is the size of what my movie is supposed to be.

Any idea what is not working?

Thanks,

Brad
Bradleyscott is offline   Reply With Quote
Old Jan 3, 2006, 16:31   #2
madasan
SitePoint Enthusiast
 
Join Date: Dec 2005
Location: Siberia
Posts: 61
Try to use:

_root.loadMovie(_root.path,"GET");

or

_root.loadMovieNum(_root.path,0,"GET");

or

<object type="application/x-shockwave-flash"
data="c.swf"
width="780" height="240">
<param name="movie"
value="c.swf" />
<param name="path"
value="mediaPlayer.swf" />
</object>
madasan is offline   Reply With Quote
Old Jan 3, 2006, 18:02   #3
Bradleyscott
SitePoint Member
 
Join Date: Oct 2004
Location: Indianapolis, IN
Posts: 21
Arrow

Since you took the time to post, I figured I would take the time to try each one independantly and see if they worked.

the first one "_root.loadMovie(_root.path,"GET");"
-worked, but had some adverse effects, it gave everything a lighter hue Almost as if someone had taken whiteout and filled in areas.

the second one "_root.loadMovieNum(_root.path,0,"GET");" had the same effect I was having in the first place. The movie would load, but only showed as a 780x240 whitespace on the screen.

The third one alone did not bring about changes. However neither did it when I combined the other methods either. Anytime I added the "GET" I would be given partially what I wanted, but again pieces of the program would look washed out.

I have decided, and tested, upon the following code

<object type="application/x-shockwave-flash"
data="mediaPlayer.swf" path="mediaPlayer.swf"
width="780" height="240">
<param name="movie" value="mediaPlayer.swf" />
</object>

It gets rid of the embed tag but also gets rid of the loader movie c.swf (the fix for IE). It works in IE right now as it is not a huge program, but I am eventually going to start working on a video player that may be taking up more room and when I do so, that might break IE when trying to load the flash movie.

So any other ideas on why it is not working as it should?

Thanks again madasan for the help and getting me in the right direction.
Bradleyscott is offline   Reply With Quote
Old Jan 3, 2006, 22:12   #4
goofy
Once I was a Factory Worker
 
goofy's Avatar
 
Join Date: Dec 2004
Location: Sydney Australia
Posts: 552
check out http://www.macromedia.com/devnet/fla...detection.html
goofy is offline   Reply With Quote
Old Jan 4, 2006, 12:27   #5
Bradleyscott
SitePoint Member
 
Join Date: Oct 2004
Location: Indianapolis, IN
Posts: 21
thanks for the resource, I will read that and see what I can come up with.
Bradleyscott is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread | Next Thread »

Thread Tools
Display Modes

 
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 On
HTML code is Off
Sponsored Links
 
Forum Jump


All times are GMT -7. The time now is 19:43.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright 1998-2009, SitePoint Pty Ltd. All Rights Reserved