A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Images

  1. #1
    Member
    Join Date
    May 2004
    Posts
    47

    Images

    Hi

    I have a weird problem

    I have a movieclip that loads several JPEG into moviclips
    when the mouse hovers, the clips it shows an elastic effect.
    This works fine when I test the clip.

    But when I load this clip from a main movie clip
    the images gets jagged and distorted when hovering, so I guess something is wrong in my mainclip. But I don't know what.
    Does anyone have a clue what causing this

    thanks in advance
    Thomas A.

  2. #2
    Product Designer keyone.it's Avatar
    Join Date
    Aug 2001
    Location
    Rome, Italy.
    Posts
    1,625
    when working with images you should keep aliassing under control.
    Check that all coordinates are cool (everything should always move by 1 px at a time, and not go into floating points...because the reandering engine rounds them).

    In the authoring environment check the coordinates of all the interested objects and if you need to, set the floating cifres to 0.
    In the scripts just add this to your coordinates:

    from

    myMC._x = k;
    myMC._x = Math.floor(k);

    This should solve the problem..

    Cheers
    Altruism does not exist. Sustainability must be made profitable.

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