Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-20-2007, 05:17 PM
Member
 
Join Date: May 2004
Posts: 78
Default Image substitution with new SWFGen version

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!
__________________
:)
Reply With Quote
  #2 (permalink)  
Old 01-22-2007, 10:10 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:Image substitution with new SWFGen version

Could you please send us a PNG or GIF file that causes the problem? We will test it, thank you.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:04 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.