A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: FLV Files Question

  1. #1
    Junior Member
    Join Date
    Jan 2007
    Posts
    29

    FLV Files Question

    Perhaps a stupid question ...
    Is that somehow possible under 3dfa dynamically access to flv files
    or is this possible only manually, through file import?
    As far as possible, please a small example ...

    ___________
    regards
    Last edited by zAMORdEK; 05-23-2008 at 07:22 PM.

  2. #2
    Senior Member kusco's Avatar
    Join Date
    Nov 2001
    Posts
    681
    There's plenty of AS2 and AS3 samples on the web for playing a FLV file. Remember to use #if AS2

    You can also use 3DFA to generate AS3 source code, which you can copy, paste, and rework into your own project.
    Cheers,
    kusco
    (3DFA Support Team)

  3. #3
    I haven't had much luck getting AS3 FLV players to work. Does anyone have a working 3dfa sample they care to share?

  4. #4
    Senior Member kusco's Avatar
    Join Date
    Nov 2001
    Posts
    681
    There's a video sample under the samples/simple menu.

    Just hit the "view source code" button and rip the video player code.
    Cheers,
    kusco
    (3DFA Support Team)

  5. #5
    Senior Member Zoranan's Avatar
    Join Date
    May 2008
    Posts
    126
    I have never had any luck with flv players unfortunately. but I never tried th "View Generated source code" thing before.

    Thanks Kusco!

  6. #6
    Senior Member Zoranan's Avatar
    Join Date
    May 2008
    Posts
    126
    Ok, I tried the view generated source code thing, but its to complicated. I don't know what I'm supposed to pay attention to and what is just part of the root movie... I also want to know how to load external FLV files, will the view generated source code tell me how (if i can decipher it)? I didn't see a file path mentioned at all...

    Zoranan

  7. #7
    3DFA hobby scripter LewxX²'s Avatar
    Join Date
    Jul 2006
    Location
    Germany, Karlsruhe
    Posts
    198
    Hmm I tryed to create a dynamic flv player, too.

    But with this code:
    Code:
    connection = new NetConnection();
    connection.connect(null);
    
    stream = new NetStream(connection);
    stream.setBufferTime(1);
    
    video.attachVideo(stream);
    stream.play("panda_surprise.flv");
    I only hear the the sound of the video (in exported swf), I can't see ianything..
    What am I doing wrong?
    Attached Files Attached Files
    Last edited by LewxX²; 06-20-2008 at 12:24 PM.
    sorry for my bad school English
    btw. visit my Page: projects.lewxx.de
    or lewxx.de (<= German)

  8. #8
    Member
    Join Date
    Nov 2007
    Location
    Brazil
    Posts
    47
    LewxX try this:
    Code:
    var myVideo:Video;
    
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    
    var ns:NetStream = new NetStream(nc);
    ns.play("video.flv");
    
    myVideo.attachVideo(ns);
    
    ns.setBufferTime(1);
    []'s
    leocavalcante.com

  9. #9
    3DFA hobby scripter LewxX²'s Avatar
    Join Date
    Jul 2006
    Location
    Germany, Karlsruhe
    Posts
    198
    doesn't works for me => just hear the sound
    sorry for my bad school English
    btw. visit my Page: projects.lewxx.de
    or lewxx.de (<= German)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center