A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: ...a scaling question

  1. #1
    Member
    Join Date
    Dec 2000
    Location
    lost somewhere in cyberspace
    Posts
    38

    ...a scaling question



    i'm trying to write a code in flash MX that resizes a loaded *.jpg file of any size to 640*480.

    code looks like this:
    _______________________________________
    photo.loadMovie("./photo.jpg");
    photo._x = 160;
    photo._y = 0;
    photo._width = 640;
    photo._height = 480;
    _______________________________________

    it doesn't work...

    what is the way of doing this?
    thanx a lot

  2. #2
    Flashkit Jedi

    Join Date
    Jul 2001
    Location
    Coruscant System
    Posts
    3,426
    Is your jpg actually loadin in or is nothing happening at all?

    XFM

  3. #3
    Member
    Join Date
    Dec 2000
    Location
    lost somewhere in cyberspace
    Posts
    38
    it does perfectly.i can play around with the size to a certain point.
    i tried using the getBounds method but i think it returns the boundaries of the clip that contains the file rather than the size of the actual file.
    Last edited by elektriko; 04-01-2003 at 03:23 PM.

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