The Flash Player is a browser plugin. Flash content is not part any html spec; in many senses flash is an addition that prior to recent developments was the only way (and often is still the only viable) to handheld animation and videos stuff.
The various browsers handle flash content in many different ways and prior to swfobject no sane and simple method existed for getting flash content to display. SWFObject is a small javascript lib that focuses on resolving the various issues and disparities across the different browsers platforms Using swfobject saves you alot of pain if you use it correctly you can rely upon it as effective. I don't use dreamweaver - so I can't accurately say what happening there you need one script to include (it goes in the html head) you set up either a static object or dynamic SWFObject. Static option has lots of markup and a single piece of javascript needed to ensure that (ie works well - AFAIK its to deal with ie) Dynamic option targets a div via id and places the content within. A truly simple code generator exists for creating the code for either of the above options and allows you to add addition params, flashvar - everything really (as far as its within the remit of SWFObject) It creates a working page with flash embedded you can then save this alongside your project and adapt your project to get it working. It generates complete working markup I think you have some additional dreamweaver addon that facilitates using the SWFObject Lib, it might have some quirks (dreamweaver certainly did when I used it - 8-10 years ago) If you can post a link to what you have so far or the sample code someone will be able to clearly inform you how to resolve the issue (as far as it pertains to swfobject) Have you seen the examples on the testsuite? Did you look at Flowplayer of longtail player as Aran suggested - either of these can do exacly what you want (longtail is the easiest IMHO) hth - S On 9 February 2011 02:45, l.breyers <[email protected]> wrote: > I dont follow this whole flash setup. All other "players" exist as a > client side plugin, and the video itself is merely embedded into the > page with no extra files needed. But when i insert a flash movie using > dreamweaver, it copies a host of js and swf files, sticks scripts all > over my page and gives an object within and object. Nowhere is there > an explanation of what each component does or how it all fits > together, not even SWFObjects documentation explains how it fits into > the flash structure. Whats the difference between a "flash player" and > SWFObject? All im looking for is a way to play a flash video, with no > interface or special features, other than i need it to play on click. > What do i need to do this? > > On Feb 8, 5:49 am, Aran Rhee <[email protected]> wrote: > > Hi. > > > > With Flash, it really comes down to the video player you are using. Most > > popular pre-bilt Flash based players such as Flowplayer and JW Media > player > > have a javascript API in which you can invoke play(), stop(), load() > methods > > etc. If you roll your own player or are using a custom built player, then > > methods to be called need to be exposed to the page. How to expose these > > methods are out of the scope of this list. > > > > SWFObject is about embeddeing/inserting your flash files on your HTML > page, > > and does not deal with the specific workings of the swf files which are > > embedded. You can however pass data to the swf at creation time though > > flashvars etc. > > > > I hope this helps you and puts you in the correct direction. > > > > Aran > > > > On Tue, Feb 8, 2011 at 1:05 AM, l.breyers <[email protected]> wrote: > > > Hi, ive come here in search of a way in which to play a flash video > > > using a button. Whereas all of video players require a simple play(); > > > function, flash seems to require a much more elaborate method, of > > > which there is little to no information about it. Apparently SWFObject > > > can do this, but after reading a few tutorials over and over again and > > > trying for hours to just get a video to show, ive not managed to > > > decipher their examples. What im looking for is a complete working > > > markup, that is, the minimal code required to get a flash video to > > > show in firefox, and play when an image is clicked. Please help! > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "SWFObject" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]< > swfobject%[email protected]> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/swfobject?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "SWFObject" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/swfobject?hl=en. > > -- You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/swfobject?hl=en.
