A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Center images

  1. #1
    Senior Member
    Join Date
    Jun 2004
    Location
    England
    Posts
    107

    Center images

    Hi all,

    I have a question, how do you go about using the loadmovie in a flash movie and get it to load exactly where you want it. See, I have a number of buttons that I want when pressed, loads jpeg images into a blank MC(a container, I believe). But I want it directly in the middle of that movie clip.

    How do I go about doing this?

    I'm still learning and I'm greatful for the help given to me so far.

    Thanks

  2. #2
    Flash Student rabidlemming's Avatar
    Join Date
    Mar 2003
    Location
    UK
    Posts
    382
    Hi,

    Try referring to the image instance name and using the setProperty action script to move its location

    I hope this helps

    Cheers
    Rabid Lemming

    I will wait for death with a smile and a big stick

  3. #3
    come 'ere a minute
    Join Date
    May 2004
    Location
    BC, Canada
    Posts
    50
    when making the container movie clip, when in the convert to symbol window, look at Registration. You will see some squares. Click the top left one, then it will load the top left part of ur loaded image or .swf into the top left corner of the movie clip.

  4. #4
    Senior Member
    Join Date
    Jun 2004
    Location
    England
    Posts
    107

    Reply

    Hey thanks,

    I will give that a go, if I could just ask another question though, since my are a fair size, how would I go about making a preloader for them? Like when the button is pressed to retrieve a image a preloading sign is given. (Percentage bar or something)

    And last but not least, how could I save my images? in another swf? or a folder of jpegs.

    Please If someone one's had experience of this area, I would be very greatful for the help and advice

  5. #5
    Flash Student rabidlemming's Avatar
    Join Date
    Mar 2003
    Location
    UK
    Posts
    382
    Hi,

    This may help:

    http://www.leefastenau.com/ee/preloader/

    And the source code:
    http://www.leefastenau.com/ee/preloader/preloader.zip

    Not sure what you mean by how do you save images, do you want to be able to save image from a swf file to a users desktop?

    I hope this helps

    Cheers
    Rabid Lemming

    I will wait for death with a smile and a big stick

  6. #6
    Senior Member
    Join Date
    Jun 2004
    Location
    England
    Posts
    107
    Thanks for the links, Im yet to try them but hopefully they will help.

    As far as my question about the saving images are concerned. What I want to know is how should I save each image that I want to load into the main movie in. Individual swf files with individual images or one big folder with all of images in?

    Can flash load jpegs with out it being a swf file?

    Thanks again

  7. #7
    Senior Member green_eye's Avatar
    Join Date
    Apr 2004
    Location
    Sarasota, Florida
    Posts
    1,496
    It depends on the version you are running
    Flash MX and higher lets you load in jpegs
    It cant not be a progressive scan jpeg*
    If you want to load an image from a btn
    e_mc being the loader clip
    on (release) {
    this.e_mc.loadMovie("some.jpg");
    };

    From a frame just take out the on handler

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center