onMouseWheel

Hello, I'm trying to scroll the text in a text called theText field. with this code, the entire text container scrolls upward theText off-screen. How do I just get the text to scroll in the container? That's when I use:

var mouseListener:Object = new Object();
mouseListener.onMouseWheel = {function (delta)}
theText._y += delta;
}
Mouse.addListener (mouseListener);

Thanks for any help!

Now, it's how to make a thread!

See the property of TextField.scroll. This is the number of lines from the top that give a text field scrolls. My guess would be back to zero (or any value it had at the beginning.)

PS: I don't think that the Mac version of the Flash player/plugin supports scroll wheels. So if this is part of your audience, you might want to provide other means of text scrolling.

Tags: Adobe Animate

Similar Questions

  • onMouseWheel and scaling of performance

    Hello

    I have a mc containing a bitmap (Sun. approx. 1500 x 1000) and the onMouseWheel event related to this mc:

    It's something like

    Mouse.onMouseWheel = {function (delta)}
    If {(checkthatthemouseisoverthemaskedarea)
    This ._xscale += delta;
    This ._yscale += delta;
    }
    }

    ... This bitmap is movable, with a hidden region, so the user can drag the bitmap autour and zoom in and out.

    After I zoomed in and out of the picture for like, 8 times, or little more, I noticed that the film started running really slow... it seemed to be there on each zoom was created a task more in the background...

    The function onMouseWheel does nothing but the zoom on the image, it does not have other functions...

    Any suggestion?

    Hello!

    I guess I solved the problem, so I want to share the solution...

    as you see below in the event handler first I scale the bitmap, movieclip, and then there was a piece of code (that I removed the previous post) redraw a rectangle proportionally scale the bitmap cursor:

    Mouse.onMouseWheel = {function (delta)}
    If {(checkthatthemouseisoverthemaskedarea)
    This ._xscale += delta;
    This ._yscale += delta;

    newScale var = (_root.visore_start_width / mask_visore.plan_holder._width * mappa_holder._width) / _root.largC * 100;

    cursore_mappa._xscale = newScale;
    cursore_mappa._yscale = newScale;

    ridisegna he cursore

    cursore_mappa.beginFill("0xFFFFFF",0);
    cursore_mappa. MoveTo (0,0);
    cursore_mappa. LineTo(_root.largC,0);
    cursore_mappa. LineTo (_root.largC, _root.heightC);
    cursore_mappa. LineTo(0,_root.heightC);
    cursore_mappa. LineTo (0,0);
    cursore_mappa.endFill ();

    cursore_mappa. LineStyle(0.05,0xAB0534,100,false);
    cursore_mappa. MoveTo (0,0);
    cursore_mappa. LineTo(_root.largC,0);
    cursore_mappa. LineTo (_root.largC, _root.heightC);
    cursore_mappa. LineTo(0,_root.heightC);
    cursore_mappa. LineTo (0,0);

    }
    }

    The error was that each change of scale (whenever the event handler has been called) I painted the new graphics of the rectangle on the former. I tought this flash has been smart enough to get rid of information about the graph of old, but I was wrong... so to make a long story short, I put

    cursore_mappa. Clear();

    before the code that will repaint it and everything worked perfectly!

    Thanks anyway

  • Disable the creationComplete function after execution OR specific image

    Hey,.

    In my Edge file animate, I have a function defined on creationComplete, so that when a scroll is detected, it climbs to a certain range.

    It works fine but I need to disable this feature, when it reaches that frame, or once the function has been completed, so that the animation jumps in time, whenever a scroll is detected.

    This is the function that I have:

    // insert code to be run when the symbol is created here
    Symbol.bindSymbolAction(compId, symbolName, "creationComplete", function(sym, e) {
    
    
             function MouseWheelHandler(e) {
    
    
    
    
             sym.play(14383);
    
    
             }
             var ele= sym.getSymbolElement()[0];
    
    
             if (ele.addEventListener) {
    
    
    
    
              // IE9, Chrome, Safari, Opera
              ele.addEventListener("mousewheel", MouseWheelHandler, false);
              // Firefox
              ele.addEventListener("DOMMouseScroll", MouseWheelHandler, false);
             }
             // IE 6/7/8
             else ele.attachEvent("onmousewheel", MouseWheelHandler);
    
    

    Any help would be greatly appreciated.

    See you soon,.

    Sam

    and if it does not do something like this:

    Symbol.bindSymbolAction (compId, NomSymbole, "creationComplete", function (sym, e) {})

    runOnce var = true;

    function MouseWheelHandler (e) {}

    If (runOnce) {}

    SYM. Play (14383);

    runOnce = false;

    }

    }

    ELE = sym.getSymbolElement () var [0];

    If {(ele.addEventListener)

    IE9, Chrome, Safari, Opera

    ele.addEventListener ('mousewheel', MouseWheelHandler, false);

    Firefox

    ele.addEventListener ("DOMMouseScroll", MouseWheelHandler, false);

    }

    IT IS IE 6/7/8

    else ele.attachEvent ("onmousewheel", MouseWheelHandler);

  • The volume of auto play with a xml playlist?

    Hi all

    I have a problem that I struggled with for a few weeks now and I can't find the info that I need on this subject.
    On my Web page, I have a xml playlist that starts playing automatic songs after charge.
    My problem is that I can't change the volume in the drive.

    What I want is to adjust the volume slider to play songs with 50% volume for volume example and not 100% as they do now.

    Hope someone can help me with what I could not find any info about to do.

    Here is the code for my mp3 player:

    Stop();
    songs of the var: Array = new Array();
    var curtrack:Number = 0;
    var playingsong:Sound = new Sound();

    loadSongs();
    loadplaylistbox();
    loadSong (curtrack);
    If (_root.autostart == "false") {}
    TogglePlayPause();
    }

    function loadSongs() {}
    for (songIndex = 0; songIndex < _root.playlistXml.childNodes [0] Sublst.ChildNodes(1).ChildNodes(0) [0].childNodes.length; songIndex ++) {}
    var songdata:Object = new Object();
    for (songNode = 0; songNode < _root.playlistXml.childNodes [0] Sublst.ChildNodes(1).ChildNodes(0) [0] Sublst.ChildNodes(1).ChildNodes(0) [songIndex].childNodes.l its; songNode ++) {}
    Switch (_root.playlistXml.childNodes [0] Sublst.ChildNodes(1).ChildNodes(0) [0] Sublst.ChildNodes(1).ChildNodes(0) [songIndex] Sublst.ChildNodes(1).ChildNodes(0) [son gNode] .nodeName) {}
    case 'creator ':
    SONGDATA. Artist = _root.playlistXml.childNodes [0] Sublst.ChildNodes(1).ChildNodes(0) [0] Sublst.ChildNodes(1).ChildNodes(0) [songIndex] Sublst.ChildNodes(1).ChildNodes(0) [songNode]. childNodes [0] .nodeValue;
    break;
    case 'title ':
    SONGDATA.title = _root.playlistXml.childNodes [0] Sublst.ChildNodes(1).ChildNodes(0) [0] Sublst.ChildNodes(1).ChildNodes(0) [songIndex] Sublst.ChildNodes(1).ChildNodes(0) [songNode]. childNodes [0] .nodeValue;
    break;
    case 'place ':
    SONGDATA. Location = _root.playlistXml.childNodes [0] Sublst.ChildNodes(1).ChildNodes(0) [0] Sublst.ChildNodes(1).ChildNodes(0) [songIndex] Sublst.ChildNodes(1).ChildNodes(0) [songNode]. childNodes [0] .nodeValue;
    break;
    }
    }
    Songs [songIndex] = songdata;
    }
    }
    function loadSong (track) {}
    playingsong = new Sound();
    playingsong.loadSound (songs [track] .location, true);
    playingsong. Start (0);
    updatevolume();
    playingsong.onSoundComplete = function() {}
    loadSong ((curtrack+1) %(songs.length));)
    };
    playpause.gotoAndStop (1);
    playpause.playpausebutton.onPress = function() {}
    TogglePlayPause();
    };
    songdisplay. "Text = songs [track] .artist + '-' + songs [track] .title;
    eval ("playlistbox.playlistitemcontainer.playlistitem" + curtrack + ".playlistitemhighlight"). _alpha = 100;
    eval("playlistbox.playlistitemcontainer.playlistitem"+track+".playlistitemhighlight")._Al pha = 1;
    curtrack = track;
    }
    function loadplaylistbox() {}
    for (songIndex = 0; songIndex < _root.playlistXml.childNodes [0] Sublst.ChildNodes(1).ChildNodes(0) [0].childNodes.length; songIndex ++) {}
    playlistbox.playlistitemcontainer.attachMovie ("playlistitem", "playlistitem" + songIndex, playlistbox.playlistitemcontainer.getNextHighestDepth (), {_x:0, _y:15 * songIndex});
    eval ("playlistbox.playlistitemcontainer.playlistitem" + songIndex + ".playlistitemtext"). "Text = .artist songs [songIndex] + '-' + songs [songIndex] .title;
    eval("playlistbox.playlistitemcontainer.playlistitem"+songIndex).songindex = songIndex;
    }
    }
    playpause.playpausebutton.onPress = function() {}
    TogglePlayPause();
    };
    function toggleplaypause() {}
    If (playpause._currentframe == 1) {}
    playpause.gotoAndStop (2);
    PLAYPAUSE.curpos = playingsong.position;
    playingsong. Stop();
    } else {}
    playpause.gotoAndStop (1);
    playingsong. Start (playpause.curpos/1000, 0);
    }
    playpause.playpausebutton.onPress = function() {}
    TogglePlayPause();
    };
    }
    onEnterFrame = function () {}
    If {(songdisplay.movingright)
    songdisplay. HScroll-= 10;
    If (songdisplay.hscroll < = 0) {}
    songdisplay.movingright = false;
    }
    } else {}
    songdisplay. HScroll += 10;
    If (songdisplay.hscroll > = songdisplay.maxhscroll) {}
    songdisplay.movingright = true;
    }
    }
    If (! draggingslider) {}
    ProgressSlider._x = (playingsong.position/playingsong.duration)*182-89;
    If (progressslider._x == 0) {}
    ProgressSlider._x = 61;
    //}
    }
    If {(draggingplaylistscroller)
    updateplaylistscroll();
    }
    If {(draggingvolmeslider)
    updatevolume();
    }
    tempsongtime = "";
    If (Math.floor(playingsong.position/60000) == 0) {}
    tempsongtime += '0 ';
    } else {}
    tempsongtime += Math.floor(playingsong.position/60000);
    }
    tempsongtime += ":";
    If (Math.floor((playingsong.position/1000)%60) < 10) {}
    tempsongtime += '0 ';
    }
    tempsongtime += Math.floor((playingsong.position/1000)%60);
    tempsongtime += ' / ';.
    If (Math.floor(playingsong.duration/60000) == 0) {}
    tempsongtime += '0 ';
    } else {}
    tempsongtime += Math.floor(playingsong.duration/60000);
    }
    tempsongtime += ":";
    If (Math.floor((playingsong.duration/1000)%60) < 10) {}
    tempsongtime += '0 ';
    }
    tempsongtime += Math.floor((playingsong.duration/1000)%60);
    songtime. Text = tempsongtime;

    };
    progressslider.onPress = function() {}
    draggingslider = true;
    progressslider.startDrag (true,-89, progressslider._y, 93, progressslider._y);
    };
    progressslider.onRelease = progressslider.onReleaseOutside = function () {}
    progressslider.stopDrag ();
    playingsong. Start (((progressslider._x+89)/182) * playingsong.duration / 1000, 0);
    playpause.gotoAndStop (1);
    playpause.playpausebutton.onPress = function() {}
    TogglePlayPause();
    };
    draggingslider = false;
    };
    progressbar.onPress = function() {}
    playingsong. Start (((this._xmouse+2)/182) * playingsong.duration / 1000, 0);
    playpause.gotoAndStop (1);
    playpause.playpausebutton.onPress = function() {}
    TogglePlayPause();
    };
    };
    volumebar.onPress = function() {}
    draggingvolmeslider = true;
    volumebar.volumeslider.startDrag (true, 0, volumebar.volumeslider._y, 47, volumebar.volumeslider._y);
    };
    volumebar.onRelease = volumebar.onReleaseOutside = function () {}
    draggingvolmeslider = false;
    volumebar.volumeslider.stopDrag ();
    updatevolume();
    };
    function updatevolume() {}
    playingsong.setVolume((volumebar.volumeslider._x/47)*100);
    }
    previoussong.onPress = function() {}
    loadprevioussong();
    };
    function loadprevioussong() {}
    var loadtrack = (curtrack-1)%(songs.length);
    If (loadtrack < 0) {}
    loadtrack = songs.length - 1;
    }
    loadSong (loadtrack);
    }
    nextsong.onPress = function() {}
    loadnextsong();
    };
    function loadnextsong() {}
    var loadtrack = (curtrack+1)%(songs.length);
    loadSong (loadtrack);
    }
    playlistscroller.onPress = function() {}
    draggingplaylistscroller = true;
    playlistscroller.startDrag (true, 452,-59-80, 452);
    };
    playlistscroller.onRelease = playlistscroller.onReleaseOutside = function () {}
    draggingplaylistscroller = false;
    playlistscroller.stopDrag ();
    };
    playlistscrollup.onPress = function() {}
    playlistscroller._y = Math.max (-80, playlistscroller._y - 0, 5);
    updateplaylistscroll();
    };
    playlistscrolldown.onPress = function() {}
    playlistscroller._y = Math.min (-59, playlistscroller._y + 0.5);
    updateplaylistscroll();
    };
    var mouseListener:Object = new Object();
    mouseListener.onMouseWheel = {function (delta:Number)}
    playlistscroller._y = Math.min (-59, Math.max (-80, playlistscroller._y - delta));
    updateplaylistscroll();
    };
    Mouse.addListener (mouseListener);
    playlistscrollbar.onPress = function() {}
    playlistscroller._y = Math.min (-59, Math.max (-80, _ymouse));
    updateplaylistscroll();
    };
    function updateplaylistscroll() {}
    playlistbox.playlistitemcontainer._y =-((playlistscroller._y + 80)/21)*(playlistbox.playlistitemcontainer._height-69);)
    }

    use:

    Stop();
    songs of the var: Array = new Array();
    var curtrack:Number = 0;
    var playingsong:Sound = new Sound();

    VolumeBar.volumeSlider._x = 29;

    updatevolume();

    loadSongs();
    loadplaylistbox();
    loadSong (curtrack);
    If (_root.autostart == "false") {}
    TogglePlayPause();
    }

    function loadSongs() {}
    for (songIndex = 0; songIndex)<_root.playlistXml.childNodes[0].childNodes[0].childNodes.le ngth;="" songindex++)="">
    var songdata:Object = new Object();
    for (songNode = 0; songNode)<_root.playlistXml.childNodes[0].childNodes[0].childNodes[son gindex].childnodes.length;="" songnode++)="">
    switch (_root.playlistXml.childNodes [0] Sublst.ChildNodes(1).ChildNodes(0) [0] Sublst.ChildNodes(1).ChildNodes(0) [songI ndex] Sublst.ChildNodes(1).ChildNodes(0) [songNode] .nodeName) {}
    case 'creator ':
    SONGDATA. Artist = _root.playlistXml.childNodes [0] Sublst.ChildNodes(1).ChildNodes(0) [0] Sublst.ChildNodes(1).ChildNodes(0) [songIndex] hildNodes [songNode] Sublst.ChildNodes(1).ChildNodes(0) .c [0] .nodeValue;
    break;
    case 'title ':
    SONGDATA.title = _root.playlistXml.childNodes [0] Sublst.ChildNodes(1).ChildNodes(0) [0] Sublst.ChildNodes(1).ChildNodes(0) [songIndex] hildNodes [songNode] Sublst.ChildNodes(1).ChildNodes(0) .c [0] .nodeValue;
    break;
    case 'place ':


    SONGDATA. Location = _root.playlistXml.childNodes [0] Sublst.ChildNodes(1).ChildNodes(0) [0] Sublst.ChildNodes(1).ChildNodes(0) [songIndex] hildNodes [songNode] Sublst.ChildNodes(1).ChildNodes(0) .c [0] .nodeValue;
    break;
    }
    }
    Songs [songIndex] = songdata;
    }
    }
    function loadSong (track) {}
    playingsong = new Sound();
    playingsong.loadSound (songs [track] .location, true);
    playingsong. Start (0);
    updatevolume();
    playingsong.onSoundComplete = function() {}
    loadSong ((curtrack+1) %(songs.length));)
    };
    playpause.gotoAndStop (1);
    playpause.playpausebutton.onPress = function() {}
    TogglePlayPause();
    };
    songdisplay. "Text = songs [track] .artist + '-' + songs [track] .title;
    eval ("playlistbox.playlistitemcontainer.playlistitem" + curtrack +". Play listitemhighlight') ._alpha = 100;
    eval("playlistbox.playlistitemcontainer.playlistitem"+track+".playlis_titemhighlight")._alpha = 1;
    curtrack = track;
    }
    function loadplaylistbox() {}
    for (songIndex = 0; songIndex)<_root.playlistXml.childNodes[0].childNodes[0].childNodes.le ngth;="" songindex++)="">
    playlistbox.playlistitemcontainer.attachMovie ("playlistitem", "playlistitem" + songIndex, playlistbox.playlistitemcontainer.getNextHighestDepth (), {_x:0, _y:15 * songIndex});
    eval ("playlistbox.playlistitemcontainer.playlistitem" + songIndex +". PLA ylistitemtext"). "Text = .artist songs [songIndex] + '-' + songs [songIndex] .title;
    index of eval ("playlistbox.playlistitemcontainer.playlistitem" + songIndex). Song = songIndex;
    }
    }
    playpause.playpausebutton.onPress = function() {}
    TogglePlayPause();
    };
    function toggleplaypause() {}
    If (playpause._currentframe == 1) {}
    playpause.gotoAndStop (2);
    PLAYPAUSE.curpos = playingsong.position;
    playingsong. Stop();
    } else {}
    playpause.gotoAndStop (1);
    playingsong. Start (playpause.curpos/1000, 0);
    }
    playpause.playpausebutton.onPress = function() {}
    TogglePlayPause();
    };
    }
    onEnterFrame = function () {}
    If {(songdisplay.movingright)
    songdisplay. HScroll-= 10;
    If (songdisplay.hscroll<=0)>
    songdisplay.movingright = false;
    }
    } else {}
    songdisplay. HScroll += 10;
    If {(songdisplay.hscroll>=songdisplay.maxhscroll)}
    songdisplay.movingright = true;
    }
    }
    If (! draggingslider) {}
    ProgressSlider._x = (playingsong.position/playingsong.duration)*182-89;
    If (progressslider._x == 0) {}
    ProgressSlider._x = 61;
    //}
    }
    If {(draggingplaylistscroller)
    updateplaylistscroll();
    }
    If {(draggingvolmeslider)
    updatevolume();
    }
    tempsongtime = "";
    If (Math.floor(playingsong.position/60000) == 0) {}
    tempsongtime += '0 ';
    } else {}
    tempsongtime += Math.floor(playingsong.position/60000);
    }
    tempsongtime += ":";
    If (Math.floor((playingsong.position/1000)%60)<10)>
    tempsongtime += '0 ';
    }
    tempsongtime += Math.floor((playingsong.position/1000)%60);
    tempsongtime += ' / ';.
    If (Math.floor(playingsong.duration/60000) == 0) {}
    tempsongtime += '0 ';
    } else {}
    tempsongtime += Math.floor(playingsong.duration/60000);
    }
    tempsongtime += ":";
    If (Math.floor((playingsong.duration/1000)%60)<10)>
    tempsongtime += '0 ';
    }
    tempsongtime += Math.floor((playingsong.duration/1000)%60);
    songtime. Text = tempsongtime;

    };
    progressslider.onPress = function() {}
    draggingslider = true;
    progressslider.startDrag (true,-89, progressslider._y, 93, progressslider._y);
    };
    progressslider.onRelease = progressslider.onReleaseOutside = function () {}
    progressslider.stopDrag ();
    playingsong. Start (((progressslider._x+89)/182) * playingsong.duration / 1000, 0);
    playpause.gotoAndStop (1);
    playpause.playpausebutton.onPress = function() {}
    TogglePlayPause();
    };
    draggingslider = false;
    };
    progressbar.onPress = function() {}
    playingsong. Start (((this._xmouse+2)/182) * playingsong.duration / 1000, 0);
    playpause.gotoAndStop (1);
    playpause.playpausebutton.onPress = function() {}
    TogglePlayPause();
    };
    };
    volumebar.onPress = function() {}
    draggingvolmeslider = true;
    volumebar.volumeslider.startDrag (true, 0, volumebar.volumeslider._y, 47, volumebar.volumeslider._y);
    };
    volumebar.onRelease = volumebar.onReleaseOutside = function () {}
    draggingvolmeslider = false;
    volumebar.volumeslider.stopDrag ();
    updatevolume();
    };
    function updatevolume() {}

    trace ((volumebar.volumeslider._x / 47) * 100 + ": volumeSlider _x ="+ volumebar.volumeslider._x ") <- no="" longer="">

    playingsong.setVolume((volumebar.volumeslider._x/47)*100);
    }
    previoussong.onPress = function() {}
    loadprevioussong();
    };
    function loadprevioussong() {}
    var loadtrack = (curtrack-1)%(songs.length);
    If (loadtrack<0)>
    loadtrack = songs.length - 1;
    }
    loadSong (loadtrack);
    }
    nextsong.onPress = function() {}
    loadnextsong();
    };
    function loadnextsong() {}
    var loadtrack = (curtrack+1)%(songs.length);
    loadSong (loadtrack);
    }
    playlistscroller.onPress = function() {}
    draggingplaylistscroller = true;
    playlistscroller.startDrag (true, 452,-59-80, 452);
    };
    playlistscroller.onRelease = playlistscroller.onReleaseOutside = function () {}
    draggingplaylistscroller = false;
    playlistscroller.stopDrag ();
    };
    playlistscrollup.onPress = function() {}
    playlistscroller._y = Math.max (-80, playlistscroller._y - 0, 5);
    updateplaylistscroll();
    };
    playlistscrolldown.onPress = function() {}
    playlistscroller._y = Math.min (-59, playlistscroller._y + 0.5);
    updateplaylistscroll();
    };
    var mouseListener:Object = new Object();
    mouseListener.onMouseWheel = {function (delta:Number)}
    playlistscroller._y = Math.min (-59, Math.max (-80, playlistscroller._y - delta));
    updateplaylistscroll();
    };
    Mouse.addListener (mouseListener);
    playlistscrollbar.onPress = function() {}
    playlistscroller._y = Math.min (-59, Math.max (-80, _ymouse));
    updateplaylistscroll();
    };
    function updateplaylistscroll() {}
    playlistbox.playlistitemcontainer._y =-((playlistscroller._y + 80)/21)*(playlistbox.playlistitemcontainer._height-69);)
    }

  • Gallery images will not load when I transfer the files on the server

    The gallery works fine when files on my computer, but when I download files on my server does not load images.

    I use the xml file to load the images. Here is the code of the Gallery:

    function loadPlayList(url:String) {
              delete myMO.onMouseWheel;
              delete myKO.onKeyDown;
              for (var i in infostruc) {
                        root["_ref"+i] = root["_bmd"+i]=false;
              }
              loadedAll = false;
              infostruc = [];
              for (var i in root) {
                        if ((root[i]._name.substr(0, 3) == "art" || root[i]._name.substr(0, 10) == "reflection") && (parseInt(root[i]._name.split("art")[1]) || parseInt(root[i]._name.split("reflection")[1]))) {
                                  root[i].swapDepths(root.getNextHighestDepth());
                                  root[i].removeMovieClip();
                        }
              }
              current = 1;
              root.createEmptyMovieClip("loader", root.getNextHighestDepth());
              xmlData.load(url);
    }
    function init(Void):Void {
              myMO = {};
              myKO = {};
              Mouse.addListener(myMO);
              Key.addListener(myKO);
              for (var i in infostruc) {
                        loader.clear();
                        loader.gradient_mc.removeMovieClip();
                        loader.attachMovie("default", "art", 1);
                        root["_shelveCDWidth"+i] = shelveCDWidth;
                        root["_shelveCDHeight"+i] = shelveCDHeight;
                        root["_frontCDWidth"+i] = frontCDWidth;
                        root["_frontCDHeight"+i] = frontCDHeight;
                        this["_bmd"+i] = new BitmapData(loader._width, loader._height);
                        this["_ref"+i] = new BitmapData(loader._width, loader._height);
                        this["_bmd"+i].draw(loader);
                        var mc:MovieClip = loader.createEmptyMovieClip("gradient_mc", loader.getNextHighestDepth());
                        matrix = new Matrix();
                        matrix.createGradientBox(loader._width, loader._height, reflectionRotation/180*Math.PI, 0, 0);
                        mc.beginGradientFill(reflectionFillType, reflectionColors, reflectionAlphas, reflectionRatios, matrix, reflectionSpreadMethod, reflectionInterpolationMethod, reflectionFocalPointRatio);
                        mc.moveTo(0, 0);
                        mc.lineTo(0, loader._height);
                        mc.lineTo(loader._width, loader._height);
                        mc.lineTo(loader._width, 0);
                        mc.lineTo(0, 0);
                        mc.endFill();
                        loader.art._alpha = reflectionAlpha;
                        loader.beginFill(reflectionBackgroundColour);
                        loader.moveTo(0, 0);
                        loader.lineTo(0, loader._height);
                        loader.lineTo(loader._width, loader._height);
                        loader.lineTo(loader._width, 0);
                        loader.lineTo(0, 0);
                        loader.endFill();
                        this["_ref"+i].draw(loader);
              }
              for (var i:Number = count=0; count<stageWidth-(centerDistance*3); count += shelveCDSpacing, i++) {
                        var cArt:MovieClip = this.createEmptyMovieClip("art"+this.getNextHighestDepth(), this.getNextHighestDepth());
                        var rArt:MovieClip = this.createEmptyMovieClip("reflection"+(this.getNextHighestDepth()-1), this.getNextHighestDepth());
                        rArt.id = cArt.id=rArt.cid=cArt.cid=Number(i)+1;
                        rArt._x = cArt._x=stageWidth;
                        cArt.DistortImage(this["_bmd"+cArt.id]);
                        controlTheObject(cArt);
                        rArt.DistortImage(this["_ref"+cArt.id]);
                        controlTheObject(rArt);
                        var tmpFilter:BlurFilter = new BlurFilter(reflectionBlurX, reflectionBlurY, reflectionQuality);
                        rArt.filterArray = cArt.filterArray=[];
                        rArt.filterArray[0] = tmpFilter;
                        rArt.filters = rArt.filterArray;
                        tmask = mask.duplicateMovieClip("_mask"+cArt.id, this.getNextHighestDepth(), {_x:mask._x, _y:mask._y});
                        rmask = mask.duplicateMovieClip("_rmask"+cArt.id, this.getNextHighestDepth(), {_x:mask._x, _y:mask._y});
                        cArt.setMask(tmask);
                        rArt.setMask(rmask);
                        rArt._visible = cArt._visible=false;
              }
              myMO.onMouseWheel = function(delta:Number):Void  {
                        if (delta>0) {
                                  next();
                        } else if (delta<=0) {
                                  previous();
                        }
              };
              myKO.onKeyDown = function():Void  {
                        if (Selection.getFocus() != "_level0.goto") {
                                  if (Key.isDown(Key.RIGHT)) {
                                            next();
                                  } else if (Key.isDown(Key.LEFT)) {
                                            previous();
                                  }
                        }
              };
              scrollBar.scroller.onPress = function():Void  {
                        dist = this._parent._xmouse-this._x;
                        this.onMouseMove = function():Void  {
                                  tmp = 1+Math.ceil(((this._parent._xmouse-dist)-scrollBarStart)/(scrollBar._width-scrollBarStop)*(infostruc.length-1));
                                  if (tmp>infostruc.length) {
                                            tmp = infostruc.length;
                                  }
                                  if (tmp<1) {
                                            tmp = 1;
                                  }
                                  current = tmp;
                                  updateInfo();
                        };
              };
              scrollBar.scroller.onRelease = scrollBar.scroller.onReleaseOutside=function ():Void {
                        stopDrag();
                        delete this.onMouseMove;
              };
              scrollBar.left.onPress = function():Void  {
                        previous();
                        shifter = setInterval(previous, scrollerDelay);
              };
              scrollBar.right.onPress = function():Void  {
                        next();
                        shifter = setInterval(next, scrollerDelay);
              };
              scrollBar.onMouseUp = function():Void  {
                        clearInterval(shifter);
              };
              scrollBar.onMouseDown = function():Void  {
                        if (this.hitTest(_xmouse, _ymouse, true) && !this.left.hitTest(_xmouse, _ymouse, true) && !this.right.hitTest(_xmouse, _ymouse, true)) {
                                  if (this._xmouse<this.scroller._x) {
                                            previous();
                                            shifter = setInterval(previous, clickDelay);
                                  }
                                  if (this._xmouse>this.scroller._x+this.scroller._width) {
                                            next();
                                            shifter = setInterval(next, clickDelay);
                                  }
                        }
              };
              goto.restrict = "0-9";
              goto.onKillFocus = function():Void  {
                        if (!isNaN(Number(this.text)+1)) {
                                  if (this.text>infostruc.length) {
                                            this.text = infostruc.length;
                                  }
                                  if (this.text<1) {
                                            this.text = 1;
                                  }
                                  current = Number(this.text);
                        } else {
                                  this.text = current;
                        }
                        updateInfo();
              };
              fscreen.onPress = function():Void  {
                        fscommand("fullscreen", !(this._currentframe-1));
                        this.gotoAndStop(!(this._currentframe-1)+1);
              };
              slideShow.onPress = function():Void  {
                        if (this._currentframe == 1) {
                                  sliderShow = setInterval(function ():Void {
                                            if (current<infostruc.length) {
                                                      next();
                                            } else if (slideshowLooping) {
                                                      current = 0;
                                                      next();
                                            }
                                  }, slideshowSpeed);
                        } else {
                                  clearInterval(sliderShow);
                        }
                        this.gotoAndStop(!(this._currentframe-1)+1);
              };
              distance = Number(i);
              mask.removeMovieClip();
              fscreen.swapDepths(1102);
              slideShow.swapDepths(1103);
              scrollBar.swapDepths(1101);
              i2.swapDepths(1105);
              i1.swapDepths(1106);
              loader.removeMovieClip();
              loadNext();
              updateInfo();
    }
    function concat(m1, m2):Object {
              var mat:Object = {};
              mat.a = m1.c*m2.b;
              mat.b = m1.d*m2.b;
              mat.c = m1.a*m2.c;
              mat.d = m1.b*m2.c;
              mat.tx = m1.a*m2.tx+m1.c*m2.ty+m1.tx;
              mat.ty = m1.b*m2.tx+m1.d*m2.ty+m1.ty;
              return mat;
    }
    function updateInfo():Void {
              goto.text = current;
              info = infostruc[current-1].info;
              author = infostruc[current-1].auth;
              album = infostruc[current-1].album;
              displayAlternArt(root["_bmd"+(current-1)], artDisplay._width, artDisplay._height);
              scrollBar.scroller._x = scrollBarStart+((current-1)/(infostruc.length-1)*(scrollBar._width-scrollBarStop));
    }
    function brightness(_prop:String, _old:Number, _new:Number, target:MovieClip):Void {
              var brightness_array:Array = [1, 0, 0, 0, _new, 0, 1, 0, 0, _new, 0, 0, 1, 0, _new, 0, 0, 0, 1, 0];
              target.filterArray[1] = new ColorMatrixFilter(brightness_array);
              target.filters = target.filterArray;
    }
    function controlTheObject(mc):Void {
              if (mc._name.indexOf("reflection") == -1) {
                        mc.onPress = function():Void  {
                                  if ((getTimer()-this.pressTime<=doubleClickRegister && this.pressTime) || !doubleClickURL) {
                                            if (infostruc[this.cid].urlToGet) {
                                                      getURL(infostruc[this.cid].urlToGet, "_"+infostruc[this.cid].urlAction);
                                            }
                                  }
                                  this.pressTime = getTimer();
                                  current = this.cid+1;
                                  updateInfo();
                        };
              }
              mc.watch("_brightness", brightness, mc);
              mc.onEnterFrame = function():Void  {
                        this._visible = true;
                        if (infostruc[this.cid].loaded && !this.loadedImage) {
                                  this.allowUpdate = true;
                                  this.DistortImage(this._name.indexOf("reflection")>-1 ? this._parent["_ref"+this.cid] : this._parent["_bmd"+this.cid]);
                                  this.setTransform(this.px1, this.py1, this.px2, this.py2, this.px3, this.py3, this.px4, this.py4);
                                  this.loadedImage = true;
                        }
                        if (Math.round(Math.abs(this._x-this.x))>=1 || this.allowUpdate) {
                                  if (this._name.indexOf("reflection") == -1) {
                                            this._y = centerY+((shelveCDHeight/2)-(this._parent["_shelveCDHeight"+this.cid]/2));
                                            if (this._x>=centerX+centerDistance) {
                                                      this.swapDepths(-this._x);
                                                      this.setSides(-(this._parent["_shelveCDWidth"+this.cid]/2), -(this._parent["_shelveCDHeight"+this.cid]/2)+((Math.sin(angle*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])), this._parent["_shelveCDWidth"+this.cid]/2, -(this._parent["_shelveCDHeight"+this.cid]/2), this._parent["_shelveCDWidth"+this.cid]/2, this._parent["_shelveCDHeight"+this.cid]/2, -(this._parent["_shelveCDWidth"+this.cid]/2), (this._parent["_shelveCDHeight"+this.cid]/2)-((Math.sin(angle*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])));
                                            } else if (this._x<=centerX-centerDistance) {
                                                      this.swapDepths(this._x);
                                                      this.setSides(-(this._parent["_shelveCDWidth"+this.cid]/2), -(this._parent["_shelveCDHeight"+this.cid]/2), this._parent["_shelveCDWidth"+this.cid]/2, -(this._parent["_shelveCDHeight"+this.cid]/2)+(Math.sin(angle*Math.PI/180)*this._parent["_frontCDWidth"+this.cid]), this._parent["_shelveCDWidth"+this.cid]/2, (this._parent["_shelveCDHeight"+this.cid]/2)-(Math.sin(angle*Math.PI/180)*this._parent["_frontCDWidth"+this.cid]), -(this._parent["_shelveCDWidth"+this.cid]/2), this._parent["_shelveCDHeight"+this.cid]/2);
                                            } else if (this.cid == current-1 || this.cid == current || this.cid == current-2) {
                                                      if (this._x>centerX-centerDistance && Math.floor(this._x)<centerX && angle-((this._x-(centerX-centerDistance))/centerDistance*angle)>autoJump) {
                                                                this.swapDepths(1002);
                                                                var sum:Number = this._parent["_shelveCDWidth"+this.cid]+((this._x-(centerX-centerDistance))/centerDistance*(this._parent["_frontCDWidth"+this.cid]-this._parent["_shelveCDWidth"+this.cid]));
                                                                var sum2:Number = angle-((this._x-(centerX-centerDistance))/centerDistance*angle);
                                                                var sum3:Number = this._parent["_shelveCDHeight"+this.cid]+((this._x-(centerX-centerDistance))/centerDistance*(this._parent["_frontCDHeight"+this.cid]-this._parent["_shelveCDHeight"+this.cid]));
                                                                this.setSides(-(sum/2), -(sum3/2), sum/2, -(sum3/2)+((Math.sin(sum2*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])), sum/2, (sum3/2)-((Math.sin(sum2*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])), -(sum/2), sum3/2);
                                                      } else if (this._x<centerX+centerDistance && Math.ceil(this._x)>centerX && angle-(((centerX+centerDistance)-this._x)/centerDistance*angle)>autoJump) {
                                                                this.swapDepths(1003);
                                                                var sum:Number = this._parent["_shelveCDWidth"+this.cid]+(((centerX+centerDistance)-this._x)/centerDistance*(this._parent["_frontCDWidth"+this.cid]-this._parent["_shelveCDWidth"+this.cid]));
                                                                var sum2:Number = angle-(((centerX+centerDistance)-this._x)/centerDistance*angle);
                                                                var sum3:Number = this._parent["_shelveCDHeight"+this.cid]+(((centerX+centerDistance)-this._x)/centerDistance*(this._parent["_frontCDHeight"+this.cid]-this._parent["_shelveCDHeight"+this.cid]));
                                                                this.setSides(-(sum/2), -(sum3/2)+((Math.sin(sum2*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])), sum/2, -(sum3/2), sum/2, sum3/2, -(sum/2), (sum3/2)-((Math.sin(sum2*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])));
                                                      } else {
                                                                this.swapDepths(1004);
                                                                this.setSides(-(this._parent["_frontCDWidth"+this.cid]/2), -(this._parent["_frontCDHeight"+this.cid]/2), this._parent["_frontCDWidth"+this.cid]/2, -(this._parent["_frontCDHeight"+this.cid]/2), this._parent["_frontCDWidth"+this.cid]/2, this._parent["_frontCDHeight"+this.cid]/2, -(this._parent["_frontCDWidth"+this.cid]/2), this._parent["_frontCDHeight"+this.cid]/2);
                                                      }
                                            } else {
                                                      if (this._x>centerX-centerDistance && Math.floor(this._x)<centerX && angle-((this._x-(centerX-centerDistance))/centerDistance*angle)>autoJump) {
                                                                this.swapDepths(1002);
                                                                var sum2:Number = angle-((this._x-(centerX-centerDistance))/centerDistance*angle);
                                                                this.setSides(-(this._parent["_shelveCDWidth"+this.cid]/2), -(this._parent["_shelveCDHeight"+this.cid]/2), this._parent["_shelveCDWidth"+this.cid]/2, -(this._parent["_shelveCDHeight"+this.cid]/2)+((Math.sin(sum2*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])), this._parent["_shelveCDWidth"+this.cid]/2, (this._parent["_shelveCDHeight"+this.cid]/2)-((Math.sin(sum2*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])), -(this._parent["_shelveCDWidth"+this.cid]/2), this._parent["_shelveCDHeight"+this.cid]/2);
                                                      } else if (this._x<centerX+centerDistance && Math.ceil(this._x)>centerX && angle-(((centerX+centerDistance)-this._x)/centerDistance*angle)>autoJump) {
                                                                this.swapDepths(1003);
                                                                var sum2:Number = angle-(((centerX+centerDistance)-this._x)/centerDistance*angle);
                                                                this.setSides(-(this._parent["_shelveCDWidth"+this.cid]/2), -(this._parent["_shelveCDHeight"+this.cid]/2)+((Math.sin(sum2*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])), this._parent["_shelveCDWidth"+this.cid]/2, -(this._parent["_shelveCDHeight"+this.cid]/2), this._parent["_shelveCDWidth"+this.cid]/2, this._parent["_shelveCDHeight"+this.cid]/2, -(this._parent["_shelveCDWidth"+this.cid]/2), (this._parent["_shelveCDHeight"+this.cid]/2)-((Math.sin(sum2*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])));
                                                      }
                                            }
                                  } else {
                                            this._yscale = -100;
                                            this._y = centerY+((shelveCDHeight/2)-(this._parent["_shelveCDHeight"+this.cid]/2))+this._parent["_shelveCDHeight"+this.cid]+reflectionSpace;
                                            if (this._x>=centerX+centerDistance) {
                                                      this.swapDepths(-this._x-333);
                                                      this.setSides(-(this._parent["_shelveCDWidth"+this.cid]/2), -(this._parent["_shelveCDHeight"+this.cid]/2)+(Math.sin(angle*Math.PI/180)*this._parent["_frontCDWidth"+this.cid]), -(this._parent["_shelveCDWidth"+this.cid]/2)+this._parent["_shelveCDWidth"+this.cid], -(this._parent["_shelveCDHeight"+this.cid]/2), -(this._parent["_shelveCDWidth"+this.cid]/2)+this._parent["_shelveCDWidth"+this.cid], this._parent["_shelveCDHeight"+this.cid]/2, -(this._parent["_shelveCDWidth"+this.cid]/2), (this._parent["_shelveCDHeight"+this.cid]/2)+((Math.sin(angle*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])));
                                            } else if (this._x<=centerX-centerDistance) {
                                                      this.swapDepths(this._x-333);
                                                      this.setSides(-(this._parent["_shelveCDWidth"+this.cid]/2), -(this._parent["_shelveCDHeight"+this.cid]/2), -(this._parent["_shelveCDWidth"+this.cid]/2)+this._parent["_shelveCDWidth"+this.cid], -(this._parent["_shelveCDHeight"+this.cid]/2)+((Math.sin(angle*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])), -(this._parent["_shelveCDWidth"+this.cid]/2)+this._parent["_shelveCDWidth"+this.cid], (this._parent["_shelveCDHeight"+this.cid]/2)+(Math.sin(angle*Math.PI/180)*this._parent["_frontCDWidth"+this.cid]), -(this._parent["_shelveCDWidth"+this.cid]/2), this._parent["_shelveCDHeight"+this.cid]/2);
                                            } else if (this.cid == current-1 || this.cid == current || this.cid == current-2) {
                                                      if (this._x>centerX-centerDistance && this._x<centerX && !validateOk(this)) {
                                                                this.swapDepths(999);
                                                                var sum:Number = this._parent["_shelveCDWidth"+this.cid]+((this._x-(centerX-centerDistance))/centerDistance*(this._parent["_frontCDWidth"+this.cid]-this._parent["_shelveCDWidth"+this.cid]));
                                                                var sum2:Number = angle-((this._x-(centerX-centerDistance))/centerDistance*angle);
                                                                var sum3:Number = this._parent["_shelveCDHeight"+this.cid]+((shelveCDHeight/2)-(this._parent["_shelveCDHeight"+this.cid]/2))+((this._x-(centerX-centerDistance))/centerDistance*(this._parent["_frontCDHeight"+this.cid]-this._parent["_shelveCDHeight"+this.cid]));
                                                                this._y = centerY+sum3+reflectionSpace;
                                                                this.setSides(-(sum/2), -(sum3/2), sum/2, -(sum3/2)+((Math.sin(sum2*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])), sum/2, (sum3/2)+((Math.sin(sum2*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])), -(sum/2), sum3/2);
                                                      } else if (this._x<centerX+centerDistance && this._x>centerX && !validateOk(this)) {
                                                                this.swapDepths(998);
                                                                var sum:Number = this._parent["_shelveCDWidth"+this.cid]+(((centerX+centerDistance)-this._x)/centerDistance*(this._parent["_frontCDWidth"+this.cid]-this._parent["_shelveCDWidth"+this.cid]));
                                                                var sum2:Number = angle-(((centerX+centerDistance)-this._x)/centerDistance*angle);
                                                                var sum3:Number = this._parent["_shelveCDHeight"+this.cid]+((shelveCDHeight/2)-(this._parent["_shelveCDHeight"+this.cid]/2))+(((centerX+centerDistance)-this._x)/centerDistance*(this._parent["_frontCDHeight"+this.cid]-this._parent["_shelveCDHeight"+this.cid]));
                                                                this.setSides(-(sum/2), -(sum3/2)+((Math.sin(sum2*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])), sum/2, -(sum3/2), sum/2, sum3/2, -(sum/2), (sum3/2)+((Math.sin(sum2*Math.PI/180)*this._parent["_frontCDWidth"+this.cid])));
                                                                this._y = centerY+sum3+reflectionSpace;
                                                      } else if (!validateOk(this)) {
                                                                this.swapDepths(995);
                                                                this._y = centerY+((shelveCDHeight/2)-(this._parent["_shelveCDHeight"+this.cid]/2))+this._parent["_frontCDHeight"+this.cid]+reflectionSpace;
                                                                this.setSides(-(this._parent["_frontCDWidth"+this.cid]/2), -(this._parent["_frontCDHeight"+this.cid]/2), this._parent["_frontCDWidth"+this.cid]/2, -(this._parent["_frontCDHeight"+this.cid]/2), this._parent["_frontCDWidth"+this.cid]/2, this._parent["_frontCDHeight"+this.cid]/2, -(this._parent["_frontCDWidth"+this.cid]/2), this._parent["_frontCDHeight"+this.cid]/2);
                                                      }
                                            }
                                  }
                                  this.allowUpdate = false;
                                  this._x -= Math.min(Math.max((this._x-this.x)/albumEase, -maxSlide), maxSlide);
                                  this.setTransform(this.px1, this.py1, this.px2, this.py2, this.px3, this.py3, this.px4, this.py4);
                                  if (this._x<deleteMinDistance && this._parent["_ref"+(this.cid+distance)]) {
                                            this.cid += distance;
                                            this._x = deleteMaxDistance;
                                            controlTheObject(this);
                                            this._visible = false;
                                            this.loadedImage = infostruc[this.cid].loaded;
                                            this.DistortImage(this._name.indexOf("reflection")>-1 ? this._parent["_ref"+this.cid] : this._parent["_bmd"+this.cid]);
                                  }
                                  if (this._x>deleteMaxDistance && this._parent["_ref"+(this.cid-distance)]) {
                                            this.cid -= distance;
                                            this._x = deleteMinDistance;
                                            controlTheObject(this);
                                            this._visible = false;
                                            this.loadedImage = infostruc[this.cid].loaded;
                                            this.DistortImage(this._name.indexOf("reflection")>-1 ? this._parent["_ref"+this.cid] : this._parent["_bmd"+this.cid]);
                                  }
                        } else if (Math.ceil(Math.abs(this._x-this.x)) == 0) {
                                  this._x = this.x;
                        }
                        if (this.cid+1>current) {
                                  this.x = (centerX+((this.cid+1-current)*shelveCDSpacing))+centerDistance;
                        } else if (this.cid+1<current) {
                                  this.x = (centerX+((this.cid+1-current)*shelveCDSpacing))-centerDistance;
                        } else {
                                  this.x = centerX+((this.cid+1-current)*shelveCDSpacing);
                        }
                        if (fadeType == "brightness") {
                                  if (this._x<fadePointMin+fadeDist) {
                                            this._brightness = -(250-((this._x-fadePointMin)/fadeDist*250));
                                  } else if (this._x>fadePointMax-fadeDist) {
                                            this._brightness = -(250-((fadePointMax-this._x)/fadeDist*250));
                                  } else {
                                            this._brightness = 0;
                                  }
                        } else if (fadeType == "alpha") {
                                  if (this._x<fadePointMin+fadeDist) {
                                            this._alpha = ((this._x-fadePointMin)/fadeDist*100);
                                  } else if (this._x>fadePointMax-fadeDist) {
                                            this._alpha = ((fadePointMax-this._x)/fadeDist*100);
                                  } else {
                                            this._alpha = 100;
                                  }
                        }
              };
    }
    function next():Void {
              if (current<infostruc.length) {
                        current += 1;
              }
              updateInfo();
    }
    function previous():Void {
              if (current>1) {
                        current -= 1;
              }
              updateInfo();
    }
    function displayAlternArt(art, width:Number, height:Number):Void {
              artDisplay.attachBitmap(art, 1);
              artDisplay._width = width;
              artDisplay._height = height;
    }
    function loadNext():Void {
              if (!loadedAll) {
                        var num:Number = current-1;
                        if (infostruc[current-1].loaded) {
                                  var num:Number = current-Math.floor(distance/2)-1>=0 ? current-Math.floor(distance/2)-1 : 0;
                                  while (infostruc[num].loaded && num<infostruc.length) {
                                            num++;
                                  }
                                  if (num>=infostruc.length) {
                                            var num:Number = current-1;
                                            while (infostruc[num].loaded && num>0) {
                                                      num--;
                                            }
                                            if (num<=0) {
                                                      loadedAll = true;
                                            }
                                  }
                        }
                        var newLoad:MovieClip = this.createEmptyMovieClip("artLoad"+num, this.getNextHighestDepth());
                        newLoad.createEmptyMovieClip("art", newLoad.getNextHighestDepth());
                        newLoad._alpha = 0;
                        var mc:Object = {};
                        mc.number = num;
                        var artLoader:MovieClipLoader = new MovieClipLoader();
                        artLoader.addListener(mc);
                        artLoader.loadClip(infostruc[num].httpType+infostruc[num].art, newLoad.art);
                        mc.onLoadError = function() {
                                  infostruc[this.number].loaded = true;
                                  loadNext();
                        };
                        mc.onLoadInit = function(target:MovieClip) {
                                  tw = target._width;
                                  ty = target._height;
                                  if (_CDProportions == "auto") {
                                            if (target._width>target._height) {
                                                      target._width = Math.min(frontCDWidth, target._width);
                                                      target._yscale = target._xscale;
                                            } else {
                                                      target._height = Math.min(frontCDHeight, target._height);
                                                      target._xscale = target._yscale;
                                            }
                                  }
                                  root["_frontCDWidth"+this.number] = Math.min(frontCDWidth, target._width);
                                  root["_frontCDHeight"+this.number] = Math.min(frontCDHeight, target._height);
                                  target._width = tw;
                                  target._height = ty;
                                  root["_bmd"+this.number] = new BitmapData(target._width, target._height);
                                  root["_ref"+this.number] = new BitmapData(target._width, target._height);
                                  root["_bmd"+this.number].draw(target);
                                  var mc:MovieClip = target._parent.createEmptyMovieClip("gradient_mc", target._parent.getNextHighestDepth());
                                  matrix = new Matrix();
                                  matrix.createGradientBox(target._width, target._height, reflectionRotation/180*Math.PI, 0, 0);
                                  mc.beginGradientFill(reflectionFillType, reflectionColors, reflectionAlphas, reflectionRatios, matrix, reflectionSpreadMethod, reflectionInterpolationMethod, reflectionFocalPointRatio);
                                  mc.moveTo(0, 0);
                                  mc.lineTo(0, target._height);
                                  mc.lineTo(target._width, target._height);
                                  mc.lineTo(target._width, 0);
                                  mc.lineTo(0, 0);
                                  mc.endFill();
                                  target._parent.beginFill(reflectionBackgroundColour);
                                  target._parent.moveTo(0, 0);
                                  target._parent.lineTo(0, target._height);
                                  target._parent.lineTo(target._width, target._height);
                                  target._parent.lineTo(target._width, 0);
                                  target._parent.lineTo(0, 0);
                                  target._parent.endFill();
                                  target._alpha = reflectionAlpha;
                                  root["_ref"+this.number].draw(target._parent);
                                  infostruc[this.number].loaded = true;
                                  if (_CDProportions == "auto") {
                                            if (target._width>target._height) {
                                                      target._width = Math.min(shelveCDWidth, target._width);
                                                      target._yscale = target._xscale;
                                            } else {
                                                      target._height = Math.min(shelveCDHeight, target._height);
                                                      target._xscale = target._yscale;
                                            }
                                  }
                                  root["_shelveCDWidth"+this.number] = Math.min(shelveCDWidth, target._width);
                                  root["_shelveCDHeight"+this.number] = Math.min(shelveCDHeight, target._height);
                                  target._parent.removeMovieClip();
                                  updateInfo();
                                  loadNext();
                        };
              }
    }
    xmlData.onLoad = function(success:Boolean):Void  {
              if (success) {
                        for (var i:Number = -1; this.childNodes[0].childNodes[++i]; ) {
                                  var cNode:XMLNode = this.childNodes[0].childNodes[i].childNodes;
                                  var val1:String = cNode[1].childNodes[0].nodeValue ? unescape(cNode[1].childNodes[0].nodeValue) : unknownSong;
                                  var val2:String = cNode[2].childNodes[0].nodeValue ? unescape(cNode[2].childNodes[0].nodeValue) : unknownArtist;
                                  var val3:String = cNode[3].childNodes[0].nodeValue ? unescape(cNode[3].childNodes[0].nodeValue) : unknownAlbum;
                                  var val4:String = cNode[4].childNodes[0].nodeValue ? unescape(cNode[4].childNodes[0].nodeValue) : "./";
                                  var val5:String = cNode[5].childNodes[0].nodeValue ? unescape(cNode[5].childNodes[0].nodeValue) : undefined;
                                  var val6:String = cNode[6].childNodes[0].nodeValue ? unescape(cNode[6].childNodes[0].nodeValue) : undefined;
                                  infostruc.push({art:cNode[0].childNodes[0].nodeValue, info:val1, auth:val2, album:val3, httpType:val4, urlToGet:val5, urlAction:val6, loaded:false});
                                  root["_frontCDWidth"+i] = frontCDWidth;
                                  root["_frontCDHeight"+i] = frontCDHeight;
                                  root["_shelveCDWidth"+i] = shelveCDWidth;
                                  root["_shelveCDHeight"+i] = shelveCDHeight;
                        }
                        init();
                        loadStat = "";
              } else {
                        loadStat = "There was an error loading that data, sorry.";
              }
    };
    
    
    xmlData.ignoreWhite = true;
    loadPlayList("./albuminfo9.xml");
    loader._visible = false;
    mask._alpha = 0;
    scrollBar.scroller._y = 0;
    
    

    It will not work on most of the servers:"./albuminfo9.xml". It should be "../albuminfo9.xml". That may or may not solve the problem. Be sure that all of your files and folders are in the same relative location on the server as they are on your computer. Also be sure that the case for each referenced item is correct. Upper and lower case are sometimes more important on a server than they are on your computer. JPG is not the same as jpg. Be sure that your files are uploading correctly.

  • ArgumentError: Error #1063:Help

    I am using the onMouseWheel method

    First I wanted to check if my event listener and handler works

    stage.addEventListener (MouseEvent.MOUSE_WHEEL, onMouseWheel);

    private void onMouseWheel (): void {}

    trace ("onMouseWheel() method");

    }

    I get this error when I try

    ArgumentError: Error #1063: incompatibility of County of Argument on onMouseWheel(). expected 0, got 1.

    Help, please

    It must STILL pass the event in the event handler:

    private void onMouseWheel(e:MouseEvent):void

  • How to scroll through Antonin, using the mouse scroll

    Hello

    I created a dynamic menu with scroll (Horizontal).

    Is it possible to scroll through a menu using the mouse scroll.

    Thanks in advance,

    Ayathas

    :

    var lo:Object = new Object();
    lo.onMouseWheel = function(delta:Number) {
        yourmenu._y += delta;
    };
    
    Mouse.addListener(lo);
    
  • Components: Communication between the buttons on the component and Application

    It's probably much easier I have do it be... but I'm totally stuck, so that's:

    I have a component separate that acts as a container for a group of buttons.  The container is scrollable vertically and has arrows at the top and bottom to activate the scroll effect.  If the id is "scroll_arrow".

    Here's my problem: I need to fill a datagrid with id = "patient_stream" with the data from a table collection that is specific to the particular key that I am pressing on.

    The component cannot 'see' the items in demand, so I can't apply functions directly on the buttons.

    I tried this:

    Again, "scroll_arrow" is the component.  "first_responder" is the button.  "patient_stream" is the datagrid control.  "head_area" is the Arraycollection collection.

    public function load(event:MouseEvent):void
                {
                    if (scroll_arrow.first_responder.selected == true)
                    {
                        patient_stream.dataProvider = head_area;
                    }
                        
                }
    

    However, I have no way to activate the function 'load', because the component of the island and the application are separated.

    I enclose the code for the component so that you can get a better idea of what I'm trying to do.

    Does anyone have a better solution on this manipulation?

    COMPONENT:

    <?xml version="1.0" encoding="utf-8"?>
    
    
    
    <mx:VBox   xmlns:mx="http://www.adobe.com/2006/mxml" 
                   direction="vertical"
                  mouseWheel="onMouseWheel(event)"
                horizontalScrollPolicy="off" 
                horizontalAlign="center" 
                verticalScrollPolicy="off" 
                paddingRight="3" 
                borderThickness="1" 
                borderColor="#333333">
    
    
    
    
    <mx:Script>
    
            <![CDATA[
    
                import flash.utils.clearInterval;
                import flash.utils.setInterval;
                import mx.effects.easing.Exponential;
                import mx.effects.AnimateProperty;
    
                private var fx:AnimateProperty = new AnimateProperty();
                private var index:uint;
              
                
                private function onMouseWheel(e:MouseEvent):void
    
                {
                    doMove(-1*e.delta*100);
                }
    
                
                private function doDown():void
                {
                    index = setInterval(doMove,300,100);
                    doMove(100);
                }
    
    
                private function doUp():void
                {
                    index = setInterval(doMove,300,-100);
                    doMove(-100);
                }
    
    
    
                private function clear():void
                {
                    clearInterval(index);
                }
    
    
    
                private function doMove(direction:Number):void
                {
                    fx.stop();
                    fx.property = "verticalScrollPosition";
                    fx.easingFunction = Exponential.easeOut;
                    fx.toValue = box.verticalScrollPosition + direction;
                    fx.play([box]);                
    
                }
    
            ]]>
    
        </mx:Script>
        
       
                            
                            
            <mx:Button upSkin="@Embed(source='/images/query_up_1.png')" overSkin="@Embed(source='images/query_up_1.png')" downSkin="@Embed(source='images/query_up_2.png')" mouseDown="doUp()" mouseUp="clear()" doubleClickEnabled="true" color="#F5F8F9" width="258"/>
                            
                <mx:VBox id="box" width="280" height="{height - 250}" horizontalScrollPolicy="off" horizontalAlign="center" verticalScrollPolicy="off">
                                   
                         <mx:Button   label="1RSP First Responder – Medical"  width="261" height="29" labelPlacement="left" textAlign="left" fontSize="10" id="first_responder"/>
                         <mx:Button    width="261" height="29"  label="BAS Battalion Aid Station" textAlign="left" fontSize="10"/>
                         <mx:Button    width="261" height="29" label="FRSS Pre-op" textAlign="left" fontSize="10"/>
                          <mx:Button    width="261" height="29" label="FRSS Operating Room" textAlign="left" fontSize="10"/>
                         <mx:Button    width="261" height="29" label="FRSS Post-op" textAlign="left" fontSize="10"/>
                         <mx:Button  width="261" height="29" label="SC Operating Room" textAlign="left" fontSize="10"/>
                         <mx:Button  width="261" height="29" label="SC Ward" fontSize="10" textAlign="left" fontFamily="Verdana"/>
                         <mx:Button  width="261" height="29" label="SC X-ray" fontSize="10" textAlign="left"/>
                         <mx:Button  width="261" height="29" label="SC Laboratory" textAlign="left" fontSize="10"/>
                         <mx:Button  width="261" height="29" label="Operating Room Equipment" textAlign="left" fontSize="10"/>
                         <mx:Button  width="261" height="29" label="Operating Room Consumables" textAlign="left" fontSize="10"/>
                         <mx:Button  width="261" height="29" label="Field Dental Operatory" textAlign="left"/>
                         <mx:Button  width="261" height="29" label="NBC Individual" textAlign="left"/>
                         <mx:Button  width="261" height="29" label="NBC Unit" textAlign="left"/>
                         <mx:Button  width="261" height="29" label="Aid Station Sick Call" textAlign="left"/>
                         <mx:Button  width="261" height="29" label="1st Resp - Consumable" textAlign="left"/>
                         <mx:Button  width="261" height="29" label="1RE 1st Resp - Equipment" textAlign="left"/>
                         <mx:Button  width="261" height="29" label="PMM" textAlign="left"/>
                         <mx:Button  width="261" height="29" label="PMT" textAlign="left"/>
                         <mx:Button  width="261" height="29" label="OEHS" textAlign="left"/>
                         <mx:Button  width="261" height="29" label="ENTO" textAlign="left"/>
                         <mx:Button  width="261" height="29" label="BEC BAS ERC - Consumable" textAlign="left"/>
                                 
                </mx:VBox>
                            
                            
                        <mx:Button width="258" upSkin="@Embed(source='/images/query_down_1.png')" overSkin="@Embed(source='images/query_down_1.png')" downSkin="@Embed(source='images/query_down_2.png')"  mouseDown="doDown()" mouseUp="clear()" />
                        
                        
        </mx:VBox>
    

    In some cases, you can, or may have to, use parentApplication.varName or parentDocument.varName.

