Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6030497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:02:43+00:00 2026-05-23T05:02:43+00:00

got a little flex application where the content is zoomable. first of all some

  • 0

got a little flex application where the content is zoomable.
first of all some code

<s:Scroller  verticalScrollPolicy="on"  width="100%" height="100%">



<s:Group scaleX="{breite}" scaleY="{hoehe}" 

         id="mapView" > <!-- zum zoomen -->

    <s:Group horizontalCenter="0"  id="kartePanel"  verticalCenter="0">
    <images:karte  height="630" width="430"   />


        <components:akwOnMap data="{biblis}" verticalCenter="{biblis.y}" horizontalCenter="{biblis.x}" 
                             scaleY="{negate}" scaleX="{negate}" toolTip="{biblis.name}"/>



        <components:akwOnMap data="{akw2}" verticalCenter="{akw2.y}" horizontalCenter="{akw2.x}" 
                             scaleY="{negate}" scaleX="{negate}" toolTip="{akw2.name}"/>

            <components:akwView scaleX="{negate}" data="{akw2}" scaleY="{negate}" verticalCenter="20" horizontalCenter="{80}" >
        </components:akwView> 
    </s:Group>
</s:Group>
</s:Scroller>

The zoom just works fine by changing the value from 1 up to 3 with a slider. Midpoint of the zoom is the center of the container (map).

My problem: when i zoom, the scroller cuts a part of the groups. it zooms out of the window?!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T05:02:44+00:00Added an answer on May 23, 2026 at 5:02 am
    private function checkScrolling():void
    
    {
    
    
    var imgWidth:Number = mapView.width * mapView.scaleX;
        var imgHeight:Number = mapView.height * mapView.scaleY;
    
    if (mapGroup.contentWidth < imgWidth ||
        mapGroup.contentHeight < imgHeight)
    {
        var excessW:Number = imgWidth - mapGroup.contentWidth;
        var excessH:Number = imgHeight - mapGroup.contentHeight;
        mapGroup.setContentSize(imgWidth, imgHeight);
        /*
        if (scroller.horizontalScrollBar)
        {
            scroller.horizontalScrollBar.minimum = -excessW;
            scroller.horizontalScrollBar.maximum = excessW;
            mapGroup.horizontalScrollPosition = 0; 
        }
        */
        if (scroller.verticalScrollBar)
        {
            scroller.verticalScrollBar.minimum = -excessH;
            scroller.verticalScrollBar.maximum = excessH;
            mapGroup.verticalScrollPosition = 0;
        }
    

    this just works fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got a little problem, I got a code, that reads all pixels and
Got my little mechanize code: br.open('http://tumblr.com/customize'); print br.response().read() print br.form['edit_tumblelog[cname]'] # there definitely is
Got a little issue where my client is pasting in content from Word into
i`ve got a little problem with LINQ. I read out some information via XML-RPC.
I got a little problem. Sometimes, when I try to call the following code,
Got a little problem in my code, the query works fine if I manually
I got a little problem i need a sql query that gives all rows
got another little provlem with flex ... i've made a ellipse and i want
got this little line of code. when I run it, I get Object reference
i got a little application which is working very well with my debug configuration

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.