Scoll panel zooming

I want to add zoom feature to the scroll panel. As the zoom
button is pressed, I have to increase scrolling area. I tried the
following sample code. If you run the sample, you can see the image
size is increasing, but the scrolling area is same. I want to
dynamically change the scrolling area according to image size. How
can I do that?
this.createClassObject(mx.containers.ScrollPane, "my_sp",
10);
my_sp.setSize(360, 280);
System.security.allowDomain("
http://www.helpexamples.com");
my_sp.contentPath = "
http://www.helpexamples.com/flash/images/image1.jpg";
my_sp.scrollDrag = true;
var width_num=my_sp._width;
var height_num=my_sp._height;
my_btn.onPress = function()
trace(width_num);
width_num += 100.0;
height_num += 100.0;
my_sp.content.setSize(width_num, height_num);
};

I fount the solution. It's to set the scrollpolicy off before
the resize and on after that.
fmy_sp.hScrollPolicy = "on";
my_sp.vScrollPolicy = "on";

Similar Messages

  • Bridge CS6 - Preview Panel Zoom level

    Greetings-
    In using Adobe Bridge CS6 (w/latest updates as of 06/13/2014), when previewing video files, the preview panel will automatically zoom into the video. I've tried resetting the preferences (Holding down control while starting), resetting the workspaces - this has not worked.
    I saw in another thread where the author mentioned a "zoom toolbar" but this only refers to the thumbnail panel - NOT the preview panel.

    I'm running Bridge CS6 64bit
    I'm sorry, am a Mac user and rarely use movies. Although a .MOV file shows without problems in my preview window. And your screenshot only shows part of the workspace, maybe try again with the whole screen and the preview window  filled with zoom?
    Try another workspace and even try to reset preferences again, sometimes it needs more then once to solve a problem. And Windows is very critical for the use of correct graphic card drivers but that is out my league I'm afraid.

  • VBox Panel & Zoom

    I am struggling with a simple problem for the past 5 hours.
    Is anyone there to help on this?
    My MXML Structure is something like this
    <mx:Applicaion>
    <mx:Vbox id="myvb">
    <mx:Panel id="myPan"></mx:Panel>
    </mx:Vbox>
    </mx:Application>
    And through code I am creating instance of sprite object and
    adding a child to the panel "myPan". And I am calling ZoomIt
    function (code is below) to apply a zoom effect for my panel.
    private function zoomIn(o:Object,r:Boolean=false):void {
    var z:Zoom = new Zoom();
    z.target = o;
    z.easingFunction = Bounce.easeOut;
    z.duration = 1000;
    if (r) {
    z.reverse();
    else {
    z.play();
    What is happening is the zoom is starting from 0,0 where as I
    need to start it from center point.
    If I apply the same effect in my Vbox zoom is starting from
    center point, but the problem here is I badly need to apply only in
    the panel.
    I tried with various parameters,styles etc. But I couldn't
    find any good solution to this.
    Any one??

    Thanks for the response.
    I tried using both Move & Zoon but coldn't manage to do
    it.
    Apprently when I tried setting horizontalScrollPolicy &
    verticalScrollPolicy to off of VBox, the zoom played how I exactly
    I want.
    I don't know how this works, but it worked. :-))
    Instead of above MXML by using this
    <mx:Applicaion>
    <mx:Vbox id="myvb" hScrollPolicy="off"
    vScrollPolicy="off">
    <mx:Panel id="myPan"></mx:Panel>
    </mx:Vbox>
    </mx:Application>
    will zoom the panel from center point.
    Thanks

  • Timeline panel zoom in zoom out disappeared

    How do I restore the zoom in zoom out scroll bar?
    PP CS5

    Hit \ and it will zoom to fit your timeline.
    If you have no clips in the timeline, it will zoom to fit to a default level, which is maybe what you mean by 'restore'. (?)
    Otherwise, you can just zoom and scroll it back to whatever level is comortable to you. You can also use the - and = buttons to zoom in/out to your preferred level without worrying abotu panning.

  • What happened to Zoom in CC?

    I've always held down the option key on a mac and scolled to zoom in and out. Doesn't work on CC. Is there a setting for that I'm missing? I can't locate it.
    Thanks-

    Another victim reporting in.  As previously mentioned, option-scroll zoom works just fine for me in the CC versions of PS and ID.
    15-inch Retina MBP, Magic Mouse, Ai CC v17.  Also have Ai CS5.5 and CS6 installed.
    If I may quote the great shucho88, "This is really jacking with my workflow."
    Hardware Overview:
      Model Name:          MacBook Pro
      Model Identifier:          MacBookPro10,1
      Processor Name:          Intel Core i7
      Processor Speed:          2.6 GHz
      Number of Processors:          1
      Total Number of Cores:          4
      L2 Cache (per Core):          256 KB
      L3 Cache:          6 MB
      Memory:          16 GB
    System Software Overview:
      System Version:          OS X 10.8.4 (12E55)
    Apple Magic Mouse:
      Firmware Version:          0x84
      Services:          Apple Wireless Mouse
      Manufacturer:          Apple (0x3, 0x31c)
      Vendor ID:          0x5ac
      Product ID:          0x30d
      EDR Supported:          No
      eSCO Supported:          No
    System Preferences/Mouse:
      Scroll direction: natural - Not checked
      Secondary click - Right side
      Smart Zoom - Checked
      Swipe pages - One finger
      Swipe full-screen - Two finger
      Mission Control - Checked

  • Sap.ui application on android chrome not zooming

    Hi,
    I've got a sapui5 application buit with sap.ui library. It works well on desktop, even with desktop Chrome browser with touch.
    On android mobile Chrome, touch events are not working at all. I'm not able to zoom/scroll. Only touching outside the view I can zoom/scroll but within the view all the touch events are consumed by the sap.ui library.
    Is there a way to disable the touch events to let Chrome handle them for the standard zoom/scroll?
    Incidetally I've discovered that, embedding all the application inside a Panel, zoom/scroll works as expected. Now the solution could be simply hide the Panel title bar, but that's another story.

    Hi,
    Looks like you are trying to open the html file directly, rather than via a server (tomcat etc.).
    Browser have security restrictions to prevent opening javascript files directly, therefore you either need to run via a server or start chrome with the --allow-file-access-from-files parameter.
    javascript - How to launch html using Chrome at &amp;quot;--allow-file-access-from-files&amp;quot; mode? - Stack Overflo…
    Regards,
    Jason

  • Mousepad not responding Pavilion dm4

    Yesterday evening I woke my computer up only to find that my mousepad no longer worked. I figured it was some glitch like the many others I have found already on this laptop (Sound buttons not wanting to work correctly, mute led light not wanting to come on, etc.) And was hoping to restart and fix the problem. Today, after restarting, my mouse pad still does not work and I, apparently, am not the only one having this problem.
    My Specs:
    HP Pavilion dm4-2070us
    Windows 7 Home Prem OA
    I have tried updating the driver (It said that the version that was linked to was the exact same as on my harddrive) and I have also tried updating BIOS with the same result. The mousepad IS NOT turned off. If it is the light no longer works on it as well and it is stuck in off mode. The mousepad is not showing up in control panel no matter what I do.
    I'm getting tired of all the problems I have had so far out of this laptop since I've only had it since the middle of August. My friend told  me that HP was much better than Dell so I went with her instead what my gut told me. I had been bragging to everyone how wonderful this computer was but now I feel like I should go back and apologize to all my friends. Please say this is an easy fix and I'm overlooking something quite obvious. I'd hate to completely turn my back on HP for a stupid laptop.
    This question was solved.
    View Solution.

    As of right now I have resolved the issue. If anyone has a problem similar to mine, before you send it in, maybe you can try what I did. Last night I let my computer die completely then took the battery out for a few seconds. After that I plugged it in and let it charge a bit (Maybe 30 minutes?) before trying to start it up and try the mousepad again. It's working just fine now, the scoll and zoom in/out even seem to work a bit better now.

  • What is the best practice to create tabs ?

    I need help on this issue please, I need to create 3
    different tabs, each one wih different content : 1) plain text 2)
    small form 3) flash app
    What is the best practice ? thanks in advance...

    Is this Scoller Panel what you had in mind?
    http://www.fourlevel.com/product/spanel/go/ex1/index.htm
    Nancy O.
    Alt-Web Design & Publishing
    www.alt-web.com

  • LR 3 Requests

    Before LR 3 is locked down some of my requests from the Flickr LR forum, mainly workflow issues rather than feature requests, so hopefully pretty easy to implement - it's about making LR a faster to use software more than anything else, a lot of this is based on PhotoMechanic, a very fast and mature image browser used by news photographers. <http://camerabits.com/site/index.html>
    Sequence renaming to be continuous rather than resetting to 001 whenever a new export is started. Obviously a reset button would be required.
    Automatically use portions ITPC/EXIF data into all the editable fields like the 'variables' feature of PhotoMechanic. Once you get your head around how powerful a feature this is, you wonder how you ever survived without it before. Having the date, day of the week and photographer's name entered into the caption field automatically is a godsend, especially if you are editing more than one photographers work.
    Code Replacement, again a PhotoMechanic feature.
    www.sportsshooter.com/news/1951
    www.sportsshooter.com/message_display.html?tid=20381
    www.jasonowatson.com/blog/2008/12/27/using-photo-mechanic...
    If LR is to be a complete workflow tool, then these workflow enhancements will really speed up the users experience and remove a lot of user error, especially with complicated names and dates.
    All of the above would be pretty simple to implement into the keywording/metadata portion of LR.
    Easily split the exporting of large numbers of images into batches in one go to take advantage of the multiple export speed up tip - or an option to export using more than one 'core' or whatever it's called.
    FTP of individual images to remote servers
    Sending of individual images to email clients
    Sort by File size,
    Sort by dimensions
    This helps with sorting legacy files and the various iterations if they have been re-sized for the web etc.                                         
    In a perfect world, bolting on PM to the front end of LR, so you could do an immediate first edit on deadline, using PM's speed and metadata tools, send to develop and then export and FTP away would be heaven, whilst the rest of the folder imported into LR in the background for DAM purposes, alternatively licence the Develop module to CameraBits (makers of PM) for them to incorporate into PM. Never gonna happen but one can dream of a perfect world ;-))
    Consistency of keystrokes between toggling a function and a keystroke doing a single task.
    E.G.
    B can either remove an image from the target collection or add it depending on it's status. Whereas the simpler and less prone to making mistakes is the single keystroke for a specific action.
    P,U and X all have very clear results and when working fast and under deadline I don't wish to have to confirm what action has taken place - either what I want or the opposite of it.
    A keystroke to switch off or on the adjustments in the different develop panels rather than the small click toggle like on Camera Raw in PS.
    Adding a conditional key to the 1-5/0 keystrokes and [ ] for the star rating attributes , it is too easy to change an image's rating when changing the brush size. - And as the view auto updates the image is then gone from the selection - annoying.
    To be able to have the Info displayed in "loupe" in LIbrary but have the option to not have it display in the develop view.
    I want to be able to see the info when making my selections but it's distracting to have the info displayed when making image corrections, it would be great not to have to cycle through the views, just more unnecessary keystrokes.
    Shortcut consistency
    Using the hand tool in develop panel - zoomed view, don't use the spacebar to move around the image, that changes the zoom level, however you must use the space bar (like Photoshop, which is good) to move around the image when using the adjustment brush at a zoomed view.
    Bad workflow, not being consistent in the keystrokes, to do the same operation in different 'views'
    These are all about making the user think about the image and the adjustments rather than the computer and having to think about whats to do next.
    Thanks

    hsbn has the right answer.
    In the D7000 Setup menu > Auto image rotation > ON.
    LR 3.3RC displays the portrait orientation photos correctly.

  • Problem deleting files

    hi
    one week i'm trying to figure this problem out, and i'm quite desperate...
    i'm trying to delete files that i extracted from a ZIP archive. But i have an error message saying they can't be erased.
    Is there a way to find which variables are locking the files ? Because i couldn't find by myself (i cleared or nulled every possible variable)
    here is some raw code of Decompress and Close() :
    public void closeFile()
            panel.fichierChargé = false;
            panel.nombreImages = 0;
            panel.indexRectangleActif = -1;
            panel.insideRect = -1;
            panel.resizeRect = -1;
            panel.tableaux.clear();
            panel.tableau.clear();
            images.clear();
            imageZoom = null;
            imageCouleur = null;
            imageIHS = null;
            listeFichiersTemp.clear();
            try {
                FileUtils.deleteDirectory(new File(TempDirectory  +ArchiveFilename+  File.separator));
            } catch (IOException ex) {
            ArchiveFilename = null;
            ArchiveDirectory = null;
    public class décompresse extends Thread{
        FileSeekableStream stream = null;
        NewApplication na;
        String TempDirectory = "C:\\WINDOWS\\TEMP\\";
        DisplayJAI DisplayJAIFantome;
        ArrayList listeEntrées;
        File f;
        org.apache.commons.compress.archivers.zip.ZipFile zf;
        Archive a = null;
        public boolean close = false;
        public décompresse(NewApplication na) {
            this.na = na;
        private void chargeImage()
            na.panel.nombreImages = na.listeFichiersTemp.size();
            if (na.panel.nombreImages != 0)
                int i = na.panel.nombreImages - 1;
                    stream = null;
                    try{
                        String t = (String)na.listeFichiersTemp.get(i);
                        stream = new FileSeekableStream(t);
                    } catch (IOException e) {
                        e.printStackTrace();
                        System.exit(0);
                    RenderedOp img = JAI.create("stream", stream);
                    na.images.add(img);
                    na.panel.tableaux.add(new ArrayList());
                    if (na.preloadImages)
                    if (i > 0)
                        DisplayJAIFantome.set(img);
                if (na.panel.nombreImages == 1) {
                    na.panel.fichierChargé = true;
                    na.panel.indexImage = 0;
                    na.boutonsEnable(true);
                    na.panel.tableauSélections = (ArrayList) na.panel.tableaux.get(0);
                    if (!na.panel.tableauSélections.isEmpty())
                        na.panel.indexRectangleActif = 0;
                    na.zoomStart();
                    na.zoomSetText(na.panel.zoom);
                    na.panel.repaintParent();
        private void unzip(String filename) throws IOException
            unzipPart1(filename);
            unzipPart2(filename);
            unzipPart3(filename);
        private void unzipPart1(String filename) throws IOException
            listeEntrées = new ArrayList();
            f = new File(filename);
            zf = new org.apache.commons.compress.archivers.zip.ZipFile(f, "IBM437");
            File folder = new File(TempDirectory + f.getName() + File.separator);
            int count = 0;
            for (Enumeration<ZipArchiveEntry> files = zf.getEntries(); files.hasMoreElements();)
                ZipArchiveEntry zae = files.nextElement();
                String zipname = zae.getName();
                ZipArchiveEntry packinfo = zf.getEntry(zipname);
                String entrée = packinfo.toString();
                ListeZIP lz = new ListeZIP(entrée, count);
                listeEntrées.add(lz);
                count ++;
        private void unzipPart2(String filename)
             // simple sorting
        private void extraitElementZIP(int n) throws FileNotFoundException, IOException
            File folder = new File(TempDirectory + f.getName() + File.separator);
            Enumeration<ZipArchiveEntry> files = zf.getEntries();
            ZipArchiveEntry zae = null;
            for (int j = 0; j < n + 1; j++) {
                zae = files.nextElement();
            String zipname = zae.getName();
            ZipArchiveEntry packinfo = zf.getEntry(zipname);
            File chemin = new File(folder + File.separator + zipname);
            if (packinfo.isDirectory()) {
                chemin.mkdirs();
            } else {
                if (!chemin.getParentFile().exists()) {
                    chemin.getParentFile().mkdirs();
                String fn = folder + File.separator + zipname;
                na.listeFichiersTemp.add(fn);
                FileOutputStream fos = new FileOutputStream(fn);
                InputStream is = zf.getInputStream(packinfo);
                IOUtils.copy(is, fos);
                is.close();
                fos.flush();
                fos.close();
                processFileList();
                chargeImage();
                na.màjnombreImagesText();
        private void unzipPart3(String filename) throws IOException
            na.listeFichiersTemp = new LinkedList();
            File folder = new File(TempDirectory + f.getName() + File.separator);
            if (!folder.exists()) {
                folder.mkdirs();
            if (!na.CBVFilename.equals("cbvnontrouvé"))
                extraitElementZIP(na.CBVIndex);
                chargeFichierCBV();
            for (int i = 0; i < listeEntrées.size(); i++)
                if (close) {
                    closeThread();
                    close = false;
                    break;
                int count = ((ListeZIP)listeEntrées.get(i)).index;
                if (count != na.CBVIndex)
                    extraitElementZIP(count);
        @Override
        public void run() {
            String filename = na.ArchiveDirectory + na.ArchiveFilename;
            try {
                unrar(filename);
            catch (Exception e1) {
                try {
                    unzip(filename);
                catch (Exception e2) {
        public void closeThread()
            try {
                a.close();
                zf.close();
                stream.close();
            } catch (IOException ex) {
            DisplayJAIFantome = null;
            stream = null;
            listeEntrées = null;
            f = null;
            zf = null;
            a = null;
            na.closeFile();
    }thanks a lot

    ion_one wrote:
    amazing
    it works
    thank you so much !Yep - amazing. I can't take the credit for it since I read it somewhere. One of just three uses of System.gc() that I am aware of.

  • Can't Access Bottom Information Bar

    Hello all! Okay I've got a photoshop conundrum. Background: I was working on a monitor with my laptop connected to it (so dual screen), and working in photoshop on the larger monitor screen.  I now work solely on my laptop, and no longer have monitor access.  When I opened my photoshop file, it kept the larger dimensions from the larger monitor screen. I can no longer see the bottom information panel (zoom, etc), or resize the file. It's as iff they are simply too far down to access, and I can't get to them. I've tried re-downloading photoshop, and it didn't help.  Any solutions?! I'm in a major pickle. HELP!

    I run my Macbook off an external monitor, and sometimes run into that problem. So that's what has worked for me. Mark the answer correct if you are accessing these forums via web browser. Others with the same question will see the green bubble and know there is a fix.
    Glad to know it works, thanks for getting back to me.
    Gene

  • Just Upgraded to Lion X 10.7 and my mouse (tracker ball) has changed its direction. how to reset to previous?

    need to reverse the tracker ball direction, seems to have reversed after upgrade..

    Same with my trackpad here, I went to
    System preferences
    Trackpad
    there is an option to change the direction of scrolling in the "scolling and zooming" section.
    I bet it is similar to the mouse prefs.
    Best regards
    Kevin

  • Site search limitations when using Spry Widgets

    Currently evaluating search tools to work with Spry
    accordion, tabbed panels and so on. Apparently NONE of them do.
    This is a big problem. Our site uses mostly Dreamweaver spry
    widgets.
    I have tested the very highly rated zoom Search from WrenSoft
    and also expect problems with Google Search and Atomz (based on web
    research I have done).
    If one searches for a word residing in one of the spry tabbed
    panels,accordians (there could be many layers on a single page of
    course), site search engines correctly take you to the page but
    naturally does not open the correct tabbed panel (Zoom Search
    doesn't understand DW code of course). Just presents you with the
    default panel. User would have to dig through all panels on that
    page to find the text. Our users need these nice interfaces. This
    is reality. Also some of the Java script in Wrensoft that
    highlights search words conflicts with existing Java script within
    Dreamweaver. I've worked around some of it but the core issue is
    the landing on the page and opening the correct tab. The question
    is can anyone suggest a search engine tool that will work with
    Dreamweaver Spry widgets or suggest something else. This is a huge
    disincentive to use Spry. Perhaps build pages without Spry to
    specifically go to after search? Sound like a lot of work.
    Thanks
    Richard

    RickRoo wrote:
    > If one searches for a word residing in one of the spry
    tabbed
    > panels,accordians (there could be many layers on a
    single page of course), site
    > search engines correctly take you to the page but
    naturally does not open the
    > correct tabbed panel (Zoom Search doesn't understand DW
    code of course).
    This is not an issue specific to Spry, it's an issue with
    other JavaScript solutions that show and hide content, and it is
    also an issue if CSS is used show and hide content.
    If you have a way to obtain the search terms from the search
    engine page, then you might be able to handle this (based upon your
    description, the WrenSoft JavaScript finds that info out), but then
    you'd also have to have a search engine built within your page that
    will search through the page and figure out what tab the searched
    term(s) are on, and then show that tab, but then what happens when
    you have terms on multiple tabs in a tab group? You'll have to
    determine which search terms are more important than other terms.
    There is code available that will allow you to open specific
    tabs using the showPanel method. Check out the API for the Tabbed
    panel:
    http://labs.adobe.com/technologies/spry/articles/data_api/index.html
    And perhaps take a look at the code for this page (check in
    the linked JavaScript file):
    http://labs.adobe.com/technologies/spry/samples/tabbedpanels/tabbed_panel_unobtrusive.htm
    http://labs.adobe.com/technologies/spry/samples/tabbedpanels/tp_unobtrusive.js
    As the Spry code is namespaced to specifically prevent
    conflicts with other JavaScript code, it would be good to know what
    those conflicts are so that others can be aware of them to try to
    prevent them in their pages.
    Danilo Celic
    |
    http://blog.extensioneering.com/
    | WebAssist Extensioneer
    | Adobe Community Expert

  • Expand horizontal scroll panel on both sides for a zoom in effect

    Hi,
    I'm creating an interactive timeline with Flash Catalyst. It is set up as a long horizontal scroll panel which contains buttons that link to states with photos and text about historic events. One feature I would like to include is a zoom feature, like the one found on the bbc British history timeline (http://www.bbc.co.uk/history/interactive/timelines/british/index_embed.shtml ). E.g., when you click on a colored section of the horizontal scroll panel it will zoom in to view that timeframe in more detail.
    The problem I'm running into is that I can't expand the scroll panel to the left. So, I can go into edit mode for the scrolling content, create a second state, and enlarge the scrolling content in that second state to create a zoom in effect. However, because the scrolling content will only expand to the right, I can't line up the interaction correctly.
    Is there a workaround for this in Flash Catalyst?

    have a peek at this:
    on the left, the corner radius (the red line) is enough to create a curve on the inside of the stroke. on the right, it isn't large enough.

  • How to add a navigation Panel and Zoom Slider Bar using Java API

    Hello,
    I am using Mapviewer Java bean as I have to use Oracle Mapviewer in Java Stanalone application.Please can anyone tell me how to add a Navigation panel and Zoom Slider in Java API. I found the API s for same in Java Script but not in Java.Kindly help.
    I am using Oracle Mapviewer 11g.

    This is forum sponsored by Adobe make of Acrobat and Reader. Since Chrome and FireFox web browser have chosen to use their own viewer you might get more help in their forums or customer support.

Maybe you are looking for