Navigate an image that is larger than the stage?

Hello, I would like some assistance getting this to work. I'm not even sure if its possible, but I will be eternally grateful for an answer.
I would like to have an image much larger than the stage, with little buttons all over it that play a MC when moused over. When the mouse reaches the edge of the screen, I want it to scroll so that the viewer can explore the whole image.
In short, its a map with destinations, and on mouse over the destinations play a MC. I'd like the viewer to be able to "explore" the map with the mouse.
It seems simple, is there a good way to do it?
Also, once it is done, is there a way to begin with the entire image shown, but then have it tween to its final (Very large) size, without breaking that functionality.
Thank you so much. This is for a class project and I'm trying to "go above and beyond" but, its a little to beyond for me.
Kayla

To make the image move, based on the mouse position you might do something like this:
addEventListener(Event.ENTER_FRAME, checkMouse);
function checkMouse(e:Event):void
     if(mouseX > 500){
          myImage.x -= 1;
     if(mouseY < 100){
          myImage.y += 1;
That's just a simple example. You'll need to check the bottom and left too... and you'll need to stop your image from moving past its edges:
if(myImage.x + myImage.width < theRightEdge){
     myImage.x = theRightEdge - myImage.width;
to keep it from going too far left...
I would also suggest using TweenLite to do your tweening. You can simply google TweenLite to find it.

Similar Messages

  • How to create a map that is larger than the game in width and height?

    hi,
    i wounder how i can create a map(not the design) that is larger than the game in width and height, part of it will appear in the main page and anther part you can move to it after you press the arrow symbol, but the map is just one image so i want put it in line and out line the game page, and the out line part includes buttons and symbols the player can use, but it will be in line and the other part will be out line when you press the left arrow or the down arrow, how i can do that?
    and is that possible to animate it so when the player press the arrow, will give it action to start the animation in one sec, i know how to animate it if that possible but i don't know which code i will use for the mouse click with the arrow symbol, and how to use the same code in the same symbol to start anther animation depending on which part of the map is on?

    I don't know a lot about mask and masked layers and how to work with the normal layers beside i will use some 3D graphics but not in the background, i will explain all this to you to be more clearly.
    first i am using action script 3.0
    close ex,
    you have 2d map"image"  900*300 pixel.
    this image contains some 2d symbols when you click will go to anther normal map (anther normal layer) so they must appear.
    your game 320*320 px, and the place the map will show on 300*300, and there's basics objects will be in most pages including the page that show the map so i don't know a lot about how this will work with mask layers.
    so you can only see the left side of the map image and what it contains, while there's two arrows one to the left and one to the right there's three cases here,
    first when it show the left side(start from x:0 to x:300), the left arrow will not active when you press and the right arrow will start an animation that make the map image move to the mid side in one sec when you press.
    in mid side (start from x:301 to x:600) the same left arrow will active when you press to send you back to the left side while the same right arrow will be active to send you not to the mid side but to the right side,
    when moved to the right side the same left arrow will be active to send you to the mid and the right will not active when you press and depending on that,
    first how to make the large image appear with the three sides in the same place without effecting the other objects "like disappearing them" ?
    and the codes i need in the same left or right arrow symbol to make different actions with the same symbol when clicked depending on which part of the map is on.

  • How do I get an image which is larger than the page to scroll?

    I am new to CSS and CS4 and my problem relates to a gif image which is larger than the page.I cannot get the image to scroll either vertically or horozontally. This image is of a family tree graph and I cannot reduce it's size any more otherwise it would not be ledgeable. I want the image to scroll vertically underneath the fixed header. I am using a twoColHybLtHdr template. Also when I have corrected this problem will the CSS then apply to all further pages and could that cause other problems?
    Thanks in anticipation

    Thank you for your advice. I have been adjusting the CSS settings in the Container and the Main Content. I have now achieved both scroll bars, that cover all pages. The problem I have now is getting the Bottom (horizontal) scroll bar onto the bottom of the browser window. If I set the height as auto or inherit then the scroll bar stays at the bottom of the page, so you have to scroll down to find it. I can set the height in px and this is fine for one window resolution but it doesn't automatically reposition for the various different resolutions, is this possible to achieve? Can anyone please help me resolve this last obstacle

  • How to import PDF image into Pages manuscript that is larger than the text bed margins

    How do I import a PDF image into a Pages book manuscript, whose dimensions are larger than the global text bed margins? Any imported PDF image is automatically shrunk to fit within the text bed. I know I can set up a single page with wider margins and a text bed within it, but I want the image to import to a page already within the manuscript sequence, where the text bed margins are set and constant.
    Larry Kettelkamp
    [email protected]

    By default it should be dragging in as a floating image and not part of the text.
    What version of Pages are you using?
    In Pages 5 this is:
    Format > Arrange > Object Placement > Stay on Page > Size > Original size
    Peter

  • Printing a component that is larger than the paper size

    Hi,
    I am trying to print a component that may be larger than the size of the paper being used. Is there some way to get it to split between pages - ie, if it's larger than the page, it is printed over two or more pages?
    The component in question is a JTextArea. Would it be better to get the text from it and use the graphics drawString rather than the component's paint method?
    The relevant part of the code is below.
    Thanks,
    Helen
         //cast the Graphics object to a Graphics2D object
         Graphics2D g2 = (Graphics2D) g;
         //set the origin to be (0,0)
         g2.translate(format.getImageableX(), format.getImageableY());
         //if double buffering is enabled, disable it before printing
         boolean b = testForDoubleBuffering(c);
         if (b == true){
         disableDoubleBuffering(c);
         //tell the Component to draw itself to the printer
         comp.paint(g2);
         //if double buffering was enabled, reenable it once printing has happened
         if (b == true){
         enableDoubleBuffering(c);
         //return this constant to tell the PrinterJob that the page has been printed
         return Printable.PAGE_EXISTS;

    Hi,
    I am trying to print a component that may be larger
    than the size of the paper being used. Is there some
    way to get it to split between pages - ie, if it's
    larger than the page, it is printed over two or more
    pages?
    The component in question is a JTextArea. Would it be
    better to get the text from it and use the graphics
    drawString rather than the component's paint method?
    The relevant part of the code is below.
    Thanks,
    Helen
         //cast the Graphics object to a Graphics2D object
         Graphics2D g2 = (Graphics2D) g;
         //set the origin to be (0,0)
    g2.translate(format.getImageableX(),
    format.getImageableY());
    //if double buffering is enabled, disable it before
    printing
         boolean b = testForDoubleBuffering(c);
         if (b == true){
         disableDoubleBuffering(c);
         //tell the Component to draw itself to the printer
         comp.paint(g2);
    //if double buffering was enabled, reenable it once
    printing has happened
         if (b == true){
         enableDoubleBuffering(c);
    //return this constant to tell the PrinterJob that
    the page has been printed
         return Printable.PAGE_EXISTS;I should add that this is part of a class that implements Printable. However, it is being called by a Book class with the Book's append() method. It is the Book class that is being printed by the PrintJob:
         Book book = new Book();
         book.append(new PrintableClass(c), format);
         //set the pageable class to be the book, with the user-selected format
         job.setPageable(book);
         //if the user clicks the print button, start the printing process, otherwise cancel the print
         if(job.printDialog()){
         try {
              job.print();
         } catch(PrinterException pe) {
              System.out.println("Error printing: " + pe);
    Thanks,
    Helen

  • IPhone: Viewing an image that is longer than the normal view...

    Hello all,
    What I'm trying to do is probably quite simple, but it seems to elude me:
    I created a 320x600 png file, and I want to simply display it on a simple view, on which the user would scroll down in order to see the bottom of the image.
    I tried embedding the png file into a UIScrollView through a UIImageView in IB, as well as many other things...
    Anyone has a simple explanation for this ??
    Thanks

    OK, solved with your pointers and this helpful tutorial :
    http://blog.atrexis.com/index.cfm/2008/9/29/Interface-Builder-Tutorial
    Basicaly, In Xcode, create an IBOutlet for a scrollview:
    @interface MyScrollViewController : UIViewController
    IBOutlet UIScrollView *scrollView;
    @end
    Open xib,
    In IB, create a UIScrollView of the size of theiPhone screen (320x480)
    Connect its outlet to File's owner's "scrollView"
    Also connect the view outlet of File's Owner to the UIScrollView created in IB.
    Then, create a view of the size of the image you want to be able to scroll (here 320x600), imbbed in it the UIImageView with the proper .png file, then, simply drag the view into the UIScrollview...
    Back in Xcode, add this code to the .m file :
    - (void)viewDidLoad
    scrollView.contentSize = CGSizeMake(320, 600); // Also works with: CGSizeMake(0, 600); ...
    [super viewDidLoad];
    All should be illuminated...

  • How to capture a window in Safari that is bigger than the screen

    How do I capture a window in Safari that is larger than the screen it is displayed upon? I am using a MacBook PRO 13" with Mavericks.

    Try Paparazzi

  • Why would the display be larger than the screen?

    My Mac has started opening with a screen that is larger than the display. (I may not have the terminology quite right)  Here's a non-techie description...if the phyical display is 1680x1050, Finder or Safari open up at, say, 1720x1200. If I want to have the toolbar visible at the top, I cannot see the dock at the bottom. If I want the Apple to be at the top left corner, I cannot see the time at the top right. In both cases it is one or the other. Restarting has no effect on this annoyance.

    Try holding down control and scrolling down (or up, it depends). That should zoom down to fit. I assume you've checked the preferences to see that you have the right size selected.

  • HT2506 How do I drag an image around in the view, once it's magnified larger than the viewing area? I can imagine a simple "hand" tool like in Adobe PDF Reader doing this, but it's oddly missing in this application, quite a shame.

    How do I drag an image around in the view, once it's magnified larger than the viewing area? I can imagine a simple "hand" tool like in Adobe PDF Reader doing this, but it's oddly missing in this application, quite a shame.

    @Csound1 how is my mac relevant? I'm talking about software not hardware.
    @Kurt Lang sorry, I composed the message when looking at "Preview" application help on this site, the fact that it missed the context here, is another issue I have with Apple's "famous" UI/UX design...
    So for the record, I'm talking about the "Preview" app that comes bundles with Max OSX.

  • I have an iphone 4s and when I try to connect it to my shared libraries; I get an icon of a circle that only fills up halfway.  I have an ipad and it connects to the shared library without a problem.  My library is much larger than the capacity of either

    I have an iphone 4s and when I try to connect to my shared library I see an icon of a circle that only becomes half full.  It does not connect.  I also have an ipad, which connects without incident. My itunes library is larger than the capacity of both devices, so that cannot be the issue.  How can I get the phone to connect with my shared library?

    My husband and I are using the same iTunes account on all mac & pc computers, but the libraries are different on each machine.  We always manually manage our music (no auto sync).  iTunes is up to date on the PCs.  My husband uses our joint iTunes account on his pc, but once again, has a different collection in his library from those on the other machines.  He can't load any music from his PC to his iphone 4.  I can load music from my mac library to my iphone 4s, but cannot load from my pc library to my iphone 4s.  How can I switch my main library that it syncs with from the mac to the pc?
    Thanks

  • Why has my screen re-sized so that it's approx. 1/4" larger than the frame.

    My screen is approx. 1/4" larger than the frame. I can move it left/right &amp; up/down by dragging the appropriate edge,but cannot get it centered on the frame. This. Just started this morning upon boot. Up.

    Go to settings>General>Accessibility>Zoom>Off. See if that does the trick for you.

  • I'm doing a timemachine backup of my current MBPro. The MBPro has aproximately 250 GB of content that is being "timemachine'd". My new SSD is only 128 GB, how do I restore the timemachine backup, when my old drive was larger than the new drive?

    I'm doing a timemachine backup of my current MBPro. The MBPro has aproximately 250 GB of content that is being "timemachine'd". My new SSD is only 128 GB, how do I restore the timemachine backup, when my old drive was larger than the new drive? Is there a way to pick what you want to restore or am I completely f***ed? I tried googling the answer but all i got was how to move the timemachine backup to another HDD. Sorry for the ******** question, thought I'd try here.
    Thanks for the help.

    I'm doing a timemachine backup of my current MBPro. The MBPro has aproximately 250 GB of content that is being "timemachine'd". My new SSD is only 128 GB, how do I restore the timemachine backup, when my old drive was larger than the new drive? Is there a way to pick what you want to restore or am I completely f***ed? I tried googling the answer but all i got was how to move the timemachine backup to another HDD. Sorry for the ******** question, thought I'd try here.
    Thanks for the help.

  • Why are ACR PSD files 10-20 percent larger than the same file resaved in PSD?

    Why are ACR > PSD files 10-20 percent larger than the same file resaved in PSD? I posted this many years ago and never found an answer. Now that my drives fill up quicker, I thought I might chase this question a little bit further.
    Same .CR2 saved within ACR either with cmd-R or open ACR within PSD, the saved file is 34.5mb. Resave that same file (no edits) within PSD either with or without Max-compatible and the file is now 30.7mb. Another file that is 24.5 becomes 19.5MB.
    Why the difference? Is ACR and PSD actually using different compression strategies?
    thanks.
    Mac 10.8.5 / CC / ACR 8.4.1 - but this has been a consistent behavior over many years and versions, CS6 / CC.
    Same .CR2 saved within ACR either with cmd-R or open ACR within PSD, the saved file is 34.5mb. Resave that same file (no edits) within PSD either with or without Max-compatible and the file is now 30.7mb. Another file that is 24.5 becomes 19.5MB.

    Hi Jeff
    If it is RLE it's not as efficient as LZW:
    Saved ACR>PSD = 40.1MB  (sample image this AM)
    opened in PS and resaved as PSD = 30.8MB
    resaved as TIF without LZW = 40.1MB    (this adds to your thought that the ACR>PSD doesn't us any compression)
    resaved as TIF/LZW = 9.6MB
    Jeff Schewe wrote:
    I really think your priorities are a bit off. 10-20% is meaningless...you just need to get bigger....  and quit fussing over a few GB's here or there...
    ???   I hope that the Adobe engineers are fussing over 10-20% efficiencies.
    I'm within arms reach to a rack of 40TB of drives (doesn't include off-site drives), and all 2TB drives are being recycled to 4TB drives, as a result the rack is always growing. Actually the ACR>PSD files don't really make a difference in our long term storage, only for the nightly backups. But anyway, how you save, what you save etc. should all be part of the discussion.
    .... so in my case, throw in an excess MB here and there and all of a sudden you are talking TB's. Plus advantages in backup times, drive life, and energy use.
    Somebody added compression into the PS>PSD format, but it wasn't included in the ACR>PSD format, was it a decision or an oversight? If it's just a matter of making ACR compatible with PS when saving the same PSD format..... then why not?
    regards,
    j

  • In Cp5, can you record a window that is smaller than the project size?

    We would like to have a project that is sized larger than the application capture areas, in order to have a section to the side of the application captures that can be used for buttons, text boxes, and rollover objects for example. For example, the Cp project size may be 800x600, while the captured window size is 700x600. In Cp4, I can only capture at the size of the project. Is Cp5 different or does the capture size just have to equal the project size? Would this example require capturing at 700x600 and resizing to 800x600, while maintaining the backgorund image sizes and orienting the images left/right during resize? Has anyone done something like this and have a recommended way to accomplish it?

    Hello,
    Sorry to be a bit lazy, but it is late in the evening over here. Perhaps my blog post about Knockout Master slides could help? You will have to rescale anyway and I tried to explain some maths for the rescaling:
    Create and use a knockout master slide
    Lilybiri

  • How can I print alphabet letters that are larger than 1 page?

    I need to print letters that are larger than 1 sheet of paper. How do I print across multiple pages?

    is another application.
    You should see it on the Dock, in Mission Control or be able to open it by typing Preview in Spotlight.
    It usually is the application that opens when you click on any image file or pdf.
    Just follow my instructions, copy and paste or drag and drop from Finder.
    You don't open the pdf, opening is for .pages, .doc, rtf or txt files that Pages can open as word processing files.
    You can alternatively:
    Menu > Insert > Choose… > browse to your pdf
    But the other methods are faster and easier.
    Peter

Maybe you are looking for