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 6151573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T19:47:17+00:00 2026-05-23T19:47:17+00:00

i have a mobile application that i am creating in Adobe Flex (Flash Builder

  • 0

i have a mobile application that i am creating in Adobe Flex (Flash Builder 4), and i am trying to create a zoom function. The one i have works, but the point is to be able to more easily read words that are in the image (the images are .jpg files). The images are 2550×3300 originally, but as soon as you zoom, the image quality reduces drastically, and nothing is readable.

My code for the zoom function is included below.

        protected function onZoom(e:TransformGestureEvent, img:Image):void
        {
            img.transformAround(new Vector3D(e.localX, e.localY, 0), new Vector3D(img.scaleX*e.scaleX, img.scaleY*e.scaleY, 0));
        }

and this is the code for the image object:

<s:Image id="titlepage" includeIn="title_page" x="0" y="0" width="320" height="415" 
         gesturePan="onPan(event, titlepage)" 
         gestureSwipe="onSwipe(event)" 
         gestureZoom="onZoom(event, titlepage)" 
         source="@Embed('assets/myImage.jpg')"/>
  • 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-23T19:47:18+00:00Added an answer on May 23, 2026 at 7:47 pm

    Image quality would be improved by setting smooth to true for anti-aliasing.

    <s:Image smooth="true" />
    

    There are many ways to handle registration issues – you might be interested in Yahoo Astra utils DynamicRegistration class.

    Maybe something like this?

        <fx:Script>
            <![CDATA[
                import com.yahoo.astra.utils.DynamicRegistration;
    
                protected function image_gestureZoomHandler(event:TransformGestureEvent):void
                {
                    DynamicRegistration.scale(image,
                                              new Point(event.localX, event.localY),
                                              image.scaleX *= event.scaleX,
                                              image.scaleY *= event.scaleY);
                }
            ]]>
        </fx:Script>
    
        <s:Image id="image"
                 smooth="true"
                 gestureZoom="image_gestureZoomHandler(event)" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application that runs on Windows Mobile 6 Professional PDA devices. The
I have a .net 3.5 application running on windows mobile professional that uses sql
I have a mobile platform that I am trying to write some communications code
I am creating a C# Windows Mobile application that I need to programmatically invoke
I have a Windows Mobile application written in Java that uses AWT for the
We have a mobile Application in a very unsteady WLan Environment. Sending Data to
I have an game application I have written for Windows Mobile and I want
I have to build a GUI application on Windows Mobile, and would like it
I have a SQL Mobile database with one table. It has several columns with
I am creating a Windows Mobile application for the smartphone. I want to include

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.