-
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
-
Come on guys. Please help. .
I know this is a simple one for you.
-
.
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"
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|