Using a scrollbar with a movieclip

Hi,
I'm making an application and i have a movieclip with 12
buttons which are images. At any one time 4 are shown on screen. I
want to add a scrollbar at the bottom of the movie to slide the
buttons over. Can I use the UIScrollBar component to do this or is
it just confined to textboxes?

Hi
You created only one Object. Just i changed your code. pls look it.
var Timeline_mc:MovieClip = new Timeline_MC();
var flag:Flag_MC;
function ParseFlags(flagInput:XML):void
var locationList:XMLList  = flagInput.Flag.Location;
var titleList:XMLList  = flagInput.Flag.Title;
var actionList:XMLList  = flagInput.Flag.Action;
    for (var i:int = 0; i < locationList.length(); i++)
         flag = new Flag_MC();
          var locationElement:Number = locationList[i];
          var titleElement:XML = titleList[i];
          var actionElement:XML = actionList[i];
          flag.txt_title.text = (titleElement);
          flag.txt_intro.text = (actionElement);
          flag.x = (locationElement);
          Timeline_mc.addChild(flag);//[i];
addChild(Timeline_mc);
Thanks
Regards
Bala.S

Similar Messages

  • Using modular functions with movieclips

    hi guys, this morning i was looking a tutorial that shows how to make modular functions, the user only used numbers, i was wandering if there is a way to use this with movieclips or childs.
    The example was:
    function addNumber(num1:Number,  num2:Number,  num3:Number):void
    trace(num1+num2*num3);
    addNumber(3, 4, 7);
    i tried using a movieclip called cuadro and triying to move on the x axis, but it didnt work out:
    function mObj(obj1:MovieClip,  num1:Number):void
    obj1.x = num1;
    addNumber(cuadro, 50);
    any sugestion?
    thnks in advance

    oh sorry my bad, i was trying another stuff
    i know that the last line must say
    mObj(cuadro, 50);
    what im trying to do is use the function with some objects in the stage, and for example when i press the first button, it will write mObj(cuadro1, 50) , button2  mObj(cuadro2, 80), so i can use the same function for diferents objects

  • Using attachMovie with a movieclip declared in another swf

    I have to load one movie clip symbol (with linkage identifier specified) in another swf. Is this possible?
    Say,
    in 1.swf, I have a movieclip with identifier "a_id".
    in 2.swf, I loaded the 1.swf using loadMovie (to one blank movieclip). After that I need to attach the "a_id" to another blank movieclip (in the 2.swf itself)
    Thanks in advance.

    Thank you for the reply.
    But my application is not a web based one.
    I am developing a framework (as swf) in which some other swf files (target files) are played as movie clip. Since the framework swf should be considered as a general one, no direct linking to the other swfs preferred. I follow some (my own) rules to get things worked. For example, I need to show a simple movie cilp as the title in the framework. This movie clip will be different in different target swfs, and they will be stored inside the target swfs itself. I was thinking about giving them a unique id (eg. title_id) and after loading the target swfs, show their titles (movie clips) in one of the framework's empty movie clip (using attachMovie).
    Could please suggest me any idea to get things work?

  • Using browser scrollbars

    I cannot seem to get a browser (in this case IE 7) to show
    scrollbars for any Flex application. While I know how to use Flex
    scrollbars, they do not make up for browser scrolling, especially
    considering the flex scrollbars themselves have a tendency to get
    clipped out of a browser window. Is there a solution for this, or
    does using Flex automatically preclude a browser's ability to
    scroll.
    I noticed that on sample applications, like the Flex Store,
    this is an issue as well.
    Any advice would be much appreciated.

    We are having this exact problem. This is a pretty crazy
    problem. It seems like inner containers are not "pushing" the outer
    containers out far enough. The only resolution that I can find is
    to set a bunch of static sizes for containers, but then we lose the
    flexibility. Any ideas? The scrollbars are ridiculous cause they
    are constantly getting cut off by the browser or are there when
    they shouldn't be. Is there a better way for apps with multiple
    layers that are larger than the normal height of a screen?

  • How to make JTable use horizontal scrollbar

    My application uses a table to which data is added dynamically(both columns and rows). My problem is that when number of columns increase i want JTable to use horizontal scrollbar instead of resizing columns(which i achieve by setting resize mode to OFF state), But due to this if number of columns are less then there's alot of empty space left after showing columns(coz JTable cannot resize cols to fit Viewport area). To achieve both criteria i used following solution
    1. Set Auto resizing to OFF.
    2. Check if width of table is less than viewport width and if so then set auto
    auto resizing ON :) which will fit columns in viewport thereby occupying empty space.
    But this solution doesn't seem to be straight and simple to me. Is anyone aware of a simple solution to this problem.
    Dimension dm_Dm = new Dimension();
        RSBrowser.setModal(false);
        browseTable_Jt.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
        // reqd o.w. JTable resizes column widths instead  of using horizontal
        // scrollbar
        RSBrowser.setVisible(true);
        browseTable_Jt.getSize(dm_Dm);
        // if table width is less than total viewport size then fill the extra
        // space by setting suto resize property to ON.
        if ( browseTable_Jt.getPreferredScrollableViewportSize().getWidth() >
             dm_Dm.getWidth() )
            browseTable_Jt.setAutoResizeMode(JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS);
            browseTable_Jt.doLayout();
        RSBrowser.setModal(true);

    hi,
    with your problem statement it seems you should use javax.swing.JScrollPane like the one below
    JScrollPane tableScroller = new JScrollPane(yourTable);
    tableScroller.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    tableScroller.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_NEVER);hope this helps you,
    regards,
    Afroze.

  • Using Textarea Scrollbars

    Before I started using Dreamweaver, I used notepad. And I
    would use textarea scrollbars for excessive text.
    http://www.funky-chickens.com/tarea.shtml
    ...At the bottom, where it says Textarea allowing HTML. I usually
    use that on my previous websites. But using dreamweaver, when I
    install that snippet it creates problems and the tables stretch and
    screws up the whole site. How do I make that function work. I
    looked around and couldn't find that option
    Can anyone help me?
    A reference to how I use it:
    http://leyendarecords.com/biography.html
    ... Theres a website I made for someone. If you check out that
    page, you can see that I have scrollbars and text inside it. A
    friend made that template on Dreamweaver and I did everything on
    Notepad. Exactly how do I do that?

    That code is SO ANTIQUE it's unbelievable.
    <ilayer name="scroll1">
    <div id="scroll3"
    style="width:100;height:75;
    background-color:COLORHERE;
    overflow:auto">
    TEXT HTML TEXT HTML
    </textarea></div>The <ilayer> tag is not
    recognized by any browser than
    NN4x, and that browser is nearly extinct. In addition, they
    even omit the
    opening <textarea> tag and the closing </ilayer>
    tag, so in addition to
    being hopelessly antique, it's invalid too.
    > But using dreamweaver, when I install that snippet it
    > creates problems and the tables stretch and screws up
    the whole site. How
    > do I
    > make that function work.
    That's not surprising. DW doesn't know what to do with this
    markup.
    You could try just removing the <ilayer> tag -
    <div id="scroll3"
    style="width:100px;height:75px;background-color:COLORHERE;overflow:auto"><textarea>
    TEXT HTML TEXT HTML</textarea></div>
    but all form elements are required to be within an explicit
    <form>, so
    you'll have to add that -
    <div id="scroll3"
    style="width:100px;height:75px;background-color:COLORHERE;overflow:auto"><form>
    <textarea>TEXT HTML TEXT
    HTML</textarea></form></div>
    And then both the form tag and the textarea tag have some
    necessary
    attributes, so you'll have to add them too....
    I recommend you not use something like this, anyhow. There is
    a good
    discussion on this forum from just today about why it's a
    poor layout/design
    decision....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "streekd" <[email protected]> wrote in
    message
    news:[email protected]...
    > Before I started using Dreamweaver, I used notepad. And
    I would use
    > textarea
    > scrollbars for excessive text.
    http://www.funky-chickens.com/tarea.shtml
    > ...At
    > the bottom, where it says Textarea allowing HTML. I
    usually use that on my
    > previous websites. But using dreamweaver, when I install
    that snippet it
    > creates problems and the tables stretch and screws up
    the whole site. How
    > do I
    > make that function work. I looked around and couldn't
    find that option
    >
    > Can anyone help me?
    >
    > A reference to how I use it:
    http://leyendarecords.com/biography.html
    > Theres a website I made for someone. If you check out
    that page, you can
    > see
    > that I have scrollbars and text inside it. A friend made
    that template on
    > Dreamweaver and I did everything on Notepad. Exactly how
    do I do that?
    >

  • How do I use your iPhone with multiple iTunes libraries

    Hi, I have my music spread out between 3 seperate Itunes libraries on 3 different profiles on my computer. I have the newest generation Ipod Nano, Ipod Shuffle, and Iphone 4s. My Ipod's are both full, so I've decided to start putting music onto my phone. With my Ipod's, I can plug them into one profile on the computer, download the music on the Itunes library that exists on that profile, then do the same with the other profiles with no issue. However when I try to do this with my phone, It asks me to erase the music I have gotten from one Itunes library and sync with the current library, as soon as I plug it in to a different Itunes on one of the other profiles. I have my Iphone configured with the Manually manage music option, and I still haven't found a way to use my Iphone with multiple music libraries. PLEASE HELP

    http://support.apple.com/kb/PH12113 - If you use manual syncing, you can sync items from more than one iTunes library to your iPod. (You can sync iPod touch, iPhone, and iPad with only one iTunes library.)
    http://support.apple.com/kb/HT1202 - When manually managing content, you can add content from multiple libraries to your iPod or iPad. Even when manually managing music, some content may be available from only one library at time. This includes all content on iPhone and video content on iPod and iPad.
    They seem inconsistent as far as the iPad is concerned but in both articles the iPhone appears to only be able to sync to one library at a time.
    Troubleshooting Home Sharing - http://support.apple.com/kb/TS2972

  • Using multiple desktops with a 4 finger swipe on a Mac Book Pro running Lion- is there a way that I can allow Safari open on several but not all??  Looks like I can set it for one but not others.  All, one, or nothing

    Using multiple desktops with a 4 finger swipe on a Mac Book Pro running Lion- is there a way that I can allow Safari open on several but not all??  Looks like I can set it for one but not others.  All, one, or nothing

    Hey Eric,
    Thanks for taking the time. Unfortunately no that does not solve it. Same as swipe it will get me there and it will show separate programs spaced out. The issue I am having is that all my open word files are bunched up in a pile on top of each other. I can see the edges of each one but I want them to be separated from each other enough that I can visually identify what file is what.
    Again, thanks for trying, it is appreciated.

  • Error while using between operator with sql stmts in obiee 11g analytics

    Hi All,
    when I try to use between operator with two select queries in OBIEE 11g analytics, I'm getting the below error:
    Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
    Location: saw.views.evc.activate, saw.httpserver.processrequest, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool.socketrpcserver, saw.threads
    Odbc driver returned an error (SQLExecDirectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 27002] Near <select>: Syntax error [nQSError: 26012] . (HY000)
    can anyone help me out in resolving this issue.

    Hi All,
    Thank u all for ur replies, but I dint the exact solution for what I'm searching for.
    If I use the condition as
    "WHERE "Workforce Budget"."Used Budget Amount" BETWEEN MAX("Workforce Budget"."Total Eligible Salaries") AND MAX("Workforce Budget"."Published Worksheet Budget Amount"",
    all the data will be grouped with the two columns which I'm considering in the condition.
    my actual requirement with this query is to get the required date from a table to generate the report either as daily or weekly or monthly report. If I use repository variables, variables are not getting refreshed until I regenerate the server(which I should not do in my project). Hence I have created a table to hold weekly start and end dates and monthly start and end dates to pass the value to the actual report using between operator.
    please could anyone help me on this, my release date is fast approaching.

  • Are there advantages to using Adobe Bridge with Premiere Pro?

    I frequently use pictures with my videos.  Normally, I use Windows Explorer with the picture viewer to browse for what I'd like to use.  I've experimented with Bridge, finding it to be a memory hog and slow.  It got me wondering - Are there advantages vs. Windows Explorer?

    Bridge can be used to easily add hierarchical keywords to large amounts of clips (and afaik it's the only tool in the Adobe suit that can do hierarchical keywording with video files). Those keywords can then be used to find clips inside of Premiere. On large projects (1000+ clips) that can be a life saver.
    Apart from this and the features you mentioned (the cross software color stuff is useless for video as of CS6), I did not find any use to Bridge for video. Plus as you said, it is a memory hog, slow and in my own experience unstable with /  not adapted to video.

  • Using AJA IO with the FCP Voice Over Tool

    Has anyone used the io with the VO tool? I have gotten it to work in the past, however, there are a number of convoluted settings to go through to get it to work. It seems intermittent. Today it doesnt want to work at all.
    Does anyone have a list of the specific A/V settings, Capture presets, etc, that i need to have set in order for this to work?
    FYI--I have never had a problem capturing from tape--(using log and capture with beta, digibeta, dv, vhs)--only when capturing analog audio using the VO tool.
    gracias.
    dk

    You can do it here, in the Audio/Video settings under the Final Cut Pro menu. Click on the Capture Presets tab, then go to Generic Capture Template, duplicate it, then edit. Give it a name that you can recognize when you need to set up your project.

  • How do i run an external monitor with my macbook and change settings so that when i close the lid the signal to the monitor is not lost and i can continue using the mac with a mouse and a wireless keyboard?

    How do i run an external monitor with my macbook and change settings so that when i close the lid the signal to the monitor is not lost and i can continue using the mac with a mouse and a wireless keyboard?

    No, nothing will prevent the computer from going to sleep when you close its display except third-party hacks that are designed to do exactly that. I strongly advise against using any of those, as they may interfere with successful entry into clamshell mode (and they carry other downside risks as well). Just wait until the computer is asleep (with its sleep light pulsing), then press any key on the keyboard. It sounds as though your setup is working as it's designed to do.

  • How do I use a DAC with my Airport Express ?

    Hello,
    Can I use a DAC with Airport Express ? If yes, how ?
    TIA

    check out this CNET Crave article: Using Apple's AirPort Express with a DAC: A how-to guide

  • How do I use my ipad2 with apple tv

    How to connect and use my ipad2 with apple tv---the laptop works but can't get apple tv to recognize iPad

    The iPad only words with it by using it A's AirPlay output

  • How do I use my ipad with Apple TV?

    How do i use my iPad2 with Apple TV?

    If it's an ATV2 or 3, you can use AirPlay. AirPlay automatically becomes available when the two devices are on the same Wi-Fi network.
    HOWEVER! You should be aware of that AirPlay is, in some circumstances, far inferior to VGA / HDMI-cabled solutions. Please see my posts at https://discussions.apple.com/message/18697551?ac_cid=sa123456#18697551 for more info.

Maybe you are looking for

  • HELP! How to import .mpg movies from a photocamera?

    I'm trying to import mpg movies in Imovie, but it doesn't accept this format. I also tried to convert it to a mp4 file, but they are low res and I need high res (tv use). Please help me out! Thanks!!!

  • PO item partial GR caused commitment issue

    hi, we have a probem caused by the PO item partially GR. I would like to distingish the GR for a PO item whether is a partially or fully. We have a customize report for generating the commitment and send to other sysem.  the problem here Say, one po

  • Client not associating to closest AP bringing bad connectivity

    Hello, We have installed 40 AP in our building, thus using Cisco 1010/1020 Ligthweight AP and 4400-50 series Contollers. In some places, the laptop connect sometimes to bad signal AP instead of the one beeing vary close, thus bringing vary bad connec

  • Please Help!!! error executing procedure and populating to gridview

    I have used a tool to convert my sql 2000 stored procedure to Oracle 10g PL/SQL, here is an example SQL 2000 Stored Procedure CREATE PROCEDURE [GetEmployees] AS Select * from EMPMST ORDER BY emp_name GO After Transformation i got 2 files, one was a p

  • Dreamweaver vs dot net

    I am a print designer new to web site development. I want to convince my boss to let me redesign the site using DW (plus some additional coding as necessary for searches etc.) It is a mid-sized book publishing company. The current site was done (as I