Swf video controls
I have a swf video file that I put on a page on my website. I
was wondering how I would assign play and stop buttons to it,
instead of having the movie autoplay and loop.
I am a newbie, so sorry if this is obvious.
crjhunter wrote:
> I have a swf video file that I put on a page on my
website. I was wondering how
> I would assign play and stop buttons to it, instead of
having the movie
> autoplay and loop.
>
> I am a newbie, so sorry if this is obvious.
Well, SWF video is timeline based video so using basic
play(); stop(); action
targeting the main timeline will do just fine. Tho, if you
are loading it in leve
or movie clip holder than adjust the action accordingly.
If MC Holder:
mcHolder.stop(); mcHolder.play();
if in level3 (example):
_level3.stop(); _level3.play();
Best Regards
Urami
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>
Similar Messages
-
How to control SWF Video using JavaScript?
Hi,
I'm developing a web page which will use Flash Videos. I need
to control the video without using a typical skin. The current tool
I'm using to convert my wmv to SWF FLV is Coffee Cup. A hex edit
suggests this is a Version 8 SWF.
I am trying to write some javascript to control which Frame
is displayed. I have seen code such as movie.TGotoFrame(...); and
movie.GotoFrame, movie.StopPlay() etc. Unfortunately I cannot seem
to use these methods. Eventually I suspected that my SWF simply did
not make these methods available and when I run my video in my web
page a RightClick shows a Context Menu that has no Reverse,
Forward, Back options. Other SWF videos do have these options
(obviously). This seems to prove that nothing I could code would
make the GotoFrame work (ie no Forward (by one frame) option in
menu suggests it could never work from javascript).
Some Questions
Is there a tool to examine a SWF to see what methods are
available to javascript control? (expose the API) and is there a
setting required in the <object> setup to enable javascript
interaction?
Is there something about SWF V8 files that is the problem or
is likely that the CoffeeCup Web Video Player can only make
partially functioning SWF Videos?
What is the difference between GotoFrame and TGotoFrame and
have these perhaps been superceeded by something else (there is an
Adobe page which suggests they are only available up to Version 5
(not sure if that means Version 5 of SWF files or Version 5 of the
FlashPlayer - to add to my confusion).
I'm not currently a Flash type developer and have no tools to
speak off and don't know ActionScript. I'm thinking of heading in
the Flash direction but not sure how to move forward.
Cheers
StuartThanks Alex,
quote:
You need to learn to move forward :)
I have a Greek friend who when I asked him how he was getting
on with his dissertation project stated "in Greece we have a saying
- every start is different".
In this case my start is to dip a toe in the Flash water and
not get scalded.
Anyhow,
One clarification from the CoffeeCup forum helped me to
understand that my SWF used an external FLV and that may explain
why the rightclick context menu did not have the more movie
specific Back, Forward etc. Sounds plausible. So assume external
FLV.
quote:
it is very easy to add a small script into the root timeline
of your SWF file
A little hand holding here would be appreciated. I have
downloaded the Flex SDK. Can I use this free tool to do what you
suggest? Using MXML and ActionScript. If so, a little bit more info
would help.
quote:
That's all, it should work. Of course, you can tell me that
your movie
already has an onEnterFrame() eventhandler at the root
timeline.
What's a problem? Just create an empty movieclip and add this
script
into its frame 1 (it maybe the only frame). But do not forget
to
change "this.xxxx" to "_root.xxxx" within such script.
Hhhmmm. A bit stumped. I've had a look at the SWF using
FlashDig. I noticed what appears to be Assembly Language (Push,
Pops, Jumps etc) and presumably in amongst all of that may be an
onEnterFrame. Perhaps linked to a DefineFunction2 node.
Unfortunately the SWF is very large (60K) and there is no
search/find tool so that makes finding functions a bit harder than
expected. Struggling a little with the concept of _root and Level0
etc.
I assume you are suggesting manually building a replacement
SWF (empty movieclip?) if the onEventHandler happens to be used for
something else. Presumably set/getVariables only interacts with
this function so if it is 'booked' in my SWF I would be in a spot
of bother with your suggested approach?
I wonder if you are assuming I have some sort of Flash tool.
Possibly like this one shown in this tutorial
WebWasp
Panorama tutorial
Note. The panorama is actually close to what I eventually
want to do except I intend to make a video of a scene by rotating
clockwise by 360 degrees. Then add buttons onto the SWF (or DHTML)
which communicates with the SWF to move forward or back through the
video. Moving forward would be like a clockwise rotation and moving
back would create anticlockwise rotation. This explains the need to
GotoFrame (or similar). From that perspective I don't need to
become a Flash guru (for now) and can't justify buying all the
expensive flash tools for this one (apparently) simple task: Frame
by Frame control of an external FLV via the SWF.
Note. I've started using SWFObject. Might this library help?
In summary.
How do I add the onEnterFrame ActionScript sample (or
something similar) into a SWF using only the Flex SDK command line
tools or similar in order to control an external FLV?
Cheers
Stuart -
Batch process video to swf with controls??
Hi,
I have hundreds of QT videos that I need converted to .swf
video WITH control bar and a watermark logo.
I can batch process them to .flv using the Media Encoder, but
I need them to be .swf in order to use them in Director 2004MX.
Plus, I don't see where I can add a watermark using Media Encoder.
I have CS3 and CS4 Master Collections so I assume there's got
to be SOME way to do this batch processing.
I did a few sample tests in Flash, bringing in the .flv file,
attaching one of the prebuilt skins, adding a layer for the logo
watermark, then exporting to swf. It works beautifully in my
Director project. But to do this process 500 times would take
forever.
Any advice on how to batch to .swf video with control bar and
watermark would be greatly appreciated.
Thanks.
-KarenThank you Heathrowe I appreciate it.
I guess as far as using the hotspot slicer in Fireworks, if I
export to an SWF it doesnt make that a clickable section in the SWF
file. Oh well. Would be a nice feature in the next version of
Fireworks. -
Adding Controls to .swf video
Hello,
I have lots of .swf video files from the past years, and recently have been using the flash video encoder in cs3 to create .flv that adds video controls. I was wondering if there was a way to add video controls like slider, stop, pause, volume, etc.. to .swf video files. I have searched for a .swf converter to .flv format but even though all the marketing says it can do it, none of the ones I have tried can do it.
Need help if you can provide some guidance.
Thanks so much
Robthe converters you tried can't convert swf to flv or can't do it flawlessly?
-
Video controls for placed SWF video
Hi all,
I placed a number SWF videos into my site (as I did not want to follow the embed HTML method) which has given me the desired effect I wished to achieve, the only problem is that the placed SWF videos do not come with a set of video controls (Play, Stop FFW etc)
Does anyone know if it is possible to achieve this, maybe by inserting some HTML, if so would anyone have an example of the code required. If not I would happy to hear any alternative suggestions of how to include a video within your site that includes video control (without the need to host the video on YouTube etc)
Thanks in advance for any ideas
ShaunHi Shaun,
I suppose that Adobe Flash Pro forum guys can help you
http://forums.adobe.com/community/flash
Best Regards
TaikaJim -
Video controls dissappear when swf is put on web
I've got a simple SWF file that points to an flv on our
website. When I test the file on my machine it plays fine, with the
controls underneath. When I upload the swf to our website and play
it from there the controls disappear.
I've even tried publishing an html page that only has the SWF
file on it and uploading that. Again, it plays fine when I open the
html file from my machine, but as soon as it's on the website and I
navigate to it, no controls. The video plays fine, but I would
really like the controls to be there.Nevermind. I figured out what the problem was myself.
Apparently when you use one of the default video control skins it
makes a second .swf file that contains the controls, which has to
be in the same directory or you can point to a URL where it's
located. -
Video Control Bar in Flash Displays on HD but Not From Webserver
I am using Flash Pro 8 - putting FLV files in SWF files using
Flash Pro 8 and then "publishing" to Html and SWF to a location on
my hard drive.
When I display the webpage from my Hard Drive from where ever
on my hard drive I initially published to from Flash 8 Pro -
everything works fine - videos play and video control bar shows and
works.
When I publish this website to web server the video displays
and plays but NO Video Controller Bar (at bottom of the video)
shows at all.
Symptom: when I make an Html, SWF and FLA file into a folder
on my hard drive and display them in the browser the video control
bar shows. When I copy those three files into the hard drive
website in FrontPage, the video shows but the video control bar
does not.
So, I re-made the Html, SWF, and FLA files and put them
directly into the FrontPage website (on my hard drive) then
everything works fine when I use broswer (IE 6 or Firefox). z
But, when I publish the hard drive website to the remote
website hosting company, the video control bar disappears -
everything else works fine (video shows OK just no video controller
bar.)
My guess is that the SWF file has a non-relative URL
reference concerning the video control bar and when the three files
(Html, SWF and FLA) are moved to new location then that
non-relative address rears its head.
I should NOT publish from Flash 8 Pro directly to remote
webserver as it has FrontPage Extensions and does not like to talk
to FTP changes to website not coming from FrontPage client.
is my guess right? What to do?????
[email protected]quote:
1. When I encoded the video in flash I selected one of the
pre-packaged control bars (so the user can control basic
functions). I then published an HTML and a .swf. The HTML works
perfectly however when I use Dreamweaver to insert the .swf it does
not carry over the control bar. I have tried pulling over the
control bar .swf and placing it under the video file but a HUGE
object is imported with a bunch of controls that do not work (bunch
of controls = play/pause/etc).
make sure the component skin is uploaded in same directory as
swf, movie, html
quote:
The second issue is this; the user still has to click once on
the video to use the controls... does anyone know what I am doing
wrong on the video file?
Follow directions
HERE
for getting rid of ActiveX control -
Can you put Video Controls on an .flv video?
I have an .flv file in my .fla file. However, when I play the movie, it simply plays the movie along the timeline. Is there a way to put video controls on this file? Or do I need to use the videoPlayback option?
If I do need to use the videoPlayback option, how do I make sure that the video always work, even if I move it to a different computer (because the references to the movie will change)?
Thank you very much in advanced.
-TitanVexHi Ned,
Thank you for your reply!
I guess I mean that when I specify the path to my flv file and I export the swf file, the swf won't play the flv video if I move the swf file to another computer. Does that make sense?
Thank you for the answer though, I will use FLVPlayback!
-TitanVex -
Flash Video Controls Not Showing in Page
Have DWCS3 on XP
I have a flash video file that was created with controls.
There seems to be a checkbox for controls in
Dreamweaver...BUT...when I play the video locally or on the
server...the controls are absent.
Did a search...What am I missing
Thanks!Did you upload the video control images to server? Did you
upload the SWF
file? Can you post a link to the page so we can see the code
and supporting
files?
Nancy O.
Alt-Web Design & Publishing
www.alt-web.com -
Adjust Y pos of Flash video control strip (skin)
Hi
I am in need to move the video control strip upwards so it clears my caption in the video shown below.
The skin is a swf, and normally if I import a swf to to another fla as an outside source I can adjust xpos and ypos with action script.
I am using AS2 and would think this can be controlled in the flv playback component. But I can not find out how.
Can you help?
Thank you on beforehand!
ggaarde2Hi Again!
Is there anybody out there?
Meanwhile I have looked into creating a dublicate skin and tried to edit that.
There is not much code for the fla. Here it is:
// a lot of the code below is commented out. This is because the
// we are just setting those values to the default values anyways.
// This gives you an idea of how little code you might have to write
// if you did your own skin! But we leave the commented code in
// to give you an idea of what you would need to do if you wanted
// to customize the skin.
// Defaults:
// * layout_mc.foo_mc.mc defaults to foo_mc
// * for seek bar, layout_mc.foo_mc.handle_mc defaults to handle_mc
// * layout_mc.foo_mc.anchorLeft defaults to true, unless anchorRight
// is explicitly set to true and then it defaults to false
// * layout_mc.foo_mc.anchorRight defaults to false
// * layout_mc.foo_mc.anchorTop defaults to false
// * layout_mc.foo_mc.anchorBottom defaults to true, unless anchorTop
// is explicitly set to true and then it defaults to false
// minimum width and height of video recommended to use this skin,
// leave as undefined or <= 0 if there is no minimum
layout_mc.minWidth = 155;
layout_mc.minHeight = 60;
// background for controls, some commented out because are defaults
layout_mc.bg1_mc.mc = chrome_mc;
layout_mc.bg1_mc.anchorLeft = true;
layout_mc.bg1_mc.anchorRight = true;
//layout_mc.bg1_mc.anchorBottom = true;
// playpause_mc just using all defaults, so no code needed
//layout_mc.playpause_mc.mc = playpause_mc;
//layout_mc.playpause_mc.anchorLeft = true;
//layout_mc.playpause_mc.anchorBottom = true;
// volumeMute_mc just using all defaults, so no code needed
//layout_mc.volumeMute_mc.mc = volumeMute_mc;
layout_mc.volumeMute_mc.anchorRight = true;
//layout_mc.volumeMute_mc.anchorBottom = true;
// seekBar_mc using mostly defaults, but setting
// anchorRight to true
//layout_mc.seekBar_mc.mc = seekBar_mc;
layout_mc.seekBar_mc.anchorLeft = true;
layout_mc.seekBar_mc.anchorRight = true;
//layout_mc.seekBar_mc.handle_mc = seekBarHandle_mc;
//layout_mc.seekBar_mc.progress_mc = _parent.seekBarProgress_mc;
// bufferingBar_mc using mostly defaults, but setting both anchorLeft
// and anchorRight to true and setting fill_mc
//layout_mc.bufferingBar_mc.mc = bufferingBar_mc;
layout_mc.bufferingBar_mc.anchorLeft = true;
layout_mc.bufferingBar_mc.anchorRight = true;
//layout_mc.bufferingBar_mc.fill_mc = _parent.bufferingBarFill_mc;
I have tried to add:
layout_mc.ypos = -100; and layout_mc._y = -100;
to my ClearOverPlaySeekMute_GG_1.fla
Did not work.
Also tried inside Fla with the flv playback component to add
_y=-100
That moved the whole component up.
Then I tried to address the swf from there:
layout_mc._y = -100;
Did not work.
Then I tried to address the swf from there:
ClearOverPlaySeekMute_GG_1.swf._y = -100;
Also did not work.
What is it that decides the default position of the componet?
I am out of ideas.
ANYONE?
kglad or Ned Murphy?
Thanks on beforehand
ggaarde2 -
Hi there. I'm creating a website in Flash CS3. The FLV video
in the center of the page utilizes one of the stock video control
panels in the video encoding process
(SkinUnderPlayStopSeekMuteVol.swf) . Upon testing the movie, both
in Flash and uploaded on my server, the controls work fine for
about 10 seconds then seize up and stop being functional. The page
is simple as can be. 1 frame long, a couple pieces of text, a
static background and the FLV in the middle. Any ideas on why the
control panel freezes up?Have you tested on more than one machine? Perhaps you could
post a url and we can see if it's a machine issue? I've never had
an flv cause a lockup, I'd be interested in seeing this.
Sean -
have not use flash in years, so I am wondering if anybody can help me with a basic questions.
I want to make a mock-up kiosk presentation. What would be the best adobe product to use for this,
i was thinking towards in design as what i have most experience with.
basically all it needs to be is a start screen with 5 icons/thumbnails when one clicked
a video/swf plays a 15sec clip in fullscreen (i need to be able auto hide the video controls, and
for the video to play non-stop for the full 15-20 secs (not stopping or pausing if the screen is pressed)
on the end of clip to return to start screen.
so what would be best for this ?oh sorry , it will be a standard windows (doubt it will be 8 most likly 7/vista/xp) pc will be displayed on a monitor with a touch layer underneath it.
it does not need to pull anything from the web either (video or feeds etc) all the videos and files can be stored locally on the machine or usb stick. -
Published .app won't show video controls
I'm including a video with it's controls into a frame in flash.
When I try it and publish it as SWF the control bar of the video shows
but when I publish it as a .app for mac or a .exe for windows and run it
the video shows but not the controls
I'm using the FLVPlayBack component to show the videoThe controls for the FLVPlayback component are stored as a separate SWF. This SWF needs to go along with the .app/.exe/.swf wherever it goes in order to display.
-
External AS3: Loading swf video
I need to load a swf file, which is video player and video. The swf loads but the video contained in it does not play and the video controls are dead too. What do I need to do to load a swf containing a flv video so the video plays?
I have a fla file connected by class to an external as file. Here is the external as file I am using:
package final {
import flash.display.Loader;
import flash.display.Sprite;
import flash.display.MovieClip;
//import flash.text.*;
// URLRequest class resides in flash.net package
import flash.net.URLRequest;
import flash.events.*;
import flash.errors.*;
public class ControllingSwfs extends Sprite {
public function ControllingSwfs() {
var swfContainer:MovieClip = new MovieClip();
var swfLoader:Loader=new Loader ;
swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaderCompleteHandler);
function loaderCompleteHandler(evt:Event):void {
addChild(swfLoader);
swfContainer=swfLoader.content as MovieClip;
swfContainer.x=10;
swfContainer.y=20;
addChild(swfContainer);
//swfContainer.setText('SWF Loaded Properly');
stage.addEventListener(MouseEvent.MOUSE_UP, unloadAssetHandler);
function unloadAssetHandler(event:MouseEvent):void {
swfLoader.unload();
stage.removeEventListener(MouseEvent.MOUSE_UP, unloadAssetHandler);
swfLoader.load(new URLRequest('kitty.swf'));
addChild(swfLoader);Now I am going to ask some dumb questions:
What is the difference between a script that loads an external image or a swf file into a new swf,
and a series of scripts that, when used together with a fla file, create a swf movie player (into which a target flv file gets played)?
Can a loader script load an that swf file that contains a movie in an ActionScripted movie player? If so, does it need access to the movie player scripts?
A little background:
My functioning ActionScript 3 movie player relies on 4 scripts —
1. a button manager script that controls play, pause, rewind, fast forward and stop
2. a media control script that extends flash.events.Event
3. a video script that extends MovieClip, targets the video to be played and controls and displays things like the scrubber
4. a main script that integrates all the above and is the Class for the fla file
Because I wanted to be able to load multiple flv movies in my flash swf, and I didn't know how to make the movie player do this, I thought loading the movies as swf files via a loader would be the solution.
If I could get my scripted movie player to be able to load and play different movies (as does the Adobe Media Player), that would be satisfying. (I am not relying on the AMP because I am doing this project for a class (which is now finished, but I'm still trying).
What I really need is working sample scripts so I can begin to understand how to assemble something like this. Oh, and the key is that I am required to do this all in external ActionScript 3, not on the timeline within the fla file.
Is there somewhere online that I can visit that creates purely scripted flash stuff? -
Video control buttons not working
I have an embedded video in an Interactive SWF project I am working on and the video control buttons I have built do not work. Under the buttons panel, I selected "Video" and then used all the various control options available to create a control panel for my video. It looks great, but none of the buttons work. My video file shows up in the appropriate drop down menu and I am 100% sure I have done everything correct, but the buttons do not work. The video is a SWF file, is that the problem? Any help would be appreciated!
Thanks!
SteveHi
As far as I know Toshiba controls utility must be preinstalled if you want to have proper functionality. Check this on your unit.
Bye
Maybe you are looking for
-
If I get Maverick, can I keep an older version of iPhoto ?
I am currently using iPhoto 08 (7.1.5). With OS 10.6.8 The latest version of iPhoto does not show keywords below each image, (shocking, but true). My work requires that I have the keywords below each image, so I would like to continue to use iPhoto
-
I just had to reset my entire laptop to factory settings, therefore my original iTunes was erased, leaving my iPhone 4 no accessibility for new music. I had to download CopyTrans so that I could transfer all things on my iPhone 4 onto my new iTunes.
-
IPad 2 and iPhone 4 won't sync
I need this fixed. iPad 2 and iPhone 4 used to sync without a problem to my Mac Pro. Now sync fails. iTunes 10.5.2 (11) Lion 10.7.2. When connected it just spins saying "Waiting for Sync to start..." Then much later an error box pops up that says,
-
Hi there, I wanted to order a skype number but I have problem while processing to pay. Then I tried again and again by choosing new number but I didn't noticed that that it reserved the number and each time I failed, the payment status changed to pen
-
Problem trying to update with yaourt
Im trying to update the package chromium-browser-bin doing: yaourt -Suy --aur When yaourt detects the new version, it asks me to update, so far, so well... Suddenly htis message appears: ==> Edit the PKGBUILD (highly recommended for security reasons)