# How to display .gif,.png images in flash8

**URL:** <https://forum.kirupa.com/t/how-to-display-gif-png-images-in-flash8/220046>\
**Category:** Uncategorized\
**Created:** [March 22, 2007, 4:02am UTC](https://forum.kirupa.com/t/how-to-display-gif-png-images-in-flash8/220046 "2007-03-22T04:02:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pradeepareddy](https://avatars.discourse-cdn.com/v4/letter/p/f07891/32.png) [@pradeepareddy](https://forum.kirupa.com/u/pradeepareddy)\
**Post date:** [March 22, 2007, 4:02am UTC](https://forum.kirupa.com/t/how-to-display-gif-png-images-in-flash8/220046/1 "2007-03-22T04:02:12Z")

</div>

in this code if i gave  
mc.loadMovie(“[http://192.168.1.9/projects/khelorummy/cards/"+this[“label”+i]+".jpg](http://192.168.1.9/projects/khelorummy/cards/%22+this%5B%22label%22+i%5D+%22.jpg)”);  
in browser 5 images are displaying

but if i gave  
mc.loadMovie(“[http://192.168.1.9/projects/khelorummy/cards/"+this[“label”+i]+".gif](http://192.168.1.9/projects/khelorummy/cards/%22+this%5B%22label%22+i%5D+%22.gif)”);  
no image is displaying

code is  
ActionScript Code:

var lvSend = new LoadVars(); var lvReceive = new LoadVars(); lvSend.SendAndLoad(“[http://192.168.1.9/projects/khelorummy/user/getcardimages.php",lvReceive,"get](http://192.168.1.9/projects/khelorummy/user/getcardimages.php%22,lvReceive,%22get)”); lvReceive.root = this; lvReceive.onLoad = function(bSuccess) {  
for (var i:Number=1; i \<= this.n; i++) {  
this.root.createEmptyMovieClip(“container”+i, i);  
var mc = this.root[“container”+i]; mc.loadMovie(“[http://192.168.1.9/projects/khelorummy/cards/"+this[“label”+i]+".jpg](http://192.168.1.9/projects/khelorummy/cards/%22+this%5B%22label%22+i%5D+%22.jpg)”); mc.\_x = 30;  
mc.\_y = 40 \* i;  
}  
}

iam using flashplayer8.  
and i also checked the file-\>publishsettings-\>flash in dreamviewer it is also set to flashplayer8. then why .gif images are not displaying?  
cann’t we display .gif or .png formats in flash using loadMovie?  
if possible plz give me the modified code its urgent. plzzzzz
