i am new to flash.
I were converted a video file to swf file using a converter. And the converted file(SWF) is working fine in my system. after uploading the file to webs server its not working.
I cant able to identify the problem. Plz help me
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="480" height="360" id="player1" align="middle">
<param name="movie" value="intro.swf"/>
<param name="menu" value="false"/>
<param name="quality" value="high"/>
<param name="bgcolor" value="#FFFFFF"/>
<noscript>Back to Home</noscript>
<embed src="intro.swf" menu="false" quality="high" bgcolor="#FFFFFF" width="480" height="360" name="player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>
</object>
i am testing here http://randeepr.webs.com
Seems to work fine for me. What result do you have ?
Change your code like this
<object type="application/x-shockwave-flash" data="intro.swf" width="480" height="360">
<param name="movie" value="intro.swf" />
</object>
And make sure your file path is correct.
Related
Is there anything wrong with the below code? Video is not showing up
<div style="vertical-align:middle;text-align:center;width:100%;height:100%">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" height="592" id="player" width="500">
<param name="movie" value="http://www.diareception.com/flvPlayer/Titanium1010.swf?key=key" />
<param name="FlashVars" value="userKey=key&videoIndex=4" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<embed allowfullscreen="true" allowscriptaccess="always" flashvars="userKey=key&videoIndex=4" height="592" name="player"
src="http://www.diareception.com/flvPlayer/Titanium1010.swf?key=key" type="application/x-shockwave-flash" width="500">
</embed></object>
</div>
I believe there is something wrong with your SWF file url/path. I tried replacing your swf file path with a sample SWF file and it worked perfectly fine.
Suggest your to recheck the SWF filepath.
I found this solution over several places, regarding embeding a flash animation on my webpage but when I tried it, in my page only a white rectangle opens but the flash animation never plays.
I'm totally new for this Flash animations and object embeding thing so don't have any idea how to proceed.
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" width="1000" height="600">
<param name="movie" value="birthdayAS2.swf">
<embed href="birthdayAS2.swf" width="1000" height="600" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed>
</object>
Greetings
Have you checked that the file "birthdayAS2.swf" is in the same directory as of the file that you have mentioned above ?
Also please check whether your browser supports flash or not.
This means that flash player is loading. It also means that it cannot find the file.
After a lot of researching and testing I came up with this code:
<div id="flashcontent" align="center">
<object type="application/x-shockwave-flash" data="birthdayAS2.swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash /swflash.cab#version=6,0,29,0" width="700" height="600" align="middle">
<param name="movie" value="birthdayAS2.swf">
<param name="quality" value="high" />
<param name="wmode" value="transparent">
<param name="bgcolor" value="#000000" />
<embed src="birthdayAS2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave- flash" width="700" height="600" bgcolor="#000000" wmode="transparent" > </embed>
</object>
</div>
Anyone knows the optimal bbcode to embed youtube videos in PHPBB3? I use the follwing:
BBCode Usage:
[youtube]http://{SIMPLETEXT1}youtube.com/watch?v={SIMPLETEXT2}[/youtube]
HTML Replacement:
<object width="560" height="315">
<param name="movie" value="http://{SIMPLETEXT1}youtube.com/v/{SIMPLETEXT2}"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://{SIMPLETEXT1}youtube.com/v/{SIMPLETEXT2}"
type="application/x-shockwave-flash"
width="560"
height="315"
allowscriptaccess="always"
allowfullscreen="true">
</embed>
</object>
This seems to have some issues and doesn't translate to HTML when the URL the user puts is something like http://www.youtube.com/watch?v=vS6VBOeJ-i4&feature=related.
I would like to make an HTML Replacement so it can replace the user's link into the new embed style of YouTube with the iFrame, but independent of URL attributes while also using the wmode=transparent, since I also use Shadowbox.
While riot_starter's solution works, it does not seem to work with https URLs which YouTube forces nowdays. So here is a workaround that should work in all scenarios:
BBCode:
[youtube]http{TEXT4}://{TEXT1}youtube.com/{TEXT2}v={IDENTIFIER}{TEXT3}[/youtube]
HTML:
<object width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/{IDENTIFIER}&hl=en_US&fs=1&"></param>
<param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/{IDENTIFIER}&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="350"></embed>
</object>
This is the best version I have found so far. Works with www.youtube.com, youtube.com, regional subdomains (nl.youtube.com), and with any youtube url parameters (for example including &feature=...).
BBCode usage:
[youtube]http://{TEXT1}youtube.com/{TEXT2}v={IDENTIFIER}{TEXT3}[/youtube]
HTML replacement:
<object width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/{IDENTIFIER}&hl=en_US&fs=1&"></param>
<param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/{IDENTIFIER}&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="350"></embed>
</object>
I use this
BBCode Usage [youtube]{IDENTIFIER}[/youtube]
HTML Replacement
<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/{IDENTIFIER}" width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/{IDENTIFIER}" />
<param name="wmode" value="transparent" />
</object>
Now a user can just do [youtube]oHg5SJYRHA0[/youtube] to get the video embedded into the post.
I suggest using the on the embed code not
works ALOT better!!!
tested on 3.0.11
example: http://fwkzt.site.nfoservers.com/forums/viewtopic.php?f=20&t=17&p=33&sid=2d89389670c660b3a345fd59bac5c4ff#p33
code used:
<iframe width="560" height="315" src="//www.youtube.com/embed/{YOUTUBE}?rel=0" frameborder="0" allowfullscreen></iframe>
I have this url and in the middle I have this embed link
<embed base="http://dev.posnation.com/images/" height="345" align="middle" width="743" type="application/x-shockwave-flash" salign="" allowscriptaccess="sameDomain"
allowfullscreen="false" menu="true" name="banner" bgcolor="#ffffff" devicefont="false"
wmode="window" scale="showall" loop="true" play="true"
pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" src="banner.swf">
But for some reason the flash doesnt pull up. I have the banner.swf in the /images folder as you can see with this link what am i missing
I think I know what the problem is.
You've specified base="http://dev.posnation.com/images/" and src="banner.swf", and you think that banner.swf will be searched in the images folder. I think it does not work that way.
Movie will still be searched in http://dev.posnation.com/. All the graphics for the movie will be searched in location specified by the base, while banner.swf will be searched in the location specified by src.
Source
woops ignore my previous answer. i see the problem. I used chrome's developer tools and your website throws an error
Uncaught TypeError: Cannot set property 'src' of null
to expand on awerti's suggestion this is how i embed from a different folder
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="240" height="138" id="flashdemo" align="middle" />
<param name="allowScriptAccess" value="always" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="/content/flashdemo.swf" />
<param name="quality" value="high" />
<param name="wmode" VALUE="transparent">
<param name="bgcolor" value="#ffffff" />
<param name="base" VALUE="/content/">
<embed src="/content/flashdemo.swf" base="/content/" quality="high" bgcolor="#ffffff" wmode="transparent" width="240" height="138" name="flashdemo" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" />
I have the following swf loaded from HTML tag and i do not use swfobject.On Google chrome i see that only after mouse click on the html page the swf file shows up.Any one knows why or what am i doing wrong here
<div>
<object id="myMovieName" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
<param value="movie.swf" name="movie">
<param value="high" name="quality">
<param value="#FFFFFF" name="bgcolor">
<embed align=""
type="application/x-shockwave-flash"
name="myMovieName"
bgcolor="#FFFFFF"
quality="high"
src="movie1.swf"
href="movie1.swf">
</object>
</div>
Have you tried takeing the embed node out of the object node?
It would look like:
<object id="myMovieName" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
<param value="movie.swf" name="movie">
<param value="high" name="quality">
<param value="#FFFFFF" name="bgcolor">
</object>
<embed align=""
type="application/x-shockwave-flash"
name="myMovieName"
bgcolor="#FFFFFF"
quality="high"
src="movie1.swf"
href="movie1.swf"/>
Thats because OBJECT node doesn't have a EMBED child node in HTML DTD, most browsers can deal with it, but apparently chrome is not one of them, but I'm guessing here.