Zooming a loaded bitmap around the image center

Hi,
I try to zoom a loaded PNG where the center of the image
stays at the
middle of the stage.
I don't know everyting I do leads me to a clip moving away
from the
center of the stage.
What I do is zooming a clip that contains the clip that is
loaded. I set
the loaded Clip at the negative half of its size, so it
should aprear in
the middle.
onClipEvent(load){
pic_container_mc.loadMovie("pic.png");
//picLoaded() < it is called from the clip
// pic_container_mc at onLoad event
// when the bytestotal are > 1000
function picLoaded(){
pic_container_mc._alpha = 0;
pic_container_mc.onEnterFrame= function(){
this._alpha = this._alpha * 1,2;
this._alpha++;
_parent._xscale++;
_parent._yscale = _parent._xscale;
w = pic_container_mc._width;
h = pic_container_mc._height;
pic_container_mc._x = - w/2;
pic_container_mc._y = - h/2;
// half of the strange size
this._x = 512;
this._y = 384;
Any ideas?

Craig Grummitt wrote:
> i'm not sure of the intention of some of your code as
the indentations got lost
- picture of different size
- with an motive with its center in the middle of the bitmap
- zoom it, but keep the center point at one position (center
of the stage)
> and i can't compile it as it's written.. also I'm not
sure of some of the
> things you were doing like this line:
> this._alpha = this._alpha * 1,2;
oh, thats just for fading the picture in, but not important
here.
> but anyway i've edited the function in a way that works
for me. see if this
> solves your problem.
did you attatch the code? can't see it in the newsgroup
forum. can you
please post it again.
Thanks for your help

Similar Messages

  • Wrapping text around the image in illustrator cs4

    I am trying to create a brochure with wrapping text around the image, I have followed several online tutorials like http://www.tutorials-expert.com/tutorial/19302/Wrapping-Text-Around-an-Image-in-Illustrato r.html and some other but I followed these instructions and i did not see any effect. Since i am new to illustrator, can some one point me in write direction.
    Thanks.

    You should mark the thread answered as this is a situation that for some reason passes by the users often even though it is covered in the tutorials.
    No real need to designate a user as the one who answered the question just mark the thread answered. This problem comes up often and it is always the same user error.

  • Have placed video-when previewed there are sometimes heavy black lines around the image. If I place white rectangles in front, the black is hidden in Author, but when I preview the black lines are still there..How to use white rectangles to mask edges?

    I have placed video - when previewed there are sometimes heavy black lines around the image.
    If I place white rectangles in front, the black is hidden in Author, but when I preview the black lines are still there..
    How to use white rectangles to mask edges?

    Here's view in IBA you can see bounding boxes of white rectangles that
    form frame to block out black setions..
    Here's iBook preview image of same page, NO WHITE FRAME!
    WHY?
    BOB SPRAGUE

  • Clone stamp tool suddenly looks bitmapped around the edges

    I'm using the clone stamp tool, as well as the spot healing brush, and it has suddenly begun to look "bitmapped" around the edges. I am using the clone stamp at the halfway mark between hard and soft, but instead of a smooth blend at the edges of the circle, it looks bitmapped. The tool still works fine, it's just very distracting. I've tried restarting my computer, I've double-checked my tool preferences, but it's still bitmapped looking. ?????

    Update your graphics driver and/or adjust the settings or turn off OpenGL in the preferences. Sounds like you see issues with transparency belnding for the clone stamp overlay preview. For anything beyond that blindfold advise we would need some real system info and otehr details like actually knowing what version of PS you use. you have not provided any of that.
    Mylenium

  • Touch screen problem! when i zoom pictures or Internet pages, the image is twitching soo crazy. i don't know what i should do :( ipod touch 4th generation

    when i'm zooming pictures or Internet pages, the image is twitching soo crazy.
    i don't know what i should do

    Have you tried the standard fixes"
    - Reset the iPod:
    Reset iPod touch:  Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - Restore your iPod via iTunes.  First from backup and if problems persists, restore to factory defaults/new iPod.

  • Image quality when moving bitmaps around the stage

    Hey all,
    I am moving an image around the stage, and when it moves
    quickly, it becomes distorted and displays what I can only refer to
    as "banding". The image appear to be misaligned for some of the
    frames that it is moving. I have tried a number of the usual fixes,
    increasing the framerate, using a less complex image, etc. Nothing
    seems to work. Any ideas? I feel like I have seen a lot of flash +
    director movies that have fast motion, slick movement, etc and not
    appear as what I end up with. Is this something that relates to a
    screen refresh rate? Thanks for any ideas...
    - B

    Sounds like good old vertical sync / tearing. This is really
    not a fixable
    issue. You can try slowing down the movement a little...
    Someone, a while
    ago, worked on creating an xtra that would honor the vertical
    blanking
    interval, but it never really worked properly I don't
    believe. You can read
    all kinds of prior posts about this by searching google
    groups within
    macromedia.director.* for 'vertical sync'
    Dave -
    Head Developer
    www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • How to reduce memory usage when loading bitmaps from the library?

    When I use BitmapData.loadBitmap() to load an image from the library and then attachBitmap() to add it to a MovieClip it takes a lot more memory as opposed to just having the same image inside a MovieClip statically in a frame on it's timeline.
    The function dispose() not only clears the BitmapData object but also destroys the previously attached bitmap inside the MovieClip, so it can not be used to free any memory.
    Is it how it is supposed to be or is there any other way to dynamically attach bitmaps with memory usage comparable to just having them on stage?

    no, you use attachMovie() to create instance from library movieclips that have a linkage id.
    you can then create a bitmapdata instance and use the draw() method to overlay as many as needed.

  • In Pages for iPad, I couldn't wrap text(Chinese characters) around the image

    Hi, a question about Pages for iPad. I wrote some words with Chinese characters and then inserted a image from the Camera Roll. The problem is that I couldn't wrap words around the photo. I tried again wrote some words in English and it's ok for wrapping. Why did this happen?

    From the help section in the Pages app ....
    Anchor or free an object to or from its surrounding text:
    Select the object, tap in the toolbar, and then tap Arrange.
    In the Arrange window, tap Wrap.
    To make an object move with the flow of text, slide “Move with Text” to ON.To make an object remain stationary, unaffected by changes in the surrounding text flow, slide “Move with Text” to OFF.
    Drag the Extra Space slider to indicate how much space you want to leave between the object and the surrounding text.
    Wrap text around an object:
    Select the object and tap in the toolbar, and then tap Arrange.
    In the Arrange window, tap Wrap.
    Tap a wrap option to select it.Automatic optimizes text wrap for you, depending on the size and position of the object, and the width of the text column. Text wraps around an object, unless there’s very little space around the sides, in which case the text flows only above and below the object. Around lets you customize the text wrap around the sides, without automatic optimization. Above and Below allows text lines only above and below the object.
    Drag the Extra Space slider to indicate how much space you want to leave between the object and the surrounding text.
    This works for me. Restart your iPad if this does not work for you.

  • PSD files have black borders around the image edge

    I've just uploaded an image file in PSD format to a folder in my Creative Cloud workspace. The image is a cutout object on single layer with transparency. It views fine in Photoshop and also in Quick Look/Preview but when it's uploaded I have a pixelated black border around the perimeter of the object in the layer. I thought it might just be the preview but it's the same when I open it in Photoshop Touch.
    Is anyone else expereincing this?

    Hi David,
    PSD files are flattened when imported into Photoshop Touch and then lose any transparency. I'm not seeing a way to import transparency other than in PSDX format which the transparency would have to have been created in PS Touch. I'm moving this post to the PS Touch forum in case I'm missing something.
    -Dave

  • Bridge to InDesign contact sheets (CS3) creating frames around the images

    Forgive me if this topic should not be here.
    We use the contact sheets to ID from Bridge script quite a lot at work (when it works -> CS2). Since upgrading to CS3 it works (hooray) however, it creates two boxes with a black stroke around each image. Removing them manually is a schlep (I was reading this forum in the hopes of finding a script to run that will remove them faster).
    Is there a way I could edit the script to stop it creating the boxes in the first place?
    Does anyone else have this problem?

    Hi Bob,
    we found your script (I think it was yours) but it only removes one of the boxes I think.
    Hi Robert,
    We are mostly working on Macs, but scripting directly in ID would be great.
    Thanks!

  • I have an iNano, 16 gb,  and loading music with the image of the album cover seems to take a huge amount of space.  When one buys music via iTunes, is there a way to not have the album cover image,  or how do you load music with no album image...?  Grizzw

    Is there a way to download music bought on iTunes and not have it include the  Album image.  Seems the images take up a huge amount of space on my iNano.   OR,  is there a way to  load it onto my  iNano,  just the music,  and not the image...?
    Grizz49

    The album art takes a very small amont of space.

  • No circle around the image of man on homescreen.

     Hello there,
     The circle around the man on the homescreen which you can see on all advertisements does not appear no matter how long i walk or run. Something i need to set up? Thank you.
    Solved!
    Go to Solution.

    Have you see up a lifelog account?
    For a successful technology, reality must take precedence over public relations, for Nature cannot be fooled.   Richard P. Feynman

  • There are several sites which Firefox will not load images. The rest of the site loads correctly, but the images simply do not appear.

    (There is no error message, loading message etc, just white space). These images load correctly in Safari . The sites include target.com, gap.com & garnethill.com and are the item photos for specific items listed on the site. I've tried many of the troubleshooting tips. help!

    Probably third party images, such as those of the manufacturer
    see https://support.mozilla.com/questions/858732

  • Eliminate the border  displayed around the image in a command hyperlink

    How can i please eliminate the border displayed around image in a command hyperlink component.
    Thanks.

    That's just a layout issue. Apply CSS accordingly.

  • Loading PSD for the image control...

    Greetings !
    I am creating a desktop (AIR) application for graphic designers to give them the ability to browse their media (image, video) ressource files on their harddrives.
    Can FLEX be used to display ADOBE native file formats ? (e.g .PSD, .SWF, .PSD, .EPS, .AI etc...)
    The application would not offer any functionalities to update the files... Just view, move or copy them.
    Thanks !

    AIR can view/load PDFs but it does so using WebKit and the Acrobat browser plugin.  I don't think there is a way to view the other formats like PSD, AI, etc.
    SWF though you should be able to as well.

Maybe you are looking for