Help with user 'rotating' gallery

Hi all, I'm trying to emulate the interactive movie as seen here
http://tinyurl.com/ykuasrt
I have all the images of the model I've rendered out, but I'm a bit stuck onto where to start with the flash. Does anyone know a good starting point? I've searched for suitable tutorials but nothing has really turned up.
Any pointers would be greatly appreciated.
Oh, and I haven't used flash since MX.

Here's a tutorial that I believe does what you want... look thru it first to confirm.  There is a working example of it on one of the pages...
http://www.communitymx.com/content/article.cfm?page=1&cid=8F0CA

Similar Messages

  • Help with user interface dilemma! Edge/ Muse/ CMS

    I'm designing a website for a visual artist. She wants a section on her website with a photo gallery of the art that is currently showing in her New Orleans gallery, so the photos in it have to be easily edited and updated.
    My first thought was to just allow them to change/edit the photos in the photo gallery from the Adobe Business Catalyst dashboard, but she is pretty technically illiterate and she's constantly adding new work to the NOLA gallery, so for her to login and change it on BC every time the NOLA gallery changes would be a bit of a hassle. I also wanted to add a slideshow with custom animation I made in Edge Animate, but as far as I can tell, you can't add custom Edge slideshows as widgets to Muse.
    What I'd like to do is design an image gallery in Edge that cycles through pictures uploaded on Flickr/ Picasa/Facebook etc., dynamically. That way my client can use one of those websites to manage and organize her photos the way she wants them to appear and it will automatically feed to the slideshow. I've spent several hours searching for where to start in coding this and can't find anything helpful.
    This is the gallery of images I'd like to cycle through, and have automatically add/ remove from my edge slideshow:
    http://www.flickr.com/photos/chrisroberts-antieau/sets/72157636667574973/
    Does anyone have any suggestions on writing this code, or know of any way to build slideshow widgets in Edge for use in Muse? Any and all help is appreciated!

    Mr Staff your reply is not helpful at all! It does not answer the question. The poster was asking for help on how he can achieve dynamic functionality with using Muse and Edge Animate. You answer is simply not helpful.
    For the poster. Muse does not have built in functionality for dynamic content. It's for static sites. Any question about dynamic content and cms, Adobe would point us to their clunky and very very very very slow Business Catalyst. We can't expect anything from Adobe to be optimized for speed -  just take for example the stupidly slow loading Adobe forums we are right now.
    Anyway and idea I have is to design a slideshow is Edge and use xml or json for you images. Our can use php to generate our json file. Example, make a PHP file that reads all images in a folder output the list as json and load it to your edge animate slideshow. This way you can just create a simple page where then client can just upload her photo on the folder you specify on the server. This can be done with Flickr, although I haven't tried it, however you may need to use their APIs.

  • 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 user defined function

    Hello SDN,
    I need some help with a user-defined function. My source message contains multiple
    generic records (1000 char string), and my target message is 1 header record,
    then multiple generic records.  See description of source and target messages below:
    Source:
      GenericRecordTable 1..unbounded
        Row (1000 char string)
    Target:
      Field1 (char5)
      Field2 (char5)
      Field3 (char5)
      IT_Data
        GenericRecordTable 1..unbounded
          Row (1000 char string)
    Basically, what I need to do in my user defined funtion is to map the first record
    in my source record to the 3 header fields, then map all of the rest of the records
    (starting from line 2) into the GenericRecordTable.
    Can someone please help me with the code for the user defined function(s) for this
    mapping?
    Thank you.

    hi,
    Activities
    1. To create a new user-defined function, in the data-flow editor, choose Create New Function (This
    graphic is explained in the accompanying text), which is located on the lower left-hand side of the
    screen. In the menu, choose Simple Function or Advanced Function.
    2. In the window that appears, specify the attributes of the new function:
    Name
    Technical name of the function. The name is displayed in the function chooser and on the data-flow
    object.
    Description
    Description of how the function is used.
    Cache
    Function type (see above)
    Argument Count
    In this table, you specify the number of input values the function can process, and name them. All
    functions are of type String.
    3. In the window that appears, you can create Java source code:
    a. You can import Java packages to your methods from the Imports input field, by specifying them
    separated by a comma or semi-colon:
    You do not need to import the packages java.lang., java.util., java.io., and java.lang.reflect. since
    all message mappings require these packages and therefore import them. You should be able to
    access standard JDK and J2EE packages of the SAP Web Application Server by simply specifying the
    package under Import. In other words, you do not have to import it as an archive into the Integration
    Repository. You can also access classes of the SAP XML Toolkit, the SAP Java Connector, and the
    SAP Logging Service (see also: Runtime Environment (Java-Mappings)).
    In addition to the standard packages, you can also specify Java packages that you have imported as
    archives and that are located in the same, or in an underlying software component version as the
    message mapping.
    b. Create your Java source text in the editor window or copy source text from another editor.
    4. Confirm with Save and Close.
    5. User-defined functions are limited to the message mapping in which you created the function. To
    save the new function, save the message mapping.
    6. To test the function, use the test environment.
    The new function is now visible in the User-Defined function category. When you select this category,
    a corresponding button is displayed in the function chooser pushbutton bar. To edit, delete, or add the
    function to the data-flow editor, choose the arrow next to the button and select from the list box
    displayed.
    http://help.sap.com/saphelp_nw04/helpdata/en/d9/718e40496f6f1de10000000a1550b0/content.htm
    http://java.sun.com/j2se/1.5.0/docs/api/
    /people/krishna.moorthyp/blog/2006/07/29/documentation-html-editor-in-xi
    /people/sap.user72/blog/2006/02/06/xi-mapping-tool-exports
    http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
    UDF -
    http://help.sap.com/saphelp_nw04/helpdata/en/22/e127f28b572243b4324879c6bf05a0/content.htm
    Regards

  • 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?

  • Help with AS2 - photo gallery

    Hi All
    would someone beable to help me with some code, I downloaded a photo gallery example, at the moment the movie plays the photos when you click a button(timer)
    What I'm trying to do is to get the movie to auto play the photos on load rather than having to click the button. I have been lookin in the scrip, I think its something to do with
    // initialize values
      currentIndex = 0;
    but when I change this value to 1, not much happens, would some be able to have a look within the code and see where I can change it so that the movie runs the images automatcally on load.
    I have pasted the code below, hope this is ok?
    many thanks for anyones help!
    CODE:
    // (c) Copyright by Andrew DiFiore. All rights reserved. DO NOT REMOVE.
    fscommand("allowscale", "false");
    Stage.scaleMode = "noScale";
    targetPhoto._visible = false;
    slides_xml = new XML();
    slides_xml.onLoad = loadSlideShow;
    slides_xml.load("album.xml");
    slides_xml.ignoreWhite = true;
    function loadSlideShow(success) {
    if (success == true) {
      rootNode = slides_xml.firstChild;
      totalSlides = rootNode.childNodes.length;
      currentSlideNode = rootNode.firstChild;                            
      photos = new Array(totalSlides);
      thumbs = new Array(totalSlides);
      captions = new Array(totalSlides);  
      tx = 0;
      for (i=0; i < totalSlides; i++) { // populate arrays and create thumbnails dynamically
       photos[i] = currentSlideNode.attributes.jpegURL;
       thumbs[i] = [currentSlideNode.attributes.jpegWidth,currentSlideNode.attributes.jpegHeight];
       captions[i] = currentSlideNode.firstChild.nodeValue;
       _root.attachMovie("thumb","thumb"+i,i);
       _root["thumb"+i]._x = tx;
       _root["thumb"+i]._y = 595; // using fixed Y coord
       _root["thumb"+i].tindex = i;
       tx += 22;  
       currentSlideNode = currentSlideNode.nextSibling;
      // initialize values                      <<<<<<<<<<<<<<<<<<<<<<<IS IT HERE?????
      currentIndex = 0;
      targetWidth=thumbs[currentIndex][0]; // get width
      targetHeight=thumbs[currentIndex][1]; // get height;
      updateSlide();
    function updateSlide() { // load photo, update caption and status fields
    targetPhoto.loadPhoto(photos[currentIndex]);
    caption = captions[currentIndex];
    statusField = (currentIndex+1) + "/" + totalSlides;
    function slideShow() {
    if (currentIndex == totalSlides-1) { currentIndex = 0; } else { currentIndex++; }
    targetPhoto._visible = false;
    targetWidth=thumbs[currentIndex][0]; // get width
    targetHeight=thumbs[currentIndex][1]; // get height;
    updateSlide();
    MovieClip.prototype.loadPhoto = function(fn) { // load external jpeg method + preloader
    this.createEmptyMovieClip("holder", 1);
    this.holder.loadMovie(fn);
    this.onEnterFrame = function() { // NOTE: could use this to display percentage to user
      if (Math.floor((this.holder.getBytesLoaded()/this.holder.getBytesTotal())*100) >= 100) {
       delete this.onEnterFrame;

    something like this...not quite working
    function updateSlide() { // load photo, update caption and status fields
    setTimeout(targetPhoto.loadPhoto(photos[currentIndex], 2000);
    caption = captions[currentIndex];
    statusField = (currentIndex+1) + "/" + totalSlides;

  • Need help with this xml gallery !!!

    i have build a gallery but its very simple...... it takes images from xml file.
    i have attached all files in zip.
    i just want two things if anyone can help.
    first when i press next button it goes to next image but with no effect. it just displays next image ... i want to incorporate a sliding effect when the image is changed to another.
    and second i want to use autoplay feature.
    as soon as swf starts the images came one by one with difference of few seconds.
    thx in advance... i really need help in this....!

    You're welcome.
    I don't have an example to offer for the autorun.  You should be able to think it thru.  One key, as I mentioned is to preload all of the images first, that will allow for smooth playing of the show--no waiting for images to load between changes.  You can load them into empty movieclips and hide them (_viisible = false) until they are needed.  You could load them when called for, but you would have to put conditions on the displaying of things until the image loads, which will change when they are all loaded, so I recommend just loading them all first.
    For the timing you can use setInterval.  If something is going to be allowed to interupt the autorun, then you will need to make use of the clearInterval function as well, so that you stop the clock.
    Since you will be wanting to know when things are loaded, you will need to use the MovieClipLoader.loadClip method for loading the images instead of using loadMovie.  This is because the MovieClipLoader class supports having an event listener.  If you look in the help documents in the MovieClipLoader.addListener section, there is an example there that provides a fairly good complete overview of using the code.  The only difference is you'd be looking for the onLoadComplete event rather than the onLoadInit event.

  • Help with scrolling photo gallery

    I'm using the code below to for a scrolling photo gallery. I got this from another forum on Adobe. My problem is that I can't get my images to upload. I uploaded this for an image but it's not working:
    <img src="images/baca_poster_small.jpg" data-cycle-title="image1">
    Can someone please help me with getting my pictures to work in this?
    Thanks!
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5 document with Cycle2</title>
    <!--Latest jQuery Core Library-->
    <script src="http://code.jquery.com/jquery-latest.min.js">
    </script>
    <!--Cycle2 Plugin Script-->
    <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery.cycle2/20130409/jquery.cycle2.min.js"></script>
    <style>
    .cycle-slideshow, .cycle-slideshow * {
    -webkit-box-sizing:border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin:0 auto;
    width:45%; /**adjust width as required**/
    .cycle-slideshow img {width: 100%;}
    </style>
    </head>
    <body>
    <h1><a href="http://www.malsup.com/jquery/cycle2/">jQuery Cycle 2</a> Responsive Slideshow</h1>
    <!--begin slideshow-->
    <div class="cycle-slideshow"
        data-cycle-pause-on-hover="true"
        data-cycle-speed="700"
    >
    <!--your images go here-->
    <img src="http://malsup.github.com/images/beach1.jpg" data-cycle-title="beach1">
    <img src="http://malsup.github.com/images/beach2.jpg" data-cycle-title="beach2">
    <img src="http://malsup.github.com/images/beach3.jpg" data-cycle-title="beach3">
    <img src="http://malsup.github.com/images/beach4.jpg" data-cycle-title="beach4">
    <img src="http://malsup.github.com/images/beach9.jpg" data-cycle-title="beach9">
    <!--end slideshow-->
    </div>
    </body>
    </html>

    Is this supposed to be a WordPress site?  None of these images are found on the server.  Those folders don't exist either.
    <img class="first" src="mosspictures/DSCN0038.JPG" alt="">
       <img src="mosspictures/DSCN0040.JPG" alt="">
       <img src="wordpress/wp-content/themes/MarcMossTheme/image-3.jpg" alt="">
       <img src="wordpress/wp-content/themes/MarcMossTheme/image-4.jpg" alt="">
       <img src="wordpress/wp-content/themes/MarcMossTheme/image-5.jpg" alt="">
       <img src="wordpress/wp-content/themes/MarcMossTheme/image-6.jpg" alt="">
       <img src="wordpress/wp-content/themes/MarcMossTheme/image-1.jpg" alt="">
       <img src="wordpress/wp-content/themes/MarcMossTheme/image-2.jpg" alt="">
       <img src="wordpress/wp-content/themes/MarcMossTheme/image-3.jpg" alt="">
       <img src="wordpress/wp-content/themes/MarcMossTheme/image-4.jpg" alt="">
    Nancy O.

  • DW8 - Need help with Flash Mirror Gallery by Flashdevelopment24

    I just purchased an image viewer called Flash Mirror Gallery by Flashdevelopment24:
    http://www.flashdevelopment24.com/extensions/flash_photo_gallery_06.aspx
    I use DW8. Unfortunately the wizard and the instructions are WAY beyond me. I can insert the object on my page but I have no clue how to import images into it, do I need to create separate thumbnails?, etc. Its a European company and the English isn't taht great either which doesn't help.I went through all their FAQs and examples and I don't have a clue.
    I'm doing something very simple, all I need are VERY simple directions on how to make this work. It would be best if there was a YouTube or other video tutorial available. I paid 45 buck for this and it useless to me right now. Help!

    I paid 45 buck for this and it useless to me right now. Help!
    Sorry can't help, don't know the product at all.
    If you are having problems with it, then it's best to contact the people you purchased it from no?  They should either help you with support issues, you you should get a refund if it doesn't work as expected.
    Nadia
    Adobe® Community Expert : Dreamweaver
    Unique CSS Templates | Tutorials | SEO Articles
    http://www.DreamweaverResources.com
    Web Design & Development
    http://www.perrelink.com.au
    http://twitter.com/nadiap

  • Need help with Banner Rotator

    I'm trying to help a friend with the Flash Banner Rotator
    She needs to make the image clickable and pop up the scroll text box item exactly like when you rollOver the title and the scroll text box pops up.
    She wants the image to trigger the text box to open and close onRelease and onRollOut from the image.
    Here's the swf live:
    http://bgehome.com/index3.php
    Any help would be great
    This AS opens the Text Box
    textMc.scrolltxt.bg.onRollOver = function(){                                            // pop up scrolltxt
            mainContent["tex" + newPos]._y = thumbHeight - textMc.scrolltxt.bg._height;
            isReading = true;
        textMc.scrolltxt.bg.onRollOut = textMc.scrolltxt.bg.onReleaseOutside = function(){        // pop down scrolltxt
            if(!mainContent["tex" + newPos].scrolltxt.bg.hitTest(_root._xmouse, _root._ymouse, true)){
                mainContent["tex" + newPos]._y = thumbHeight - textMc.imtext._height;
                isReading = false;
    Full AS
    thumb.useHandCursor=false;
    // Thumb/ Banner Rotator //
    ///Initialisation //
    var bgmask:MovieClip = bckgrnd.duplicateMovieClip("bgmask"); // Create a mask to place on top of mainContent, which contains the images
    var contentWidth:Number = bgmask._width;
    bgmask._width = contentWidth;
    var XMLContent = new XML();                     // Create a new XML object
    XMLContent.ignoreWhite = true;               
    XMLContent.load("Banner.xml");                 // Load the XML content from Banner.xml (which is the name of the xml file) in XMLContent variable
    //XMLContent.load("Thumbnail.xml");            
    var cssStyle = new TextField.StyleSheet();        // Create a new StyleSheet object
    // Create Containers
    var mainContent:MovieClip = this.createEmptyMovieClip("mainContent",this.getNextHighestDepth());         // Contains thumbs
    leftBtn.swapDepths(mainContent);                                                                         // Make sure leftBtn ...
    rightBtn.swapDepths(leftBtn.getDepth + 1);                                                                // and rightBtn is on top of the mainContent
    var pieMc:MovieClip = this.createEmptyMovieClip("pie", this.getNextHighestDepth()); // Create movieClip which contains the pieLoader
    var format = new TextFormat();                                             // Make a new TextFormat
    format.font = "arial";                                                // with font PF Ronda Seven, if you want to change the font, do it here
    format.size = 18;                                                        // Font size, for pixel fonts use 8
    var mclListener:Object = new Object();                                     // Make event listener object
    var clipLoader = new MovieClipLoader();                                    // Make a MovieCLipLoader to load the images
    clipLoader.addListener(mclListener);                                    // The event listener is added to the MovieClipLoader object
    var iniNum:Number = 0;            // initional relative number for thumb/banner positioning
    var thumbHeight:Number;         // see xml document
    var thumbWidth:Number;            // see xml document
    var thumbSpace:Number;            // see xml document
    var contentPos_Y:Number;        // see xml document
    var thumbDir:String;            // see xml document           
    var dispThumbNumber:Number;        // see xml document
    var linkDestiny:String;            // see xml document
    var shiftTime:Number;            // see xml document
    var fadeInTime:Number;            // see xml document
    var easeSpeed:Number;            // see xml document
    var imagesTotal:Number;            // amount of thumbs
    var dwLoader:Number = 0;        // pie segment angle
    var arcVal:Number = 0;            // total pie angle
    var isReading:Boolean = false;  // boolean: set true when reading. When true the pieLoader will stop
    var prevXPosition:Number = 0;   // previous absolute x position
    var nextXPosition:Number = 0;    // next absolute x position
    var images;                        // image array
    // XML, CSS Loading //
    cssStyle.load("ThumbBannerRotator.css");
    XMLContent.onLoad = function() { // Couple xml parameters with program variables
        iniNum = 0;
        nextXPosition = 0;
        prevXPosition = 0;
        dwLoader = 0;
        arcVal = 0;
        // images = array with images and titles and webUrls
        images = XMLContent.firstChild.childNodes[0].childNodes;
        imagesTotal = images.length;
        // Other parameters
        thumbHeight         = XMLContent.firstChild.attributes.thumbHeight;
        thumbWidth             = XMLContent.firstChild.attributes.thumbWidth;
        startPos            = XMLContent.firstChild.attributes.startPos;
        easeSpeed             = XMLContent.firstChild.attributes.easeSpeed;
        linkDestiny            = XMLContent.firstChild.attributes.linkDestiny;
        thumbDir            = XMLContent.firstChild.attributes.thumbDir;
        dispThumbNumber        = XMLContent.firstChild.attributes.dispThumbNumber;
        shiftTime            = XMLContent.firstChild.attributes.shiftTime;
        fadeInTime            = XMLContent.firstChild.attributes.fadeInTime;
        // Calculate the other program variables
        contentPos_Y        = (bckgrnd._height - Number(thumbHeight))/2
        thumbSpace            = (contentWidth - dispThumbNumber*thumbWidth)/(Number(dispThumbNumber) +1);
        dwLoader            = 100 * 3.6 / (Number(shiftTime) * 24);
        mainContent._y = contentPos_Y; // Position form top
        bgmask._height = thumbHeight;
        bgmask._y = contentPos_Y;
        mainContent.setMask(bgmask);
        // Load the first images
        for(var i = 0; i < dispThumbNumber ; i++){
            loadImage(i,0,"load");
            loadText(i,0,"load");
    function shiftPic(direction:String){
        if (isReading == false){
            callPic(direction);
    function callPic(direction:String) { // Call images, captions and titles and add them to containers: mainContent   
        if(direction == "left"){
            var newPos:Number = (iniNum -1) % imagesTotal;                              // Calculate the relative position off the new image, this number corresponds with the index number from the image-array
            var remPos:Number = (iniNum+( Number(dispThumbNumber) - 1)) % imagesTotal;    // Calculate the relative position off the image that needs to be removed
            var prevPos:Number = iniNum % imagesTotal;                                    // Calculate the relative position off the images before the new image
            nextXPosition = prevXPosition + Number(thumbSpace) + Number(thumbWidth);    // Calculate the absolute x position = previous position + thumbSpace and thumbWidth, used in ease function
            prevXPosition = nextXPosition;                                                // Update prevPosition
            iniNum = iniNum - 1;                                                        // Substract the iniNumber
        if(direction == "right"){
            var remPos:Number = iniNum % imagesTotal;                                      // Calculate the relative position off the new image, this number corresponds with the index number from the image-array
            var newPos:Number = (iniNum+ Number(dispThumbNumber)) % imagesTotal;        // Calculate the relative position off the image that needs to be removed
            var prevPos:Number = (iniNum+(Number(dispThumbNumber) - 1)) % imagesTotal;  // Calculate the relative position off the images before the new image
            nextXPosition = prevXPosition - Number(thumbSpace) - Number(thumbWidth);    // Calculate the absolute x position = previous position + thumbSpace and thumbWidth
            prevXPosition = nextXPosition;                                                // Update prevPosition
            iniNum = iniNum + 1;
            if (newPos < 0){                                    //If newPos is negative, make it positive
                newPos = imagesTotal + newPos;
            if (remPos < 0){                                    //If remPos is negative, make it positive
                remPos = imagesTotal + remPos;
            if (prevPos < 0){                                    //If prevPos is negative, make it positive
                prevPos = imagesTotal + prevPos;
            loadImage(newPos, prevPos, direction);                // Load images and image titles
            loadText(newPos, prevPos , direction);                // Load titles and caption
            mainContent[remPos].removeMovieClip();                // remove the image with name "remPos"
            mainContent["tex" + remPos].removeMovieClip();        // remove the text with name tex"remPos"
            arcVal = 0;                                            // reset the pieLoader
    function loadImage(newPos:Number, prevPos:Number, direction:String){
        thumbURL     = images[newPos].attributes.thumbPath;                                            // Get thumbUrl from images-array   
        thumbMc = mainContent.createEmptyMovieClip(""+newPos, mainContent.getNextHighestDepth());    // Create new thumbMc movieClip variable
        thumbMc._alpha = 0;                                                                            // Alpha = zero for fade in effect
        if (direction == "left"){
            thumbMc._x = mainContent[prevPos]._x - Number(thumbWidth) - Number(thumbSpace);            // positioning of thumbMc
        if (direction == "right"){
            thumbMc._x = mainContent[prevPos]._x + Number(thumbWidth) + Number(thumbSpace);            // positioning of thumbMc
        if(direction == "load"){
            thumbMc._x = Number(thumbWidth*newPos) + Number(thumbSpace*(newPos+1)) ;                 // positioning of thumbMc
        addLoader(thumbMc);
        clipLoader.loadClip(thumbDir+thumbURL, thumbMc);                                            // Load the images in the thumbMc
    function loadText(newPos:Number, prevPos:Number, direction:String){
        thumbTitle  = images[newPos].attributes.title;                                                // Get title from images-array
        thumbDesc    = images[newPos].attributes.description;                                         // Get caption description from images-array
        textMc = mainContent.createEmptyMovieClip("tex"+newPos, mainContent.getNextHighestDepth()); // Create new titleMc moveClip variable
        if (direction == "left"){
            textMc._x = mainContent[prevPos]._x - Number(thumbWidth) - Number(thumbSpace);            // positioning of textMc
        if (direction == "right"){
            textMc._x = mainContent[prevPos]._x + Number(thumbWidth) + Number(thumbSpace);            // positioning of textMc
        if(direction == "load"){
            textMc._x = Number(thumbWidth*newPos) + Number(thumbSpace*(newPos+1)) ;                 // positioning of textMc
        textMc.attachMovie("scrollText" , "scrolltxt", textMc.getNextHighestDepth());               
        textMc.scrolltxt.bg._width = Number(thumbWidth);                                            // set background width   
        textMc.scrolltxt.main.content.styleSheet = cssStyle;                                        // set css style
        textMc.scrolltxt.main.content._width =  Number(thumbWidth) - 30;                            // set scrolltext components width
        textMc.scrolltxt.maskMc._width = Number(thumbWidth) - 10;                                    // set scrolltext components width
        textMc.scrolltxt.dragger._x = textMc.scrolltxt.bar._x = textMc.scrolltxt.upBtn._x  = textMc.scrolltxt.downBtn._x = textMc.scrolltxt.stripe._x = Number(thumbWidth) - 10; // positioning of scrolltext components
        textMc.scrolltxt.main.content.text = thumbDesc;                                                // set text
        textMc.scrolltxt.main.content.embedFonts = true;
        textMc.scrolltxt.main.content.selectable = false;
        textMc.scrolltxt.main.content.setTextFormat(format);                                         // set text format
        textMc.scrolltxt.main.content._height = textMc.scrolltxt.main.content.textHeight + 5;        // calculate height of text
        textMc.createTextField("imtext",1,0,0,thumbWidth,48);                                    // Create a textfield in the titleMc for the image title
        textMc.imtext.embedFonts = true;
        textMc.imtext.text = thumbTitle;                                                        // Add text
        textMc.imtext.selectable = false;
        textMc.imtext.textColor = 0xaddf99;                                                        // Set textColor to pink
        textMc.imtext.setTextFormat(format);                                                    // set text format
        textMc.imtext._x = Math.round((thumbWidth - textMc.imtext.textWidth)/2);
        textMc._y = thumbHeight - textMc.imtext._height;   
        textMc.attachMovie("arrow", "arrowMc", textMc.getNextHighestDepth());                    // add arrow
        textMc.arrowMc._x = Number(thumbWidth) - textMc.arrowMc._width;
        textMc.arrowMc._y = Number(textMc.arrowMc._height);
        textMc.arrowMc._alpha = 0;
        textMc.scrolltxt.bg.onRollOver = function(){                                            // pop up scrolltxt
            mainContent["tex" + newPos]._y = thumbHeight - textMc.scrolltxt.bg._height;
            isReading = true;
        textMc.scrolltxt.bg.onRollOut = textMc.scrolltxt.bg.onReleaseOutside = function(){        // pop down scrolltxt
            if(!mainContent["tex" + newPos].scrolltxt.bg.hitTest(_root._xmouse, _root._ymouse, true)){
                mainContent["tex" + newPos]._y = thumbHeight - textMc.imtext._height;
                isReading = false;
    function addLoader(thumb:MovieClip){                                    // Add a preloader to every thumbnail
        mainContent.attachMovie("smallLoader", "preloader" + thumb._name, mainContent.getNextHighestDepth());                // add preloader
        mainContent["preloader"+thumb._name]._x = thumb._x + (thumbWidth - mainContent["preloader"+thumb._name]._width) /2; // positioning
        mainContent["preloader"+thumb._name]._y = (thumbHeight - mainContent["preloader"+thumb._name]._height) /2;            // positioning
    mclListener.onLoadInit = function(thumb:MovieClip) {
        mainContent["preloader"+thumb._name].removeMovieClip();
        mainContent[""+thumb._name].onEnterFrame = function(){                 // Fade in Effect
            mainContent[""+thumb._name]._alpha += Number(fadeInTime);        // Every frame the alpha of the thumbnail is added by fadeInTime.
            if(mainContent[""+thumb._name]._alpha >= 100){
                delete mainContent[""+thumb._name].onEnterFrame;            // When fade in effect is done, remove the onEnterFrame funtion
    mclListener.onLoadComplete = function(thumb){                            // When a thumb is fully loaded, add button action
        thumb.onRelease = function(){                                        // When button released, execute function below
            var i = Number(thumb._name)%imagesTotal;   
                             // Go to a website defined in the xml document
        thumb.onRollOver = function(){                                        // make alpha of arrow 100 on roll over
            var i = Number(thumb._name)%imagesTotal;
            mainContent["tex" + i].arrowMc._alpha = 100;
        thumb.onRollOut = function(){                                        // make alpha of arrow 0 on roll over
            var i = Number(thumb._name)%imagesTotal;
            mainContent["tex" + i].arrowMc._alpha = 0;
    // Button and Position Handling ///
    // Left button
    leftBtn.onPress = function() {
        if (isReading == false){                                        // onPress call the next picture on the right
            callPic("left");
    leftBtn.onRollOver = function(){                                    // onRollOver move the arrow by 5 pixels
        if(isReading == false){
            leftBtn.arrow._x -= 5;
    leftBtn.onRollOut = leftBtn.onReleaseOutside = function(){
        if(isReading == false){
            leftBtn.arrow._x += 5 ;                                        // onRollOut reset the arrow
    // Right button
    rightBtn.onPress = function() {
        if(isReading == false){
            callPic("right");                                        // onPress call the next picture on the right
    rightBtn.onRollOver = function(){
      if(isReading == false){
        rightBtn.arrow._x += 5 ;                                    // onRollOver move the arrow by 5 pixels
    rightBtn.onRollOut = rightBtn.onReleaseOutside = function(){
        if(isReading == false){   
            rightBtn.arrow._x -= 5;                                    // onRollOut reset the arrow
    pieMc.onRelease = function(){                                    
        if (dwLoader != 0){                                         // Stops the pieLoader
            dwLoader = 0;
        else{
            dwLoader = 100 * 3.6 / (Number(shiftTime) * 24);        // Start the pieLoader
    // Easing function //
    //Used to give that cool ease effect on the mainContent, titleContainer and reflectContainer and dragger
    // Want to change the ease effect? check help document
    this.onEnterFrame = function() {                                    // Start endless loop, executed every time frame is updated    // If dragEase is false don't allow easing for the dragger
        if (dwLoader != 0 && isReading == false){                       
            arcVal += Number(dwLoader);                                    // new value of arcVal is the old value plus dwLoader
            pieMc.clear();
            pieMc.beginFill(0xaddf99, 100);                                // draw the pie shape with pink color,  you can change the color in this line
            pieMc.drawPie(bckgrnd._width - 20, 20, 90, -arcVal, 7);        // position the pieLoader, 90 = startAngle, 7 = radius
            pieMc.endFill();
        if (arcVal > 360){
            shiftPic("right");                                            // If the pie-angle = 360 call the next picture/thumbnail
            arcVal = 0;
        dx = (nextXPosition - mainContent._x) * easeSpeed;                // Calculates how much the mainContent needs to move, note that dx is becomming smaller and smaller when the mainContent reaches its final position.
        mainContent._x += dx;                                             // Move the mainContent
    MovieClip.prototype.drawPie = function(x, y, startAngle, arc, radius) {    // x, y = center point of the wedge.startAngle = starting angle in degrees.arc = sweep of the wedge. Negative values draw clockwise.
        this.moveTo(x, y);                                                        // move to x,y position
        var segAngle, theta, angle, angleMid, segs, startx, starty, anchx, anchy, contrx, contry;    // Init vars
        segs = Math.ceil(Math.abs(arc)/20);                                        // Devide the arc in 20 segments
        segAngle = arc/segs;                                                    // Calculate the sweep of each segment.
        theta = -(segAngle/180)*Math.PI;                                         // Convert to radions
        angle = -(startAngle/180)*Math.PI;                                        // Convert startAngle to radians
            startx = x + Math.cos(startAngle/180*Math.PI) * radius;                // Calculate curve start x position
            starty = y + Math.sin(-startAngle/180*Math.PI) * radius;            // Calculate curve start y position
            this.lineTo(startx, starty);                                        // Draw a line from the center to the start of the curve
            for (var i = 0; i<segs; i++) {                                        // Loop for drawing curve segments
                angle += theta;                                                    // Icrement angle with segAngle => theta (in radians)                               
                anchx = x+Math.cos(angle)*radius;                                    // Calculate parameters for curveTo function
                anchy = y+Math.sin(angle)*radius;                                    // Calculate parameters for curveTo function
                contrx = x+Math.cos(angle-(theta/2))*(radius/Math.cos(theta/2));    // Calculate parameters for curveTo function
                contry = y+Math.sin(angle-(theta/2))*(radius/Math.cos(theta/2));    // Calculate parameters for curveTo function
                this.curveTo(contrx, contry, anchx, anchy);                            // Draw the curve
            this.lineTo(x, y);                                                    // close the curve by drawing a line to the center

    As is always the case in this sort of situation, you ask the printer, or banner maker.  If you have a particular company in mond, they may have a website with guidelines, and that is going to be much better information than the guesses - good though 'some' of them might be.
    25' by 16' is huge.  Have you found somewhere that will make it?  This company will supply 25 foot long banners, at a surprisingly cheap $176, but only 3 foot high.  The problem being the width of the printer.
    http://www.allstatebanners.com/3x25-vinyl-banner

  • Student Project - Need Help With ViewPlatform Rotation

    Hello folks,
    I'm a student in Strathclyde University, Glasgow, and I'm currently doing a small project for one of my programming classes. I'm doing a 3D knots and crosses game but I'm having tremendous difficulty getting the rotation to work just the way I want it to. Let me decribe what I need.
    Visualise 27 cubes, arranged in a 3 x 3 x 3 structure, space out slightly: a 3D knots and crosses setup. I'm trying to get the ViewPlatform to rotate around the central cube in a spherical fashion.
    I also need this rotation to use the keyboard arrow keys, not the mouse because I am reserving the mouse for interaction using the PickMouseBehavior class as stated in my project specification.
    I have looked up various classes in the API: such as KeyNavigator, OrbitBehavior, and some VisAd class that isn't included with the Java3D API nor is it on the systems I have available at the university.
    The trouble is, all these classes that I have found do not rotate the way I need them to: as described above. They "turn left" and "turn right" the camera as opposed to "rotate left around" and "rotate right around" the central cube (i.e horizontal rotation of the camera on a wide circle around an object).
    They also "move forward" and "move backward" as opposed to "rise up around" and "drop down around" the central cube (i.e. vertical rotation on a wide circle around an object).
    I have previously tackled this problem by creating a dummy cube under the central cube using then attaching the "camera" to the dummy cube in the DarkBASIC programming language and wonder if this method is available using Java.
    I've thought about defining my own arrow key rotation class, but I have little idea how to go about doing that either.
    An additional bonus would be the ability to limit vertical rotation so as not to go over and upside-down the vertical limit.
    Any help would be appreciated.

    I appreciate the answer and I know about implementing a Behavior to do this particular function of the program: is this what you are suggesting?
    If so, could you provide some clarity onto how go about implementing a Behavior to do the type of rotations I stated in my first post? By clarity I mean a little bit more about the recipe for creating a Behavior: the API is lacking documentation on this I think.
    I'll go do a bit of reading on it and tell you where I get. Nonetheless, any further advice would be much appreciated.

  • Help with User account on seperate drive please...

    Hello... need a little help please...
    I'm running 10.5.6. My boot drive is the fast, 64GB outer partition of a 5th drive on my MacPro. I used the Advanced Options in the Account pref pane in Leopard to move my Home Directory to an ultrafast 4 drive internal RAID. So far, so good.
    In the past (before this bifurcated system) when I hit the road (I'm a photographer) I would just clone my boot drive which contained my User account to the MBP and go.
    However now my System and User accounts are on seperate drives. I cloned the system to the MBP, but when I tried booting, it said it was unable to continue as it couldnt find the User Account. This is understandable as the User account was pointed to another drive, but the boot sequence didnt even give me a choice to create a new user account, or point the system to an existing user account on the MBP.
    Seems I've got two choices. Either figure out a way to clone my System and my Home directory to the MBP, and have them recognize each other. Or give up this experiment and bring my Home directory back onto the boot drive.
    Of course I could just keep a seperate system on the MBP, but find it much easier to clone the entire thing over from the MP with all my apps, settings, etc.
    I'm not a UNIX junkie, but can follow instructions for using the terminal.
    Can someone shed some light on this for me?
    Thank you !!!!

    I don't keep large files in my Home Directory. They live in another partition on the fast RAID.
    But I do have lots of little ones. I'm now thinking that this is too much hassle for the small speed gain.
    I'll move my home directory back to the boot drive and symlink folders if needed.
    Thank you both.

  • Unix Guru to help with User Account re-install.

    I have a glitch in my main Administrator account which prevents Adobe Photoshop CS2 opening or importing files of any kind from any file.
    A dialogue box tells me “Could not complete your request because of a program error.”
    Adobe refers to Tech Note 331307 item 2, which offers tests and options most of which I have tried. When I establish a new User Account I am able to use Photoshop fine which suggests the Admin User Account is corrupted.
    According to the tech note, my only remaining option is to re-initialize the disk and rebuild system completely. That is a very big task which I seek to avoid.
    I have:
    1. Run Disk Doctor over all Fonts in all folders and fixed or deleted damaged Fonts.
    2. Run Disk Warrior and re-run Permissions with Xupport.
    3. Opened as Single user, run fsck -f. remounted disk, moved and replaced db/netinfo and replaced AppleSetupDone. All confirmed OK but glitch remained for Photoshop CS2.
    Can any Guru offer a Unix solution - or any solution, which avoids
    re-formatting and building my complete system?
    Alternatively, given I have many addresses and bookmarks to preserve in three browsers as well as my Mail and Address book, what is the best method by which to establish a new account and delete the old one.
    Many Thanks
    Mezolithic.

    Hi Tony
    Yes I can confirm that this doesn't wipe out address book details and Internet set-up prefs and bookmarks.
    In fact putil cannot wipe out anything. It's purpose is to check the syntax of plist files or convert a plist file to another format. No conversion is taking pace here. The -s option means output is supressed, so if you don't see anything, it means there are no errors to report.
    The * character means "all" , in this case all plist files.
    Eg. If you wanted to list all of the document files ending in .doc, in say a Documents folder but not .txt files, you could specify *.doc. Similarly if you wanted to list all documents named reports, regardless of the extension, you would use reports.*
    So that is the usage of *.
    If you found this information helpful, please consider awarding stars. It is entirely up to you.
    regards roam

  • 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;

  • Help with scrolling image gallery?

    Hi, using the code for a scrolling image gallery found here (Build an Infinite Scrolling Photo Banner With HTML and CSS | Design Shack). When I pasted in the CSS and HTML, it displayed all vertically and broke my title div. Not a professional, so I could use an expert eye to point out any mistakes. Trying to make title in vertical center of page, scrolling image gallery horizontal in the middle, and links directly below. HTML is below:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Marc Moss Art</title>
    <!-- TemplateEndEditable -->
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    <link href="style.css" rel="stylesheet" type="text/css">
    <link href="../../../../style.css" rel="stylesheet" type="text/css">
    <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    </head>
    <body topmargin="600">
    <div id="wrapper">
    <div class="container">
      <header></header>
      <div id="content" style="height:300px;width:1000px;float:left;"><h1>art by marc moss</h1>
    </div>
        <!-- Each image is 350px by 233px -->
        <div class="photobanner">
            <img class="first" src="../../../../mosspictures/DSCN0038.JPG" alt="">
            <img src="../../../../mosspictures/DSCN0040.JPG" alt="">
            <img src="image-3.jpg" alt="">
            <img src="image-4.jpg" alt="">
            <img src="image-5.jpg" alt="">
            <img src="image-6.jpg" alt="">
            <img src="image-1.jpg" alt="">
            <img src="image-2.jpg" alt="">
            <img src="image-3.jpg" alt="">
            <img src="image-4.jpg" alt="">
        </div>
        <nav>
        <div id="navigation">
        <ul>
        <li><a href="#">bio</a></li>
        <li><a href= "#">inspiration</a></li>
        </ul>
        </div>
        </nav>
    <!-- end .content --></article>
      <footer>
    </footer>
      <!-- end .container --></div>
      </div>
    </body>
    </html>

    Is this supposed to be a WordPress site?  None of these images are found on the server.  Those folders don't exist either.
    <img class="first" src="mosspictures/DSCN0038.JPG" alt="">
       <img src="mosspictures/DSCN0040.JPG" alt="">
       <img src="wordpress/wp-content/themes/MarcMossTheme/image-3.jpg" alt="">
       <img src="wordpress/wp-content/themes/MarcMossTheme/image-4.jpg" alt="">
       <img src="wordpress/wp-content/themes/MarcMossTheme/image-5.jpg" alt="">
       <img src="wordpress/wp-content/themes/MarcMossTheme/image-6.jpg" alt="">
       <img src="wordpress/wp-content/themes/MarcMossTheme/image-1.jpg" alt="">
       <img src="wordpress/wp-content/themes/MarcMossTheme/image-2.jpg" alt="">
       <img src="wordpress/wp-content/themes/MarcMossTheme/image-3.jpg" alt="">
       <img src="wordpress/wp-content/themes/MarcMossTheme/image-4.jpg" alt="">
    Nancy O.

Maybe you are looking for

  • WEBI Java Error when starting report form the portal

    Hi when i'm starting a BO WEBI report out from the  portal the next error is apearing: error on set doc title. Details: Version:12.1.0.882 Toepassingsserver: http://pcl09009.magma-it.local:8080/AnalyticalReporting/Webi/cdzServlet Stapeltracering: net

  • Scripts

    hi all,           Can i write a loop or a statement similar to that in an SAP scripts. If yes how? thanks regards nayan

  • Problem with Profiles in AC RAR 5.3

    Hi friends, I'm trying to perform a syncro from the profiles in an HR ERP system with RAR 5.3 (SP 11.2). I only get a part of the profiles. The other roles are read by the system, but somehow, they are ignored. Log: Jan 9, 2012 11:05:30 AM com.virsa.

  • HT5361 Hi Can anyone help me. For some reason I cannot see any messages in my in-box. How can i get them back.

    Hi For some reson when i opened Mail ther are no messages in my inbox. There have all disappeared. Does anyone know how I can get them back please. Thanks

  • EDI Seeburger problem

    Hey, I'm testing an invoice EDI file which contains 3 invoices. I'm putting the edi file in the ftp but nothing happens. When I check the channel it says this: Error: com.sap.engine.interfaces.messaging.api.exception.MessagingException: MESSAGESPLITT