A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Flash 8 Pro (AS2), externally loaded jpgs displaying artifacts when displayed

  1. #1
    Senior Member
    Join Date
    May 2009
    Posts
    213

    Flash 8 Pro (AS2), externally loaded jpgs displaying artifacts when displayed

    Hello,

    Im just loading some jpgs externally, Which means the jpgs reside in a folder where the webpage is. Everything works correct. But the images are displaying artifacts in certain areas.

    I know if the images are incorporated into the flash file then they can have their smooth properties set. But what do i do for externally loaded images ?

    Thanks

  2. #2
    Senior Member
    Join Date
    May 2009
    Posts
    213
    Come on guys. Please help. .

    I know this is a simple one for you.

  3. #3
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi,

    You might need to look into MovieClipLoader(), so you can do things with your images after they have loaded, with loadmovie() you have less control over them
    PHP Code:
    TheLoader = new MovieClipLoader();
    TheImageLoad = new Object();
    TheLoader.addListener(TheImageLoad);
    TheImageLoad.onLoadStart = function()
    {
        
    ImageHolder._visible false;
    };
    TheImageLoad.onLoadProgress = function()
    {
        
    // intentionally empty
    };
    TheImageLoad.onLoadComplete = function()
    {
        
    // intentionally empty
    };
    TheImageLoad.onLoadInit = function()
    {
        
    ImageHolder._visible true;
        
    ImageHolder.smoothing true;
        
    ImageHolder._width 300;
        
    ImageHolder._height 200;
    };

    MyButton.onPress = function(){
        
    TheLoader.loadClip("images/picture.jpg",ImageHolder);

    basically this example needs a button called "MyButton" and an empty moviclip both on stage called "ImageHolder"

  4. #4
    Senior Member
    Join Date
    May 2009
    Posts
    213
    Thanks a lot for your help.

    I shall try this out and post back here if i was successful.

    Other than .smoothing=true what are the other properties one can manipulate please ?

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