This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Flash Site Design > March 2007 > swf play parameter
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
swf play parameter
|
|
| LeeshaC 2007-03-09, 10:15 pm |
| Hi,
I have a swf file embedded in frontpage. The parameter for the swf is set to
false as is the loop parameter. The loop parameter is working fine however the
swf file automatically starts playing when the website loads. I do not want
this. I want the video to start when the use indicates that this is what they
want. Is there some other place I need to set the parameter. This play
paramater was set in the html code generated by studio 8 not frontpage
Thanks,
Leesha
| |
| aniebel 2007-03-09, 10:15 pm |
| I think it's the Autoplay parameter you want to change.
| |
| LeeshaC 2007-03-09, 10:15 pm |
| Hi.
The code generated by Flash 8 doesn't have autoplay. Where would I add that?
This is the code i have.
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js. In Flash, run \"Apply
Active Content Update\" in the Commands menu to copy AC_RunActiveContent.js to
the HTML output folder.");
} else {
AC_FL_RunContent(
'codebase',
'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0
,0,0',
'width', '550',
'height', '400',
'src', 'campcarecommercial',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'false',
'loop', 'false',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'campcarecommercial',
'bgcolor', '#ffffff',
'name', 'campcarecommercial',
'menu', 'true',
'allowScriptAccess','sameDomain',
'movie', 'campcarecommercial',
'salign', ''
); //end AC code
}
Thanks, Leesha
| |
| aniebel 2007-03-09, 10:15 pm |
| I see you have play set to false. Did you tick the "Paused at Start" option in your HTML tab in the Publish settings?
| |
| LeeshaC 2007-03-09, 10:15 pm |
| Hi,
No I didn't. This is the first time I'm used Flash 8. I'll go in and check on that and see if it works.
Thanks!
Leesha
| |
| LeeshaC 2007-03-09, 10:15 pm |
| Hi, I went in and found where the html could be set to paused at start. I did
this and rerendered and it didn't make a difference. This is the code from
Adobe:
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js. In Flash, run \"Apply
Active Content Update\" in the Commands menu to copy AC_RunActiveContent.js to
the HTML output folder.");
} else {
AC_FL_RunContent(
'codebase',
'https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,
0,0,0',
'width', '550',
'height', '400',
'src', 'campcarecommercial',
'quality', 'high',
'pluginspage', 'https://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'false',
'loop', 'false',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'campcarecommercial',
'bgcolor', '#ffffff',
'name', 'campcarecommercial',
'menu', 'true',
'allowScriptAccess','sameDomain',
'movie', 'campcarecommercial',
'salign', ''
); //end AC code
| |
|
| You mentioned a video, so I guess that your problem is that even if the main
time line isn't playing (that's what would be affected by your HTML code), the
video however has it's own time line and therefore isn't stopped. You'd have to
manage this by using action-script inside the Flash file. How to do that will
depend on the way you have embedded (or even not embedded) the video into your
swf.
Markus
| |
| LeeshaC 2007-03-11, 7:17 pm |
| Hi Markus,
Thank you for your reply. I'm am new to Flash 8 and swf's so pleas bear with
me. I imported a wmf into Flahs 8. I selected the first option of progressive
download ........ Should I be choosing something else? I tried the 4th option
of embed video........ but the video was slowed down and didn't synch with the
music.
Thanks,
Leesha
| |
|
| so did you choose a skin for your video?
If so, select the video on stage and go to the parameters of the
video-component, (third tab in the properties inspector) there you should find
an autoPlay (usually the first one) option that you can set to false.
| |
| LeeshaC 2007-03-11, 7:17 pm |
| I'm closer. I did as you instructed. Now the swf doesn't autoplay which is great, but it also doesn't show the skin. I made sure that the skin autohide parameter was set to false.
Leesha
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|