Need help with xml video gallery

Hello everyone
I recently bought a xml video gallery. I'm loading the movie externally into another movie. When the xml gallery loads, it cancels all sounds.
I need to figure out where in the actionscription can i reverse the cancellation of sounds. Can anyone help? if possible, I can email, whomever is willing to help, the xml gallery to see if theres another reason the sound is being canceled.
Also, the sound of the gallery doesn't work til you click the volume scroller.
Here are two parts of actionscript included in the gallery:
part one:
// Import filter classes
import mx.transitions.Tween;
import mx.transitions.easing.*;
// Set flash variables
var xmlFileUrl:String = "playlist.xml";
var auto_play:String = "true";
// Set xml file URL
if (_root.xmlfile) {
    xmlFileUrl = _root.xmlfile;
var V_SRC;
var thuArray:Array = new Array();
var currentVideo:Number = 0;
var totalItems;
var numOfItems:Number;
var itemDistance:Number = 120+5;
var itemHeight:Number = 80+2;
var Value:Number = 1;
var boundry:Number = 1;
var ratio:Number = 1;
var diff:Number = 1;
var collectionWidth:Number = 1;
var buffer:Number = 135*2;
this.createEmptyMovieClip("video_txt",this.getNextHighestDepth());
video_txt.createTextField("theText",video_txt.getNextHighestDepth(),0,0,584,36);
video_txt.theText.selectable = false;
video_txt.theText.autoSize = "left";
//The Format
myFormat = new TextFormat();
myFormat.font = _root.font_format;
myFormat.size = _root.font_size;
myFormat.color = _root.font_color;
myFormat.align = "center";
video_txt.theText.setNewTextFormat(myFormat);
// Create a new movieclip to load the thumbs
var thumbLoader:MovieClipLoader = new MovieClipLoader();
var thumbListener:Object = new Object();
thumbLoader.addListener(thumbListener);
thumbListener.onLoadInit = function(target_mc:MovieClip, httpStatus:Number)
    new Tween(target_mc, "_alpha", Regular.easeOut, 0, 100, 1, true);
    target_mc._parent.preloader_mc._alpha = 0;
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = xmlLoaded;
xml.load(xmlFileUrl);
// Load the xml file into the player
function xmlLoaded(b:Boolean) {
    if (b) {
        auto_play = this.firstChild.firstChild.attributes.auto_play;
        scrollSpeed = parseInt(this.firstChild.firstChild.attributes.scrollSpeed);
        totalItems = this.firstChild.firstChild.childNodes;
        numOfItems = totalItems.length;
        for (j=0; j<numOfItems; j++) {
            var i = player_mc.main_mc.collection_mc.attachMovie("mc_Thumb", "thumb_"+j, j);
            i._x = itemDistance*j;
            thumbLoader.loadClip(totalItems[j].attributes.thumb,i.loader_mc);
            i.id = j;
            i.videoTitle = totalItems[j].attributes.title;
            i.videoUrl = totalItems[j].attributes.src;
            // Create an event for thumb rollover
            i.onRollOver = iRoll;
            i.onRollOut = i.onReleaseOutside=iOut;
            i.onRelease = iRelease;
            thuArray[j] = i;
        // default first video
        collectionWidth = player_mc.main_mc.collection_mc._width;
        currentVideo = 0;
        V_SRC = thuArray[0].videoUrl;
        changeVideo();
        //scope._alpha = 100;
        new Tween(scope, "_alpha", Regular.easeOut, 0, 100, 0.5, true);
    else
        trace("Error! xml file not loaded");
// onRollOver Events
function iRoll() {
    player_mc.mc_title.title_txt.htmlText = totalItems[this.id].attributes.title;
    this.light_mc.play();
function iRelease() {
    currentVideo = this.id;
    changeVideo();
function changeVideo() {
    V_SRC = thuArray[currentVideo].videoUrl;
    player_mc.loadVideo();
    currentThumb();
    player_mc.mc_title.title_txt.htmlText = thuArray[currentVideo].videoTitle;
    video_txt.theText.text = totalItems[currentVideo].attributes.title;
    player_mc.so.getVolume();
    player_mc.playStatus = 1;
    player_mc.checkStatus();
function nextVideo() {
    if (currentVideo<(numOfItems-1)) {
        currentVideo++;
    } else {
        currentVideo = 0;
    changeVideo();
function currentThumb() {
    for (i=0; i<thuArray.length; i++) {
        if (i == currentVideo) {
            thuArray[i].enabled = true;
// Mouse movement on rollover
this.onMouseMove = function() {
    collectionWidth = player_mc.main_mc.collection_mc._width;
    boundry = player_mc.main_mc.area_mc._width;
    if ((player_mc.main_mc._ymouse>0) && (player_mc.main_mc._ymouse<itemHeight)) {
        if ((player_mc.main_mc._xmouse>0) && (player_mc.main_mc._xmouse<boundry)) {
            ratio = player_mc.main_mc._xmouse/boundry;
            diff = (collectionWidth-boundry)+buffer;
            Value = Math.floor((-ratio)*diff)+(buffer/2);
    updateAfterEvent();
this.onEnterFrame = function() {
    // Define movement area and speed
    if (player_mc.main_mc.collection_mc._width>player_mc.main_mc.area_mc._width) {
        player_mc.main_mc.collection_mc._x = Math.round((player_mc.main_mc.collection_mc._x)+((Value-player_mc.main_mc.collection_mc._ x)/scrollSpeed));
        if (player_mc.main_mc.collection_mc._x>0) {
            player_mc.main_mc.collection_mc._x = 0;
        } else if (player_mc.main_mc.collection_mc._x<(player_mc.main_mc.area_mc._width-(player_mc.main_mc. collection_mc._width))) {
            player_mc.main_mc.collection_mc._x = Math.round(player_mc.main_mc.area_mc._width-(player_mc.main_mc.collection_mc._width));
    } else {
        player_mc.main_mc.collection_mc._x = 0;
    updateAfterEvent();
part two:
// Define flash variables
var video_url:String = "";
var tempx:Number = this._parent._x;
var tempy:Number = this._parent._y;
var timeCounter:Number = 0;
var timeInSeconds:Number = _root.time_counter;
// Object to listen to onStage Event
videoObj = vid.videoObj;
// Setting up the connection
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
// Buffer time
ns.setBufferTime (10);
videoObj.attachVideo (ns);
function loadVideo () {
    video_url = _parent.V_SRC;
    trace(video_url);
    ns.play (video_url);
function checkStatus()
    if (playStatus == 1)
        controls_mc.playPause.gotoAndStop("pause");
        mc_playAgain._visible = false;
        thumbs_out = false;
        title_out = false;
    else
        controls_mc.playPause.gotoAndStop("play");
        mc_playAgain._visible = true;
    } // end else if
    if (so.getVolume() == 0)
        controls_mc.mute_mc.gotoAndStop("mute");
    else
        controls_mc.mute_mc.gotoAndStop("on");
}; // End of the function
mc_playAgain._visible = false;
// Check Status of video
ns.onStatus = function (info)
    if (info.code == "NetStream.Buffer.Empty")
        mc_buffer._visible = true;
    else if (info.code == "NetStream.Buffer.Full")
        mc_buffer._visible = false;
    else if (info.code == "NetStream.Play.Stop")
        ns.seek(0);
        if (playStatus == 1)
            ns.pause();
            playStatus = 0;
        else
            trace;
        } // end else if
        mc_playAgain._visible = true;
        mc_buffer._visible = false;
        thumbs_out = true;
        title_out = true;
        checkStatus();
    } // end else if
// Get info about video
ns.onMetaData = function(infoObject:Object)
    FLVduration = infoObject["duration"];
    relationshipW = infoObject.height / infoObject.width;
    relationshipH = infoObject.width / infoObject.height;
    if (Stage["displayState"] == "fullScreen")
        largeSize ();
    else
        regularSize ();
    if (_parent.auto_play == "false")
        ns.seek(0);
        if (playStatus == 1)
            ns.pause();
            playStatus = 0;
        mc_buffer._visible = false;
        controls_mc.playPause.gotoAndStop("play");
        mc_playAgain._visible = true;
        thumbs_out = true;
        title_out = true;
        _parent.auto_play = "true";
    }// end else if
var videoInterval = setInterval(videoStatus, 100);
var amountLoaded;
var duration;
// videoStatus on load Event
function videoStatus()
    amountLoaded = ns.bytesLoaded / ns.bytesTotal;
    controls_mc.mc_progress.mc_buff._width = amountLoaded * 250;
    controls_mc.mc_progress.mc_played._x = ns.time / duration * 250;
    controls_mc.mc_progress.mc_played._xscale = Math.round(ns.time*100/FLVduration);
}; // End of the function
function scrubIt()
    ns.seek(Math.floor(controls_mc.mc_progress.mc_played._x / 250 * duration));
}; // End of the function
// video time
var time_interval:Number = setInterval(checkTime, 500, ns);
function checkTime(ns:NetStream) {
    //current time
    var ns_seconds:Number = ns.time;
    var minutes:Number = Math.floor(ns_seconds/60);
    var seconds = Math.floor(ns_seconds%60);
    sec = seconds;
    min = minutes;
    if (sec<10) {
        sec = "0"+sec;
    if (min<10) {
        min = "0"+min;
    controls_mc.time_txt.time_1.text = min+":"+sec;
    //total time
    var minutes2:Number = Math.floor(FLVduration/60);
    var seconds2 = Math.floor(FLVduration%60);
    sec2 = seconds2;
    min2 = minutes2;
    if (sec2<10) {
        sec2 = "0"+sec2;
    if (min2<10) {
        min2 = "0"+min2;
    controls_mc.time_txt.time_2.text = min2+":"+sec2;
    if (controls_mc.time_txt.time_2.text == "NaN:NaN") {
        controls_mc.time_txt.time_2.text = "00:00";
setStage ();
// Object to listen onStage Event
var stageL:Object = new Object ();
// function respnsible for content alignment
function setStage ()
    if (Stage["displayState"] == "fullScreen") {
        tempx = this._parent._x;
        tempy = this._parent._y;
        this._parent._x = 0;
        this._parent._y = 0;
        vidBg_mc._x = 0;
        vidBg_mc._y = 0;
        mc_title._x = 0;
        mc_title._y = -30;
        slide_me._x = 0;
        slide_me._y = 0;
        vidBg_mc._width = Stage.width;
        vidBg_mc._height = Stage.height;
        mc_title._width = Stage.width;
        mc_title._height = Stage.height / 20;
        slide_me._width = Stage.width;
        slide_me._height = Stage.height / 20;
        vid._x = vid._y = 0;
        largeSize ();
        controls_mc._x = Math.round ((Stage.width / 2) - (controls_mc._width / 2));
        controls_mc._y = Math.round (Stage.height - 36);
        mc_playAgain._x = Math.round ((Stage.width / 2) - (mc_playAgain._width / 2));
        mc_playAgain._y = Math.round (Stage.height - 572);
        thumbs_mc._x = Math.round ((Stage.width / 2) - (thumbs_mc._width / 2));
        thumbs_mc._y = Math.round (Stage.height - 115);
        main_mc._x = Math.round ((Stage.width / 2) - (controls_mc._width / 2));;
        hide_mc.onEnterFrame = function () {
            timeCounter = timeCounter + 1;
            if (timeCounter >= timeInSeconds * 30) {
                timeCounter = 0;
                controls_mc._alpha = 0;
        this.onMouseMove = function () {
            timeCounter = 0;
            controls_mc._alpha = 100;
    else
        delete hide_mc.onEnterFrame;
        delete this.onMouseMove;
        controls_mc._alpha = 100;
        this._parent._x = tempx;
        this._parent._y = tempy;
        vidBg_mc._width = 600;
        vidBg_mc._height = 360;
        mc_title._width = 600;
        mc_title._height = 30;
        slide_me._width = 600;
        slide_me._height = 30;
        vidBg_mc._x = vid._x = 0;
        vidBg_mc._y = vid._y = 35;
        mc_title._x = vid._x = 0;
        mc_title._y = vid._x = -30;
        slide_me._x = vid._x = 0;
        slide_me._y = vid._y = 35;
        regularSize ();
        controls_mc._x = 0;
        controls_mc._y = 395;
        mc_playAgain._x = 243;
        mc_playAgain._y = 158;
        thumbs_mc._x = 0;
        thumbs_mc._y = 316;
        main_mc._x = 0;
        main_mc._y = 406;
    mc_buffer._x = Math.round (vidBg_mc._x + (vidBg_mc._width / 2));
    mc_buffer._y = Math.round (vidBg_mc._y + (vidBg_mc._height / 2));
// to apply when stage (browser window) is resized or modified
stageL.onResize = function () {
    setStage ();
// attaching object to the stage
Stage.addListener (stageL);
MovieClip.prototype.slide = function(yPos) {
    this._y -= (this._y-yPos)/5;
// tilte actions
mc_title.onEnterFrame = function()
    if (Stage["displayState"] == "normal" && title_out == false)
        this.slide(5);
    else if (Stage["displayState"] == "normal" && title_out == true)
        this.slide(35);
    if (Stage["displayState"] == "fullScreen" && title_out == false)
        this._y -= (this._y+106)/5;
    else if (Stage["displayState"] == "fullScreen" && title_out == true)
        this.slide(0);
// thumbs actions
main_mc.onEnterFrame = function()
    if (Stage["displayState"] == "normal" && thumbs_out == false)
        this.slide(406);
    else if (Stage["displayState"] == "normal" && thumbs_out == true)
        this.slide(299);
    if (Stage["displayState"] == "fullScreen" && thumbs_out == false)
        this._y = Math.round (Stage.height - 0);
    else if (Stage["displayState"] == "fullScreen" && thumbs_out == true)
        this._y = Math.round (Stage.height - 133);
// Playlist button
controls_mc.playlist_mc.onRollOver = function ()
    this.gotoAndStop("playlistOver");
controls_mc.playlist_mc.onRollOut = controls_mc.playlist_mc.onReleaseOutside = function ()
    this.gotoAndStop("playlist");
// Toggle playlist button
controls_mc.playlist_mc.onRelease = function ()
    if (thumbs_out == false)
        thumbs_out = true;
        title_out = true;
    else if (thumbs_out == true)
        thumbs_out = false;
        title_out = false;
    } // end if else
// Define hit area for playPause button
vid.onPress = controls_mc.playPause.onRelease = function ()
    ns.pause();
    if (playStatus == 1)
        controls_mc.playPause.gotoAndStop("play")
        playStatus = 0;
        checkStatus();
    else if (playStatus == 0)
        controls_mc.playPause.gotoAndStop("pause");
        playStatus = 1;
        checkStatus();
// playPause button
controls_mc.playPause.onRollOver = function ()
    if (playStatus == 1)
        this.gotoAndStop("pauseOver");
    else
        this.gotoAndStop("playOver");
    } // end else if
controls_mc.playPause.onRollOut = controls_mc.playPause.onReleaseOutside = function ()
    if (playStatus == 1)
        this.gotoAndStop("pause");
    else
        this.gotoAndStop("play");
    } // end else if
// Toggle playPause button
controls_mc.playPause.onRelease = function ()
    ns.pause();
    if (playStatus == 1)
        this.gotoAndStop("play");
        playStatus = 0;
        checkStatus();
    else if (playStatus == 0)
        this.gotoAndStop("pause");
        playStatus = 1;
        checkStatus();
controls_mc.skip_mc.onRollOver = function ()
    this.gotoAndStop("skipOver");
controls_mc.skip_mc.onRollOut = controls_mc.skip_mc.onReleaseOutside = function ()
    this.gotoAndStop("skip");
controls_mc.skip_mc.onRelease = function ()
    _parent.nextVideo()
// Play Again button
mc_playAgain.onRollOver = function ()
    this.gotoAndStop("playAgainOver");
mc_playAgain.onRollOut = mc_playAgain.onReleaseOutside = function ()
    this.gotoAndStop("playAgain");
// Toggle Play Again button
mc_playAgain.onRelease = function ()
    this._visible = false;
    ns.pause();
    playStatus = 1;
    checkStatus();
// make the seek bar clickable
controls_mc.mc_progress.mc_buff.onPress = function()
    xpos = controls_mc.mc_progress._xmouse;
    percent = Math.round(xpos/controls_mc.mc_progress._width*100);
    seekTime = percent/100*FLVduration;
    seekTime = Math.round(seekTime*100)/100;
    ns.seek(seekTime);
// Set volume level
var s:Sound = new Sound();
s.setVolume(_root.volume_value);
controls_mc.mc_soundLevel.mc_volume._xscale = _root.volume_value;
// Volume control
controls_mc.mc_soundLevel.onPress = function()
    volumeTo = (this._xmouse / this._width)*100;
    this.mc_volume._xscale = volumeTo;
    s.setVolume(volumeTo);
// Volume
_parent.createEmptyMovieClip("vSound", _parent.getNextHighestDepth());
vSound.attachAudio(ns);
var so = new Sound(vSound);
so.setVolume(_root.volume_value);
// Mute button
controls_mc.mute_mc.onRollOver = function ()
    if (so.getVolume() >= 1)
        this.gotoAndStop("onOver");
    else
        this.gotoAndStop("muteOver");
    } // end else if
controls_mc.mute_mc.onRollOut = controls_mc.mute_mc.onReleaseOutside = function ()
    if (so.getVolume() >= 1)
        this.gotoAndStop("on");
    else
        this.gotoAndStop("mute");
    } // end else if
// Toggle mute button
controls_mc.mute_mc.onRelease = function ()
    if (so.getVolume() >= 1)
        controls_mc.mc_soundLevel.mc_volume._xscale = 0;
        so.setVolume(0);
        this.gotoAndStop("muteOver");
    else
        controls_mc.mc_soundLevel.mc_volume._xscale = 70;
        so.setVolume(_root.volume_value);
        this.gotoAndStop("onOver");
    } // end else if
// Resize video proportionaly
function regularSize ()
    videoObj._width = 600;
    videoObj._height = videoObj._width * relationshipW;
    if (videoObj._height > 360)
        videoObj._height = 360;
        videoObj._width = videoObj._height * relationshipH;
    videoObj.smoothing = true;
    //var scale:Number;
    videoObj._x = (600 - videoObj._width) / 2;
    videoObj._y = (360 - videoObj._height) / 2;
function largeSize ()
    videoObj._width = Stage.width;
    videoObj._height = videoObj._width * relationshipW;
    if (videoObj._height > Stage.height)
        videoObj._height = Stage.height;
        videoObj._width = videoObj._height * relationshipH;
    videoObj.smoothing = true;
    //var scale:Number;
    videoObj._x = (Stage.width - videoObj._width) / 2;
    videoObj._y = (Stage.height - videoObj._height) / 2;
// Fullscreen button
controls_mc.fullscreen_mc.onRollOver = function ()
    if (Stage["displayState"] == "normal")
        this.gotoAndStop("fullOver");
    else
        this.gotoAndStop("fullCloseOver");
    } // end else if
controls_mc.fullscreen_mc.onRollOut = controls_mc.fullscreen_mc.onReleaseOutside = function ()
    if (Stage["displayState"] == "normal")
        this.gotoAndStop("full");
    else
        this.gotoAndStop("fullClose");
    } // end else if
// Toggle fullscreen button
controls_mc.fullscreen_mc.onRelease = function ()
    if (Stage["displayState"] == "normal")
        Stage["displayState"] = "fullscreen";
        _parent.video_txt.theText._visible = false;
    else
        Stage["displayState"] = "normal";
        _parent.video_txt.theText._visible = true;

if you mean sound works well when the gallery is tested without being loaded into another swf but fails when loaded, change the highlighted line:
// Import filter classes
import mx.transitions.Tween;
import mx.transitions.easing.*;
// Set flash variables
var xmlFileUrl:String = "playlist.xml";
var auto_play:String = "true";
// Set xml file URL
if (_root.xmlfile) {
    xmlFileUrl = _root.xmlfile;
var V_SRC;
var thuArray:Array = new Array();
var currentVideo:Number = 0;
var totalItems;
var numOfItems:Number;
var itemDistance:Number = 120+5;
var itemHeight:Number = 80+2;
var Value:Number = 1;
var boundry:Number = 1;
var ratio:Number = 1;
var diff:Number = 1;
var collectionWidth:Number = 1;
var buffer:Number = 135*2;
this.createEmptyMovieClip("video_txt",this.getNextHighestDepth());
video_txt.createTextField("theText",video_txt.getNextHighestDepth(),0,0,584,36);
video_txt.theText.selectable = false;
video_txt.theText.autoSize = "left";
//The Format
myFormat = new TextFormat();
myFormat.font = _root.font_format;
myFormat.size = _root.font_size;
myFormat.color = _root.font_color;
myFormat.align = "center";
video_txt.theText.setNewTextFormat(myFormat);
// Create a new movieclip to load the thumbs
var thumbLoader:MovieClipLoader = new MovieClipLoader();
var thumbListener:Object = new Object();
thumbLoader.addListener(thumbListener);
thumbListener.onLoadInit = function(target_mc:MovieClip, httpStatus:Number)
    new Tween(target_mc, "_alpha", Regular.easeOut, 0, 100, 1, true);
    target_mc._parent.preloader_mc._alpha = 0;
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = xmlLoaded;
xml.load(xmlFileUrl);
// Load the xml file into the player
function xmlLoaded(b:Boolean) {
    if (b) {
        auto_play = this.firstChild.firstChild.attributes.auto_play;
        scrollSpeed = parseInt(this.firstChild.firstChild.attributes.scrollSpeed);
        totalItems = this.firstChild.firstChild.childNodes;
        numOfItems = totalItems.length;
        for (j=0; j<numOfItems; j++) {
            var i = player_mc.main_mc.collection_mc.attachMovie("mc_Thumb", "thumb_"+j, j);
            i._x = itemDistance*j;
            thumbLoader.loadClip(totalItems[j].attributes.thumb,i.loader_mc);
            i.id = j;
            i.videoTitle = totalItems[j].attributes.title;
            i.videoUrl = totalItems[j].attributes.src;
            // Create an event for thumb rollover
            i.onRollOver = iRoll;
            i.onRollOut = i.onReleaseOutside=iOut;
            i.onRelease = iRelease;
            thuArray[j] = i;
        // default first video
        collectionWidth = player_mc.main_mc.collection_mc._width;
        currentVideo = 0;
        V_SRC = thuArray[0].videoUrl;
        changeVideo();
        //scope._alpha = 100;
        new Tween(scope, "_alpha", Regular.easeOut, 0, 100, 0.5, true);
    else
        trace("Error! xml file not loaded");
// onRollOver Events
function iRoll() {
    player_mc.mc_title.title_txt.htmlText = totalItems[this.id].attributes.title;
    this.light_mc.play();
function iRelease() {
    currentVideo = this.id;
    changeVideo();
function changeVideo() {
    V_SRC = thuArray[currentVideo].videoUrl;
    player_mc.loadVideo();
    currentThumb();
    player_mc.mc_title.title_txt.htmlText = thuArray[currentVideo].videoTitle;
    video_txt.theText.text = totalItems[currentVideo].attributes.title;
    player_mc.so.getVolume();
    player_mc.playStatus = 1;
    player_mc.checkStatus();
function nextVideo() {
    if (currentVideo<(numOfItems-1)) {
        currentVideo++;
    } else {
        currentVideo = 0;
    changeVideo();
function currentThumb() {
    for (i=0; i<thuArray.length; i++) {
        if (i == currentVideo) {
            thuArray[i].enabled = true;
// Mouse movement on rollover
this.onMouseMove = function() {
    collectionWidth = player_mc.main_mc.collection_mc._width;
    boundry = player_mc.main_mc.area_mc._width;
    if ((player_mc.main_mc._ymouse>0) && (player_mc.main_mc._ymouse<itemHeight)) {
        if ((player_mc.main_mc._xmouse>0) && (player_mc.main_mc._xmouse<boundry)) {
            ratio = player_mc.main_mc._xmouse/boundry;
            diff = (collectionWidth-boundry)+buffer;
            Value = Math.floor((-ratio)*diff)+(buffer/2);
    updateAfterEvent();
this.onEnterFrame = function() {
    // Define movement area and speed
    if (player_mc.main_mc.collection_mc._width>player_mc.main_mc.area_mc._width) {
        player_mc.main_mc.collection_mc._x = Math.round((player_mc.main_mc.collection_mc._x)+((Value-player_mc.main_mc.colle ction_mc._x)/scrollSpeed));
        if (player_mc.main_mc.collection_mc._x>0) {
            player_mc.main_mc.collection_mc._x = 0;
        } else if (player_mc.main_mc.collection_mc._x<(player_mc.main_mc.area_mc._width-(player_m c.main_mc.collection_mc._width))) {
            player_mc.main_mc.collection_mc._x = Math.round(player_mc.main_mc.area_mc._width-(player_mc.main_mc.collection_mc._w idth));
    } else {
        player_mc.main_mc.collection_mc._x = 0;
    updateAfterEvent();
part two:
// Define flash variables
var video_url:String = "";
var tempx:Number = this._parent._x;
var tempy:Number = this._parent._y;
var timeCounter:Number = 0;
var timeInSeconds:Number = _root.time_counter;
// Object to listen to onStage Event
videoObj = vid.videoObj;
// Setting up the connection
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
// Buffer time
ns.setBufferTime (10);
videoObj.attachVideo (ns);
function loadVideo () {
    video_url = _parent.V_SRC;
    trace(video_url);
    ns.play (video_url);
function checkStatus()
    if (playStatus == 1)
        controls_mc.playPause.gotoAndStop("pause");
        mc_playAgain._visible = false;
        thumbs_out = false;
        title_out = false;
    else
        controls_mc.playPause.gotoAndStop("play");
        mc_playAgain._visible = true;
    } // end else if
    if (so.getVolume() == 0)
        controls_mc.mute_mc.gotoAndStop("mute");
    else
        controls_mc.mute_mc.gotoAndStop("on");
}; // End of the function
mc_playAgain._visible = false;
// Check Status of video
ns.onStatus = function (info)
    if (info.code == "NetStream.Buffer.Empty")
        mc_buffer._visible = true;
    else if (info.code == "NetStream.Buffer.Full")
        mc_buffer._visible = false;
    else if (info.code == "NetStream.Play.Stop")
        ns.seek(0);
        if (playStatus == 1)
            ns.pause();
            playStatus = 0;
        else
            trace;
        } // end else if
        mc_playAgain._visible = true;
        mc_buffer._visible = false;
        thumbs_out = true;
        title_out = true;
        checkStatus();
    } // end else if
// Get info about video
ns.onMetaData = function(infoObject:Object)
    FLVduration = infoObject["duration"];
    relationshipW = infoObject.height / infoObject.width;
    relationshipH = infoObject.width / infoObject.height;
    if (Stage["displayState"] == "fullScreen")
        largeSize ();
    else
        regularSize ();
    if (_parent.auto_play == "false")
        ns.seek(0);
        if (playStatus == 1)
            ns.pause();
            playStatus = 0;
        mc_buffer._visible = false;
        controls_mc.playPause.gotoAndStop("play");
        mc_playAgain._visible = true;
        thumbs_out = true;
        title_out = true;
        _parent.auto_play = "true";
    }// end else if
var videoInterval = setInterval(videoStatus, 100);
var amountLoaded;
var duration;
// videoStatus on load Event
function videoStatus()
    amountLoaded = ns.bytesLoaded / ns.bytesTotal;
    controls_mc.mc_progress.mc_buff._width = amountLoaded * 250;
    controls_mc.mc_progress.mc_played._x = ns.time / duration * 250;
    controls_mc.mc_progress.mc_played._xscale = Math.round(ns.time*100/FLVduration);
}; // End of the function
function scrubIt()
    ns.seek(Math.floor(controls_mc.mc_progress.mc_played._x / 250 * duration));
}; // End of the function
// video time
var time_interval:Number = setInterval(checkTime, 500, ns);
function checkTime(ns:NetStream) {
    //current time
    var ns_seconds:Number = ns.time;
    var minutes:Number = Math.floor(ns_seconds/60);
    var seconds = Math.floor(ns_seconds%60);
    sec = seconds;
    min = minutes;
    if (sec<10) {
        sec = "0"+sec;
    if (min<10) {
        min = "0"+min;
    controls_mc.time_txt.time_1.text = min+":"+sec;
    //total time
    var minutes2:Number = Math.floor(FLVduration/60);
    var seconds2 = Math.floor(FLVduration%60);
    sec2 = seconds2;
    min2 = minutes2;
    if (sec2<10) {
        sec2 = "0"+sec2;
    if (min2<10) {
        min2 = "0"+min2;
    controls_mc.time_txt.time_2.text = min2+":"+sec2;
    if (controls_mc.time_txt.time_2.text == "NaN:NaN") {
        controls_mc.time_txt.time_2.text = "00:00";
setStage ();
// Object to listen onStage Event
var stageL:Object = new Object ();
// function respnsible for content alignment
function setStage ()
    if (Stage["displayState"] == "fullScreen") {
        tempx = this._parent._x;
        tempy = this._parent._y;
        this._parent._x = 0;
        this._parent._y = 0;
        vidBg_mc._x = 0;
        vidBg_mc._y = 0;
        mc_title._x = 0;
        mc_title._y = -30;
        slide_me._x = 0;
        slide_me._y = 0;
        vidBg_mc._width = Stage.width;
        vidBg_mc._height = Stage.height;
        mc_title._width = Stage.width;
        mc_title._height = Stage.height / 20;
        slide_me._width = Stage.width;
        slide_me._height = Stage.height / 20;
        vid._x = vid._y = 0;
        largeSize ();
        controls_mc._x = Math.round ((Stage.width / 2) - (controls_mc._width / 2));
        controls_mc._y = Math.round (Stage.height - 36);
        mc_playAgain._x = Math.round ((Stage.width / 2) - (mc_playAgain._width / 2));
        mc_playAgain._y = Math.round (Stage.height - 572);
        thumbs_mc._x = Math.round ((Stage.width / 2) - (thumbs_mc._width / 2));
        thumbs_mc._y = Math.round (Stage.height - 115);
        main_mc._x = Math.round ((Stage.width / 2) - (controls_mc._width / 2));;
        hide_mc.onEnterFrame = function () {
            timeCounter = timeCounter + 1;
            if (timeCounter >= timeInSeconds * 30) {
                timeCounter = 0;
                controls_mc._alpha = 0;
        this.onMouseMove = function () {
            timeCounter = 0;
            controls_mc._alpha = 100;
    else
        delete hide_mc.onEnterFrame;
        delete this.onMouseMove;
        controls_mc._alpha = 100;
        this._parent._x = tempx;
        this._parent._y = tempy;
        vidBg_mc._width = 600;
        vidBg_mc._height = 360;
        mc_title._width = 600;
        mc_title._height = 30;
        slide_me._width = 600;
        slide_me._height = 30;
        vidBg_mc._x = vid._x = 0;
        vidBg_mc._y = vid._y = 35;
        mc_title._x = vid._x = 0;
        mc_title._y = vid._x = -30;
        slide_me._x = vid._x = 0;
        slide_me._y = vid._y = 35;
        regularSize ();
        controls_mc._x = 0;
        controls_mc._y = 395;
        mc_playAgain._x = 243;
        mc_playAgain._y = 158;
        thumbs_mc._x = 0;
        thumbs_mc._y = 316;
        main_mc._x = 0;
        main_mc._y = 406;
    mc_buffer._x = Math.round (vidBg_mc._x + (vidBg_mc._width / 2));
    mc_buffer._y = Math.round (vidBg_mc._y + (vidBg_mc._height / 2));
// to apply when stage (browser window) is resized or modified
stageL.onResize = function () {
    setStage ();
// attaching object to the stage
Stage.addListener (stageL);
MovieClip.prototype.slide = function(yPos) {
    this._y -= (this._y-yPos)/5;
// tilte actions
mc_title.onEnterFrame = function()
    if (Stage["displayState"] == "normal" && title_out == false)
        this.slide(5);
    else if (Stage["displayState"] == "normal" && title_out == true)
        this.slide(35);
    if (Stage["displayState"] == "fullScreen" && title_out == false)
        this._y -= (this._y+106)/5;
    else if (Stage["displayState"] == "fullScreen" && title_out == true)
        this.slide(0);
// thumbs actions
main_mc.onEnterFrame = function()
    if (Stage["displayState"] == "normal" && thumbs_out == false)
        this.slide(406);
    else if (Stage["displayState"] == "normal" && thumbs_out == true)
        this.slide(299);
    if (Stage["displayState"] == "fullScreen" && thumbs_out == false)
        this._y = Math.round (Stage.height - 0);
    else if (Stage["displayState"] == "fullScreen" && thumbs_out == true)
        this._y = Math.round (Stage.height - 133);
// Playlist button
controls_mc.playlist_mc.onRollOver = function ()
    this.gotoAndStop("playlistOver");
controls_mc.playlist_mc.onRollOut = controls_mc.playlist_mc.onReleaseOutside = function ()
    this.gotoAndStop("playlist");
// Toggle playlist button
controls_mc.playlist_mc.onRelease = function ()
    if (thumbs_out == false)
        thumbs_out = true;
        title_out = true;
    else if (thumbs_out == true)
        thumbs_out = false;
        title_out = false;
    } // end if else
// Define hit area for playPause button
vid.onPress = controls_mc.playPause.onRelease = function ()
    ns.pause();
    if (playStatus == 1)
        controls_mc.playPause.gotoAndStop("play")
        playStatus = 0;
        checkStatus();
    else if (playStatus == 0)
        controls_mc.playPause.gotoAndStop("pause");
        playStatus = 1;
        checkStatus();
// playPause button
controls_mc.playPause.onRollOver = function ()
    if (playStatus == 1)
        this.gotoAndStop("pauseOver");
    else
        this.gotoAndStop("playOver");
    } // end else if
controls_mc.playPause.onRollOut = controls_mc.playPause.onReleaseOutside = function ()
    if (playStatus == 1)
        this.gotoAndStop("pause");
    else
        this.gotoAndStop("play");
    } // end else if
// Toggle playPause button
controls_mc.playPause.onRelease = function ()
    ns.pause();
    if (playStatus == 1)
        this.gotoAndStop("play");
        playStatus = 0;
        checkStatus();
    else if (playStatus == 0)
        this.gotoAndStop("pause");
        playStatus = 1;
        checkStatus();
controls_mc.skip_mc.onRollOver = function ()
    this.gotoAndStop("skipOver");
controls_mc.skip_mc.onRollOut = controls_mc.skip_mc.onReleaseOutside = function ()
    this.gotoAndStop("skip");
controls_mc.skip_mc.onRelease = function ()
    _parent.nextVideo()
// Play Again button
mc_playAgain.onRollOver = function ()
    this.gotoAndStop("playAgainOver");
mc_playAgain.onRollOut = mc_playAgain.onReleaseOutside = function ()
    this.gotoAndStop("playAgain");
// Toggle Play Again button
mc_playAgain.onRelease = function ()
    this._visible = false;
    ns.pause();
    playStatus = 1;
    checkStatus();
// make the seek bar clickable
controls_mc.mc_progress.mc_buff.onPress = function()
    xpos = controls_mc.mc_progress._xmouse;
    percent = Math.round(xpos/controls_mc.mc_progress._width*100);
    seekTime = percent/100*FLVduration;
    seekTime = Math.round(seekTime*100)/100;
    ns.seek(seekTime);
// Set volume level
var s:Sound = new Sound(this);
s.setVolume(_root.volume_value);
controls_mc.mc_soundLevel.mc_volume._xscale = _root.volume_value;
// Volume control
controls_mc.mc_soundLevel.onPress = function()
    volumeTo = (this._xmouse / this._width)*100;
    this.mc_volume._xscale = volumeTo;
    s.setVolume(volumeTo);
// Volume
_parent.createEmptyMovieClip("vSound", _parent.getNextHighestDepth());
vSound.attachAudio(ns);
var so = new Sound(vSound);
so.setVolume(_root.volume_value);
// Mute button
controls_mc.mute_mc.onRollOver = function ()
    if (so.getVolume() >= 1)
        this.gotoAndStop("onOver");
    else
        this.gotoAndStop("muteOver");
    } // end else if
controls_mc.mute_mc.onRollOut = controls_mc.mute_mc.onReleaseOutside = function ()
    if (so.getVolume() >= 1)
        this.gotoAndStop("on");
    else
        this.gotoAndStop("mute");
    } // end else if
// Toggle mute button
controls_mc.mute_mc.onRelease = function ()
    if (so.getVolume() >= 1)
        controls_mc.mc_soundLevel.mc_volume._xscale = 0;
        so.setVolume(0);
        this.gotoAndStop("muteOver");
    else
        controls_mc.mc_soundLevel.mc_volume._xscale = 70;
        so.setVolume(_root.volume_value);
        this.gotoAndStop("onOver");
    } // end else if
// Resize video proportionaly
function regularSize ()
    videoObj._width = 600;
    videoObj._height = videoObj._width * relationshipW;
    if (videoObj._height > 360)
        videoObj._height = 360;
        videoObj._width = videoObj._height * relationshipH;
    videoObj.smoothing = true;
    //var scale:Number;
    videoObj._x = (600 - videoObj._width) / 2;
    videoObj._y = (360 - videoObj._height) / 2;
function largeSize ()
    videoObj._width = Stage.width;
    videoObj._height = videoObj._width * relationshipW;
    if (videoObj._height > Stage.height)
        videoObj._height = Stage.height;
        videoObj._width = videoObj._height * relationshipH;
    videoObj.smoothing = true;
    //var scale:Number;
    videoObj._x = (Stage.width - videoObj._width) / 2;
    videoObj._y = (Stage.height - videoObj._height) / 2;
// Fullscreen button
controls_mc.fullscreen_mc.onRollOver = function ()
    if (Stage["displayState"] == "normal")
        this.gotoAndStop("fullOver");
    else
        this.gotoAndStop("fullCloseOver");
    } // end else if
controls_mc.fullscreen_mc.onRollOut = controls_mc.fullscreen_mc.onReleaseOutside = function ()
    if (Stage["displayState"] == "normal")
        this.gotoAndStop("full");
    else
        this.gotoAndStop("fullClose");
    } // end else if
// Toggle fullscreen button
controls_mc.fullscreen_mc.onRelease = function ()
    if (Stage["displayState"] == "normal")
        Stage["displayState"] = "fullscreen";
        _parent.video_txt.theText._visible = false;
    else
        Stage["displayState"] = "normal";
        _parent.video_txt.theText._visible = true;

Similar Messages

  • I need help with XML Gallery Fade in out transition. somebody please help me :(

    I need help with XML Gallery Fade in out transition. somebody please help me
    I have my post dont want to duplicate it

    The problem doesn't lie with your feed, although it does contain an error - you have given a non-existent sub-category. You need to stick to the categories and sub-categories listed here:
    http://www.apple.com/itunes/podcasts/specs.html#categories
    Subscribing to your feed from the iTunes Store page work as such, but the episodes throw up an error message. The problem lies with your episode media files: you are trying to stream them. Pasting the URL into a browser produces a download (where it should play the file) of a small file which does not play and in fact is a text file containing (in the case of ep.2) this:
    [Reference]
    Ref1=http://stream.riverratdoc.com/RiverratDoc/episode2.mp3?MSWMExt=.asf
    Ref2=http://70.33.177.247:80/RiverratDoc/episode2.mp3?MSWMExt=.asf
    You must provide a direct link to the actual mp3 file. Streaming won't work. The test is that if you paste the URL of the media file (as given in the feed) into the address bar of a browser it should play the file.

  • I need help with my videos now that I downloaded the ios6.  It won't play.

    I need help with my videos. I downloaded the ios6 and now they won't play.  Does anyone know how to fix?

    Wanted to let everyone know that after looking at other discussions I did a hard reboot and it is now working.  Love this site!

  • Need help with XML transformation

    I am not sure this is the right place for this. But i will try it here. I am very troubled with my XSLT. Trying to transform a text Coupon which has the following html for it. So,
    _1. INPUT is:_
    <html>
    <head>
    </head>
    <body>
    <p>
    This coupon is for a good guy whose first name is :
    </p>
    <p>
    </p>
    <p align="center">
    Sadd
    </p>
    <p align="center">
    </p>
    <p align="right">
    <b>also</b> whose <var>full_name</var> is Sadd Hossain
    </p>
    <p align="left">
    </p>
    <p align="left">
    He is a <font size="3">software </font><font size="4">engineer for</font><font size="5">
    S&H</font>
    </p>
    </body>
    </html>
    *2. output needed  is:*
    <?xml version="1.0" encoding="UTF-8"?>
    <POSMESSAGE>
    <TextMSG >
    This coupon is for a good guy whose first name is :
    </TextMSG>
    <TextMSG >
    </TextMSG>
    <TextMSG align="center">
    <emph>SADD</emph>
    </TextMSG>
    <TextMSG >
    </TextMSG>
    <TextMSG align="right" >
    also whose full_name is Sadd Hossain
    </TextMSG>
    <TextMSG>
    </TextMSG>
    <TextMSG align="left" >
    He is a software engineer
    for S&H
    </TextMSG>
    </POSMESSAGE>
    *3. XSLT for this*
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="xml"/>
    <xsl:template match="body">
    <POSMESSAGE>
    <xsl:for-each select="p">
    <TextMSG>
    <!--xsl:if test="not[@align='']"-->
    <xsl:attribute name="align"><xsl:value-of select="@align"/></xsl:attribute>
    <!--/xsl:if-->
    <xsl:attribute name="font"><xsl:value-of select="@size"/></xsl:attribute>
    <xsl:value-of select="."/>
    </TextMSG>
    <xsl:for-each select="b">
    <emph>
    <xsl:value-of select="."/>
    </emph>
    </xsl:for-each>
    </xsl:for-each>
    </POSMESSAGE>
    </xsl:template>
    </xsl:stylesheet>
    *4: the above xslt generating this output*
    <?xml version="1.0" encoding="UTF-8"?>
    <POSMESSAGE><TextMSG align="" font="">
    This coupon is for a good guy whose first name is :
    </TextMSG><TextMSG align="" font="">
    </TextMSG><TextMSG align="center" font="">
    SADD
    </TextMSG><TextMSG align="center" font="">
    </TextMSG><TextMSG align="right" font="">
    also whose full_name is Sadd Hossain
    </TextMSG><TextMSG align="left" font="">
    </TextMSG><TextMSG align="left" font="">
    He is a software engineer
    for S&H
    </
    *5: Need help with this. what should my xslt look like to get the desired output???????????????*
    any help or direction will be very much appreciated. Thank you_

    I have below suggestions:
    1. Please use code option given in message editor toolbar for posting any formatted content like XML, Java code snippet etc.
    2. replace & in your source XML with _& a m p ;_ (Without spaces, I have put spaces to make it visible here).
    3. I have modified your XSLT according output XML you have given. I am not sure what you want to do with some elements like <b>, <font>, <var> etc. change below XSLT as you require for these elements.
    Modified XSLT:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
            <xsl:output method="xml"/>
         <xsl:template match="body">
              <POSMESSAGE>
                   <xsl:for-each select="p">
                        <TextMSG>
                             <xsl:if test=". != ''">
                                  <xsl:for-each select="@align">
                                       <xsl:attribute name="align">
                                            <xsl:value-of select="."></xsl:value-of>
                                       </xsl:attribute>
                                  </xsl:for-each>
                                  <xsl:value-of select="."/>
                             </xsl:if>
                        </TextMSG>
                   </xsl:for-each>
              </POSMESSAGE>
         </xsl:template>
    </xsl:stylesheet>
    OUTPUT:
    <?xml version="1.0"?>
    <POSMESSAGE>
         <TextMSG>This coupon is for a good guy whose first name is :</TextMSG>
         <TextMSG/>
         <TextMSG align="center">Sadd</TextMSG>
         <TextMSG/>
         <TextMSG align="right">alsowhose full_name is Sadd Hossain</TextMSG>
         <TextMSG/>
         <TextMSG align="left">He is a softwareengineer forS&H</TextMSG>
    </POSMESSAGE>

  • Please I really need help with this video problem.

    Hi!
    Please I need help with this app I am trying to make for an Android cellphone and I've been struggling with this for a couple of months.
    I have a main flash file (video player.fla) that will load external swf files. This is the main screen.When I click the Sets Anteriores button I want to open another swf file called sets.swf.The app is freezing when I click Sets Anteriores button
    Here is the code for this fla file.
    import flash.events.MouseEvent;
    preloaderBar.visible = false;
    var loader:Loader = new Loader();
    btHome.enabled = false;
    var filme : String = "";
    carregaFilme("home.swf");
    function carregaFilme(filme : String ) :void
      var reqMovie:URLRequest = new URLRequest(filme);
      loader.load(reqMovie);
      loader.contentLoaderInfo.addEventListener(Event.OPEN,comeco);
      loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,progresso);
      loader.contentLoaderInfo.addEventListener(Event.COMPLETE,completo);
      palco.addChild(loader); 
    function comeco(event:Event):void
              preloaderBar.visible = true;
              preloaderBar.barra.scaleX = 0;
    function progresso(e:ProgressEvent):void
              var perc:Number = e.bytesLoaded / e.bytesTotal;
              preloaderBar.percent.text = Math.ceil(perc*100).toString();
              preloaderBar.barra.scaleX =  perc;
    function completo(e:Event):void
              preloaderBar.percent.text = '';
              preloaderBar.visible = false;
    btHome.addEventListener(MouseEvent.MOUSE_DOWN,onHomeDown);
    btHome.addEventListener(MouseEvent.MOUSE_UP,onHomeUp);
    btSets.addEventListener(MouseEvent.MOUSE_DOWN,onSetsDown);
    btSets.addEventListener(MouseEvent.MOUSE_UP,onSetsUp);
    btVivo.addEventListener(MouseEvent.MOUSE_DOWN,onVivoDown);
    btVivo.addEventListener(MouseEvent.MOUSE_UP,onVivoUp);
    btHome.addEventListener(MouseEvent.CLICK,onHomeClick);
    btSets.addEventListener(MouseEvent.CLICK,onSetsClick);
    function onSetsClick(Event : MouseEvent) : void
              if (filme != "sets.swf")
                          filme = "sets.swf";
                          carregaFilme("sets.swf");
    function onHomeClick(Event : MouseEvent) : void
              if (filme != "home.swf")
                          filme = "home.swf";
                          carregaFilme("home.swf");
    function onHomeDown(Event : MouseEvent) : void
              btHome.y += 1;
    function onHomeUp(Event : MouseEvent) : void
              btHome.y -= 1;
    function onSetsDown(Event : MouseEvent) : void
              btSets.y += 1;
    function onSetsUp(Event : MouseEvent) : void
              btSets.y -= 1;
    function onVivoDown(Event : MouseEvent) : void
              btVivo.y += 1;
    function onVivoUp(Event : MouseEvent) : void
              btVivo.y -= 1;
    Now this is the sets.fla file:
    Here is the code for sets.fla
    import flash.utils.Timer;
    import flash.events.TimerEvent;
    var video:Video;
    var nc:NetConnection;
    var ns:NetStream;
    var t : Timer = new Timer(1000,0);
    var meta:Object = new Object();
    this.addEventListener(Event.ADDED_TO_STAGE,init);
    function init(e:Event):void{
    video= new Video(320, 240);
    addChild(video);
    video.x = 80;
    video.y = 100;
    nc= new NetConnection();
    nc.connect(null);
    ns = new NetStream(nc);
    ns.addEventListener(NetStatusEvent.NET_STATUS, onStatusEvent);
    ns.bufferTime = 1;
    ns.client = meta;
    video.attachNetStream(ns);
    ns.play("http://www.djchambinho.com/videos/segundaquinta.flv");
    ns.pause();
    t.addEventListener(TimerEvent.TIMER,timeHandler);
    t.start();
    function onStatusEvent(stat:Object):void
              trace(stat.info.code);
    meta.onMetaData = function(meta:Object)
              trace(meta.duration);
    function timeHandler(event : TimerEvent) : void
      if (ns.bytesLoaded>0&&ns.bytesLoaded == ns.bytesTotal )
                ns.resume();
                t.removeEventListener(TimerEvent.TIMER,timeHandler);
                t.stop();
    The problem is when I test it on my computer it works but when I upload it to my phone it freezes when I click Sets Anteriores button.
    Please help me with this problem I dont know what else to do.
    thank you

    My first guess is you're simply generating an error. You'll always want to load this on your device in quick debugging over USB so you can see any errors you're generating.
    Outside that, if you plan on accessing anything inside the SWF you should be loading the SWF into the correct context. Relevant sample code:
    var context:LoaderContext = new LoaderContext();
    context.securityDomain = SecurityDomain.currentDomain;
    context.applicationDomain = ApplicationDomain.currentDomain;
    var urlReq:URLRequest = new URLRequest("http://www.[your_domain_here].com/library.swf");
    var ldr:Loader = new Loader();
    ldr.load(urlReq, context);
    More information:
    http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9 b90204-7de0.html
    If you're doing this on iOS you'll need to stripped SWFs if you plan on using any coding (ABC) inside the files. You mentioned iOS so I won't get into that here, but just incase, here's info on stripping external SWFs:
    http://blogs.adobe.com/airodynamics/2013/03/08/external-hosting-of-secondary-swfs-for-air- apps-on-ios/

  • I need help with the videos

    Yea for the videos, I want to put some Red vs Blue videos on there. And so dar the only way that I see how to put them on there is to buy quicktime 7 pro. Cause it says you have to export them into Itunes. Is there any other way to do it because when I try to update my ipod with the Red vs Blue videos on my library list. It says," Some of the videos in your iTunes library, including the video [video name here], were not copied to the iPod [name of your ipod here] because they cannot be played on this iPod" It confused me when I have the fifth generation iPod.

    Voden,
    A quick search would have answered your question, as it gets asked about a dozen times a day.
    Anyway, the iPod only supports 2 codecs for video, MPEG4 and H.264. On top of that, it needs to conform to the pixel dimensions and bitrate that the iPod will support as well.
    Since you're on Windows, you can use Videora iPod Convertor to convert the videos to the correct format.
    To use Videora iPod Convertor to convert movies for use on your iPod, consult these helpful links:
    To get started: Videora iPod Convertor Guide
    If you have questions: Videora iPod Convertor Frequently Asked Questions
    If you have more questions, post them here: Videora iPod Convertor Forum
    Note that Videora iPod Convertor is a 3rd party program. If you need help with it, post your question there.

  • Need Help Removing XML Photo Gallery on Button Click

    Hi, I'm new to flash so this might seem like a dumb question, but I'm right in the middle of designing a photography site and need some help.  I have 4 buttons in my timeline that go to the corresponding frame labels when clicked, above each frame label is a keyframe with actionscript applied to it, that will load an external XML photo gallery. I need the current photo gallery that's on the screen to disappear when I click on a new button to load the new XML photo gallery.  this is the code that will be above each frame label with a few changes, then below this is the code for my buttons. Any help is greatly appreciated. Thank you  Code: Select all var imageX:XML; var imageList:XMLList;  var canvas:MovieClip = new MovieClip(); var picLoader:Loader; addChild(canvas); canvas.x = -155; canvas.y = 160;   var req:URLRequest = new URLRequest("gallery.xml"); var imageLoader:URLLoader = new URLLoader(); imageLoader.addEventListener(Event.COMPLETE, onComplete); imageLoader.load(req);  function onComplete(e:Event):void { imageX = new XML(imageLoader.data); imageList = imageX.image; picLoader = new Loader(); picLoader.contentLoaderInfo.addEventListener(Event .COMPLETE, imageLoaded); picLoader.load(new URLRequest (imageList[0].url)); }  function imageLoaded(e:Event):void  { canvas.addChild(picLoader); }    Code for the buttons in different keyframe.  Code: Select all stop();  kids_btn.addEventListener(MouseEvent.CLICK,onKidsClick); couples_btn.addEventListener(MouseEvent.CLICK,onCouplesClick); portraits_btn.addEventListener(MouseEvent.CLICK,onPortraitsClick); bellies_btn.addEventListener(MouseEvent.CLICK,onBelliesClick);  function onKidsClick(e:MouseEvent):void { gotoAndStop("kids"); }  function onCouplesClick(e:MouseEvent):void { gotoAndStop("couples"); }  function onPortraitsClick(e:MouseEvent):void { gotoAndStop("portraits"); }  function onBelliesClick(e:MouseEvent):void { gotoAndStop("bellies"); }

    Hi, I'm new to flash so this might seem like a dumb question, but I'm right in the middle of designing a photography site and need some help.  I have 4 buttons in my timeline that go to the corresponding frame labels when clicked, above each frame label is a keyframe with actionscript applied to it, that will load an external XML photo gallery. I need the current photo gallery that's on the screen to disappear when I click on a new button to load the new XML photo gallery.  this is the code that will be above each frame label with a few changes, then below this is the code for my buttons. Any help is greatly appreciated. Thank you  Code: Select all var imageX:XML; var imageList:XMLList;  var canvas:MovieClip = new MovieClip(); var picLoader:Loader; addChild(canvas); canvas.x = -155; canvas.y = 160;   var req:URLRequest = new URLRequest("gallery.xml"); var imageLoader:URLLoader = new URLLoader(); imageLoader.addEventListener(Event.COMPLETE, onComplete); imageLoader.load(req);  function onComplete(e:Event):void { imageX = new XML(imageLoader.data); imageList = imageX.image; picLoader = new Loader(); picLoader.contentLoaderInfo.addEventListener(Event .COMPLETE, imageLoaded); picLoader.load(new URLRequest (imageList[0].url)); }  function imageLoaded(e:Event):void  { canvas.addChild(picLoader); }    Code for the buttons in different keyframe.  Code: Select all stop();  kids_btn.addEventListener(MouseEvent.CLICK,onKidsClick); couples_btn.addEventListener(MouseEvent.CLICK,onCouplesClick); portraits_btn.addEventListener(MouseEvent.CLICK,onPortraitsClick); bellies_btn.addEventListener(MouseEvent.CLICK,onBelliesClick);  function onKidsClick(e:MouseEvent):void { gotoAndStop("kids"); }  function onCouplesClick(e:MouseEvent):void { gotoAndStop("couples"); }  function onPortraitsClick(e:MouseEvent):void { gotoAndStop("portraits"); }  function onBelliesClick(e:MouseEvent):void { gotoAndStop("bellies"); }

  • Need help with XML delay   URGENT!!!

    Hi i need help making a flash movie to load everything from
    xml. It has to load text, images and flv, but, it has to load them
    and end them at the time said in the xml. So flash loads and
    unloade the text or image or video at the time specified in the
    XML! PLEASE HELP I NEED THIS DONE TODAY!!!!! VERY IMPORTANT!!!
    Contact me by msn [email protected] or send mail or
    reply here!!

    It was probably a little unclear initially (no offence
    intended ) whether your problem was with getting the data from XML
    or with the sequencing aspect. I assume that its the sequencing
    aspect based on your recent reply.
    So if it was me I would parse the loaded info into Date
    objects for the load and remove times and have this information
    handled by some sort of sequencing code.
    At its simplest, you could compare the xml-derived date/times
    for load/unload with the current system date/time and use a
    setInterval function to initiate the load after the calculated
    difference in milliseconds has passed. Similar for the removeclip
    timing.

  • Need help with uploading web gallery

    When I try to upload a gallery, I recieve the following error message: An error occured sending the file: a response was not received in time.
    How do I correct this?

    Find the exported gallery on the hard drive, and open the index file in a web browser. If that works correctly, then yes, it's a problem that you'll need to discuss with your web host, rather than a Lightroom problem that we can help with, sorry.

  • Need help with XML structure

    Hello, I would like to create an extention that will help to
    manage a
    glossary.
    First I need to decide on the structure of the xml document
    that will
    contain all glossary entries. Since I don't have much
    experience with XML in
    extention content, I was wondering if there are certain
    recommendations I
    should follow.
    What is preferable: using attributes that will holt the
    content or rather
    having xml-elements. What is easy to parce?
    I would greatly appreciate any tips, help and suggestions.
    Olyalyu

    .oO(olga)
    >First I need to decide on the structure of the xml
    document that will
    >contain all glossary entries. Since I don't have much
    experience with XML in
    >extention content, I was wondering if there are certain
    recommendations I
    >should follow.
    I would start as simple as possible, for example with
    something like
    this:
    <glossary>
    <entry>
    <term>...</term>
    <explanation>...</explanation>
    </entry>
    <entry>
    <term>...</term>
    <explanation>...</explanation>
    </entry>
    </glossary>
    Of course it also depends on what you want to do with this
    structure and
    if you need additional informations.
    >What is preferable: using attributes that will holt the
    content or rather
    >having xml-elements. What is easy to parce?
    There's no real rule-of-thumb whether to use elements or
    attributes.
    If unsure, use elements.
    Micha

  • I need help with streaming video

    I have 7 videos I've produced that I would like to
    progressively stream from my web site. They're all approx 400 x 200
    about 2 minutes long with sound. I have a scene set up with each
    video in a separate keyframe so you can navigate from one to the
    other in the same scene.
    I can get the videos to play locally. When I upload the swf
    and .flvs to my server, they won't play. One error message I get on
    output states that "**Warning** The linkage identifier
    'FLVPlayback' was already assigned to the symbol 'FLVPlayback', and
    cannot be assigned to the symbol 'golden', since linkage
    identifiers must be unique." What I did there is rename each video
    in my library from FLVPlayback to a unique name so I can identify
    it.
    I get that output error message for each of the videos that
    I'm trying to publish. It sounds like I have to change the
    Identifier in each video, but I haven't figured out how to do that.
    Any ideas or suggestions would be greatly appreciated!

    Ah, I see what happened. Every time I import a QT into the
    library, Flash creates a FLVPlayback component along with a .flv
    file. I cleared all but one FLVPlayback component and reimported
    the .flvs to stage and now I have streaming video on the website.
    Thanks clbeech, that was really helpful!
    One more issue. I've selected one of the prebuilt skins
    (Clearexternalplayseekmute.swf) to control video, while it works
    locally, I can't see it on the server. Do the skins need additional
    code to work?

  • Need help with N93i Video sound/audio problem........

    hi,
    i really hope someone can help me out here...
    after i have done with recording video clips and i replay the video,the phone speaker came out a very noisy sound (is like a bad Radio Frequencies noise)
    why or how is this happen ???
    how can i stop the noisy sound that came out from the phone speaker ?
    Thank you in advance !

    hi el_loco,
    yes,the sound appear to be the same too when i play on the pc
    the noisy sound came from the loudspeaker outlet,
    i got a strong feeling that somethings is wrong with the build in microphones or maybe the loudspeaker ???Message Edited by nl3181 on 15-Jun-200709:23 PM

  • Need help with ipod video/movies

    need help have videos in itunes how do i get them to ipod?

    Double post. Please see your other one.
    http://discussions.apple.com/message.jspa?messageID=3504698#3504698

  • Need help with XML response to refresh document with context and prompts

    I've been working with the Restful api for a few weeks now and have been able to figure out most of what I need to automate testing of our reports. However, one task that I have not been able to figure out is how to refresh a document that contains both a context and two prompts for dates.
    Here is what I have tried, and what the API responds with.
    1) I queried the API for this document's parameters using the following call after logging in -
    headers = {:accept=>'application/xml', :content_type=>'application/xml', :x_sap_logontoken=>@token}
    url = "http://our.url.net:6405/biprws/raylight/v1/documents/12345/parameters"
    RestClient.get(url, headers)
    The response from the API is:
    <parameters>
        <parameter dpId="DP0" type="context" optional="false">
            <id>0</id>
            <technicalName>cQuery 1</technicalName>
            <name>Select a context</name>
            <answer type="Text" constrained="true">
                <info cardinality="Single">
                    <lov partial="false">
                        <values>
                            <value id="CTX_1">LOAN</value>
                            <value id="CTX_9">LOAN_APPLICATION</value>
                        </values>
                    </lov>
                    <values>
                        <value id="CTX_1">LOAN</value>
                        <value id="CTX_9">LOAN_APPLICATION</value>
                    </values>
                    <previous>
                        <value id="CTX_9">LOAN_APPLICATION</value>
                    </previous>
                </info>
                <values>
                    <value id="CTX_9">LOAN_APPLICATION</value>
                </values>
            </answer>
        </parameter>
    </parameters>
    2) This tells me I need to supply a context, so I then replace my RestClient.get call with a RestClient.put call with the following payload:
    <parameters>
         <parameter>
                <id>0</id>
                <answer>
                      <values>
                            <value id=\"CTX_9\"/>
                      </values>
                </answer>
          </parameter>
    </parameters>
    3) This satisfies the context portion of the refresh. The API replies with the following response, telling me I need to answer two prompts -
    <parameters>
         <parameter dpId=\"DP0\" type=\"prompt\" optional=\"false\">
              <id>1</id>
              <technicalName>psEnter value(s) for Start Date of Application Received Date</technicalName>
              <name>Enter value(s) for Start Date of Application Received Date</name>
               <answer type=\"DateTime\" constrained=\"false\">\
                    <info cardinality=\"Single\"/>
               </answer>
         </parameter>
         <parameter dpId=\"DP0\" type=\"prompt\" optional=\"false\">
                <id>2</id>
                <technicalName>psEnter value for End Date of Application Received Date</technicalName>
                <name>Enter value for End Date of Application Received Date</name>\
                <answer type=\"DateTime\" constrained=\"false\">
                    <info cardinality=\"Single\"/>
                </answer>
          </parameter>
    </parameters>
    4) Here is where I am having problems. I have tried all kinds of permutations of the below payload/response body. All I ever get from the API is a 400 - BadResponse error.
    <parameters>
         <parameter>
              <id>0</id>
              <answer>
                   <values>
                        <value id=\"CTX_9\"/>
                   </values>
              </answer>
         </parameter>
    </parameters>
    <parameters>
         <parameter type=\"prompt\">
              <id > 1 </ id>
              <answer type=\"DateTime\">
                   <values>
                        <value>2012-06-11T09:50:54.000-04:00</value>
                   </values>
               </answer>
         </parameter>
         <parameter type=\"prompt\">
               <id > 2 </ id>
               <answer type=\"DateTime\">
                    <values>
                         <value>2014-07-11T09:50:54.967-04:00</value>
                    </values>
               </answer>
         </parameter>
    </parameters>
    I am not very good with XML and the terminology around it, and I haven't received much training around using the Restful API other than the SDK documentation. I have a feeling there is something very basic that Im missing here. What is the correct XML needed in the response body to properly refresh the document?

    If you are more confortable with JSON, Raylight supports it as well.
    Best regards,
    Anthony

  • Need help with 3D carousel gallery rotation to a specific angle

    Hi,
    I am making a 3d gallery, that has a menu underneath it. When clicking to a menu link, the gallery will rotate itself to a certain angle (photo) connected with the menu link. I am using FlashAndMaths 3D cylindrical gallery scripts (XML Customizable 3D Cylindrical Photo Gallery in Flash) as the base (as I couldn't find any free or neither payed 3d galleries that would have a menu connected to the carousel!).
    The function to rotate a carousel of thumbnails is the following:
    public function doRotate(ang:Number):void {  
                if(isLoading || notReady){       
                        return;
                if(!this.contains(container)){
                    return;
                var i:int;
                 for(i=0;i<numCols;i++){
                   colsVec[i].rotationY+=ang;
                   colsVec[i].rotationY=colsVec[i].rotationY%360;
                   if((colsVec[i].rotationY>90+diffAng && colsVec[i].rotationY<270-diffAng) || (colsVec[i].rotationY<-(90+diffAng) && colsVec[i].rotationY>-(270-diffAng))){
                          if(container.contains(colsVec[i])){
                              container.removeChild(colsVec[i]);
                         } else {   
                                   if(!container.contains(colsVec[i])){
                                     container.addChild(colsVec[i]);
    This will rotate the carousel as an infinite loop. However - I need the function to stop at a certain angle e.g. 45% (and/or reset itself to 0%). Another option would be to stop the carousel at a certain thumbnail container.
    The function to create a carousel is here:
    thumbWidth=thumbsArray[0][0].width;
    thumbHeight=thumbsArray[0][0].height;
    colsVec=new Vector.<Column>();
    colHeight=thumbHeight*colLen+(colLen-1)*pxSpace;
    colWidth=thumbWidth;
    rad=galLoader.radius;
    angle=360/numCols;
    container=new Sprite();
    this.addChild(container);
    containerWidth=2*rad;
    vertAddOn=40;
    vertDrop=15;
    containerHeight=colHeight+vertAddOn;
    container.x=containerWidth/2;
    container.y=containerHeight/2+vertDrop;
    contMask=new Shape();
    this.addChild(contMask);
    contMask.x=container.x;
    contMask.y=container.y;
    prepContainer();
    diffAng=Math.round((Math.asin(rad/fL)*180/Math.PI)*1000)/1000; 
    for(i=0;i<numCols;i++){
    colsVec[i]= new Column(thumbsArray[i],pxSpace,rad);
    container.addChild(colsVec[i]);
    colsVec[i].y=0;
    colsVec[i].x=0; 
    colsVec[i].z=0;
    colsVec[i].rotationY=angle*i;
    if((colsVec[i].rotationY>90+diffAng && colsVec[i].rotationY<270-diffAng) || (colsVec[i].rotationY<-(90+diffAng) && colsVec[i].rotationY>-(270-diffAng))){
    if(container.contains(colsVec[i])){
    container.removeChild(colsVec[i]);
    } else {
    if(!container.contains(colsVec[i])){
    container.addChild(colsVec[i]);
    Could anyone help me as I'm out of ideas!

    Hi, well, unfortunately asking help from forums is my last option, there really isn't many people around anymore, who'd use Flash!
    Also, I couldn't find neither free or payed scripts or examples online, that could do this - so, it's just me and forums.
    I really do appreciate that you've tried to help me- I just need a bit clearer reference (as I'm just not really used to use AS), so that I could try to search and/or figure out how to solve that problem.
    By "call doRotate() and pass the difference between the current rotation and the desired rotation.", did you mean something like this:
    private function onEnter(e:Event):void {
    if (rotate){
    this.doRotate(1);
    if(    //so, here I should use something that would locate the desired position, so something like currentFrame or would you have any better ideas?
    // should I also add something like doRotate.stop(); here?
    this.removeEventlistener(Event.ENTER_FRAME,onEnter);
    Or am I going the wrong way?

Maybe you are looking for