Maybe you are looking for

  • Mobile library did not free disk space

    I got my Macbook GB 512 Pro flew a few weeks back and I bought a MacMini I have another laptop. The MacMini is only a 250G SSD and its already full. I have storage iCloud but everything still seems to want to live on my SSD. I moved the photo library

  • Embedded search Google on our site shows no results. Windows 8, 64-bit, Firefox 30

    We integrated into our Google search site. It has been brought to my attention by one of our employees that Firefox does not show the search results after a click on the search button. The question seems to be limited only to Firefox. Tested the prob

  • type the web address in the browser does not

    I type in the web address browser area, I want to go to, and then press ENTER. Firefox browser does not attend the web address, it does not. I type www.wsj.com , then press 'enter' on the keyboard or the link of the cursor on the arrow and the Firefo

  • The messages application does not open on iMac

    I'm on an iMac, retina Yosemite, 10.10.5 running.   When I try to open the messaging app, I get a screen empty, as shown below.  Also, I noticed that my iMac is not visible to my iPhone in "Text Message Forwarding", if it is an additional clue to wha

  • P20: Where to buy compatible miniPCI WLan card?

    This model comes standard with wifi a/b/g 802.11 module and Toshiba is not in stock, so I need to know if it is guaranteed replacement or if anyone knows where to buy. This is the part number K000007500. I think I downloaded the driver from toshiba b