# Remote flv loading - button action

**URL:** <https://forum.kirupa.com/t/remote-flv-loading-button-action/231041>\
**Category:** Uncategorized\
**Created:** [July 1, 2007, 3:42pm UTC](https://forum.kirupa.com/t/remote-flv-loading-button-action/231041 "2007-07-01T15:42:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![strawberry](https://avatars.discourse-cdn.com/v4/letter/s/f19dbf/32.png) [@strawberry](https://forum.kirupa.com/u/strawberry)\
**Post date:** [July 1, 2007, 3:42pm UTC](https://forum.kirupa.com/t/remote-flv-loading-button-action/231041/1 "2007-07-01T15:42:50Z")

</div>

Hi all  
here’s my problem hope someone can help me  
I’ve 6 .flv videos uploaded on a remote server…On my main server I’ve an swf movie with 6 buttons each one to play a remote flv  
I’ve also placed on the main stage of the swf a FLVPlayBack component that should display the flv, instance name “player”.  
Now if the flv files reside on the same server as the swf and I use this actions of the buttons

```auto
on (release) {
 player.contentPath = "flv_movies/movie1.flv";
}

```

everything is fine…  
when I try to use the following action to load the remote flv files

```auto
on (release) {
 // Create a NetConnection object
 var my_nc:NetConnection = new NetConnection();
 // Create a local streaming connection
 my_nc.connect(null);
 // Create a NetStream object and define an onStatus() function
 var my_ns:NetStream = new NetStream(my_nc);
 // Attach the NetStream video feed to the Video object
 player.attachVideo(my_ns);
 // Set the buffer time
 my_ns.setBufferTime(5);
 // Begin playing the FLV file
 my_ns.play ("http://www.myremoteserver.com/my_remote_movies/movies/movie1.flv");

```

the remote flv actually does loads as you can hear the sound…but you cant see the video! I have no idea of where the video is loading…  
the swf containing the buttons with the actions is loaded on level 2 of the main stage  
I need some help…let me know please (my main server has file size restrictions so I have to have them on another server)…
