Dynamic Scrolling of MovieClip

Hi everyone,
I have an application in which i am making a dynamic photo
gallery. I have made a scroller movieClip "thumbs_mc". Now i want
to make it scroll. for that i created 2 movieClips ,left and right.
and wrote some code. but its not working.
1st depth is the main picture's movieClip's depth, 2nd depth
is thumbs_mc, 3rd is mask movieClip. 4th and 5th are for left and
right. Also, I am creating movieClips within Thumbs_mc for holding
thumbnails.
and two buttons leftScroll and rightScroll.
can anyone tell me, why is it not working?, how should i
modify it..
waiting for someone to throw some good light on this peice..
Thanks

here are my files, Please have a look at them..I want to make
the thumbnail movieclip scrolling...
[deleted]
I want to make the thumbnail movieclip scrolling...
Thanks alot

Similar Messages

  • Horizontal scroll a movieclip in iOS

    Hello,
    I'm trying to found some extension or library to horizontally scroll a movieclip in a iOS aplication made with AIR 3.5.
    I tried some, but the perfomance are not so good, even in iPhone 5 or iPhone 3Gs, so if anyone knows a good way to do it, i'll be thankful.

    I just played a little with tweenlite, and bought a GreenSock Club membership, to get all the plugins. A bit expansive, but totally worth it, now my scroll works very well when moving a very big image, even in the old iPhone 3Gs.
    Thank you for your advices.

  • Dynamic Text Feild with Dynamic Scroll Bar

    I have a Dynamic Text Feild with a dynamic Scroll bar.
    It loads a simple ASCI text file with some html formating.
    but I still can not manage to get the text to format.
    The biggest problem with the format is a big space between
    paragraphs.
    I am not sure why but I think the Frame must need a var to
    render to html.
    Can anybody help please?

    My text had the following, similar but no parsing string.
    I guess
    yourstring.split("\n\r").join("\r").split("\r\n").join("\r");
    takes out the carrage returns or <br>?
    I notice the one I had just say's String.
    I assume that would be the text that is the string?
    Thank you for sharing your knowledge of this.
    var my_lv:LoadVars = new LoadVars();
    my_lv.onData = function(src:String) {
    if (src != undefined) {
    myTxtFeild.text = src;
    } else {
    myTxtFile.text = "Error loading text.";
    my_lv.load("CadnetPage1_html.txt");

  • Dynamic scrolling

    does anyone know or could give an advise how to create
    "dynamicly scrolled content" in flash?
    here are the examples:
    http://kashiwasato.com
    http://www.mamastudio.pl
    the flash content of the window is repositioning according to
    the window resize
    thanks a lot for any help :)

    hi,
    This code will set only 5 visible rows .
    Bind the visiblerow count property of table with an attribute of type I.
    Before binding the table with internal table write this code :
        DESCRIBE TABLE t_selected_hcp LINES lv_visiblerow.
    ****** Reduce the no of visible rows  *************
        IF lv_visiblerow > 5.
          lv_visiblerow = 5 .
        ENDIF.
    * navigate from <CONTEXT> to <CN_TABLEPROP> via lead selection
        lo_nd_cn_tableprop = wd_context->get_child_node( name = wd_this->wdctx_cn_tableprop_pvl ).
    get element via lead selection
        lo_el_cn_tableprop = lo_nd_cn_tableprop->get_element(  ).
        IF lv_visiblerow > 0 .
    get single attribute
          lo_el_cn_tableprop->set_attribute(
              name =  `CA_VISIBLEROW_PVL`
              value = lv_visiblerow ).
        ELSEIF lv_visiblerow = 0 .
          lo_el_cn_tableprop->set_attribute(
             name =  `CA_VISIBLEROW_PVL`
             value = -1 ).
        ENDIF.
    This will make sure that only 5 rows are visible and rest you have to scroll to see.
    Now if you want that out of 6 rows added to the table , last 5 rows should be visible then :
    Create a Context Attribute of type I "LEAD_SELECTION" and bind this to firstVisibleRow property of table .
    Write this code:
    Get the number of rows in table ****
        DESCRIBE TABLE it_selected_hcp1 LINES lv_count.
        DATA lo_el_context TYPE REF TO if_wd_context_element.
    Set the lead selection to last row *****
        lo_el_context = wd_context->get_element(  ).
        lo_el_context->set_attribute( name =  `LEAD_SELECTION` value = lv_count ).
        lo_nd_cn_entertainment->set_lead_selection_index( lv_count ).
    This will work.
    Edited by: Saurav Mago on Oct 9, 2009 3:16 PM

  • Dynamic scrolling heading muse

    How would i create a dynamic scrolling heading similar to that off www.cnet.com where the header starts with a full sized logo but changes to a simple block format and stays locked at the top. I was considering using two different nag bars, the scrolling one under the main one but completely transparent and have them both set to scroll opacity so that the main one would disappear as you scroll and the smaller one would appear to replace it but I'm not too sure how to use that feature or even if it would work. I know it likely involves jQuery but I'm new to coding and web development so if anyone has an answer it would be greatly appreciated, thanks.
    Rodneytf

    Hi
    You can try using any composition or panel where you have to insert another object such as rectangles or menu items which would act on mouse click.
    For example :
    Insert composition/panel widget
    In target container insert another object such as rectangle with hyperlink to specific pages with styles applied.
    Thanks,
    Sanjit

  • Scrolling event: movieclip instead of dynamic text

    Hello everybody. I am very very novice to actionscript, so probably my question will sound a little silly.
    I am trying to put an arabic text to scroll with a custom scrollbar. So I found a nice video in youtube about doing that with a dynamic text field. It works wonderful for latin characters (left to right and separated letters) but unfortunately not for arabic characters (they don't get connected). Actually, I don't care to use just a movieclip with the text instead of the dynamic text field. But I don't know how to change the actionscript code for the movie clip instead of the dynamic text field.
    Here I show you the code for the scrolling text in a dynamic text field (it's a short code), on the stage I got just the dynamic text field (instance name: texto_txt), the scrollBar (a vertical line, instance name: scrollBar_mc) and the scroller itself (a little rectangle, instance name:scrollHandle_mc):
    var content:String = "cjeihfirehjfejlkfjkerjfirjfejifjrijwkjfirwjekñlkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkllllllll";
    texto_txt.text = content;
    texto_txt.wordWrap = true;
    var min: Number = scrollHandle_mc.y;
    var max: Number = min +(scrollBar_mc.height - scrollHandle_mc.height);
    var intervalo: Number = max - min;
    var arrastrando: Boolean = false;
    var bounds: Rectangle = new Rectangle (scrollHandle_mc.x, scrollHandle_mc.y, 0, scrollBar_mc.height - scrollHandle_mc.height);
    scrollHandle_mc.addEventListener (MouseEvent.MOUSE_DOWN, arrastrandoScroll);
    stage.addEventListener (MouseEvent.MOUSE_UP, stopIt);
    function arrastrandoScroll(mouseEvent:MouseEvent)
    scrollHandle_mc.startDrag(false,bounds);
    arrastrando = true;
    scrollHandle_mc.addEventListener(Event.ENTER_FRAME, progress);
    function stopIt(mouseEvent:MouseEvent)
    scrollHandle_mc.stopDrag();
    arrastrando = false;
    function progress(e:Event)
    var moverScroll:Number = scrollHandle_mc.y - min;
    var percent:Number = moverScroll/intervalo;
    if (arrastrando == true)
    texto_txt.scrollV = percent * texto_txt.maxScrollV;
    What I want to do is clear the dynamic text field and use instead a movieclip (text_mc) that includes already the text, the bounding box would be a mask. How do I change the actionscript? Could anyone help me out?

    It isn't really a matter of math, as much as it is logical reasoning, but if you plan to do things with programming, you better plan on getting comfortable with learning math as well.  Programming and math go hand-in-hand.
    Here's a simplified explanation of what your code needs to do -> If you move the scroller 25% of the total distance it can move, then the movieclip should be moved 25% of the distance it can move (in the oppostie direction).
    Your scroller handle can be moved a predefined distance.  In your code that value is called "intervalo".  See if you can figure out how that value is determined in the 3 lines of code.
    var min: Number = scrollHandle_mc.y;
    var max: Number = min +(scrollBar_mc.height - scrollHandle_mc.height);
    var intervalo: Number = max - min;
    Later on in your progress function you can see where the scrollbar handle values com into play again when determining where to place the textfield.  But if we change that to be the movieclip, it becomes more like the following...
    function progress(e:Event)
        var moverScroll:Number = scrollHandle_mc.y - min;
        var percent:Number = moverScroll/intervalo;
        if (arrastrando == true)
             yourMC.y = percent * (yourMCmaxY-yourMCminY) + yourMCMinY;
            // where  yourMCmaxY-yourMCminY is the mc's movement range
            // which is likely to be negative since yMax is likely < yMin for the mc.

  • On button rollover Dynamic text and Movieclip appear

    Hi guys,
    I've got an issue - When one of my buttons is rolled over, I want text and a movieclip to appear. When the button is no longer rolled over, I want the text and movieclip to disappear.
    The way that I was going to do this was to have anchor_mc as an anchor, and upon rollover have the movieclip play from inside the anchor (as its at the exact X & Y that its needed at) and dynamic text appear.
    Questions:
    1) How do I attach mc_textbox to mc_anchor --- OR, how do I set coordinate for just where mc_textbox should show?
    2) How do I then make the movieclip disappear if the button is no longer rolled over?
    3) Is it not possible for me to merge all of the dynamic text functions into one function, using IF statements? I tried this, but couldn't work it out.
    AS3 code is attached below.
    import flash.events.MouseEvent;
    stop();
    line1.addEventListener(MouseEvent.ROLL_OVER, line_in1, false, 0, true);
    line1.addEventListener(MouseEvent.ROLL_OUT, line_out, false, 0, true);
    line2.addEventListener(MouseEvent.ROLL_OVER, line_in2, false, 0, true);
    line2.addEventListener(MouseEvent.ROLL_OUT, line_out, false, 0, true);
    line3.addEventListener(MouseEvent.ROLL_OVER, line_in3, false, 0, true);
    line3.addEventListener(MouseEvent.ROLL_OUT, line_out, false, 0, true);
    line4.addEventListener(MouseEvent.ROLL_OVER, line_in4, false, 0, true);
    line4.addEventListener(MouseEvent.ROLL_OUT, line_out, false, 0, true);
    line5.addEventListener(MouseEvent.ROLL_OVER, line_in5, false, 0, true);
    line5.addEventListener(MouseEvent.ROLL_OUT, line_out, false, 0, true);
    line6.addEventListener(MouseEvent.ROLL_OVER, line_in6, false, 0, true);
    line6.addEventListener(MouseEvent.ROLL_OUT, line_out, false, 0, true);
    line7.addEventListener(MouseEvent.ROLL_OVER, line_in7, false, 0, true);
    line7.addEventListener(MouseEvent.ROLL_OUT, line_out, false, 0, true);
    line8.addEventListener(MouseEvent.ROLL_OVER, line_in8, false, 0, true);
    line8.addEventListener(MouseEvent.ROLL_OUT, line_out, false, 0, true);
    line9.addEventListener(MouseEvent.ROLL_OVER, line_in9, false, 0, true);
    line9.addEventListener(MouseEvent.ROLL_OUT, line_out, false, 0, true);
    function line_in1(e:MouseEvent):void
            line_output.text = "This is a test made by the MonkeyTest that has previously messed up\n        And testing a new line";
    function line_in2(e:MouseEvent):void
            line_output.text = "up messed previously has that MonkeyTest the by made test a is This";
    function line_in3(e:MouseEvent):void
            line_output.text = "This is a test made by the MonkeyTest that has previously messed up\n        And testing a new line";
    function line_in4(e:MouseEvent):void
            line_output.text = "up messed previously has that MonkeyTest the by made test a is This";
    function line_in5(e:MouseEvent):void
            line_output.text = "This is a test made by the MonkeyTest that has previously messed up\n        And testing a new line";
    function line_in6(e:MouseEvent):void
            line_output.text = "up messed previously has that MonkeyTest the by made test a is This";
    function line_in7(e:MouseEvent):void
            line_output.text = "This is a test made by the MonkeyTest that has previously messed up\n        And testing a new line";
    function line_in8(e:MouseEvent):void
            line_output.text = "up messed previously has that MonkeyTest the by made test a is This";
    function line_in9(e:MouseEvent):void
            line_output.text = "up messed previously has that MonkeyTest the by made test a is This";
    function line_out(e:MouseEvent):void
            line_output.text = "";
            var mc= new mc_empty(); addChild(mc);

    It isn't relly clear to me what you have versus what you want, so these answers may be equally unclear to you.
    1. One way to join them together is to maually place one inside the other while authoring the file.  Another way is to use addChild to add the text mc to the anchor...  mc_anchor.addChild(mc_textbox);  To control where the text mc appears you can set its x and y properties.using actionscript... mc_textbox.x = 0;
    2. To make the movieclip disappear you can set its visible property to false... mc_anchor.visible = false;
    3. You can probably reduce that code substantially, though it partly depends on what variations there are really going to be in the text that displays for each rollover.  For now, I'll assume the text will be entirely different for each...
    for(var i:uint=1; i<10; i++){
         this["line"+String(i)].addEventListener(MouseEvent.ROLL_OVER, line_in, false, 0, true);
         this["line"+String(i)].addEventListener(MouseEvent.ROLL_OUT, line_out, false, 0, true);
    function line_in(e:MouseEvent):void {
         var lineTarget:MovieClip = MovieClip(e:currentTarget);
          // could use a switch instead of the if's in series if you know what a switch is
         if(lineTarget == line1){
              // do things for line1
         } else if(lineTarget == line2){
              // do things for line2
         ) else if.... etc

  • Dynamic scrolling slideshow

    Hi there I am creating a shop website
    I am using DWCS3 and PHPMYSQL
    I can already create all the product pages that can be
    dynamically populated from a form...... I can add, edit and delete
    products from my admin section of my site .... using a form ....
    all easy using a database to store all the picture and product
    details
    What I would like to be able to do is have the pictures that
    I upload to be automatically placed in a scrolling slideshow
    So that when you add a new product ...... when you click on
    the product detail page you see all the still pictures of the
    product ( which I can already do) .......but have an animated
    scrolling slideshow of the pictures as well
    Is there a program that can achieve this? Without knowing a
    lot of flash?
    Or is it possible and necessary to create the whole system
    using flash?
    Any help would be great
    Have a nice day

    Hi, check out this add-on for DW. :
    http://dmxzone.com/showDetail.asp?TypeId=3&NewsId=13984

  • Dynamic scroll bar not visible

    I created my text in a text file (saved as testtext.txt),
    then in Flash I added a dynamic text box (instance name: testtext)
    and dragged a scrollbar component (instance name: ttscroll) onto
    it. I then added this action script to the first frame:
    ttscroll._visible = (testtext.maxscroll >1);
    loadVariables("testtext.txt", this);
    The text shows up fine, and scrolls if I put my mouse in the
    text box and drag down. However, the scroll bar doesn't show up.
    How do I get this to work?
    Thanks.
    PS Due to company policies I'm not allowed to download and
    install anything, so I have to stick with what comes with Flash, so
    please don't recommend I download someone else's scrollbar.

    My first guess is that you are testing for maxScroll before
    the text is
    actually loaded, so the test result is false.
    You could use a listener for the loading function and let the
    listener's
    onLoadInit() event set the scrollbar.
    Another option is to use a textArea component. It has an
    automatic
    scrollbar.
    Rob
    Rob Dillon
    Adobe Community Expert
    http://www.ddg-designs.com
    412.243.9119

  • Dynamically loading a movieclip...

    Hi All..
    I know this sounds pretty pathetic.. but I can't get to load a movieClip dynamically...
    I have this code:
    import flash.display.MovieClip
    var myButton:MovieClip = new MovieClip;
    myButton.x = 30;
    myButton.y = 30;
    addChild(myButton);
    Also, I exported the movieClip to ActionScript with the name of myButton..
    When I test the movie- there're no errors, but there's nothing on the stage..
    Please help...

    if you have a movieclip in the library with class name myButton, use:
    var mybutton:myButton=new myButton();
    addChild(mybutton);

  • HTML Article put together dynamically, scroll only possible after orientation change

    Hi guys,
    i have encountered the following problem today:
    im having a HTML page put together dynamically from a JSON source file, handling the JSON information with jQuery. i am uploading said HTML page (html page is empty until the page is in the DPS stack, then it builds itself) as an HTML article with "Smooth Scrolling: Vertical". So far, so good.
    When i open the page inside the Adobe Viewer App on my iPad, i can see the "first" part of the page (the first 1024px in portrait-orientation) but i am not able to scroll further down the page.
    however, when i do a orientation change of the device (turn it landscape and then back), i can scroll perfectly fine and am able to see everything on the page (so im quite sure the conversion from json to jquery to html does work). even stranger, when i let the page tell me its height ( via $("body").height() and $(document).height() ) it shows me, that the height of the page is indeed (e.g.) 10.000px, but i am not able to scroll down until i do the orientation change.
    am i missing something? im pretty sure that my code is correct, because once i change the orientation of my device, everything does work flawless.
    i hope my problem is understandable, any help is much appreciated.
    thanks
    Max

    Nevermind... since the HTML is empty, when the magazin gets opened, i suspect the HTML tells DPS "hey, my height is 0px, dont bother scrolling!". but once i am on the page itself and the process of bulding the page starts (HTML elements are added on the fly), it doesnt tell DPS "hey, my height changed, check if i need to be scrollable please" since im not able to scroll. when im changing orientation, it forces DPS to rerender the page and thus getting the correct height of the page.
    my workaround: setting the body height to (e.g.) 20.000px and then, later on, reduce it to the actual height needed by the HTML elements.
    but still: can someone explain me the process of loading / rendering pages inside DPS? when do DPS render pages, does it render pages the first time i open the app and then again when im on the page itself (or rather a page before the actual page?) is there a command to force DPS to rerender the page?

  • Need dynamic scroller mc to work in main timeline

    I have a dynamic image scroller that scrolls right or left following where the mouse is.  When you hover over the images, a pop-up box also appears with information.
    This scroller works perfectly fine within the mc scene, but once i drag the mc into the main timeline the mc doesn't smoothly scroll right or left.  It's jumpy and the infobox doesn't work at all.
    How can I get it to work smoothly on the main timeline?

    the first problem i see is you're repeatedly executing that onMouseMove.  use:
    //roll over is equal to the function
    panel.onRollOver = panelOver;
    //when it enters the box, it makes the "scrollPanel" function work
    function panelOver() {
    this.onEnterFrame = scrollPanel;
    delete this.onRollOver;
    var b = stroke.getBounds (this);
    //makes the panel scroll with the mouse
    function scrollPanel () {
    if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
    this.onRollOver = panelOver;
    delete this.onEnterFrame;
    if(panel._x <= -707.8) {
    panel._x = -707.8;
    if(panel._x >= 332.4) {
    panel._x = 332.4;
    var xdist = _xmouse - 275;
    panel._x += -xdist / 7;
    //tip box is set to invisible to not be seen
    infobox_mc._visible = false;
    var tipInt;
    //when rollover on button, tip box will say "blank"
    panel.pic1_btn.onRollOver = function () {
    mmF();
    tipInt = setInterval(showTip, 100, "Piece 1");
    panel.pic1_btn.onRollOut = function() {
    hideTip();
    panel.pic4_btn.onRollOver = function () {
    tipInt = setInterval(showTip, 100, "Piece 2");
    panel.pic4_btn.onRollOut = function() {
    hideTip();
    //counts the time that the mouse is over the button
    var count = 0;
    //clears the text in the textbox and makes the box follow the mouse, and if the count is at 3 then, it appears, otherwise, it adds "1"
    function showTip(tiptext) {
    if(count == 3) {
    clearInterval(tipInt);
    count = 0;
    infobox_mc.tiptext.text = tiptext;
    infobox_mc._x = _root._xmouse+this._x;
    infobox_mc._y = _root._ymouse+this._y;
    infobox_mc._visible = true;
    else {
    count++;
    function mmF(){
    this.onMouseMove = function() {
    infobox_mc._x = _root._xmouse+this._x;
    infobox_mc._y = _root._ymouse+this._y;
    //hides the box when rolled off the button
    function hideTip() {
    clearInterval(tipInt);
    infobox_mc._visible = false;
    delete this.onMouseMove;

  • Puting images into dynamic scrolling text

    So I have a dynamic text box and it is linked to the UI
    Scroll component. How do I put images in so that the image scrolls
    with the text?

    What i find works is to import the the text into a dynamic
    text field in flash. I use notepad to write the HTML (which is to
    be loaded externally) and use this HTML to bring in the images,
    this way they all scroll with the text in the dynamic text box. So
    you could use the <img src> tag in the external text (in
    notepad) then import the text into flash using LoadVars() into the
    frame where you want the text.
    I've used this countless time for sites and stuff although im
    having problems getting the text nest into a movie clip (im about
    to post for help on that one .....
    Not sure how clear all that is to you......

  • Scrolling a movieclip

    How do I have a standard ScrollBar (or ScrollPane) scroll a
    custom MovieClip?
    Basically, I am creating a custom menu list, and need to have
    a standard looking scroll bar able to scroll all of the items. If I
    am making this from scratch, what is the best method? It seems that
    the ScrollBar component only works with a TextField, and that the
    ScrollPane only works with importing external images or SWFs. Is
    there a way to use the ScrollPane to target a MovieClip?

    Found this option online:
    http://www.flashscaper.com/blog/?p=3

  • How do I create dynamic scrolling text in Flash CS5?

    Hi everyone,
    I am a complete newbie to Flash. I'm tyring to build a scrolling text box that automatically scrolls. On mouse over, I want the scrolling to stop so users can click on an item in the text box. All of the items will be tied to external hyperlinks. I want to populate the text box with an external file. I've done some searches on Adobe, but haven't found anything that takes me through the whole process.
    I have the complete Adobe Master Collection. So if this is easier in Flash Catalyst, let me know. I know how to buid a manual scroll box in Flash Catalyst. Could I export this to and add the auto-scrolling?
    Remember, I'm a complete newbie.
    Any help will be greatly appreciated.
    Thanks!

    Thanks again Kglad,
    I really have no preference of Action Script since I don't have any significant experience with either one.
    I'll keep doing searches to see if I can get the information I need.
    Have a great holiday.

Maybe you are looking for

  • How do I upgrade the version of iOS on my iPad?

    I downloaded Numbers and Pages a couple of months ago and today got an update message but when I try to update these 2 Apps I get a pop up message that they are not compatible with this device (iPad 2 wi-fi +3G) says I need to have iOS 5. Can I upgra

  • TS1440 My hard drive is not showing up in the disc utility folder

    My computer froze and I had to turn it off via the power button.  Upon restarting, I encountered the screen with the flashing folder with a question mark. I followed the first couple steps, as well as some steps for the gray screen to no avail.  I go

  • How to Run a JasperReport in  web application

    hi , I am Deepan, Proffesional:Programmer, I Used the Ireport for jasper Report,Iam Running in webApplication(JSP,Tomcat as Server), I used the line JasperViewer.viewReport(jasperPrint,false); it work well in server system,that is where the Apache To

  • CSCue79218 - Add support for multiple managers for EIM/WIM users

    Hi Cisco BU, Which release of Cisco EIM/WIM will this feature be introduced in? Thanks, Yav

  • Regarding certification C_ADM_ORA_70

    Hi,I am appearing for certification on 13 th of this month .So,please help me out in preparing for the certification by telling me the details about the cutoff,way of answering.Please help me out.If i found any thing regarding this i will also share