-
NOT play the swf file
I'm in the middle of someones elses work, who is no longer here, and I do not have the FLA file. I need the swf file in a website to show up but not to play....(got that?).
is there a javascript that someone knows that tells somehow tells the swf file NOT to play?
-
FK's Geezer Mod
Not knowing exactly how the other swf was set up, I think I would try to load it into another swf that could tell it to stop or play.
-
loading swf
that sounds like it might work.....perhaps you can expand a bit?...
how would i "load" an swf and the scripting would be?....gotoand stop?
-
FK's Geezer Mod
Well, I've tried various ways, and I can't get it to work on a sample movie. There is a play parameter you can add to the embed code on the html page that should stop it when it loads. Here's a page that explains the various parametes. You could try that.
http://help.globalscape.com/help/cut...Parameters.htm
-
FK's Geezer Mod
OK, that does work. You have to edit the object code stuff on your page with the swf to make it work. It will look like this:
PHP Code:
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
WIDTH="100%" HEIGHT="100%" id="testloadswf" ALIGN="">
<PARAM NAME=movie VALUE="testloadswf.swf"> <PARAM NAME=play VALUE=false> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=scale VALUE=noscale> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="testloadswf.swf" play=false menu=false quality=high scale=noscale bgcolor=#FFFFFF WIDTH="100%" HEIGHT="100%" NAME="testloadswf" ALIGN=""
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>
As you see, this, <PARAM NAME=play VALUE=false> has to go inside the <OBJECT tag and this, play=false, has to go inside the <EMBED tag.
Last edited by iaskwhy; 11-05-2004 at 03:01 PM.
-
appreciate the effort, but...
i get no reaction:
classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="743" height="138" name="ppp">
<param name=movie value="../../Swf/tool_new_Update.swf">
<PARAM NAME=play VALUE=false>
<param name=quality value=high> <embed swLiveConnect="true" src="../../Swf/tool_new_Update.swf" quality=high play=false pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="743" height="138" name="ppp">
</embed>
</object></td>
am I missing something?
-
FK's Geezer Mod
Looks right. Maybe it doesn't work on version 5. I tested it on a swf made in MX and it worked fine. Try changing the cab#version=5, to, cab#version=6.
-
got it ...thanks
actually for some reason it didnt work inputting the info...but you made me think that I can control it via the html..... and in the end I told the animation to simply stay at the first frame....and that seems to work
thanks for your help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|