dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Exact Size of a Loaded Movie!!!

  1. #1
    Member
    Join Date
    Apr 2002
    Posts
    76
    Hi again!!!

    I have a problem and it's that I'm loading a jpg file that I receive as a variable after opening a txt file. The image sometimes could be a big one, others small... So I don't know the size when I'm loading the file...

    Could I load the .jpg file and after loading the movie put a static size in pixels? so... as if I want always 100X100 px

    here I load the external source:
    loadVariables("data.txt","_root.mymovie");

    here I load the content of the variable background
    mymovie.loadMovie(_root.mymovie.background);


    Someone could help me?

    Thank you very much!!!



  2. #2
    Try explain this better you make no sence

  3. #3
    Member
    Join Date
    Apr 2002
    Posts
    76

    OK a simple example!!!

    I have two images:

    image1.jpg resolution: 100x150 px

    image2.jpg resolution: 200x300 px


    I want to load those images the first time the first one... the second time the second:

    mymovie.loadMovie("image1.jpg");


    How could I put a size in pixels to mymovie?
    for instance.... mymovie resolution 100x100

    Help!

  4. #4
    Member
    Join Date
    Apr 2002
    Posts
    76

    Unhappy how to do a pixel resize... not a percentage!!!

    People.... some help please!!!

    how to do a pixel resize... not a percentage resize. Is it possible?

    Thank you!!!

  5. #5
    Senior Member
    Join Date
    May 2001
    Location
    Peoria, Arizona
    Posts
    1,889
    resize = percentage = scale

    Are you saying you want to CROP the image?

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