# Import array values from php

**URL:** https://forum.kirupa.com/t/import-array-values-from-php/275851
**Category:** Uncategorized
**Created:** [November 19, 2008, 12:53pm UTC](https://forum.kirupa.com/t/import-array-values-from-php/275851 "2008-11-19T12:53:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![robdove](https://avatars.discourse-cdn.com/v4/letter/r/5f8ce5/32.png) [@robdove](https://forum.kirupa.com/u/robdove)
#### Post date: [November 19, 2008, 12:53pm UTC](https://forum.kirupa.com/t/import-array-values-from-php/275851/1 "2008-11-19T12:53:58Z")

</div>

how can i take the array video.list and import the values from php

```auto
myVideo.contentPath = "firstvideo.flv";
// Set Videos Behavior

// Create a videos object to hold a video
// playlist and event handler functions...
var videos:Object = new Object();

// Set up to 7 video feeds in a single component
videos.list = new Array();
videos.list[0] = "italian.flv";
videos.list[1] = "junction.flv";
videos.list[2] = "ejn.flv";
videos.list[3] = ""; //you don't have to use them all. You can do up to 7
videos.list[4] = "";
videos.list[5] = "";
videos.list[6] = "";
videos.loop = true;
videos.length = 1;
videos.loaded = false;

// Path to FLVPlayback components
var m = this.myVideo;

// Set the path of the first video feed
m.contentPath = videos.list[0];

// Set a 'ready' event handler to load the videos
videos.ready = function( evt:Object ):Void
{
if(!this.loaded){
this.loaded = true;
for( var n=1; n<this.list.length; n++ ){
if( videos.list[n].indexOf(".flv") != -1 ){
m.activeVideoPlayerIndex = n;
m.contentPath = videos.list[n];
this.length++;
}
}
m.activeVideoPlayerIndex = 0;
}
}
m.addEventListener("ready",videos);

// Set a 'complete' event handler to load the next video
videos.complete = function( evt:Object ):Void
{

var nextIndex = Number(evt.vp)+1;
if( nextIndex == this.length){
if( this.loop ){
nextIndex = 0;
}else{
return;
}
}
m.activeVideoPlayerIndex = nextIndex;
m.visibleVideoPlayerIndex = nextIndex;
m.play();
}
m.addEventListener("complete",videos);

// End Set Videos Behavior

```
