Forums → Programming Forum → How do I put images in my swf?
- 2 Replies
I am using FlashDevelop.
I need to "import" images in my project. How do I do that?
I mean, I know how to use the "Loader" class, and as long as the whole project (compiled swf + images) is in one folder on my HDD everything works fine.
But when it comes to uploading the game (on AG, for example), I am only asked for the swf directory, and there's no way to attach the "external resources" I need. (as far as I have seen, at least)
So, should I just embed everything in the swf? But then it would become way heavy, and I see most of the games actually DO have a loading screen, wich would not be there if the resouces were already completely loaded with the swf (I think)
Or should I upload the files I need on my own website and refer to them through an url?
So, can anyone tell me how do I include images (and sounds etc) in my project and use them and how to upload the whole thing on AG?
I embed images in Actionscript like this:
private var picClass:Class;
Then you can make a new bitmap object using that picture with:
public var picBMP:Bitmap = new picClass();
I have no idea, but you should ask a know-it-all dude rather than create a whole about it.
You must be logged in to post a reply!
We strive to deliver the best gaming experiences... on the internet and on your mobile phone. Play thousands of free online games, get access to free mmorpg games, online rpg games, fun online flash games, and more.
We offer free flash games in many different genres: online shooting games, online puzzle games, online war games, free online car games, free online hidden object games and dozens more.
This is the best place on the web to play online games for free... play on Armor Games! No matter what game style you prefer, we've got it here.
Gaming websites, passionate bloggers, and quirky streamers are welcome to share or review our games. If you need game keys, art, trailers, screenshots or more check out our press kit website.
Game developer? Visit developers.armorgames.com to request AG developer status, find documentation on our APIs, and get access to our development environment. Let's make sweet, sweet games together.
Looking for a publishing partner that can help your app rocket to success? Contact the mobile team to learn more about how we can help!