homepage Welcome to WebmasterWorld Guest from 54.166.53.169
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

    
No Flash Video
drdave

5+ Year Member



 
Msg#: 4044929 posted 6:11 pm on Dec 17, 2009 (gmt 0)

Hello folks

In Flash CS4 I imported mp4 video and exported as .swf

If I double click on the shockwave file it plays fine but the html that it generated only show the control and as if something is working but I never get any video.

Any help on how to fix this problem?

Thanks
Dave

 

rocknbil

WebmasterWorld Senior Member rocknbil us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 4044929 posted 6:43 pm on Dec 17, 2009 (gmt 0)

So the Flash itself is fine but it's the embedding that's the problem.

First thing, if you are viewing it in IE and off line (not on the web site) IE will give you a warning about active scripting, which you have to accept before the Javascript will run. If you don't get this warning, you may have it disabled - check it in FireFox, if you haven't.

Next I'd view the source of the page, see if there are path issues breaking it.

I'll say as I've always said - the MM/Adobe "publish" methods are horribly outdated and dysfunctional. First you have this

<object>
<embed>
</object>

Which is invalid html, an embed inside an object. This is because Moz browsers don't work well with the object only, and IE will display both if you put the embed outside object. So this was done years ago to "trick" both browsers into just working.

Second the Javascript generated by "publish" is horribly bloated and cumbersome. The best solution: SwfObject [code.google.com]. Easy to implement and code, displays alternate content first so if JS is disabled you get content, pages containing it can be completely validated, give it a go.

drdave

5+ Year Member



 
Msg#: 4044929 posted 7:49 pm on Dec 17, 2009 (gmt 0)

All Offilne testing

Ok now the video won't play at all either way so I started over. Let me also mention that I use AS3.0 Not sure if that was wise.

1. Import mp4 video to stage
2. Select Load External Video with playback component

.swf or html now showing video on source machine but on another machine I still see the same problem. All files copied into one folder.

This other machine uses Firefox 3.5.6 which has Flash Player 10.0.42.34 installed. It doesn't matter if I click on the .swf or html I still see no video. Only player control and some sorta working animation...

Thanks
Dave

rocknbil

WebmasterWorld Senior Member rocknbil us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 4044929 posted 7:24 pm on Dec 18, 2009 (gmt 0)

Okay, so

- working fine on development computer
- moved entire folder contents to a different computer
- broken

This has to be a path issue OR some resource being used on the development computer that is not present on the remote computer. This is also why I simply refuse to use components, which may make it easier but relies on various items. . . )

Another possibility is the flash player version: make sure when you publish, check the publish settings for the player version, and make sure it's the same on the remote one (or better, which sounds like it's covered.)

The fact that the .swf alone won't play eliminates any embed problems.

One way to gather clues: make absolutely sure the path info is exactly the same on both. So if you store it in C:\\projectname\flash\project on the original, duplicate this structure on computer 2. If it works, there is some hard coded path in your original somehow.

If it doesn't, there is some dependency that is not being moved. Search help in Flash for dependency or dependencies and look for any video topics that come up.

drdave

5+ Year Member



 
Msg#: 4044929 posted 9:20 pm on Dec 18, 2009 (gmt 0)

Yeah seems to be a local path vs url so I changed to url path in Component Inspector and tested online but I still cannot see the video.

If not,>>Search help in Flash for dependency or dependencies and look for any video topics that come up.<<

Thanks for help so far.

Dave

rocknbil

WebmasterWorld Senior Member rocknbil us a WebmasterWorld Top Contributor of All Time 5+ Year Member



 
Msg#: 4044929 posted 1:20 am on Dec 19, 2009 (gmt 0)

Holy cramole. I just realized something.

1. Import mp4 video to stage

This is likely the problem. In your Flash submenu, you should find "Adobe Flash CS[version] Video Encoder." Run the encoder, convert your .mp4 to .flv, problem should be solved. It's pretty straightforward how to use it.

The other comp probably doesn't have .mp4 codecs or something . . . doesn't matter. .flv is the way to go with Flash.

I ran the below test out of curiosity, for your reference this should clear up some things.

- opened new AS3 file.
- Selected Import Video
- Selected path on the computer, select the .flv, not the .mp4. (we will change this later.)
- Left at "Progressive Download from a Web Server" (see below, important)
- Selected a skin
- Hit finish, prompts to save .fla

I see the component, press ctrl-enter to test.

Click the video playback element, then go to component inspector->parameters->source, the full path is there. Change whatever it is from C:\\whatever\video.flv to just video.flv. Verify it still runs from Flash on ctrl-enter.

At this point I cry "oops" because I never installed or have a need for the stand-alone player. Attempting to open the .swf directly gives me "select a program."

Time to hit publish. Set for AS3.0, Flash player 9.

Double clicked "component-test.html" and opens FF . . works fine . . .

Opened IE and tested, works there too.

Got comp's networked here, loaded the whole thing to a directory on the other comp . . . . works!

A list of files moved:
the .swf
the .flv version of the video
the AC_RunActiveContent.js (ugh)
Two .swf's that begin with "Skin" for my skin.

Don't embed it directly in the timeline/stage, use the progressive download. The whole idea of Flash is that it streams the data instead of having to wait for it all to load. When you put the entire video on the stage, this is probably what it will do.

drdave

5+ Year Member



 
Msg#: 4044929 posted 8:16 pm on Dec 20, 2009 (gmt 0)

kool

Yes I see that option for .flv

Pretty tall order. I will try and follow it when I get back and update post.

Thanks so very much.

dave

drdave

5+ Year Member



 
Msg#: 4044929 posted 5:36 am on Dec 23, 2009 (gmt 0)

Hey folks I decided to abandon this project in favor of a video gallery which I will purchase and try and install. This video gallery is what my friend want so I am going to try and get it done with the gallery instead.

I thank everyone so very much for trying to help me with this.

I will start a new thread because I am having some problems at the moment.

Thanks again so very much folks.

Dave

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved