Ultrashock Forums > Community Essentials > Tutorials
Flash 8: FLVPlayback Component

You are currently viewing our website as a guest which gives you limited access to forums, files and other resources.

Click here to join now for free, and start interacting with our members, download files and much more!

Click here if you are looking for our Flash files and other professional assets.
 
Post Reply | View first unread | Rate Thread Search this Thread | Thread Tools | Display Modes

#1
Bookmark and Share!
Flash 8: FLVPlayback Component
Old 2006-03-18

This tutorial by Damian Burns covers how to use the FLVPlayback component to get video into your flash project quickly and easily. Covered in both a "Designer approach" and a "Developer Approach".


Check out the tutorial here.

You're welcome to discuss the tutorial in this thread.
::: Are you ready for a creative power? ::: : : .
postbit arrow 25 comments | 8943 views postbit arrow Reply: with Quote   
nrg
¶ixë₤▪†w€@kê®™
nrg is offline Administrator
seperator
Posts: 5,406
1999-12-13
Age: 37
nrg lives in Belgium
11
nrg's Avatar
seperator

Ultrashock Member Comments:
pisosse pisosse is offline pisosse lives in Denmark 2006-03-19 #2 Old  
where did the xml part concerning multible videos go? did I miss something?

nice tut tho.. just what i needed
Reply With Quote  
miko's Avatar miko miko is offline Administrator miko lives in United States a lot of Creative Assets 2006-03-19 #3 Old  
We are working on part two of this tutorial and should have it online in the next couple days or so.
Reply With Quote  
pisosse pisosse is offline pisosse lives in Denmark 2006-03-19 #4 Old  
aah like that...

coool thanks
Reply With Quote  
damo's Avatar damo damo is offline damo lives in Canada 2006-03-19 #5 Old  
i will be posting the second part of this tutorial which will include using XML as a data feed.

should be in the next day or two.

damian
Reply With Quote  
pisosse pisosse is offline pisosse lives in Denmark 2006-03-19 #6 Old  
so where do I send the check

thanks you are a hero!
Reply With Quote  
damo's Avatar damo damo is offline damo lives in Canada 2006-03-20 #7 Old  
you don't have to send a check...you can use pay pal :-)
Reply With Quote  
miko's Avatar miko miko is offline Administrator miko lives in United States a lot of Creative Assets 2006-03-20 #8 Old  
No self promotion Damo!
Reply With Quote  
damo's Avatar damo damo is offline damo lives in Canada 2006-03-20 #9 Old  
just my whacky sense of humour miko. you know i do this for the LOVE of it.

FEEL THE LOVE
Reply With Quote  
pisosse pisosse is offline pisosse lives in Denmark 2006-03-21 #10 Old  
pay pal it's then...oh wait a sec.. lee did a xml flash videoplayer over at gotoandlearn.com....and it's ...FREE.



but his example is hung up on the list component which is a b*tch to skin... another solutions is very welcome(textbox component?)
Reply With Quote  
damo's Avatar damo damo is offline damo lives in Canada 2006-03-21 #11 Old  
i was kidding about the check/paypal stuff. these tutorials are free. in the next tutorial in this series i cover using a List Component inside of a class but i do not cover skinning the List Component.
Reply With Quote  
pisosse pisosse is offline pisosse lives in Denmark 2006-03-21 #12 Old  
and I was kidding you aswell.. so there we go..

lol

but listen do you know if it's at all possible to use other than the list comp? ei. textbox or other skinble UI's?.. with that a hobby webber as my self can alter the UI at our pleisure... and that would be nice
Reply With Quote  
damo's Avatar damo damo is offline damo lives in Canada 2006-03-21 #13 Old  
let me post the tutorial when i can. when you take a look at it, the answer to your own question may be obvious.
Reply With Quote  
pisosse pisosse is offline pisosse lives in Denmark 2006-03-21 #14 Old  
ahhh suspence.... I like it.

keep on the good work
Reply With Quote  
pixelswork pixelswork is offline 2006-07-26 #15 Old  
preloader
Hi

Could you let me know if there is way to run a preloader here before making the whole video load, as they bug if its a few minutes video.

dru
Reply With Quote  
finchcat finchcat is offline 2006-08-27 #16 Old  
what about sound? it doesnt play any sound.
Reply With Quote  
alexboyer's Avatar alexboyer alexboyer is offline alexboyer lives in United States 2006-10-23 #17 Old  
Originally posted by damo
let me post the tutorial when i can. when you take a look at it, the answer to your own question may be obvious.
Wha happened? No XML tut?
Reply With Quote  
chickalou chickalou is offline chickalou lives in United States 2006-10-24 #18 Old  
FLV preloader?
is there any way to create a message telling people the video is loading?

i get a blank screen for a couple seconds that looks like a mistake before the video loads
Reply With Quote  
radiant radiant is offline radiant lives in United States 2009-08-04 #19 Old  
I know this is an old tut but I am working on a protfolio section that uses this code. My problem is that the FLVPlayer is pulling an external flv and it is in an external swf being pulled into a site wrapper(container). When I publish the external swf the flv plays correctly. But when I use the index file and the external swf is pulled in the wrapper the player loads and looks like it cannot find the flv to load. Here is the code for the player:
import mx.video.*;
var Player:FLVPlayback = attachMovie("FLVPlayback", "Player", getNextHighestDepth());
Player.autoPlay=false;
Player.skin = "ClearOverPlaySeekMute.swf";
Player._x=96;
Player._y=47;
Player.autoSize=false;
Player.contentPath="IO_WEB_Welcome.flv";
Player.height=150;
Player.width=222;

All files are in the same folder.
Thanks,
Reply With Quote  
damo's Avatar damo damo is offline damo lives in Canada 2009-08-04 #20 Old  
i would suggest checking the paths, also ensure that the case of your request matches the case of the file name.
Reply With Quote  
radiant radiant is offline radiant lives in United States 2009-08-04 #21 Old  
done and done. Still doesn't work. Any other suggestions?
Thanks,
Reply With Quote  
damo's Avatar damo damo is offline damo lives in Canada 2009-08-04 #22 Old  
use a web proxy like charles to see where the call to the flv is being made and adjust your path acoordingly.
Reply With Quote  
Nutrox's Avatar Nutrox Nutrox is offline Super Moderator Nutrox lives in United Kingdom 17 Creative Assets 2009-08-04 #23 Old  
By default, all relative paths in Flash will be relative to the HTML page (when the SWF is running in a browser), so Flash will be looking for the IO_WEB_Welcome.flv file in the same directory as the HTML page. However, you can change the base directory for relative paths by setting the "base" parameter in the Flash object:

Code:
<object ... >
    <param name="base" value="./my-flash-files"/>
</object>
Doing that would force all relative paths in Flash to be relative to the my-flash-files directory.

Not sure if that will help but relative paths are normally the cause of these kinds of problems.
Reply With Quote  
radiant radiant is offline radiant lives in United States 2009-08-05 #24 Old  
Well, I'm not sure why I didn't look at this yesterday but when I launch the container swf everything works great. But if I launch it from the html page(which exists in the same directory) it cannot find the flv. So it seems to be a html issue not an actionscript one as I had previously thought. I did try Nutrox's idea, but no luck. Any other ideas?
Reply With Quote  
radiant radiant is offline radiant lives in United States 2009-08-05 #25 Old  
well, I found the issue. My project file folder was in My Documents folder. Normally this wouldn't be an issue but at my place of employment it doesn't exist on my computer but is a mapped network folder. I never realized it. So I copied the files to my desktop and walaa! it all works fine. Thanks for the help everyone.
Reply With Quote  
el-artiste el-artiste is offline el-artiste lives in Philippines 2009-10-03 #26 Old  
Desperate for your help
hey guys, i'm new here and i'm having problems with this tut...although when i make a simple test movie, everything works like a charm. But when i inserted the code into a more complex movie i would then have to press "Ctrl + Enter" twice to get the component to load. And still the standalone "swf" generated does not display the components... it only loads when i'm editing and pressing "Ctrl + Enter" twice.

by the way the flv files are remotely accessed, but when i do a simple test everything works fine..it's only with this more complex movie that it fails.

if you guys would want to see the actual file just let me know.

i really really hope you could help me out on this one.
Reply With Quote  
Thread Tools
Display Modes Rate This Thread
Rate This Thread: