ScrollPane Component

I need help regarding ScrollPane tool in Flash CS4. As i need to display a image in it. I have a "zoom" effect set up to where when the user pushes
the + button,the x and y scale is increased
But when I does so Scroll bar doesnot get resized automatically.... nd thus due to increased size only half of the image remain visible. Plz help me out..

I tried using validateNow() method but it still dint solved my problem.....
aSp.setSize(300, 200);
inc_btn.addEventListener(MouseEvent.CLICK,zoom);
aSp.source = "IMG_0640.jpg";
function zoom(event:MouseEvent)
aSp.content.scaleX+=2;
aSp.content.scaleY+=2;
aSp.validateNow()
Can u plz suggest where I m getting it wrong...

Similar Messages

  • ScrollPane component's border

    Hi guys,
    I am having a problem with scrollPane component, i want to
    remove it's border entirely but i can't succeed. I tried with
    myscrollpane.setStyle("borderStyle", "none");
    which removes border but only until I scroll or click
    anywhere inside scrollPane and then that green highligh border
    appears. I search everywhere but i just can't find solution for
    removing this
    Can anyone help me on this please?
    thank you very much

    myscroll.border_mc._visible = false;

  • Display Arabic text in ScrollPane Component ?

    hello,
    i have RSS reader it's work fine with english but the problem
    is arabic text don't display in RSS reader just english and help
    about to display arabic text in ScrollPane component that component
    reader info from xml file and display it ?
    Regard,
    Crimson

    any idea ?

  • Controlling content height in the scrollpane component

    I'm using the scrollpane component to display content, within
    the content movie clips, are swf animations that are being imported
    using targets. Some of the animation's parts go far beyond the
    height of the stage, causing the scrollpane to adjust for the
    height of the imported swf, as opposed to the height of the content
    movie clip. How can I fix this?

    The content clip's size is determined dynamically by what
    it's content is at any given time. If you change the content, there
    is every reason to expect the content clip's size to change as
    well.
    If you do change the content of the scrollpane, you need to
    redraw (Flash 7+) or refresh (Flash 6) the pane after the new
    content is loaded.

  • ScrollPane component smooth scrolling

    Hello. I just started working with AS 3.0 and I'm yet
    learning basics. I searched google and couldnt find the answer to
    my question; How to make scrolling on ScrollPane component smooth
    with AS 3.0? Please help.

    Hello. I just started working with AS 3.0 and I'm yet
    learning basics. I searched google and couldnt find the answer to
    my question; How to make scrolling on ScrollPane component smooth
    with AS 3.0? Please help.

  • ScrollPane Component - content alignment

    Hi everyone,
    I'm using the ScrollPane component to scroll a movie clip. I
    understand that the ScrollPane aligns the movie from the top left
    of the centre point. Is there anyway to change where the ScrollPane
    aligns the movie?
    The problem is, my movie clip is vertically long and I have
    run out of space at the bottom of the actual document and so I need
    to move the entire content of the movie clip vertically; but this
    obviously means the ScrollPane currently displayes the moving clip
    from about a third of the way down.
    Thanks kindly for your help.
    Lyle

    try hPosition & vPosition properties, e.g:
    myscrollpane.hPosition=50;
    myscrollpane.vPosition=50;

  • Control over the scrollPane component.

    Gidday
    I've got some moveieClips in container in a scrollpane component.
    The movieClips are draggable.
    I'd like to add extra functionality where if an item is dragged and touches the bottom of the scrollpane, it automatically scrolls up, and the reverse if you touch the top with a dragged object.
    I tried the scrollDrag, but I only want it to scroll once the dragged item touches the bottom or top.
    So I wrote this and put it in the drag function:
        if  ((this.hitTestObject(MovieClip(this.root).rowsHolderTopLine))  && MovieClip(this.root).rowsHolder.y < 200)
                trace(MovieClip(this.root).rowsHolder.y);
                MovieClip(this.root).rowsHolder.y = MovieClip(this.root).rowsHolder.y+10;
                this.y = this.y-10;
    It needs a bit of work, and I think I can get it working, but the one thing I'm stumped on is how to make the scrollbar move too.  Is there a way to communicate with the component using code (I created this component from the component inspector)?
    Thanks
    Shaun

    OK - I think I've got it:
    MovieClip(this.root).playlistScrollPane.verticalScrollPosition = MovieClip(this.root).playlistScrollPane.verticalScrollPosition-10
    this.y = this.y-10;
    Needs a bit of work, but it's on the right track.
    Cheers
    Shaun

  • Flash scrollPane component

    Hello All,
    I have a scrollPane component set up with a long form in it.  When a user gets to the bottom he can submit the form, the button then navigates him away from the scrollPane.  If the user comes back to the scrollPane, the content in the scrollPane is scrolled all the way to the bottom where they clicked away.  How do I reset the content so if they return to the form, the top of the form is visible in the scrollPane instead of the bottom of the form?

    Check out the verticalScrollPosition property of the ScrollPane class.

  • Is there a way to unload content from a scrollpane componant?

    Hello,
    There's is probably an easy answer to this but i'm new to web design and probably took the hard road with using Flash CS4.
    My problem is that i have text imported from Photoshop as a movieclip loading into a scrollpane which works the way i want it. However when i click another button which loads content into a UIlLoader componant the text in the scrollpane stays onscreen. How do i get the scrollpane content to unload? The content needs to display in the same space so scrollpane and UILoader are basically ontop of eachother.
    Could someone provide a solution?
    Many thanks

    I can't find anything that unloads, though maybe you could load in an empty movieclip instead trying to unload the current one.
    Or you could make the scrollpane invisible by setting its visible property to false if that's an option.
    Another option would be to use the removeChildAt() method and target the numChildren-1 value of the scrollpane (otherwise you start removing pieces of the scrollpane).

  • Actionscript to control scrollPane component

    I am trying to control a scrollpane "my_sp" with a couple of
    buttons "down_bt" and "up_bt"
    I am pretty new to coding. Anyone see any errors. Thanks for
    the help.
    my_sp.setStyle("borderStyle", "none");
    my_sp.setSize(300, 300);
    down_bt.onPress = function() {my_sp.scroll += 1;};
    up_bt.onPress = function() {my_sp.scroll -= 1;};
    stop();

    I am trying to control a scrollpane "my_sp" with a couple of
    buttons "down_bt" and "up_bt"
    I am pretty new to coding. Anyone see any errors. Thanks for
    the help.
    my_sp.setStyle("borderStyle", "none");
    my_sp.setSize(300, 300);
    down_bt.onPress = function() {my_sp.scroll += 1;};
    up_bt.onPress = function() {my_sp.scroll -= 1;};
    stop();

  • Should I build my own component, or is there a solution to my built-in ScrollPane woes?

    "I am desperate. I am going insane. Please, please help me."
    That is how my last post ended. And no one replied, which I
    suppose means that there is no solution to the problem I have with
    the ScrollPane component in flash 8.
    I just want to put both of the scroll arrows of the
    ScrollPane's scroll bar together on the same end of the scroll
    track, instead of at opposite ends of the track.
    I have customized everything else about the ScrollPane with
    HaloThemes and setStyle, etc, but cannot seem to re-position the
    arrows.
    So, I am wondering if I should just make my own scroll pane.
    I have been cautioned against using too much actionscript in flash,
    though, so I am wary. Anyone know of a reliable method for making a
    scroll pane for images with scroll arrows that can be positioned
    together?
    Or should I stick it out with the built-in ScrollPane?

    No, what you ask is not possible with the standard
    components.
    I don't understand why you would be cautioned against using
    "too much actionscript" in Flash....
    Everything I do is built entirely with AS these days. I even
    draw out all of my elements at runtime, and this makes my
    interfaces faster, both in loading and in processing. So there is
    nothing wrong with using a ton of AS in Flash. However, if you do
    not know AS very well, these things are fairly difficult to do.
    If you do know AS fairly well, then go ahead and make your
    own Scroll Pane. Best-case scenario, you make a component that fits
    your needs, and is much smaller (file-size) than the ScrollPane.
    The built-in components tend to be a bit bloated. Worst-case
    scenario: Over too much time, you make something that is bigger
    than the ScrollPane component, and pretty much does the job you
    want, but is a bit buggy, and you have quite a few headaches on the
    way.
    Personally, I do not understand why Adobe hasn't given us the
    ability to rearrange the arrows on the UIScrollBar, or even simply
    turn the track off completely. These seem like simple things that
    should be easy for Adobe to add. I really need to compile a list of
    things to submit through the wish list page.
    So, you can stick with the ScrollPane, have it easy and done,
    but with a sub-ideal scrollbar. Or you can work at building your
    own ScrollPane component. If you build your own, you may spend a
    bit of time in development, but you will be able to get your
    scroller to display the way you want.

  • Please Help me place the arrows of my ScrollPane scroll bar together on one end of the scroll track!!

    I have a scrollpane component with a movie clip of some
    thumbnail images.
    I just want to have its scrollbar arrows together on one end
    of the track (or together ANYwhere) instead of having them at
    opposite ends of the scroll track.
    I have been able to customize the appearance of the
    scrollpane and its scrollbar using the HaloTheme library, but that
    approach has so far been of no use in getting the arrows together.
    I cannot tell you how deeply any help will be appreciated. I
    will probably sob and mewl with gratitude, the way I imagine
    someone lost in a vast rain forest for many weeks mewls when
    rescued. I am desperate. I am going insane. Please, please help me.

    Cherrylanenc are you on a managed network?  If not then I would recommend reviewing the steps listed in Sign in, activation, or connection errors | CC, CS6, CS5.5 - http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html.

  • Alpha Tween not working on ScrollPane gallery?

    Hello i have a problem with my as3 working on normal movieclips, but not on the gallery, the site  works by loading an external swf file with the UILoader, the swf that is  loaded is a ScrollPane that loads a Movieclip.
    The script i use:
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    var myTweenAlphaRoskilde:Tween = new Tween(roskildemc, "alpha", None.easeNone, 0, 1, 40, false);
    1. frame is the preloader
    2. frame is the Scrollpane and Movieclip that loads, the action is added here.
    The file if it makes it easier:
    [Link removed by moderator at OP's request]
    Thank you very much! =)

    As i wrote, the timeout stuff was added because the preloader wasnt loading the scrollpane the second time one visited the gallery, it just stuck because it was already loaded, see the other forum questioin i posted a link to. If you think it should be removed, exactly what parts should be removed? Could you post the script without the lines that are not needed, im not really a as3 pro.
    There is a main index file with different uiloaders on various keyframes which loads the external swf files
    [link removed at poster's request]
    The external swf's have a preloader in frame 1 and in frame 2 it has the ScrollPane component that loads a movieclip.
    [link removed at poster's request]
    There is no uiloader code, im using the built in one, it loads the externals fine but i cant add the alpha tweening so they fade in.
    There are 3 external swf's with the preload script i posted, the main index file has the folowing preload script:
    stop();
    var loadCompleteBool:Boolean;
    trace("preloader frame");
    if(loadCompleteBool){
    trace("loadcomplete")
    loaderInfo.removeEventListener(ProgressEvent.PROGRESS,  updatePreloader);
    nextFrame();
    //Preloader
    loaderInfo.addEventListener(ProgressEvent.PROGRESS,  updatePreloader);
    function  updatePreloader(evtObj:ProgressEvent):void
        //container for  the progress of the site (download)
        var percent:Number =  Math.floor((evtObj.bytesLoaded*100)/evtObj.bytesTotal);
         preloader_txt.text = percent+"%";
        if (percent==100){
    trace("preloader")
    loadCompleteBool=true;
             nextFrame();

  • Component problem

    I am loading a swf into a level. I have a scrollPane
    component in the SWF
    and a preloader.
    Now the preloader works but doesn't show the loading bar. I
    am assuming this
    has something to do with the fact the the scrollPane content
    is loading at
    Runtime and this is interfering with the prelaoder showing
    up? Any thought
    on how to get around this?
    Thanks

    Ok I've got it. I made mistake when I put URI parameters into *.tld file. Sorry!

  • Alternative scrollpane to load dynamic content

    I'm trying to load jpgs to my scrollpane dynamically. I
    noticed the compiled scrollpane component in flash 8 is very large
    in size (> 130kb) which i cannot afford to use. Instead I'm
    using the flash 6 scrollpane which is not precompiled and only
    several kbs after compiling to swf. However, I have problem
    rendering loaded dynamic contents onto the pane. The first load
    after starting flash 8 was always successful. After that, it fails.
    In case anyone's interested, I have simple test code to demonstrate
    the problem, and have uploaded it to
    http://www.filesend.net/download.php?f=1c5d80093f0b68cdcf7fe4cca0e0c923
    (you'll need to wait for 10 secs before the download button appears
    on that linked page)
    I'm just wondering what is the best choice of a small size
    scrollpane that handles dynanimic MovieClip.loadMovie() well. Any
    suggestions?

    i just found out that scrollpane component is not that huge
    (only 38kb). Does anyone know why when I add it to my project my
    swf increases by 130kb?

Maybe you are looking for

  • Could not see the data in the cube

    Hi all, Iam trying to load data from one cube to another. Everything is fine but Iam not able to see the data in the new cube. I created 2 cubes--> Cube A new & cube B new which are copied from existing cubes cube A and Cube B. I need to load data fr

  • How to change PDF document dimensions - Acrobat Pro 9

    Hi, I'm trying to figure out how to change the dimensions of my PDF in Acrobat Pro. The original artwork was created in Illustrator and the final document is primarily for screen use (not print) so was created using pixels (600x665px to be precise).

  • Depreciation on revaluated fixed asset

    Dear Experts, I have revaluated fixed assets. My query is that, while posting depreciation on this revaluated FA, the depreciation should be calculated from the asset value date mentioned in the master record of the fixed asset or system should calcu

  • AIEvents in CC

    AIEvents are not working in Illustrator CC.          var adapter:AIEventAdapter = AIEventAdapter.getInstance();          adapter.addEventListener(AIEvent.ART_SELECTION_CHANGED,selectionHandl er);          adapter.addEventListener(AIEvent.DOCUMENT_CLO

  • PreparedStatement strange error

    Hi. When I use Prepared statement like this: first, in the constructor I create it: PS = con.prepareStatement("SELECT text FROM arts WHERE title = ? LIMIT 1;");and use it: PS.setString(1, title); // title is a String - I'm sure ResultSet rs = PS.exec