Flash Video File STUMP!
Okay, I'm totally stumped by this issue:
I just created a simple Flash file that is programmed to play a little animation and then play a video when the user clicks (video uses FLVPlayBack and and RTMP connection). Everything works fine when I export it from the Flash IDE, and in fact the video streams from a remote CDN server right to my desk top.
So, then I go to test the SWF on our remote web site server with a simple embed into HTML using SWFObject. I use a standard block of code to do this that I'm currently using for a different video player I also made that works just fine--I just swap the SWF file name and adjust a few details.
Yet, when I go to test the file, the SWF does nothing! The simple animation does not play, and the video does not load. What could be causing this? My first thought was that it was something in the SWFObject method, and I've played around with it trying all kind of things I think should work. I'm not sure what it is.
Here is the simple code in the flash file:
import fl.video.FLVPlayback;
import flash.display.Sprite;
var videoPath:String = "rtmp://fstream.imediasee.com/basic/user/preview_video";
init();
// init
function init() {
player.autoPlay = true;
bPlay.addEventListener(MouseEvent.CLICK, beginPlay);
anim.addEventListener(MouseEvent.CLICK, beginPlay);
// begin play
function beginPlay(e:Event) {
player.source = videoPath;
bPlay.visible = false;
anim.visible = false;
Again, this works fine when run on my desktop. "player" is an FLVPlayBack component, and "anim" an "bPlay" are MCs on the stage.
Here is the HTML file:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Untitled Document</title>
</head>
<body>
<script type="text/javascript" src="http://www.website.com/video-player/scripts/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
var params = {};
var attributes = {};
swfobject.embedSWF("http://www.website.com/video-player/home-page-preview-video-player.swf", "flashDiv", "240", "180", "9.0.0", false, flashvars, params, attributes);
</script>
</body>
</html>
Any insights?
I have not had trouble with uploading flash video (.html and .swf) files to my remote server until about 3 weeks ago. I have a .mov made up of stills, graphics, and short video clips with a sound track cued to the video. It plays perfectly on my computers (iMac and G5 with CS4). It will not play on the website. What is playing there now is a video with sound that I made in SlideShowPro for Flash that sort of works, but is not syncing well, which is why I had the .mov made by my sound engineer friend.
Others seem to be having this same problem. What's up? Anyone?
Similar Messages
-
Importing existing flash video files??
howdy
quick question. if you import existing flash video files into an encore project, will this help reduce the final render time? or will encore rerender the existing flash video files?
cheers
angusEncore CS3 won't import FLV files. You must render the project to Flash.
You may want to file a feature request at Adobe's support page asking for support for Flash-ready assets, to eliminate the need to transcode in Encore. -
HT3775 How can I open a flv (flash video) file on my iMAC OS Snow Leopard??
My problem:
How can I open a flv (flash video) file on my iMAC OS Snow Leopard?Try VLC Media Player 2.0.3 or MPlayerX 1.0.14.
-
Hi,
I'm having a problem getting some flash video files to load.
So far it's affecting 2 files located on these pages:
Martin
O'Brien movie and
John
Gormley movie
The .flv files are being hosted on amazon s3. I have done
several things so far to try to figure out why they aren't loading:
* Having the .swf file in the same folder as the web page
(doesn't work)
* Inserting a different .flv file from a different folder in
amazon s3 (doesn't work)
* Changing file permissions (doesn't work)
* Linking to the .flv file in same manner from a different
site on same ISP (video does work)
* Embedding .swf file in a html file instead of a php file
(doesn't work)
I can only guess that it's something specific to the
www.bmfconferences.com site. As I said i've tried the same .flv
file on a different site with the same ISP (it says Bruce Robinson
but it's the John Gormley video file (
John
Gormley movie on different site) and this works, but I don't
know what else to look for to get the files to work on the bmf
site.
Any help would be much appreciated.
Louise.Hi All
I found the solution!... I had to add the MIME type .flv =
video/x-flv to my web server (Windows 2003).
Thank anyway
Rit -
Converting a flash video file to work with in FCE
Does anyone know how to grab a flash video file off the web and convert it to a format that can be edited in FCE 2.0.3? Thanks
Generally Flash video is streamed off a server and is not downloadable as some QuickTime files are.
-
I am wanting this to improve the initial download speed of the page. I have already added a Poster Frame to video's, however it still seems to be loading the video file and just autoplaying. Is there a way to NOT load the video file until the person hits play? This is the AS3 script I used...
import fl.video.VideoEvent;
myPoster.addEventListener(MouseEvent.CLICK, playMovie);
function showPosterFrame(event:Event):void {
myPoster.visible = true;
function hidePosterFrame(event:Event):void {
myPoster.visible = false;
function playMovie(event:MouseEvent):void {
myVideo.play();
myVideo.addEventListener(VideoEvent.PLAYING_STATE_ENTERED, hidePosterFrame);
myVideo.addEventListener(VideoEvent.COMPLETE, showPosterFrame);
I am using Dreamweaver to put the pages together via the Insert - Media - Flash...then putting the .swf file in the page.
Thanks,
Arguiloyou can start the video and then stop it. it will continue to download (which you can monitor). when the time is right, you can enable the video's play button. before the video's ready to start, you can entertain your users.
-
Need advice on making a simple Flash video file. Trying to accomplish two things.
I have some video files (.avi) that I am trying to convert to a Flash video format. I am trying to export it to a Flash player to go into a Powerpoint file. With this, I am trying to accomplish two goals:
1. To have the short clip (15sec, 30fps) endlessly loop, like an animated .gif.
2. To allow the user to click on the video player and drag left/right to ff/rew.
The video itself is a turntable animation. One of our products is making a complete 360degree turn. By allowing the user to grab and drag, it will simulate them rotating the model.
So far, I have already accomplished Goal 1. I made a new Actionscript 3 file, imported video (embed flv in swf and play in timeline), and then made the video loop on the timeline. This seems to export properly, and the video loops as needed. The only thing I can't figure out is how to make the video "interactive" and let the user drag left/right.
For context, I have never used Flash before. Any help would be greatly appreciated.This will come down to essentially moving the playhead of Flash based on the movement of the mouse. It's certainly not going to be smooth however, you'd need a timer to be responsible for moving your playhead and reversing spatial compression is very CPU intensive (moving backwards on the timeline). I'd recommend having a forward and backward version of the video so you could flip between them but if you're new to flash you're already in way above your head.
Add a new layer and try adding this example script (or Download Source example here, saved to CS5):
import flash.utils.Timer;
import flash.events.TimerEvent;
import flash.events.MouseEvent;
// make sure we don't trip this frame twice
if (!stage.hasEventListener(MouseEvent.MOUSE_DOWN))
// stop playhead
stop();
// set state (forwards? backwards?)
var movingForward:Boolean = true;
var curFrame:int = 1;
var mouseStartX:int; // used later to determine drag
// detect mouse click and drag left or right
stage.addEventListener(MouseEvent.MOUSE_DOWN, onMouseF);
stage.addEventListener(MouseEvent.MOUSE_UP, onMouseF);
// create new timer to control playhead, start it
var phTimer:Timer = new Timer(33,0);
phTimer.addEventListener(TimerEvent.TIMER, movePlayheadF);
phTimer.start();
// function to control playhead
function movePlayheadF(e:TimerEvent):void
curFrame += movingForward ? 1 : -1;
// validate frame (60 total frames)
if (curFrame > this.totalFrames) curFrame = 2;
else if (curFrame < 1) curFrame = this.totalFrames;
// goto the next frame
this.gotoAndStop(curFrame);
// function that controls the direction variable
function onMouseF(e:MouseEvent):void
if (e.type == MouseEvent.MOUSE_DOWN)
// user started touching, record start spot
mouseStartX = int(stage.mouseX);
else if (e.type == MouseEvent.MOUSE_UP)
// user let mouse go, determine direction change (swipe stype)
if (stage.mouseX > mouseStartX)
// swiped right, move forwards
movingForward = true;
trace('Moving forward now');
else if (stage.mouseX < mouseStartX)
// swiped left, move backwards
movingForward = false;
trace('Moving backwards now');
This is pretty simple. In the example source link above an object on the timeline (nice ugly red circle) moves right over 60 frames and then left over 60 frames (120 total). Consider that your movie.
A timer ticks at a speed of 33ms (30fps). This is where it isn't necessarily going to be too smooth with video. If you increase it to 60FPS then decrease the timer by half (16.5ms), season to taste. Each time the timer goes off the playhead is moved, either forwards or backwards.
To know if it should go forward or backwards a simple variable (movingForward) keeps track of the last 'swipe'. The swipe is simply captured when a user touches the screen (mouse/finger), moves in a direction and then lets up. If they moved to the left the direction will be reverse. If they moved to the right it will move forward. This doesn't take into consideration any more than that logic, but illustrates how you can watch the mouse for movement and "do something" based on it.
A very simple validatior in the timer event function checks to see if the next frame (in either direction) is valid and if it's not, it corrects it so it stays within your videos timeline length.
Note there is a MOUSE_MOVE event you can try to hook to which can be used to literally let the user drag the video forwards and backwards the amount they drag their finger/cursor. Also if this is some kind of circular surface like a record spinning, the direction the user moves the mouse based on where they touch the record would change which direction they expect it to move. Etc etc..
That should get your feet wet in how much you need to consider for your project. -
Hello,
I'm in desperate need of some guidance on how to actually
convert an avi file over to a Flash Video (FLV) that I can
eventually insert into a Captivate movie. I do have Flash but have
no clue where to start (new to Flash personally). Can anyone
possibly provide some step by step instructions on how to do this?
I do have the AVI file on my hard drive and would really appreciate
some step by step instructions.
Since I'm new to Flash and haven't yet received any training,
I'm really in the dark.
Thanks for any assistance!
HelenI'm also new to flash and have never done it before, but I
think all you need to do is use the Flash 8 Video Encoder that
comes with flash. That should convert the avi and a few other kinds
of video files into FLV's. -
Flash Player 9 Won't Pause Flash Video Files
We have recently upgraded all our computers to Flash Player
version 9 and have noticed that, while it will allow us to pause an
flv video (such as the podcasts on Photoshopusertv.com), it won't
continue through the rest of the program after hitting the play
button but instead insists on starting the show from the beginning
each time. Very frustrating. Does anyone know of a workaround for
this or a solution? Will we have to wait for the next version?Flash 8 caused me 2 months of work after it
installed itself on my old computer. I couldn't fix it and bought a
new computer with XP, hoping to get around the problems I had with
ActiveX and Flash crashing IE. The new one worked for a month or
two, and then something went wrong and I started having Flash
objects crash IE. I uninstalled Flash and said the heck with it. I
guess I am one of the few idiots here that can't get Flash to work
properly. I spent days on uninstalling, reinstalling, buying
antivirus software, altering the registry on Adobe advice, all ot
no avail on my old computer. I will resist until necessary making
Flash work on my new machine. I'll have to pay someone to install
it. I won't go through that again. The Flash - Windows - IE
compatibility problem sucks bad. Nobody can reproduce the problems
I have. On two machines in a row. What are the odds? I check back
here every few months to see if something has improved. In 8 months
I see no improvement. -
Flash SWF with Video file will not play in web page
Hello Flash group,
I have created a flash video file from a *.wmv file.
myvideo.flv.
I have used flash to build an swf file that plays the video
(with a default skin).
I have then imported the media file into an html page using
Dreamweaver. I did not import the flv file, but the swf file with
the "video" in it.
The page plays find on my development server (where
Flash,Dreamweaver, etc is installed).
When I moved the html page, the flv file, the swf file and
the skin to my production webserver (linux and apache)
the flash files do not show up on the web page. The dev
server is a windows XP running apache 2.2)
Any ideas on what I need to do???
thanks,
eholz1It may cause by any of the reason below:
- You have uploaded the flv file to the wrong directory
- Your flv file path/name is incorrect. check all case
sensitive etc.
- Your web server doesn't support FLV MIME type.
Another similar topic here:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&catid=194&threadid =1263131&highlight_key=y&keyword1=MIME
Hope it helps. -
Calling a .js file upon completion of Flash Video
I have a challenge whose solution has avoided us. Maybe you
can help.
I’ll try to be succinct so as to not take up too much
of anyone's time.
1. I’m using CS3, but ActionScript2 for videos we have
uploaded to our website.
2. We are using AS2 because we want to target FlashPlayer 7
3. We want our entire video to play before the
“Next” button on our html page is enabled
4. Could you, would you, send to me the AS code that would
enable the flash video file to communicate with our .js script
5. And if you could do that, please also indicate where and
how it is inserted into the flash application?
6. I’m fairly new at flash and we are having an
unsuccessful time at having the AS2 code talk to our .js code.
It would be very much appreciated.
[email protected]check out "externalInterface" for communication between .js
and as. Its very nice :)
For the event (video completion) you can pull in the metadata
from the .flv check out David Stiller's lil' tutorial...
http://www.quip.net/blog/2006/flash/how-to-control-flv-without-component/
and lookup onMetaData (just google it).
Between externalInterface, normal video controls (Stiller's
blog), and FLV.onMetaData, you can accomplish what you're hoping :)
And if you can write js, you'll be able to write this. Lemme know
if this helps. -
I am not sure if this is the right place to post, but here
goes.
I need to include flash video on a cd. People using the cd
will probably not have internet access and the cd needs to run on
linux.
Is there a way that I can include flash movies to run in
firefox without having a streaming server.
The only thing I can control is that the user will have flash
player 9 installed.
I created a flash movie in flex and inported a flash video
file. This plays fine in windows but does not want to play in
linux.
Any help would be appreciated. I have no experience with
video and flash video, so I am not sure if this is even
possible.if you get any further in this, please post here!
I am also interested in any vp6-encoding solution on linux!
Thanks,
jan -
Add metadata to Flash flv file?
I am trying to add metadata to a Flash Video file (in hoping Google can index my video). I have Premiere CS3, and in the help menu it says, "Using Adobe Media Encoder, in the Export Settings dialog box, select XMP Info on the settings tab menu".
For the life of me, I cannot find the XMP setting tab. Anyone know the best way to accomplish this task?
Thank you!I do not use CS3 but i think its under the little wing menu next to 'Others'
Looks like this: -
I have tried several times to publish a Flash video file to
my web with Dreamweaver CS3 and with Flash. They play in DW's
browser Opt F12, but not when using an external browser. All the
instructions seem OK. Flix encoded SWF files play flawlessly. I've
noticed one confusing reference about specifying a direct content
path, but I can't find that tab anywhere to check it out. I'm sure
it's some kind of setup problem, but can't figure it out.I see. Playing the downloaded file was never the problem - I could've used QT but I always like to use VLC. Anyway, I'm in communication with them and I've reported your comments about the HTML code. Perhaps it'll change
Cheers -
Flash Video in template child pages
I have created templates with editable regions for my
websites. When I try to insert a Flash video file (.flv) it wants
to put code in the header region and body region. I have tried
erasing the editable areas, making the entire header an editable
area, making the entire site an editable area. I've tried looking
on Google and the Dreamweaver Developers section (there is a link
to an answer but the link is broken). I unfortunately only have
Dreamweaver 8. If this problem is fixed in CS3 I'd be happy to go
to Kinkos and rent a machine. Any suggestions?
Thanks!Here's how you will have to manage this.
When you insert a Flash video on the page, several things
happen -
1. DW inserts a link to a javascript file in the head of the
page.
2. If you elect to check for Flash versions, DW inserts a
call to that
javascript in the <body> tag of the page.
3. DW then inserts a javascript call to the file (in #1) on
the page at the
location where the Flash is to appear.
In a Template child page -
1. The head region must have an editable region in it, so
that the link can
be inserted.
2. The Flash check call will fail to be written to the body
tag, since that
is LOCKED by the template.
3. The javascript will be written to the body of the page
where you
inserted the Flash.
Thus, 2 of the 3 elements should work fine.
My suggestion? Do it again, and do not select the check for
Flash version -
that should work for you.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"cybergrace" <[email protected]> wrote in
message
news:f9vjls$a9n$[email protected]..
>I have created templates with editable regions for my
websites. When I try
>to
> insert a Flash video file (.flv) it wants to put code in
the header region
> and
> body region. I have tried erasing the editable areas,
making the entire
> header
> an editable area, making the entire site an editable
area. I've tried
> looking
> on Google and the Dreamweaver Developers section (there
is a link to an
> answer
> but the link is broken). I unfortunately only have
Dreamweaver 8. If
> this
> problem is fixed in CS3 I'd be happy to go to Kinkos and
rent a machine.
> Any
> suggestions?
> Thanks!
>
Maybe you are looking for
-
Link to URL - How to Open a New Tab
I have created some PDF's in Adobe Acrobat and I am hosting them on my website. So for example here is one: <possible spam link removed - kglad> I have created links to URL's using the Link Properties tool, Actions tab. However it will only open the
-
Using 10.6.8, internet pdf documents not opening using Adobe Reader; how is this corrected? I've tried changing "sharing and permissions" to "read and write" as suggested on other help sites, but this did not correct the problem.
-
How to allocate more ram to T410 IntelHD graphics? CONFUSED
Hello There I have a T410 Thinkpad, and I would like to know how to allocate more ram to the IntelHD graphics so that I can run my video games a lot better. I have searched through the bios and cannot find how Sorry for my English -Jack
-
Accounting Document for 101E & 601E movement type
Hi guys, When i do a GR with 101 E movement type only material document is getting created,no accounting document is getting generated,what could be the possible reasons & what setting need to be done to solve the above mentioned problem? Similalry w
-
Can't import photos from new "Photo" into iMovie 9.0.
Since upgrading to the new Photo app, iMovie 9.0 only recognizes Photo Booth. Previously I could drag and drop selected photos into iMovie, but now can't import them that way or through the Photo Browser in iMovie. Any suggestions?