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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

swf not playing in browser

Status
Not open for further replies.

frozenpeas

Technical User
Sep 13, 2001
893
CA
I am using DWMX and FMX Here is my HTML code:

Code:
  <tr>
    <td align=&quot;center&quot; valign=&quot;middle&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=6,0,79,0&quot;[/URL] width=&quot;780&quot; height=&quot;410&quot;>
        <param name=&quot;movie&quot; value=&quot;swf/shell.swf&quot;>
        <param name=&quot;quality&quot; value=&quot;high&quot;>
        <embed src=&quot;swf/shell.swf&quot; quality=&quot;high&quot; pluginspage=&quot;[URL unfurl="true"]http://www.macromedia.com/go/getflashplayer&quot;[/URL] type=&quot;application/x-shockwave-flash&quot; width=&quot;780&quot; height=&quot;410&quot;></embed></object></td>
  </tr>

but the swf just sits on the first frame, and doesn't execute any AS that is on that frame.

Sometimes within DW, the swf will preview (with the play button in the Properties panel) and sometimes it will not. When it doesn't, browsing to the file and selecting it again allows me to play it.

Some weird stuff that I really need to sort out.

Any ideas? Thanks.

frozenpeas
 
Wait one second, I should not have said it does not execute any AS on that first frame.

I have

Code:
loadMovieNum(&quot;interface.swf&quot;,2);
text = &quot;Hello&quot;;

and the 2nd line is fine. But it doesn't want to load interface.swf

frozenpeas
 
Bah... I changed that line to loadMovie instead of loadMovieNum and it works.

Now I have to sort out the rest of the stuff that isn't loading...

Entertaining thread, eh?

frozenpeas
 
All right, it works within DW but not in a browser - local preview or online. It just stays on that first frame.

So. Ideas? I will try to not post for at least 10 minutes now. [wink]

frozenpeas
 
are you loading into a level or a clip

loadMovieNum(&quot;interface.swf&quot;,2);

loadMovie(&quot;interface.swf&quot;,2) is only good for an empty clip with instance name 2. if that aint the case then try adding the clip and see what happens.


 
yip..sure...i assumed from your code you were loading into a level but i wasnt sure. with loadmovie it will still load but as it doesnt have a clip its going to be a bit unpredictable..prob just load top left on top of everything else.
 
Well I am loading it into a level. An instance name of 2 would require quotes around it would it not?

frozenpeas
 
It works fine and dandy until it hits the browser.

frozenpeas
 
no it wouldnt need quotes but if its a level then you must use loadmovienum

however i dont think this is a flash thing.

i take it you are loading the swf into a frame in dreamweaver. i think id delete what you have in dreamweaver and reload the flash bit. id just click the icon for flash again and let dw handle the code and upload.
 
I was using loadMovieNum but it didn't consistanty preview in DW until I changed it to loadMovie.

I am not using frames. The only thing on the page is a one-celled table which contains the swf.

I have deleted and redone what I had in DW... but to no avail.

??

frozenpeas
 
well if there is nothing else why not just try the flash published html and leave dreamweaver out of it

if the swf is fine on its own then when published and stuck on the browser with the published html all ought to be well. if it aint then id say its a browser problem.
 
when i faced a html-related problem last time (html generated in dreamweaver --> the film loaded fine in IE but didn't load at all in netscape) using flash's html code made me happy again.
i'd follow bill's last post on using flash's html-code [thumbsup]

regards

tektips.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top