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.

Similar Messages

  • 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

  • Restrict the height of the xcelsius component

    i create a text input component for xcelsius. i packeged it through addon manager. i want to restrict it's height . but i am not able to do it. when the user drag it it's size chages according to the user dragging area.
    Can any one help me
    Thanks in advance

    It might be helpful for you to post this thread on the Xcelsius SDK, not on the Xcelsius Forum:
    Flex SDK Development
    Regards
    Victor

  • 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 MovieClip that's inside ScrollPane

    Does anyone know if it's possible to access and modify a
    MovieClip that's been placed in a ScrollPane? I want to be able to
    manipulate a MovieClip at runtime with ActionScript, but allow the
    viewer to scroll the MovieClip...
    Do I need to find a different approach that doesn't use the
    ScrollPane component?

    Is the movieclip part of the content of the scrollpane?
    I use the following line of code to affect one of the MCs
    that are in the
    scrollpane as part of the content.
    _root.csp_scrollingBullets.spContentHolder["bullet_1"].gotoAndPlay(1)
    HTH,
    If you have questions, my email is [email protected]
    -Marc Lee
    "stratosnatcher" <[email protected]> wrote
    in message
    news:edpqqh$1up$[email protected]..
    > Does anyone know if it's possible to access and modify a
    MovieClip that's
    been
    > placed in a ScrollPane? I want to be able to manipulate
    a MovieClip at
    runtime
    > with ActionScript, but allow the viewer to scroll the
    MovieClip...
    >
    > Do I need to find a different approach that doesn't use
    the ScrollPane
    > component?
    >

  • How to calculate the real height of the text in RichEditableText control?

    Hello,
    I created a new component by extending the RichEditableText control.
    When I try to get the value of contentHeight propery of this class even after compositionComplete event has fired, I get incorrect content height (so called "estimated" height). I was able to obtain the correct value only ater I set verticalScrollPosition to a value beyond this estimated content height thus causing the class to calculate real text height. Here is a code snippet.
    public class ViewerController extends RichEditableText
    public function loadText(){
       var tf:TextFlow = TextConverter.importToFlow(LONG_XML_FILE_WITHOUT_PICTURES_GOES_HERE as XML, TextConverter.TEXT_LAYOUT_FORMAT);
       //Events  
       tf.addEventListener(CompositionCompleteEvent.COMPOSITION_COMPLETE, compositionComplete);
       tf.addEventListener(StatusChangeEvent.INLINE_GRAPHIC_STATUS_CHANGE, pictureLoaded);
       this.textFlow = tf;  
       this.verticalScrollPosition = 0;  
       this.textFlow.flowComposer.composeToPosition(); // I assume this makes the control calculate the real size of the text
    private function pictureLoaded(event:StatusChangeEvent):void {
    private function compositionComplete(event:CompositionCompleteEvent):void {     
    But what if I want to know the real height BEFORE I scroll to the very bottom of the text (or before even displaying this component)?

    SDN is not your code factory, please research yourself before posting, maybe ask whoever handed you this requirement?
    Thread locked.
    Thomas

  • 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).

  • Can you print all the tab control's contents and include the tabs?

    We are trying to generate a report that includes the contents of a tab control (graphs, text).  Using the Append Control Image to Report.vi, we are only able to print out the active tab and the tab is cut off of the image. How can we generate reports that include all the tab pages and their contents and include the labeling tabs?
    Thanks in advance.
    Jim

    I do have a workaround for makinging the prints but it looks like some sort of cropped screensave that cuts off the tabs.  In my sample I was printing out 3 of the tab controls and you can see there are three by the cut off tabs.  Is there a setting to allow for more of the graph and its surroundings to be "captured"?
    Attachments:
    Document.pdf ‏53 KB
    Document (2).pdf ‏51 KB
    Document (3) (2).pdf ‏58 KB

  • The master site control file does not contain a component item for SMS_STATUS_MANAGER.

    New to the System Center world. We are using a fresh install of Server 2012 R2 and System Center R2 with everything working until Server 2012 R2 Update 1 was installed. Now we are getting the following:
    Site type: Primary Site or CAS SMS_STATUS_MANAGER
    6/4/2014 1:35:21 PM 10996 (0x2AF4)
    Resolved the "Status Manager" inbox to "C:\Program Files\Microsoft Configuration Manager\inboxes\statmgr.box\statmsgs".
    SMS_STATUS_MANAGER 6/4/2014 1:35:21 PM
    10996 (0x2AF4)
    Opened a change notification handle for directory "C:\Program Files\Microsoft Configuration Manager\inboxes\statmgr.box\statmsgs".
    SMS_STATUS_MANAGER 6/4/2014 1:35:21 PM
    10996 (0x2AF4)
    Resolved the "Site Control Manager (Master Site Control File)" inbox to "C:\Program Files\Microsoft Configuration Manager\inboxes\sitectrl.box".
    SMS_STATUS_MANAGER 6/4/2014 1:35:21 PM
    10996 (0x2AF4)
    Opened a change notification handle for directory "C:\Program Files\Microsoft Configuration Manager\inboxes\sitectrl.box".
    SMS_STATUS_MANAGER 6/4/2014 1:35:21 PM
    10996 (0x2AF4)
    Parsed the master site control file, serial number 1551209029.
    SMS_STATUS_MANAGER 6/4/2014 1:35:21 PM
    10996 (0x2AF4)
    This site is the central site. SMS_STATUS_MANAGER
    6/4/2014 1:35:21 PM 10996 (0x2AF4)
    ERROR: The master site control file does not contain a component item for SMS_STATUS_MANAGER.
    SMS_STATUS_MANAGER 6/4/2014 1:35:21 PM
    10996 (0x2AF4)
    Sleeping for 60 seconds... SMS_STATUS_MANAGER
    6/4/2014 1:35:21 PM 10996 (0x2AF4)
    Any thoughts on how to fix this? Seen a few references to a "site reset" for SCCM 2007 but wanted to make sure there wasn't anything else to try before heading down that road with 2012R2.

    A site reset can also be done in CM12 so it's worth a try.
    Torsten Meringer | http://www.mssccmfaq.de

  • Is it possible to control the height of the Portfolio panel via the PDF Portfolio itself?

    Hi All,
    Is it possible to embed into a PDF Portfolio kind of a directive to Adobe Acrobat Reader what should be the height of the Portfolio panel (red line on the image below)?
    The idea, basically, is to adjust the height of the panel to the number of files in the portfolio.
    Alternatively, is there a way to embed a directive to open by default the Layout pane instead of the Files pane?
    Thank you all in advance for assistance!

    You can control it at initial view time, but not dynamically.  Once its displayed it's user-controlled.
    AFAIK, you can't open it into Layout mode.

  • Getting a wrapper container div to adjust to the height of the content within it.

    Hey -
    I have a "wrapper" div tag set up and then I have a bunch of separate div boxes within that.
    The way I did it is all the div boxes within the wrapper are set to "absolute" position and then I basically put them all where I wanted them by defining the "top" and "left" property.
    What I'd like now is the "wrapper" div to adjust in height according the size of the div boxes with in it.
    How can I do this?
    Thanks....

    Height of a container needs to be determined by the content inside it.  If your site visitors increase text size in their browser, and you have explicit height values expressed in your CSS, your page could fall apart or become unusable.
    For better answers, we need to see your page.  Can you post a link?
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • How can the content height of an iWeb page be reduced below zero?

    In some of my iWeb "Photo" pages, there is a large amount of white space, below the last photos, that I can not reduce. In Inspector/Page/Layout, Content Height is 0 px, but the unwanted bottom white space can be as great as the top space occupied by photos. The problem comes when double-clicking on a photo that resides near the bottom of the page: the new page opens at its TOP, but the enlarged photo can be in the white space at the bottom of the page. Scrolling up is then necessary EACH TIME just to view the enlarged photo.
    My question, why is there empty white space at the bottom of my photo pages, and how can I get rid of it?

    And it remains a puzzlement!
    I followed your suggestions, but nothing changed: there is still excess white space below pictures in some of my albums.
    Maybe the reason is that my domain files are not in User/Library/Application Support/iWeb folder. They are in User/Sites, and their are three of them now. When I first started using Web years ago, User/Sites is where domains were found and I had only two of them (my travel photos and the pages for my Mac user group, SMUG.net). Last March I added a third site, but by then iWeb no longer allowed creating more than one domain file. So SMUG and the new site co-existed in the second domain file. Eventually, I duplicated the domain file, deleted the SMUG site from one of the duplicates, and the new site from the other domain file. The result is that I got three domain files.
    I don't think having three domain files caused the problem that I am having, as I did not add new photos to my travel domain until late May at the least, when my photos of Portugal were entered. And not all those Portugal photo albums have the excess white space below the pictures.
    Do you have other suggestions I might try? As other strange happenings have been occurring now and then in my Mac, I've been considering reinstalling OS 10.6 for a while now.

  • Iframe is not increasing its height when the content inside it is growing,

    I have an I frame in my application with src= “ url” ifarme is appearing with vertical scroll bar it’s not achieving the height ,
    The parent component of the iframe is panel group layout and also I try with panel stretch layout
    Please help me on this

    You might want to read over this. It will explain why your panelStretch won't stretch within a PanelGroup
    http://docs.oracle.com/cd/E23549_01/apirefs.1111/e12419/tagdoc/af_panelGroupLayout.html

  • [svn:fx-trunk] 8024: Fixed an injection where setting the 'content' property of Spark text component to a TextFlow would cause you to get a TextFlow nested inside a TextFlow .

    Revision: 8024
    Author:   [email protected]
    Date:     2009-06-19 16:59:25 -0700 (Fri, 19 Jun 2009)
    Log Message:
    Fixed an injection where setting the 'content' property of Spark text component to a TextFlow would cause you to get a TextFlow nested inside a TextFlow.
    QE Notes: None
    Doc Notes: None
    Bugs: SDK-21906
    Reviewer: Carol to review
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-21906
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as
        flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichText.as

    Well, I've already solved one of the two issues
    In order to display the icons on my buttonbar buttons, I just needed to point at {hostComponent.data.data} instead of {hostComponent.data}. I'm not sure why, but {hostComponent.data} in my skin class is a handle on my instance of ButtonBarButton, not its "data" property. Any explanation is welcomed
    I still have got the first issue though. Oddly enough my design works if I put an mx Image instead of the spark BitmapImage for the client logo. That will do the trick for the moment but I'd prefer to deliver a 100% pure spark component in my prototype, and I can see no reason why BitmapImage works inside my ButtonBarButtons and doesn't otherwise...

  • Spry Accordion menu - How do you make tabs without content and make panel height fit the content?

    I have an Accordion Menu on my site and I would like to put a tab at the top that links to my homepage when clicked, instead of sliding open to show a content panel. I don't have any extra info to put in the content panel, so it would look kind of redundant to have it there.
    Also, each panel has a different amount of content, but they all default to the same height to fit the largest content. I want them to fit to the content of each panel. The only thing I've read said to set the height of the content panel to 100% in the CSS, but it didn't change anything.
    Thanks!
    Andrea
    http://www.andreamutsch.com

    You make it look so simple but it doesn't seem to be working for me...
    My first thought with getting rid of the tab content was to simply delete it, but when I do that I get a warning that 'The structure of the accordian appears to be damaged'. Then when I preview none of the tabs will open.
    This is what my accordian structure looks like with the tab content code deleted...
    <div id="Accordion1" tabindex="0">
          <div class="AccordionPanel">
            <div class="AccordionPanelTab">home</div>
            </div>
          <div class="AccordionPanel">
            <div class="AccordionPanelTab">graphic design</div>
            <div class="AccordionPanelContent">
              <p align="center">identity </p>
              <p align="center">print </p>
              <p align="center">packaging</p>
              <p align="center">web </p>
            </div>
          </div>
    <div class="AccordionPanel">
            <div class="AccordionPanelTab">photography</div>
            <div class="AccordionPanelContent">
              <p>traditional</p>
              <p>digital</p>
              <p>retouch</p>
            </div>
          </div>
          <div class="AccordionPanel">
            <div class="AccordionPanelTab">contact</div>
            <div class="AccordionPanelContent">
              <p>email me</p>
              <p>design quote</p>
              <p>purchase photography</p>
            </div>
          </div>
          <div class="AccordionPanel">
            <div class="AccordionPanelTab">resume</div>
            <div class="AccordionPanelContent">download resume (.pdf)</div>
          </div>
          <div class="AccordionPanel">
            <div class="AccordionPanelTab">design blog</div>
            <div class="AccordionPanelContent">2009</div>
          </div>
    Also, getting rid of the height in the CSS had no effect (I did this before I did the above)
    Below is my current CSS for the Panel Content
    .AccordionPanelContent {
        overflow: auto;
        margin: 0px;
        padding: 0px;
        font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
        font-size: large;
        background-color: #633408;
        font-weight: normal;
        word-spacing: normal;
        text-align: center;
    Also there is a note in the CSS that says this...
    * Anyone who styles an Accordion *MUST* specify a height on the Accordion Panel
    * Content container.
    I'm not sure how accurate that is since I don't have a height in there and it worked (although not how I wanted) but I just thought I would throw it in.

Maybe you are looking for

  • Error on startup with B1 Usability Add-on

    We are currently running B1UP Version 3.0.1.1 on SAP B1 2007A PL41. We are getting errors on start up and the B1 Usability package is not running properly. I've tried contacting Boyum IT support but they are gone for the day (they're in Denmark) and

  • Updateing to i tunes  8.2.1 error message wont install

    help..trying to install itunes 8.2.1 but get warning message that it does not have a 'valid signature' and will not be installed. i was hoping that having the most uptodate itunes version would assist in finishing downloading a pop video that wont co

  • How to make and build a dinamic web project

    hi people, i just downloaded the flex 2 beta 3, and installed this "separated" of the eclipse application, but my question is .. how i have to create a new dinamic project, that contains the Web-Inf folder and Meta-Inf folder..?? off course that i ha

  • Reg:Convert DOCX to HTML

    Hi, I want to convert a microsoft word document(docx) to html using code. Can anyone help me in this context ... The doc which I am trying to convert will have Bullets,bold,italic,Images etc ... I am able to get the text but not the images and bullet

  • Need documents for SM4.0 on transports management

    I have searched the entire SDN and OSS but found none. Please help, points guaranteed. Thanks!