Rollover video

Greetings:
Earlier, I posted this question and apparently it got lost in
this forum. In Dreamweaver 8, I wish to create a link that I can
simply roll my Mouse over without clicking, to get to a video to
pop-up. Is this possible, and how so? Any answer will be GREATLY
appreciated.
Sincerely,
John
(johninbellingham)

Hello, Nancy O;
I'm sorry, I didn't elaborate more. What I meant to ask is
this: Let's say that I have a link called "Introduction," and when
one clicks on that link, one comes to a page where an inserted
Flash Video starts playing. I would love to have it so that one can
place the Mouse over the word "Introduction," and rather than click
on it, he/she would see a video pop-up that would go away as soon
as the Mouse Pointer is taken away from the link; for lack of
better words, kind of a preview. The pop-up could be a still frame
that turns into a video when clicked on.
Sincerely,
Johninbellingham

Similar Messages

  • Rollover on Video

    I am an flash newbie, so this may be a FAQ I can't find
    because I'm using the wrong terms. I am creating a custom flash
    video player interface. I have managed to put a video element (not
    a component...just "New Video..." in the Library) on the stage, and
    add play and pause buttons with appropriate behaviors. The buttons
    are custom buttons created in photoshop and imported into the flash
    movie. The are positioned directly over the video element itself,
    so they display on top of the playing video. All this works
    perfectly.
    Now I want the controls (buttons) to only appear when the
    moust is over the flash movie. When the user mouses out of the
    movie, the controls should disappear. I can't figure out how to do
    this. I tried:
    1: binding functions to onMouseOut and onMouseOver on _root
    -> simply doesn't work
    2: turning the video element into a movie clip -> the
    video no longer plays
    3: Adding a button with 0% alpha over the conroller area and
    listing for mouse events on it -> this works, but the invisible
    button consumes the mouse events so my controller buttons no longer
    work.
    4: Putting my controller buttons into a new movie clip (I
    have it set upt his way anyway) and listening for mouse events on
    thie movie clip itself -> I don't really understand what's
    happening with this one. I wrote hide() and show() methods and
    added them to the movie clip. They just show and hide the child
    elements of the clip as appropriate. For some reason, when I mouse
    out of the movie clip, the elements in it hide, but then it never
    respondse to rollovers again, as though the entire clip has been
    made invisible. Also, with this setup, again, my mouse clicks never
    make it to the buttons themselves.
    Is there a "right" way to do this? What approaches make
    sense? Again, ideally the controller I've designed would appear
    whenever the user rolls over the video itself, and then disappear
    when they roll out.
    Thanks!
    Geoff

    Try adding the video by dragging the MediaDisplay component
    to the stage and giving it the instance name of vid1. You can then
    add the Actionscript to control it and the content it contains.
    vid1.contentPath = "xxxx.flv"; // your flv name
    Then you can use the following code to show and hide your
    controls:
    vid1.onRollOver = function (){
    trace ("rollover video");
    controls._visible = true; // whatever your controls are
    called make them visible
    vid1.onRollOut = function (){
    trace ("rolled off of video");
    controls._visible = false; // whatever your controls are
    called make them invisible
    controls._visible is just an example. Replace the name
    controls with the instance name of your controllers.

  • Delayed posting of TV shows online

    One of my biggest ion-going ssues with Comast is that shows I want to watch are not available on-line until days after airing. I want to watch shows on my PC the next day. Or, hey, I'd settle for even two days later. Why is that not possible?  For example,  just looked for the new premiere of "Naked and Afraid XL," on the Discovery Channel, which aired SUNDAY, and it isn't available to watch. Why??  I know this isn't a "partner issue" because I've watched many shows on the Discovery Channel the next day.  Can someone explain this to me? Thanks!  

    Matt,
    Go to http://www.usanetwork.com
    * A clip will automatically start playing on the main page (it works on my computer).
    * Go to the menu at the top and rollover "series"
    * Select "Monk"
    * Rollover "Video" and select full episodes.
    * The screen should load within the web page and the most recent episode should begin playing. There are several other episodes underneath the screen to choose from.
    Except nothing plays for me anymore, the page loads, but no video. I have Flash Pro installed for CS3 and the latest flash player plug-in. Turned off all my firewalls and nothing. Tried different browsers and nothing.
    Any suggestions wuld be great. Worked beautifully on my old laptop, not on my new imac!
    Sharon

  • Can I create a disjointed rollover for videos?

    I am working on a webpage that I created a disjointed rollover for thumbnails that I want individuals to see a larger image of.
    While I was working, I wondered if I could create a disjointed rollover for a video? I would use thumbnails for the viewer to rollover and when they do rollover I would want a swf video to play. Is this possible? Any suggestions on how to go about it?
    Thank You.

    I would not let anyone else determine whether your choice is wrong or right without knowing all of the details. Let's consider that you've made the considerations already and for anything else you're simply asking to see if it's possible or not and you're looking for suggestions on how to go about it. I mean, that is what you asked in your original post isn't it? I re-read your original post and I didn't see anywhere in there where you were asking others whether they thought this was the right choice or not...
    Perhaps you want to save the mouseclick so the user can click the thumbnail and view the entire video while mouseover plays a small preview in disjointed? The other poster probably didn't think too much about it though.
    To directly answer your question: yes, it's possible to mouseover a thumbnail to play a video. Depending on the intended use a method like this is not only acceptable, it's expected. Many highly-regarded websites use this technique including http://videocopilot.net and http://istockphoto.com to name a few. A method like this allows for faster browsing and preview of videos instead of requiring a user to not only mouseover the thumbnail, but then continue to click once to display preview and then click once again to close the lightbox. That's a cumbersome method for the user if they want to preview many videos.
    View source on the websites mentioned in this post to see how it's accomplished.

  • Adobe Captivate 7 Project How to make Rollover cations, audio, and video work in HTML format?

    Adobe Captivate 7 Project How to make Rollover cations, audio, and video work in HTML format?

    Honestly, I don't even know why this is an option. The conversion to Flash is completely unusable.
    I have exported some things to Flash, and since I program in Flash all the time I was able to manipulate to work to some degree. Most text captions are built with multiple elements and completely fall apart.
    Sorry, I can't be of more help.

  • FLV in rollover slidelet: audio just barely not synched with video

    I have several FLVs (slide videos) in my project (65 slides total) and all work perfectly except for the one that appears in a rollover slidelet. The audio just barely lags the speakers lip movement. This occurs in both Preview and Publish. I've tried various setting for the FLV and slidelet but haven't been able to get it synched up. Further complicating this is the fact that applying the 5.0.2.630 patch has essentially blown up my Captivate install (I have a separate post on that) and now sometimes when I preview this slide or view the published project, no audio at all plays. I have seen some posts indicating that these sorts of issues occur depending on system processing speeds but my system meets the Tech Specs for Cap 5.0 so I am not sure how that relates. I also wonder how I can anticipate what will happen for end users; there are probably some specs out there about that, but I admit I haven't dug those up yet. Below are the settings I'm using for the rollover slidelet. Thanks.

    I'm wondering if I should update my bios. To date, I've done the following:
    Upgraded  from 6 gigs of ram to 24 gigs of DDR3 1600
    Added three hard drives with two of them on Raid 0. Total is 5 hard drives
    Just picked up a PNY GTX-470 display adaptor
    Upgraded to CS5
    This thing should be halling ***! But Multi-Camera mode is still very sluggish.
    Video files are MXF files. I import them as P2 files. Theat's how they show up in the media browser.
    Using Mercury Playback Engine, GPU Ecceleration
    Here is the properties of one of my video files:
    3826YW.mxf
    Type: P2 Movie
    File Size: 37.6 MB
    Image Size: 1280 x 1080
    Pixel Depth: 32
    Frame Rate: 29.97
    Source Audio Format: 48000 Hz - 16 bit - Mono
    Project Audio Format: 48000 Hz - 32 bit floating point - Mono
    Total Duration: 00;00;02;22
    Average Data Rate: 13.7 MB / second
    Pixel Aspect Ratio: 1.5
    MXF File details:
    UserClipName: FS Default Clip Name 20100819-124058W01
    DataSource: SHOOTING
    Access:
        CreationDate: 2010-08-19T12:40:59+00:00
        LastUpdateDate: 2010-08-19T12:41:02+00:00
    Device:
        Manufacturer: Focus Enhancements
        SerialNo.: 0002EA0200024556
        ModelName: FS100
    Shoot:
        StartDate: 2010-08-19T12:40:59+00:00
        EndDate: 2010-08-19T12:41:02+00:00
    MemoList:
    Memo:
            Text: 20100819-124058W01.xml
    Memo:
            Text: 3826YW
    Memo:
            Text: Software Version # 4.0.0.04080107
    Thumbnail:
        FrameOffset: 0
        ThumbnailFormat: BMP
        Width: 80
        Height: 60

  • Use a video as a rollover

    So I have created some great Icons and effects I am wanting to use on my website.  I have a big question because I am not sure how to implement this or if it is even possible.  The website is all created in adobe muse and the animation created in adobe after effects.  Is it possible to take that animation put it into adobe edge and create a roll over button with it and then put it in adobe muse?

    Can I make a rollover button and make the button a video and
    when you rollover or click another video or does it have to be an
    image? Right now I have just inserted media flash in the size of
    the 2 x 2 inside of first square of table then I moved to next
    square and inserted/media/flash of another mini video all the way
    across 5 squares in table and they play all at the same time when I
    look at in browser testing which is what I want but now what I am
    needing is for them to click on the persons video 1 of the 5 or
    which ever one that they want to see click on it or something so
    that they see another video then it go back to orignal video it
    would be like a checkerboard you see the videos all playing at once
    and you say I like that one and I want to see what they do so you
    click them and walaa it plays. Is that a better discription.
    Text
    Text

  • Play video on rollover. How?

    Does anyone know how to get a video to play upon rollover and pause upon rolling out? Here's an example: http://www.holdenouterwear.com/078/
    Roll over the dark gray stripe and click on Contact. Roll over the videos to start them. I have not been able to find any info out there on how this is done. Thanks!

    I'm not using any code yet. The file consists of a Photoshop document containing 4 pictures and editable text underneath each picture. I've imported a video as an FLVPlayer component as well as an embedded video & have had no luck with either. Basically when one of the pictures is rolled over, I want the video to start playing. The video should be masked out in the shape of the picture (a square with rounded corners).
    I've tried making the picture a button and having the video on the over state. I've attached the Flash file and the video file to help illustrate. Thanks again!

  • How to use rollover function to trigger a video demo

    What I have done so far?
    Imported a PowerPoint slide and I created a Rollover caption. When exploring the properties for the Rollover, under the Action field:-
    On Success row, chose Open Another Project 
    Project row, uploaded the the file abc.cptx that is a software simulation record.
    When looking at slide in published mode, encountering the following message when I clicked over the rollover area
    "The project abc.htm, abc.swf is launched at this point but is unavailable from this preview window. To preview, use a web browser. "
    Anyone has any idea or best practices on where I went wrong?
    Regards
    AJ

    Hmmm, wondering if it is a typo, but a Rollover Caption doesn't have any events. How could you trigger a Success action in that case? This remark is only for other users. The only rollover object that has a rollover event is the Rollover Slidelet, not the Rollover Caption.

  • Video Widget Needs Caption Rollover

    Hello,
    So I'm working on a lightbox for my website, but I really need a caption rollover. I started with the tooltip widget, but I don't think it will work with layers. It's a WIP, but I wanted to show you where I am at right now. Any suggestions would be much appreciated, thank you!
    http://mattschwab.businesscatalyst.com/lightbox-paste-in-container.html

    I know I am replying to my own post - but I have figured it out.  I have placed against the widget proprerties a 'No Action' upon success.

  • CS5 Video Clip no longer auto plays

    Hi,
    I have a video player that I'm creating in Flash -- my video clips are on different scenes and I wanted a "menu" bar to allow the viewer to pick which scene they wanted. I found tutorials for various scrolling thumbnail menu bars and I eventually found a code which allowed me to click from scene to scene.
    However, now that the menu bar works, the video clips do not automatically play anymore and I'm not sure why.
    This is the link to my file: http://www.mediafire.com/?y7oofbwg444lnp8
    I only have one action script on the scene, which is the top layer that has [AS]stop();[/AS]
    I have two buttons on either side of the video clip:
    [AS]on (press) {
              nextScene(); play();
    }[/AS]
    [AS]
    on (press) {
              gotoAndPlay("SI", 1);
    [/AS]
    This is the coding for the scrolling menu bar:
    Frame 1:
    [AS]// Photoscroller 2.0
    // Original Author: Barry Driessen
    // E-mail: barry@e-factory.
    // Upgraded by: Rob Gungor
    // Email: [email protected]
    // I don't care if u use this thingy, you don't have to
    // give me credit for it. Just knock yourself out with it!!
    // If you like it or have suggestions, just drop me an e-mail!
    // **stupid people tip**
    // to use this scroller as is --
    //copy all the frames in the timeline (by right/(control //for mac) click, copy frames)
    //then right click on your timeline  and paste frames
    //sorry if that is insulting, but when I first started this stuff, I was dumb too :-)
    // Okay... First let's set some variables......
    // Xphoto = startposition of the scoll image
    xphoto = 258;
    // Widthmovie = This variable hase to be set to the
    // same amount of the moviewidth
    widthmovie = 325;
    // Scrollspeed = The scollspeed of the image (high numbers result in slow scrolls 10=average)
    scrollspeed = 25;
    // widthphoto = the width of your scrollable image in pixels
    widthphoto = 2116;[/AS]
    Frame 2:
    [AS]// Setting the xmouse to 0 in the centre of the movie:
    xmouse = _xmouse - (widthmovie / 2);
    // Setting the speed:
    speed = (xmouse) / scrollspeed;
    // If the speed is negative, the speed will be made positive here:
    if (speed < 0) {
              speed = -(speed);
    //new function courtesy of Rob
    //basically says that if the mouse isn't betwen these two y points it won't work
    //**stupid people tip**
    //make sure that you figure out the top and bottom y points of your "photo" and insert them accordingly!
    mouseposition = getProperty("/myself", _y);
    if (_ymouse < 330) {
              speed=0;
    if (_ymouse > 390) {
              speed=0;
    // If the mouse moves to left, the photo will scroll to the right:
    // (That makes sense.... Doesn't it!! ;-)
    if (xmouse < 258) {
              xphoto = xphoto + speed;
    // If the mouse moves to the right, the photo will scroll to the left:
    if (xmouse > 258) {
              xphoto = xphoto - speed;
    // Checking for the left end of the image:
    if (xphoto > 258) {
              xphoto = 258;
    // Checking for the right end of the image:
    if (xphoto < -(widthphoto - widthmovie)) {
              xphoto = -(widthphoto - widthmovie);
    // Placing the moviclip (photo) on it's new postition:
    setProperty("photo", _x, xphoto);
    [/AS]
    [AS]gotoAndPlay (2)
    // make sure this clip this in your movie when you copy it. 
    //**last stupid people tip**
    // if you copy these frames into any other frames other than 1, make sure you change the frame that it repeats (ie. if you copy these 3 action frames into 5,6,7 "gotoAndPlay (6)")--
    ///ok duh-i know. :-)
    // The mouseovers are quite simple. Just open the Movieclip "MouseOver"
    // to see how it works...
    //                                       Have fun!!!!!
    //**i realized that it's more fun when drinking beer.
    //-rg
    [/AS]
    Then inside the thumbnail, to make it serve as a button:
    [AS]on (rollOver) {
              button2.gotoAndPlay(2);
    on (rollOut) {
              button2.gotoAndPlay(16);
    on (release) {
              // You can assign an actionscript to each Button in here:
              _level0.gotoAndPlay("my_target1");
    }[/AS]
    Thanks!

    you need to remove:
    gotoAndPlay (2)
    so your video can play.  you've embedded your flv into your timeline so it only plays when the timeline plays and that goto is preventing the timeline from playing.
    of course, if you remove that the thumbnail code won't work.
    bottomline:  your project code is a mess and using an flv in a timeline is not what you should be doing.
    you should have no code attached to objects, no frame loops and no flvs embedded in a timeline.  you should attach your code to a timeline, user an enterframe loop and use an flvplayback component to play your flv(s).

  • Cp4 - Retain more than 1 Flash Video in slide to view independently

    I have 3 rollover slidelets that each have a Flash video in each.  The slidelet that contains the flash video is 'not visable' - (options properties).
    The concept:  The user hovers the mouse over one of three buttons.  When finding the one to play the button is clicked to displayed the slidelet and flash video.   The user then clicks on the video playbar to run the video. I 'loop' the video so that the video stays within the slide. I now want to select another clip, so I pause the open video and then click on another button.  What happens is that this action closes the slide and moves onto the next slide.
    I want to allow the user to select any video clip and play them at any time without closing the slide and moving to the next slide.
    Slide 1 showing the positioning of the buttons and rollover slidelets containing the flash videos
    Slide 2 shows the published slide ready for user activity
    Kind regards,
    s9500aol

    Hi there
    When you insert a Rollover Slidelet you get two objects on the stage. Just click OK on that dialog you posted and you will see. One object is the area your user mouses over. The other area presents what the user sees. The slidelet area has its own Timeline. You click the Slidelet area and it gains focus. You then insert the objects into this area.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • How to get a rollover in 1 spot to show in another?

    Hello guys, I haven't used dreamweaver since 2001 and even back then I wasn't that great at it.
    I used joomla to build my church webiste, but I had a photoshop person make a index page for me and the concept it because the church has 3 locations, at the bottom you have the "Visit" link and what I would like to do is when you hover over to press visit, in the middle of the page the church image will show up and i'm not sure how to do that in dreamweaver.
    I'm using DW CS6
    Under each church address I'm going to add a jpg there with the word "Visit" and when the member hover over the word. where it has 1, 2 and 3 depending on which visit button the member press the church image will show on top.
    Thanks for any help anyone can give me.

    That would be a "disjointed rollover"
    http://dreamweaver.wonderhowto.com/how-to/create-disjointed-rollovers-dreamweaver-1049/
    Here's a couple videos:
    http://www.youtube.com/watch?v=pBFofd8kUhI
    http://dreamweaver.wonderhowto.com/how-to/create-disjointed-rollovers-dreamweaver-1049/

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

  • DPS Animation & Full Screen Video functionality failure when viewing mag in Adobe Content Viewer

    HI There,
    Specifically the following issues are occuring when we view the mag through the Adobe Content Viewer on our Ipad.
    All Title animations are not functioning at all (although in the SWF viewer they are working fine)
    Although we select the media to be played full screen when we are setting up the videos in the media panel they won't play full screen, but play perfectly well in the place we put them. - full screen doesnt function in the SWF viewer either.
    The control bars to control playing, stopping, full screen etc also don't appear on our videos we selected.  - doesn't function in the SWF viewer like it should with the control bars working
    In terms of how we set everything up just to confirm we are doing it right.
    For animations.
    1. Select copy to animate
    2. Click on Animations panel, chose the preset fade in, selected the time 1.25seconds, animate from current appearance, fade in.
    For videos
    Our videos are H264 Quicktime videos all 16x9 in ratio
    1. Went to media panel.
    2. Searched for file to insert
    3. Inserted it and sized down the actual physical size of the video to fit in the space we wanted (NB we didn't create a rectangle to put them in or anything)
    4. Chose the poster from file
    5. Selected skin over play full screen & show controller over rollover
    Any help to sort this out would be appreciated.  Thanks so much in advance

    Hi BellaMove:
    For the animations:
    You have to create a document with the size of the animation you want to create and give attributes using the animation panel of indesign.
    Then you export to fla and using Adobe Wallaby pass it to HTML5.
    Then place them by the panel Overlay Creator (Web Content). Using the Content Viewer can not see it on your desktop. You'll have to climb the publication in the ipad to see the result.
    Do not forget to retouch the css. Read this:
    http://digitalpublishing.tumblr.com/post/3898796141/animate-headlines-or-other-things
    Is the simplest way to make simple animations I've found.
    I hope you find it helps

Maybe you are looking for