|
|||
|
Hi, when I use the following code:
Code:
var filter = "Image files(*.gif*,.jpg,*.png)|*.gif*;.jpg;*.png;|"; var filename = Dialogs.fileOpen(filter, ".gif;.jpg;.png;"); Could this be looked into please? Full code: Code:
//loadImage
var filter = "Image files(*.jpg,*.png,*.gif)|*.jpg;*.png;*.gif|";
var filename = Dialogs.fileOpen(filter, ".jpg;.png;.gif");
if (filename)
{
FlashPlayer.setVariable("_level0.imagedata",filename);
FlashPlayer.targetGotoLabel("_level0","backgroundLoad")
}
// generate the final file
if (!output) return;
if (object.id == 258)
{imageinfo = FlashPlayer.getVariable("_level0.imagedata");
object.image = imageinfo;
object.quality = 200;
object.needSub = true;
}
}
// Image replacement
zGen.OnSubImage = onSubImage;
Just to repeat, it works perfectly if it is a .jpg or a .png - but the application crashes if it is a .gif. Strange! ???
__________________
:) |
|
|||
|
Thank you. I can send you a copy of my program if that is any help - but I believe you can replicate the issue with just the above code.
Basically, it works brilliantly with .jpg and .png, but crashes with .gif. :'(
__________________
:) |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|