A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Having problems linking FLV external files!!!

  1. #1
    Junior Member
    Join Date
    Sep 2005
    Location
    British Columbia
    Posts
    9

    Having problems linking FLV external files!!!

    At the moment, I have every FLV file imported internally into my flash project, and the filesize is 6 MB - way too big!

    My project can be found here: http://www.halo2-online.com, and just click 'Play Intro' to see what I'm talking about...(a series of FLV clips, that are ATM imported internally into the flash - which I can't have!)

    Before, I was trying to link the files through actionscript externally to keep the actual flash's filesize down, thus keeping the loading time down.

    I created an 'Embedded Video File', then used this actionscript to link to the file (in the same directory as my SWF and FLA files):

    var nc:NetConnection = new NetConnection();
    nc.connect(null);

    var ns:NetStream = new NetStream(nc);

    theVideo.attachVideo(ns);

    ns.play("clip1.flv");
    So, what am I doing wrong? - It won't play anything!!!

    This is a major problem, because I MUST have the files linked externally, or the filesize of the flash is way too big, and takes forever to load.

    I hope someone can help me!


    Visit my website: www.Halo2-Online.com

  2. #2
    Senior Member onine's Avatar
    Join Date
    Mar 2005
    Posts
    627
    Well, the code looks right... have you checked:
    1) The .flv is called "clip1.flv"?
    2) The .flv is in the same directory as the .fla?
    3) The video object on the stage has an instance name of "theVideo"?

  3. #3
    Junior Member
    Join Date
    Sep 2005
    Location
    British Columbia
    Posts
    9
    Quote Originally Posted by onine
    Well, the code looks right... have you checked:
    1) The .flv is called "clip1.flv"?
    2) The .flv is in the same directory as the .fla?
    3) The video object on the stage has an instance name of "theVideo"?
    Yes, everything checks...

    Now, (if you saw the banner intro, you would understand this...), the layers I'm dealing with are masked layers...would this make a difference?


    Visit my website: www.Halo2-Online.com

  4. #4
    Junior Member
    Join Date
    Oct 2005
    Posts
    4

    me too! same AWFUL problem, AAA

    dear sik chaos,

    I am having the same problem as you, and I cannot play my flv files in flash player either. I have rendered them in both Riva and Sorenson Squeeze. What did you use to render your new flv files? Are you able to view them in flash player? If you have solved your problem please let me know and I will do likewise if I find a solution. Thanks and good luck!

    :::shatton

  5. #5
    Junior Member
    Join Date
    Oct 2005
    Posts
    4
    by the way, I recognize your code from the Lee Brimelow tutorial and just as an aside, my friend has used it and it worked perfectly, I wonder if it has something to do internally, thats all

  6. #6
    Junior Member
    Join Date
    Oct 2005
    Posts
    4

    Fixed The Problem!!!

    dear sik chaos,

    please just check your publish settings and look under the tab called "flash" and change version to Flash 7 or 8 and action script to 2.0! I really hope you get this message!

    Shatton

  7. #7
    Junior Member
    Join Date
    Oct 2005
    Posts
    4
    I am having a new problem where I copy and paste my new swf that calls my flv file into my server. I also copy the flv file into the same location but when I play from the server, the flv wont stream. I can play the swf from my hard disk no problem but it wont play from the server, hrmmmm

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