|
|||
|
Hi - can you let me know how to get image substitution working correctly with the new version of SWFGen.
Previously, I used this 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",filena me); FlashPlayer.targetGotoLabel("_level0","backgroundL oad") } // 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; However, when I update this code to allow .pngs and .gifs to be loaded I get some strange results. The .pngs and .gifs seem to be rotated and do not load correctly. Please let me know how to adapt the above code so it can work with .pngs and .gifs. Thanks!
__________________
:) |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|