A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Can't see what I'm forgetting here

  1. #1
    Senior Member
    Join Date
    Jan 2007
    Location
    Barcelona
    Posts
    389

    Can't see what I'm forgetting here

    Hi,

    been a long time since I tried to attach an external video with AS, but I have this working code in some other file and I can't get it to work on a new one. I can't see what could be wrong with the code.

    I've saved the file and have a copy of the video in the same folder s the FLA and it doesn't play either.

    The component is inside the properly named clip, properly linked...


    Code:
    this.attachMovie("vHolder", "vHolder", this.getNextHighestDepth());
    
    var my_nc:NetConnection = new NetConnection();
    my_nc.connect(null);
    var my_ns:NetStream = new NetStream(my_nc);
    
    vHolder.my_video.attachVideo(my_ns);
    vHolder.my_video.smoothing;
    
    my_ns.play("http://webs.ono.com/jpdurba/FoundLookingFor.flv");
    Thanks for any help

  2. #2
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi Cap,


    Remember, net connection will not work with the flv component, you need to use a new video symbol from library.

    The www flv url in your file does not exist either, so only local works, it would work if th flv was there.

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