A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: Most efficient way to import images in flash...

  1. #1
    Senior Member
    Join Date
    Aug 2000
    Posts
    343

    Most efficient way to import images in flash...

    Hi
    Just wondering what's the most efficient way (in terms of file size) to import images in flash... Would you just "save for web" in photoshop and then import?
    Losse

  2. #2
    Ryan Thomson EvolveDesigns's Avatar
    Join Date
    Oct 2001
    Location
    British Columbia
    Posts
    3,338
    yep exactly. Most seem to believe that save for web as png is the best as sometimes jpg will get jagged although i've never run in to that.
    Evolve Designs Interactive Media
    the natural selection

  3. #3
    Senior Member
    Join Date
    Aug 2000
    Posts
    343
    cool... I seem to have issues in file sizes when I create tweens (mostly from alpha 0% to alpha 100% over like 20 frames)...that's when the size doubles...

    Isn't there some AS to do that effect?
    Losse

  4. #4
    Ryan Thomson EvolveDesigns's Avatar
    Join Date
    Oct 2001
    Location
    British Columbia
    Posts
    3,338
    yeah you could do that with as, but technically you shouldn't see much of any size increase from an alpha/tween/resize, that's all just math. if you want to test against an AS version it would look something like this:

    PHP Code:
    mcInstanceName._alpha 0;
    this.onEnterFrame = function(){
    mcInstanceName._alpha += 5;
    if(
    mcInstanceName._alpha >= 100){
    delete onEnterFrame;
    }

    Evolve Designs Interactive Media
    the natural selection

  5. #5
    Senior Member
    Join Date
    Aug 2000
    Posts
    343
    So the image would be in the library? or in the main timeline?
    Losse

  6. #6
    Senior Member whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,756
    the image would be on the stage inside a movieClip named mcInstanceName (using the example posted above)

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