Scrolling a movie clip

Hi,
I know that there are a number of threads on similar issues, but these are all confusing me quite a bit so I thought I should start a new thread to get an answer I'll hopefully understand.
I have made my sight with specific diameters.  I've got a heading I want to retain on all pages, but the content will change.  I guess this would have to be in a movieClip as some pages the content will fit my stage, other pages will have content that is larger than the stage.
I'd like to be able to scroll down through these pages which contain both text and images.  I'm not sure how I would be able to set this up.  I've used the component on text before, but never for contents with both text and images.  I'd appreciate it if someone could give me some guidance on how to do this.
Thanks

Thanks kglad,
I've tried this using...
on(press) {
     if(content._y > -66) {
          content._y = content._y - 5;
...and the equivalent for scrolling the other way.  This works well at moving the contents, but it requires a click to move.  I was thinking that by putting it under the press state, that whilst I held the button down it would continue scrolling until it either reached the limit or was released.  How would I get it to do that?

Similar Messages

  • How do you horizontal scroll a movie clip?

    Can anyone suggest any resources for horizontal (left to right) scrolling a movieClip? I want to be able to scroll through a movie clip that has pictures in it. I can't find any good ones that explain the code. FYI, I do not want the user to use a scroll bar to scroll through. They should be able to touch the screen (on the movieClip) and scroll left or right. I looked at the ThrowPops plugin example on Greensock's website but the code is not explained very well.  So I need a basic description of how to scroll a movie clip.

    google: as3 beginner tutorial flash ios movieclip scroll

  • Help with smooth scrolling (masked movie clip)

    Ok, I really need help here, and I'll be very grateful for
    help before Monday.
    Someone has made a movie with a different set of text on each
    frame, the text goes out of the viewable area.
    I have been asked to make these frames appear in a pop-up on
    another flash and be scrollable.
    i thought this would be easy...just cut and paste them into a
    movie clip, then using a mask to hide the rest of the text.
    However, it is going painstakingly slow.
    Seems to be a performance issue, but it might be my code.
    Any help with the code, or optimisation elsewhere would be
    helpfully.
    Heres a simplified version of the flash;
    www.darkflame.co.uk/flashwork/Flash_popuptest.fla
    Code for the scrolling;
    _global.MoveUp = function(text) {
    _root.ITproduct.IT_productlist._y =
    _root.ITproduct.IT_productlist._y+6;
    updateAfterEvent();
    //trace('press');
    Called and stopped by;
    on (press){
    //this._parent.IT_productlist._y =
    this._parent.IT_productlist._y +10;
    //_global.scrollon = "yes";
    clearInterval(IntervalID);
    IntervalID = setInterval(MoveUp,100);
    updateAfterEvent()
    //updateAfterEvent();
    //MoveUp();
    //scroll on
    on (release) {
    //this._parent.IT_productlist._y =
    this._parent.IT_productlist._y +10;
    clearInterval(IntervalID);
    updateAfterEvent();
    //scroll off
    which is linked to a button.
    I dont know if this is a actionscript problem, or the way the
    page is made, or both.
    Any help would be appreciated.
    Thanks in advance,
    Thomas Wrobel

    you have extraneous graphics on-stage that are slowing the
    scrolling (and even causing problems in the authoring environment).
    here's your file with those graphics removed:
    http://www.gladstien.com/Files.popupTest.fla

  • Question about scrolling and Movie Clips Loaded from the Library

    I hope I am posting this in the right forum.
    Ok, I'm using actionscript 2.0, and I am trying to make a scrolling image gallery. I have a movie clip with three layers. the first contains a movie clip used as a scroll bar. The second is a mask used to hide the overflow content, and the third contains movie clip thumbnails. when I click one of the thumbnails, it loads a symbol containing a larger version of the picture over top of the thumbnails on the same layer. My problem is, the large image is added at the very top of the movie clip, even when it is scrolled out of sight. I want it to appear in sight, so the user doesn't have to scroll all the way back up to the top to see it. This is annoying and confusing. Is there a way to do this?
    Here is the code I used to create the scroll effect (there is actually a whole lot more to the code but it is very long, so I am not adding it now. I will if it is needed though) 
    (Oh, and there is no text involved in this. I just got this code off a tutorial and I haven't changed the variable names yet)
        var scrollUpper:Number = 58;
        var scrollLower:Number = 309;
        var textLower:Number = 60;
        var textUpper:Number = -179;
        var scrollRange:Number = scrollLower - scrollUpper;
        var textRange:Number = textLower - textUpper;
        var startY:Number = imagesHolder_mc.thumbs_mc._y;
        function scroll(){
           var moved:Number = imagesHolder_mc.scroller_mc._y - scrollUpper;
           var pctMoved:Number = moved/scrollRange;
           var textMove:Number = pctMoved*textRange;
           imagesHolder_mc.thumbs_mc._y = textLower - textMove;
        imagesHolder_mc.scroller_mc.onPress = function(){
           this.startDrag(false,this._x,scrollUpper,this._x,scrollLower);
           this.onMouseMove = scroll;
        imagesHolder_mc.scroller_mc.onRelease = scroller_mc.onReleaseOutside = function(){
           this.stopDrag();
           this.onMouseMove = null}

    Thanks for your reply. I'll try to explain it better. I have a long, vertically scrolling movie clip. This movie clip contains lots of thumbnails. When I click a thumbnail, the full sized image is loaded from the library and displayed within the same movie clip. when I click the full size movie clip, it disappears again, and I can click another thumbnail to display another full size image. So I'm not just adding more and more stuff to the gallery if that's what you were thinking. I'm just clicking thumbnails to display the full size image so I can look at it, closing it, and moving on.
    But the full sized image is fixed at the very top of the scrolling movie clip, so if I click a thumbnail at the very bottom, I have to scroll all the way back up to the top to see the full size image. I just want the full size image to appear on screen no matter how far down I have scrolled to click a thumbnail.
    I made my basic gallery useing this tutorial:
    http://flashexplained.com/actionscript/making-the-ultimate-dynamic-image-gallery-in-flash- 8/
    if you want to take a look at that, to get an idea of what I'm talking about.
    Now I'm just trying to add some scrolling functionality, which wasn't included, but I don't really understand actionscript well enough to do this easily on my own.
    Sorry for the long reply. I hope this is clearer.

  • Deadline: 22 May 08H00 Help ME Please Scrolling a movie clip from the Centre

    Hi
    It has been a while since I have been here I am in need for
    some serious help, I am so frustrated.
    What I want to do is pretty simple, I am building a DJ
    website and the navigation is a pitch controller, similar to what
    they have on a mixing board anyway, when you drag the pitch
    controller I need the movie clip symbol to scroll either up and
    down, so technically the pitch controller will have to start from
    the center, but I have no idea what I am doing.
    I have been going through tutorials for 15 hours but all they
    show you is how to create a normal scroller that starts at the top
    and srolls down. I am in desprite need as I have a deadline to meet
    for tomorrow morning. HELP

    ok this is the code I got from a tutorial that i was woking
    from, but I dont really understand it in detail what I do know is I
    dont need the arror buttons in this code becuase all I need is a
    the scroller.
    scrolling = function () {
    var scrollHeight:Number = scrollTrack._height;
    var contentHeight:Number = contentMain._height;
    var scrollFaceHeight:Number = scrollFace._height;
    var maskHeight:Number = maskedView._height;
    var initPosition:Number = scrollFace._y=scrollTrack._y;
    var initContentPos:Number = contentMain._y;
    var finalContentPos:Number =
    maskHeight-contentHeight+initContentPos;
    var left:Number = scrollTrack._x;
    var top:Number = scrollTrack._y;
    var right:Number = scrollTrack._x;
    var bottom:Number =
    scrollTrack._height-scrollFaceHeight+scrollTrack._y;
    var dy:Number = 0;
    var speed:Number = 10;
    var moveVal:Number =
    (contentHeight-maskHeight)/(scrollHeight-scrollFaceHeight);
    scrollFace.onPress = function() {
    var currPos:Number = this._y;
    startDrag(this, false, left, top, right, bottom);
    this.onMouseMove = function() {
    dy = Math.abs(initPosition-this._y);
    contentMain._y = Math.round(dy*-1*moveVal+initContentPos);
    scrollFace.onMouseUp = function() {
    stopDrag();
    delete this.onMouseMove;
    btnUp.onPress = function() {
    this.onEnterFrame = function() {
    if (contentMain._y+speed<maskedView._y) {
    if (scrollFace._y<=top) {
    scrollFace._y = top;
    } else {
    scrollFace._y -= speed/moveVal;
    contentMain._y += speed;
    } else {
    scrollFace._y = top;
    contentMain._y = maskedView._y;
    delete this.onEnterFrame;
    btnUp.onDragOut = function() {
    delete this.onEnterFrame;
    btnUp.onRelease = function() {
    delete this.onEnterFrame;
    btnDown.onPress = function() {
    this.onEnterFrame = function() {
    if (contentMain._y-speed>finalContentPos) {
    if (scrollFace._y>=bottom) {
    scrollFace._y = bottom;
    } else {
    scrollFace._y += speed/moveVal;
    contentMain._y -= speed;
    } else {
    scrollFace._y = bottom;
    contentMain._y = finalContentPos;
    delete this.onEnterFrame;
    btnDown.onRelease = function() {
    delete this.onEnterFrame;
    btnDown.onDragOut = function() {
    delete this.onEnterFrame;
    if (contentHeight<maskHeight) {
    scrollFace._visible = false;
    btnUp.enabled = false;
    btnDown.enabled = false;
    } else {
    scrollFace._visible = true;
    btnUp.enabled = true;
    btnDown.enabled = true;
    scrolling();

  • Scrolling Movie Clip

    Hello everyone...
    I am trying to figure out why my thumbnail movie clip will
    not scroll when clicked. I thought I had the action script right
    but it appears that I have not. Could anyone help me troubleshoot
    this? If you could give me your email addy, I will send the .FLA
    file for you to look at.
    Thanks very much
    Kit

    You should be able to post the actionscript pertaining to
    your problem. If not, upload it to many of the free file hosting
    websites and then post the link to the fla.

  • Unable to expand movie clip inside of scroll

    I inherited a .fla file with a scrolling thumbnail image
    movie clip that moves horizontally inside of a "scroll" behind a
    mask, with the use of right and left buttons. < > The
    thumbnail movie clip is much wider than the movie's dimensions. I
    think it was made in Flash 5. I added about 30 new thumbnails to
    the movie clip for my client, but now it won't expand anymore.
    Before, all I had to do was put the thumbnail into the edge of the
    clip and it would expand to include it. I can get the invisible
    right and left "scroll" movie clips to scroll even beyond the movie
    clip by adjusting the numbers in the ActionScript for those two
    instances. I am not a "programmer type" so this probably is hard to
    understand. If I try to change the width of the movie clip in the
    properties box it comes up with an "invalid size and position"
    error. Actually I think all it would do is stretch-distort the clip
    anyway, which is not what I want. (if I put in a lesser number it
    squishes the clip). I just want more space right and left.
    Any ideas?
    -Sue

    How do I attach a file to this? All I see is a button to
    attach code. Sorry, I've rarely use this forum.
    -Sue

  • How to control movie clips using mause scroller...?

    ....please look
    http://www.nagaoka-id.ac.jp/gallery/gallery.html
    ...how to control movie clips using mause scroller...?

    Hi Ldavinci, I have noticed your posts on that particular
    site before. Just chiming in here... don't be afraid of Flash Help
    menu. There's a wealth of information there and I've found it much
    faster than waiting for a response from the forum. Then if it still
    doesn't make sense, at least you have a basic idea of specifics to
    ask.
    If you search for mouse wheel, you'll see an example under
    the Actionscript 2.0 Language Reference on this topic. That said,
    here's the example:

  • I know i can slow down speed in a movie clip but can i and how do i slow down a transition clip? specifically the scrolling credits. it goes so fast i cant read it

    i know i can slow down speed in a movie clip but can i and how do i slow down a transition clip? specifically the scrolling credits. it goes so fast i cant read it

    never mind i found the answer

  • 3D Movie Clip/Scroll Information

    Could anyone help me with information on how to create the
    effect used in the website www.whatworksweb.com. How was that 3D
    effect created? It appears to be a movie clip controlled by its
    internal buttons, but what about the 3D effect?
    Thank you for any help

    If this is a library item that you named boxContainer in the library, you need to designate that name as the linkage ID for the movie.  Right click on it in the library, select Linkage from the menu that appears, and in the interface that appears select the Export for Actionscript option (another will be slected automatically).  Be sure your Class name appears as you have it coded and click ok.

  • In Premiere I can edit an avi or mov clip but I can not save the result as a like file.  Why not???

    In Premiere I can edit an avi or mov clip but I can not save tghe result as a like file.  What do I have to do???  It only saves a project.  Under 'File' the 'Export' function is greyed out.  I need help baddly.
    [email protected]
    Bill Schoon

    Boatbuilder
    Let us start from the beginning.
    It has been established that you have Premiere Elements 10. On what computer operating system is it running?
    There has not been a File Menu/Export/Movie export opportunitity in Premiere Elements since version 7. We are not up to version 12.
    For Premiere Elements 10, your export opportunities are all in Share/ including one for Computer. Under Computer there are several choices. The ones that you see are Adobe Flash Video, MPEG, and AVCHD. The others you have to scroll down to. And those choices are AVI, Windows Media, QuickTime, Image, and Audio. You do not have to use the scroll bar for this. You can click on Adobe Flash Video panel to get it to turn black. Then use the down arrow to go down the list and the up arrow to go up the list. Once you get to a category, you can select a preset and go with it or customize it under the Advanced Button/Video Tab and Audio Tab of the preset.
    If you post the properties of your source media that you want to try to match in the export, I would be glad to suggest the exact settings for you.
    We will be watching for your follow up with details.
    Thank you.
    ATR
    Add On...The Premiere Elements 10 File Menu is for more than Saving, just not exporting. One of the key features that can be access there is the Project Archiver. More on that another time.

  • Reaching a movie on the stage from inside another movie clip

    I'm trying to reach a body of text which i turned into a movie clip which is on the main stage, and have it scroll up/down whenever it rolls over the designated hot spots. Here's what i have.
    stage.addEventListener(MouseEvent.MOUSE_MOVE,down1,false,0,true);
    function down1(e:MouseEvent):void {
         if (mouseX>=0 && mouseX<=42 && mouseY>111.1 && mouseY<146.1) {
              stage.addEventListener(Event.ENTER_FRAME,scrolldown1);
         } else {
              stage.removeEventListener(Event.ENTER_FRAME, scrolldown1);
    function scrolldown1(e:Event):void {
         if(MovieClip(this.root).resume_txt.y > 219) {
              MovieClip(this.root).resume_txt.y += 5;
         } else {
              this.removeEventListener(Event.ENTER_FRAME, scrolldown1);

    Can you explain the purpose bhind these lines...
         if(MovieClip(this.root).resume_txt.y > 219) {
              MovieClip(this.root).resume_txt.y += 5;
    It seems as though if it is >219, it will move until the mouse moves out of the region.  Is there any specific aspect of it that you can pinpoint as not woking?.

  • Play a Movie Clip on a frame In Main SWF from a button, within 2 MovieClips

    I’m using AS2, Flash 8
    I have a frame on my main Timeline Called “Gallery” within this frame I have 2 movie clips, which I need to work together:
    One is called:
    Gall_Lge_1
    Which contains 37 frames.
    Each frame has a different movie – basically 37 different photos which pop up on each frame.
    (MC’s named Lge_1, Lge_2, Lge_3 etc)
    The second Movie Clip I have on here is called:
    gall_strip_mc
    Which contains a movie clip called strip1 , (which is set to scroll its contents controlled by buttons on ”Gallery”- which works) inside that is a movie clip called strip_all , and contains one frame with 37 buttons/photo thumbnails, (Buttons named btn1, btn2, btn3 etc which I require to link each individual button to the corresponding photo/frame in Gall_Lge_1  …
    So,
    btn1 will go to and play Lge_1(Frame 1 of Gall_Lge_1)
    btn2 will go to and play Lge_2(Frame 2 of Gall_Lge_1)
    I’m stuck and can’t get it to work..
    Here is the site – under ‘Gallery’ so you can see what I’m trying to achieve
    http://www.blueshelldesign.com.au/draft/
    (I’ve placed in Back and Next buttons next to ‘Gall_Lge_1’ so you can see how its suppose to look when the thumbnails from ‘gall_strip_mc’ are clicked)

    First, you do not use quotes when you are specifying a frame number, so try changing that first.  The only time you use quotes for that argument is for frame label strings.
    If it still won't play, are you sure that the button is coded properly and executes the function when clicked?  You should put a trace in the function to make sure.  Also, you could try using _root instead of _level0... I forget the difference, if any, but _root will definitely get you to the main timeline.
    btn2.onRelease = function() {
         trace("btn2 clicked");
        _root.Gall_Lge_1.gotoAndPlay(2);

  • Button not working in Movie Clip

    I'm building a small 'table builder' app for a client. This
    is my first major project in flash and I've encountered something I
    cannot figure out for the life of me.
    In the .fla below there's a movie clip 'scroller' it has
    buttons in it which load .png's to the main stage. Some of the
    buttons work, some don't.... I can't figure out why. Even when I
    duplicate a button sometimes it doesn't work.??? If I take a button
    that's not working in the movie clip and cut/paste onto the main
    timeline it ALWAYS works. I've been pulling my hair out over this
    for the last two days . I have even started the whole project from
    scratch just to try and find out where I went wrong... but to no
    avail..... Any help would be GREATLY appreciated. I'm stuck on a
    hump and I need some help to get off of it.
    Here's a link to my file. I've stripped away all the styling
    elements so it should be pretty clean cut when you see it. Thanks
    for any help or guidance!
    http://www.buddyscampfire.com/tableBuilder.zip

    A few errors: Scene 1 frame 1 Actions layer. You are
    referring to buttons inside of the scroller, and you don't have
    too. They aren't doing anything. All you need on that frame is:
    function startLoading(whichImage) {
    loadMovie(whichImage, "imageLoader");
    _root.onEnterFrame = function() {
    infoLoaded = imageLoader.getBytesLoaded();
    infoTotal = imageLoader.getBytesTotal();
    percentage = Math.floor(infoLoaded/infoTotal*100);
    infoField.text = percentage+"%";
    if (percentage>=100) {
    delete this.onEnterFrame;
    infoField._visible = false;
    Then on the Scroller you have that function again. Remove it
    from the scroller, as it does nothing there. Inside of the scroller
    all you need is code to attach png files from pressing the buttons.
    Make sure each button has a unique instance name, which isn't the
    case right now. You have like three buttons called imgbtn1. Fix
    that.

  • Referencing HTML page from within a movie clip

    Hi
    Hope someone can help with this.
    I have a simple horizontal scrolling gallery of 24 thumbnails
    in Flash, the thumbnail images are loaded into the boxes using
    actionscript. I would like each thumbnail to link to a html page of
    my choice. There is a movie clip instance called panel with the 24
    buttons inside it and on the first button as a test I've placed the
    following action script:
    on (release) {
    getURL("team.html","_self");
    When testing this movie from within Flash (CTRL, ENT) the
    button links to the html file (which is in the same folder as the
    SWF) with no problem. The problem is when I preview the page in a
    browser and try to click on the first button nothing is happening.
    I've tried it in both IE7 and Firefox with the same result.
    The flash thumbnail clip is placed as a flash object into a
    html page using dreamweaver.
    I'm sure this is something simple such as navigating the
    timeline but I've tried a few things like _root. but still no joy.
    Hope someone can help.
    Thanks, Jo

    Try
    on (release) {
    getURL("
    http://site.com/team.html","_self");
    }

Maybe you are looking for

  • What's happening to ML

    All of a sudden when I start ip my iMac the  Dock icons do not show what they are, the magnification does not woek, the cursor changes back to an arerow insted of the hand it used to be and sll sorts of other things are happening every time I start u

  • Photoshop CC crashes working with larger TIFF

    I have a Mac workstation that is routinely crashing while working on larger TIFF files. Here is a copy of the latest crash report. Process:         Adobe Photoshop CS6 [1900]  Path:            /Applications/Adobe Photoshop CS6/Adobe Photoshop CS6.app

  • Background image resizing always 100%

    Hi, I'm trying to do something but it doesn't work. I have an edge animation with a image in background. the image has a 100% width and height to fit perfectly the browser. My problem is when I'm trying to resize manually the window, it doesn't keep

  • Mass Change of Sets for Report Painter/Writer Reports

    Hi, We have upgraded our system from 4.6c to ECC 6.0. We are using more than 40 Report Painter/Writer reports which in turn are using Sets. However, these sets are containing reference to a Table which we want to change for all the set enmasse. e.g.

  • Error,Info Object 0CHNGID is requested.

    Hi All, I am new to BW/BI, and i am trying to upload data from flat file to BI system; I have uploaded the data successfully into PSA and then into InfoCube; But when i am trying to display the data in the cube i got some 4 errors, i managed to remov