PDA

View Full Version : Publishing to website has problems.


Mike8
07-23-2008, 12:40 PM
I have just started using Flash 8 Pro (including the macromedia updates). I use encoder to create a flv video file, I then use flash8 to create/publish the swf and html file. The files given go into a folder, and it works ok on the desktop. When I upload it to my ISPs webspace, executing the html just gives a white page with the page title. No movie.

However when I carry out the same operation with a piece of free software called Any Flv player (which publishes) and I upload those files to the isp webspace, guess what the movie works.

I cant understand why the free stuff works but what I produce in flash 8 doesnot?? Unless I have my settings wrong.

Some help here would be appreciated.
Mike

steviemcg
07-23-2008, 04:00 PM
Can you give a link to your files?

Mike8
07-23-2008, 04:55 PM
.I cant give you the ftp because its a password protected public site.


M<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Autodome Movie</title>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="1020" height="480" id="autodome" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="autodome.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="autodome.swf" quality="high" bgcolor="#ffffff" width="1020" height="480" name="autodome" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</body>
</html>

note: the html code is as above, and the files uploaded are
autodome.flv autodome.swf autodome.html plus the swf file that gives the player skin.

steviemcg
07-24-2008, 10:00 AM
Assuming that the files are all in the same folder it looks ok to me - one thing to check.

When you run Flash files in html pages now you need to have scripts added that will allow you to run activex components which are otherwise blocked by the browsers.

In the latest versions of Flash it adds these scripts for you automatically when you publish the files - I don't think (but can't remember for sure) that Flash 8 does this - I don't think it was an issue with web browsers at that point in time.

I have pasted the script below for you - add this into your html page and see if that helps?



<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '1020',
'height', '480',
'src', 'autodome',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'autodome',
'bgcolor', '#ffffff',
'name', 'autodome',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'autodome',
'salign', ''
); //end AC code
}
</script>

Mike8
07-24-2008, 10:37 AM
Thanks Stevie
Something happens, but when i start IE7, it says allow activex which I do, then it comes up with the window
'This page requires AC_runtimeActiveContent.js'

I click yes, and it all goes white.

Yes all the files are in the same folder.

Mike

steviemcg
07-24-2008, 10:44 AM
I have attached the AC_RunActiveContent.js try putting this into the folder and see if that does anything.


S

Mike8
07-24-2008, 11:07 AM
Thanks Stevie. It stops the ac active window comming up but the html still brings back a blank page. I have changed the file names because im using a smaller video file.

The adjusted script reads:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Network Camera Beta Test</title>


<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about_:internet -->

<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '640',
'height', '480',
'src', 'ipcam',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'ipcam',
'bgcolor', '#ffffff',
'name', 'ipcam',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'autodome',
'salign', ''
); //end AC code
}
</script>





The funny thing is that if I create a script using a free program called any flv player which publishes it works. And that doesnt use active scripting. A sample of their html is below.

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Camtek Surveillance Beta Testing Site</title>
<style type="text/css">
<!--
body,td,th {
font-family: Verdana, Arial, Helvetica, sans-serif;
}
-->
</style></head>
<body bgcolor="#CCCCCC">
<div align="center">
<!-- saved from url=(0013)about:internet -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="1020" height="514" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="player.swf" />
<param name="FlashVars" value="flvURL=autodome.flv&ControlPanelColor=0xccff00&buttonColor=0x000000&ControlPanelPosition=0&showControlPanel=1&ShowtimeColor=0xffffff&bAutoPlay=1&bAutoRepeat=0&BufferTime=5&tmeColor=0xffffff&loaColor=0x666666&GroundColor=0x000000&conNum=5&bShowtime=1&startvolume=100" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<embed src="player.swf" width="1020" height="514" align="middle" quality="high" bgcolor="#000000" scale="noscale" salign="lt" FlashVars="flvURL=autodome.flv&ControlPanelColor=0xccff00&buttonColor=0x000000&ControlPanelPosition=0&showControlPanel=1&ShowtimeColor=0xffffff&bAutoPlay=1&bAutoRepeat=0&BufferTime=5&tmeColor=0xffffff&loaColor=0x666666&GroundColor=0x000000&conNum=5&bShowtime=1&startvolume=100" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</div>
<label>
&nbsp;</label>
</body>
</html>


But they do not use a separate skins overlay swf file.

I can use the free prog. but just want to know why an expensive flash 8 pro doesnt work :)

steviemcg
07-24-2008, 11:13 AM
I noticed that at the bottom of the code (2nd last line) you are still looking for 'movie', 'autodome', rather than 'ipcam' don't know if that will make a difference?

In the mean time, I will have a look at the rest of your message and see if I can figure out what is going on....

steviemcg
07-24-2008, 11:29 AM
Mike,

I'm not sure what is the problem to be honest from looking at the html code - would it be possible to attach your flash file and I can take a wee look at that - maybe it is something to do with the file path in the FLV component. Have you tried entering the full file path in the component e.g. http://www.thesite.com/ipcam.flv ?

If you can attach the flash file I will also try publishing it using Flash CS3 and send the files back to you - see if that makes a difference?

Mike8
07-24-2008, 11:32 AM
Stevie: Thanks for correcting that! It now works ok with all the files on the server.
I think its not my local machine. can u try and see if it works for you. Link:

www.camteksurveillance.co.uk/beta/flash4/ipcam.html

steviemcg
07-24-2008, 11:34 AM
Perfect!!

Thank God for that - I was starting to think I was going off my head there!!

Stevie

Mike8
07-24-2008, 11:40 AM
This is all good fun. Just one point I have also put
ClearExternalPlayMute.swf in the folder which is the flash, skin. That doesnt appear
to be linked to the movie in html.
M

steviemcg
07-24-2008, 12:35 PM
Hi Mike,

I think it will be because your movie is set to 640x480 but the skin is actually bigger than that.....the skin will be linked - it just does't fit in your screen.

If you go back into your FLA and resize your video player so that it fits onto your stage size - or make your stage size bigger.

When you publish this time - only publish the swf file - not the html

If your movie is still 640 x 480 then you don't need to change the html.

If you have resized the movie then you will then need to edit the html slightly - change the sizes to match the new swf size.

That should be you now.

S

Mike8
07-24-2008, 04:34 PM
Thanks for your help, its working with the skin now.
http://www.camteksurveillance.co.uk/beta/flash4/ipcam.html

Is there any point in upgrading to flash cs3, I dont do much flash work?
M

steviemcg
07-24-2008, 04:42 PM
Nice one!

Flash 8 is now fairly dated and some of the code that is required for the latest browsers is not built into it.

The code required to make this work is not Flash specific though - you could basically edit what you have used here anytime you are embedding flash.

Longer term I would advise you to upgrade - CS3 is far more powerful than Flash 8 but I guess it depends on whether or not you can justify the expense.

All the best,

Stevie

Mike8
07-25-2008, 10:46 PM
Well Stevie, Ive just tried out flash cs3 and what it took 3 days to figure out, I did in about 30 seconds. So I guess you have to keep up todate if you can.
Mike

steviemcg
07-28-2008, 09:05 AM
Hi Mike,

Yeah it is a far better product. Still, look on the bright side, you wouldn't have met me if you had CS3.........probably best you get it eh?! ;)

All the best,

Stevie

Mike8
07-28-2008, 09:34 AM
Well, its also nice to have found this forum as well. Very useful and guys quick to help.
Have fun.
Mike

candice7683
08-05-2008, 08:42 AM
i found a guide maybe can help u,if need can click here:How to Publish to ur web (http://www.video-to-flash.com/create_flash_video/)