Flash Video Player Need Help
Hello everyone I am hoping someone here can help me. I am going to school and I have an action scripting class. For my final project we have to make a flash video player with a custom skin to upload to our websites. We did something similar to this with our first project which we made a player where the movies where embedded in the file itself but this is supposed to be a youtube like flash player where we can call in the files from another source.
We kind of got pressed for time and were not able to go into detail with this project so the teacher gave us the code and I put it in exactly how it should be but im pretty sure i have something misplaced or I am missing a step. I get 8 different errors when I go to test the movie. and nothing works. Can someone please tell me what I am doing wrong or can you point me in the direction of a tutorial on this as I have been searching for tutorials on this with no luck.
Here is my Action Script 3.0 CODE:
import fl.video.FLVPlayback;
import fl.controls.List;
var vid:FLVPlayback = new FLVPlayback();
vid.source= "fashion.flv";
addChild(vid);
vid.skin="SkinOverPlayStopSeekMuteVol.swf";
vid.x=100;
vid.y=300;
vid.skinAutoHide="true";
vid.width=500;
vid.height=280;
var vidList:List = new List();
vidList.x= vid.x+10;
vidList.y= 200;
vidList.width=200;
vidList.height=100;
vidList.addItem({label:"Bathroom Behavior",data: "bathroom.flv"});
vidList.addItem({label:"Chase Scene",data: "chase.flv"});
vidList.addItem({label:"VMCAD Fashion Design Commercial",data: "fashion.flv"});
addChild(vidList);
vidList.addEventListener(Event.CHANGE,playVid);
function playVid(e:Event):void{
vid.source=e.target.selectedItem.data;
Here is a screenshot of the errors I am receiving.
Please help me
thanks
Message was edited by: BTwardy
I don't know if what you posted is all that is in that as file, but you need to declare a package, then call the import statements, then declare the class name. Like this:
package {
import flash.display.Sprite;
import flash.events.Event;
import fl.video.FLVPlayback;
import fl.controls.List;
public class Main extends Sprite {
public function Main() {
var vid:FLVPlayback = new FLVPlayback();
vid.source= "fashion.flv";
addChild(vid);
vid.skin="SkinOverPlayStopSeekMuteVol.swf";
vid.x=100;
vid.y=300;
vid.skinAutoHide="true";
vid.width=500;
vid.height=280;
var vidList:List = new List();
vidList.x= vid.x+10;
vidList.y= 200;
vidList.width=200;
vidList.height=100;
vidList.addItem({label:"Bathroom Behavior",data: "bathroom.flv"});
vidList.addItem({label:"Chase Scene",data: "chase.flv"});
vidList.addItem({label:"VMCAD Fashion Design Commercial",data: "fashion.flv"});
addChild(vidList);
vidList.addEventListener(Event.CHANGE,playVid);
function playVid(e:Event):void{
vid.source=e.target.selectedItem.data;
Then click on your stage in Flash, then open the properties window, and fill the Class text field with: Main
Make sure the as file is saved in the same folder as the flv.
Similar Messages
-
Basic question about Flash video. Please Help
Hello,
Sorry for the noob question but I'm struggling with the basic
understanding about the Flash video.
I just need to reduce a large video file to a small size with
a nice quality and the Flash Video Encoder does very god job with
that. But when I double click the compressed .flv file it opens as
a blank screen in the stand alone player without playing any video.
I can use Dreamweaver to produce a web page playing the file, but I
don't need this file for posting it on a web page, I just want the
file smaller and to simply play it on my computer or send it to
others.
What is the way to do this?
I appreciate your help.It sounds like you're not having problems with the actual
compression of the videos, just the playback, correct? All you need
is a standalone player that plays FLVs. Like Quicktime Player plays
MOVs, and Windows Media Player plays WMVs, you need something to
play the FLV files. There are many free options available. On a
mac, I use something called, strangely enough, SWF & FLV
Player. You can find it here:
http://mac.eltima.com/freeflashplayer.html
Just do a search for FLV players and you should find
something appropriate. The only downside is you'll need to make
sure anyone you're distributing the videos to also has an FLV
player. If you're sending your files to just a few people, no big
deal. If this is for the public in general, you would want to embed
a Flash video player in an HTML page and send it like that.
Hope that helps. -
Insert Yume ads in flash video player
Hi,
I am working on a flash video player where i want to insert
yume ads. The sdk and integration guide provided by the yume people
is not that good. Can anyone help me out on this?I'm having same inconvenience while integrating YuMe Ads Module in my project.
YuMe's documentation is really bad & pretty confusing.
I would like any helping blog post or forums thread elaborating the solution in this regard.
Here Now I have done some manipulations with code in AS2 based player.
please have a look at it. I was trying to run it locally while connected to internet so it may load ads from the online source defined. But it does not load anything. I have also made the controls btns hidden, as i dont need them.
I dont know if I just need to upload these files on web server and test it online to get it working. Not Sure.
Any help will be appreciated.
Message was edited by: Ronny Depp -
Ever since I updating Safari to 7.0.3 I cannot open any youtube videos. Need help please
Go step by step and test.
1. System Preferences > Other/ Flash Player > Advanced > Delete All
Press the "Delete All" button
Install Adobe Flash Player.
http://get.adobe.com/flashplayer/
Follow the prompts. Click Safari in the menu bar and then Quit Safari .
Restart computer. Relaunch Safari.
2. Allow Plug-ins
Safari > Preferences > Security
Internet Plug-ins > "Allow plug-ins"
Enable it.
Press " Manage Website Settings" button for more options.
Adobe Flash Player
Currently open website:
All other websites"
Select "Allow" then "Done".
3. Delete cookies.
Safari > Preferences > Privacy > Cookies and other website data:
Press the “Remove All Website Data” button. It may take a while.
4. Turn off Extensions, if any.
Safari > Preferences > Extensions
Now try YouTube.
Best. -
I get the following message when trying to open an .avi downloaded from my video cam, need help, can not find the codec, thank you. This is for Quicktime Player.
"The document “IMAG0026.AVI” could not be opened. A required codec isn't available."Try Perian.
http://perian.org/ -
Best export from FCP4.5 for conversion to Flash video player?
Hi,
I'm prepping a 5 min edit production for the best web presentation w/o excessive file size / loading time. The production has a lot of subtle detail & layered images so there a lot of opportunities for this to turn to mud (shot on low grade digital consumer video camera & also in lower light settings).
I exported in H264 at med quality & got a good looking 75 meg file. Tried uploading to YouTube, fearing the worst, and it actually created something decent from that file. I could just link that embedded file to the intended website, but I dont want that YouTube logo in the corner. I'd rather recreate what they do in Flash w/o the logo.
Does anyone have info on what YouTube does to the videos it processes into those flash video player files? Compression or resolution settings? It looks like going that route will give better results that can be universally viewed than the standard mpeg route. (file size & universal viewing on all platforms are my only reason not to post in H264).
Are these issues best solved going from a big FCP export and handled with settings in Flash? Or is there some export choice in FCP that will give best (size & res) quailty with minimal influence needed from Flash?
I've tried Compressor but havent been able to get any results from it. I just get errors that I dont understand. If thats the solution, I'll dig into that further, but would appreciate any tips / guidance.
thanks
Duane
G5 tower Mac OS X (10.4.8)You could try Sorenson 3 at 640x480. Try a quality setting of about 80 percent.
-
Justin.tv Flash Video Player
Here is the url for justin.tv's embedded stream
http://www.justin.tv/widgets/embedded.swf
or
http://www.justin.tv/widgets/jtv_player.swf.
Neither of these play back on Flash Lite, it is live streaming
flash maybe FLV called from a SWF file, I would really like to see
a flash player that played streaming SWF on my phone. If it is the
FlashLite 3.0, please put out a beta soon becuase I would really
like a solution soon. Thanks.stevelantz wrote:
> I have successfully installed Flash Video Player (the
latest version) on two
> different computers, but I cannot find the executable to
open the player. I
> have more than one FLV player on my computer. I should
be able to right-click
> on the video file, select "open with..." and select
Adobe Flash as the player,
> however, it does not show up anywhere on the programs
list - why is this?
>
You can't play the FLV itself with flash player, and flash
player is not an executable
stand alone application, that's why you can't find it, it's a
browser component only.
To view FLV you need SWF which can then be run within
browser. There is no direct
playback for FLV files. Google for FLV PLAYER, there are some
3rd party players
on line.
Best Regards
Urami
"Never play Leap-Frog with a Unicorn."
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
Hyperlink to Flash Video Player
Does anyone know how to push a specific video to a Flash
video player playlist? I'm using the following Flash video
player/pplaylist application. Any help would be great!!!
Creating a Dynamic Playlist for Progressive Flash Video
http://www.adobe.com/devnet/flash/articles/prog_download.htmlWithout seeing this is a guess, but if you are linking to the
swf directly
then that is what happens. Create a new page with the movie
on it and link
to it, then it should size correctly.
Gary
"SCBrazil" <[email protected]> wrote in
message
news:gd0qbn$dr$[email protected]..
> Hi,
> I have developed a small Flash movie for one of the
products on my site
> which
> I want to open from a link. The link and video work fine
but it opens in a
> full
> size browser window, which makes the photos look pretty
ugly. I want the
> link
> to open only the Flash Player so that the video is
displayed in the size
> it was
> made (700px by 225px.)
> Anyone know how I can do this? There must be a way,
would the setting be
> in
> Flash CS3 or DW CS3?
> Thanks
> -
No buttons in Flash video Player
Hello,
i can't see navigation buttons in my Flash video player.If I
run the swf alone there are all the buttons but in my page is onli
the video picture but not buttons.What should I do? Can somebody
help?I am having the problem mentioned above and would really
appreciate a solution. Here's my set up...
Running a Flash CD Rom in IE, user clicks a Start.html file
to fire up the presentation in their default web browser.
I have a root file loading a bunch of movies on various
levels. The video player loads on level 4 above a bunch of other
buttons on level 3.
I disable the buttons underneath by including a big Invisible
button on the bottom layer of the video .swf and inserting a script
to disable the hand cursor. (So that users can't click buttons that
reside underneath where my video is playing.)
That all works great, the only thing is that the controls in
the skin I'm using become disabled. I'm using a premade skin in
Flash 8, the kind that pop the controls up automatically when you
roll over the video, and go away when you don't.
Everything works great when I Ctrl+Enter and test the file,
but when I run the whole thing together in IE, the video controls
never pop up.
Any suggestions? Thanks. -
Tracking via google analytics & Flash Video Player Component
Hi,
I'm trying to track when a user plays a video on our home
page. I'm using the standard Flash Video Player component and
Dreamweaver to hook it up. In order to get the player to call
Google analytics on play I think that I need the FLA for this
player but I can't seem to figure out how to access it. Any
suggestions?
Thanks
Tony LopezHi,
I'm trying to track when a user plays a video on our home
page. I'm using the standard Flash Video Player component and
Dreamweaver to hook it up. In order to get the player to call
Google analytics on play I think that I need the FLA for this
player but I can't seem to figure out how to access it. Any
suggestions?
Thanks
Tony Lopez -
Flash Video Player, PHP, and XML
I'm the visual designer for a web site "Global Oneness
Project" (
http://www.globalonenessproject.org/videos.php
) that's currently "streaming" progressive download quicktime
movies. The individual video pages (where you view a video) is
currently a php template that calls a MP4 from an XML file. Our
goal is to switch the embedded quicktime videos to embedded Flash
videos that play progressive download movies.
Ideally I would like to create a single Flash Video player
(SWF) thats embedded in a single php template (video.php), but will
play different videos depending on what state of the php is being
called. Basically, I want the site to work exactly like it does now
but with Flash instead of Quicktime.
I'm assuming that this will be created with some combination
of an external "AS" file, the XML data and the PHP logic but can't
even begin to get my mind around what needs to be done.
I found a few examples of how to play multiple videos in a
single player, but all of the examples use a playlist that's
embedded in the SWF. The video player will only be used for player
control and the user will choose the movie by selecting the correct
PHP page within the HTML.
I'll be thankful for any direction you all can give or even a
Flash developer who would be able to take this project on.
Thanks,
Shawn
[email protected]yes, it's possible. and there are some similarities with an xml image gallery. the main difference would be using something like an flvplayback component to display the videos as opposed to using a target movieclip to display the large image in an image gallery.
-
How to connect flash video player(like youtube) to live streaming video the programm like
How to connect flash video player(like youtube) to live
streaming video the programm like webcamXP?
Or through a browser to look in a videoplayer video from
other usual personal computer with the program for a video
broadcasting from the web chamber.you can use google to search for tutorials on skinning the component.
-
Firefox5 is not showing BBC iPlayer Video & Radio.
Other browsers are all fine(Safari,IE,Chrome)
The iPlayer webpage is all there but the flash video player is black. The OS is MS Windows XP Professional 32-bit SP3.Also, when the flash video does not show up it displays the error that I do not have the current flash player. The problem is that I do have the current flash player that actually plays flash from another section of the website.
Forgot to add that earlier. -
Controlling the Dreamweaver Flash Video Player
Hi all,
I'm using the Flash video player that comes with Dreamweaver
CS3 (FLVPlayer_Progressive.swf) to play a video on one of my web
pages, and it works fine. However, I'd also like to be able to
control playback using some HTML buttons below the video. I've been
Googling for ages now looking for documentation on how to use
JavaScript to control the player, but I can't find anything. Does
anyone know where I could find it?
Thanks,
RussHtml doesn't control flash players. The skins, controls,
buttons, etc are
referenced by the SWF file. You would have better control
over your video
player if you compiled the FLV/SWF in a Flash program instead
of DW.
Nancy O.
Alt-Web Design & Publishing
www.alt-web.com -
Flash video player is crashing my computer.
Since the end of March my computer has been crashing / hard shutdown whenever I play a flash video on sites like Hulu, CBS, Youtube and so on, -if the video has HD options.
I did a fresh Win 64 install on this PC in January.
This has not happened on this PC before
I tried
- on new IE and FF
- uninstalling a reinstalling flash, and installing an older version (v10)
- uninstalling and reinstalling video card drivers to older versions
- running it with no firewall and/or no antivirus enabled (MSSE)
- a mem test
to no avail, everything ( games, adobe reative suite, MS offive) works perfectly except for flash video player.
I have
Win 64
AMD 62X2 Core 6000+ 3GHz
8 GB ram
Nvidia 460 GTX
WDC 2TB Cache 64MBHave you tried disabling hardware acceleration in Flash Player?
How do I disable or enable hardware acceleration?
Maybe you are looking for
-
[SOLVED] Running 32bit applications on arch x64 (Steam/bumblebee)
Hi, guys. I tried to use native steam on my laptop, and I got a usual problem https://support.steampowered.com/kb_art … -EYZB-7457 . I 'm using bumblebee and I suppose I have mistakes in my lib32 packages. So it would be nice if someone explained wh
-
Glossy or AntiGlare/Normal Res or High Res for Video Editing?
I will be purchasing a MacBook Pro 15" for Final Cut Pro video editing on the road. I'm trying to decide on the best purchase configuration for the display. Apple offers Glossy Widescreen, 1440 x 900 standard. High resolution 1680 x 1050 comes in eit
-
Hi All, I have a typical requirement, my user wants a report which should display sales person, product, revenue and commission (given to his staff members). say there are two lead sales person & three products. Each lead person got two staff(sales p
-
Reverting back from 4.2 to older version
Hi, I am sure this is posted in the wrong area so apologies. I have installed iOS 4.2 and I want to revert back to the most recent version released to the public (3.2.1 i think????). How do I accomplish this? Any help greatly appreciated.
-
How to create summation column with different measures of fact table
If I have a salary fact table with columns MONTHID | BASIC-SALARY | TRAVEL-ALLOWANCE and in Deski, I drag all the three columns to form a horizontal table then is it possible to create a summation column to show total salary? I don;t want to create a