Can I avoid the lost in quality of pixel graphics in Flash? - actionscript-3

Im making a videogame in flash (using AS3, Flash CS6, flashDevelop, etc) and almost all the big code is done. So I made some new graphics in photoshop, exported as PNG, loaded them to the library and replaced some of the placeholder vector art. When I tested the movie I noticed a huge drop in quality even when the code does no scaling at all.
http://i.imgur.com/qIE7Vk9.jpg
Is there something else I should be doing?

Ok, so i feel kinda silly answering this like 5 minutes after posting the question but you can set the properties for the file inside the library so it isnt compressed any further.
http://i.imgur.com/iI2mnLa.jpg

Related

How to Make dynamic text in Adobe After Effects like in Adobe Flash Professional

In adobe Flash proffesional we can make dynamic texts and give instance name and export in swf and we can use in Flex Builder swf loader and can dynamically get that instancce name and can change the Text. But Animations in Adobe After Effects are really cool. So is there any way i can do the same?
I mean can we make such animations in After Effects and Get the text objects from exported swf or some other thing???
I might not be able to explain my question well, But i really need some help.
Pls, I am a beginner so please go light on me iv asked before on Stack Overflow but people seem to turn me down by saying thats a stupid Question.

Can I use the effects made in Adobe After Effects in the game developed with Adobe Flash Pro and ActionScript 3? If so how?

I am developing a 2D game using Adobe Flash Pro CS 6 and ActionScript3. I am having some trouble in developing some effects e. g. bomb blast, particle effects etc. I want to know, whether I can use After Effects for those and then use them the game. Please suggest me.
There's no problem of using any graphics data from any program in Flash as long as flash can support the file format.
In case of After Effects graphics, you'll probably have to export them as a PNG file sequence, so they'll most probably be pretty large in file size.
To import:
You can either make a movie clip and just import the first image of a sequence with CRTL/CMD + R and Flash with be "smart" enough to suggest to load the other files of that sequence.
If you want, you can load them during run-time, add them to the array/vector, create a Bitmap object and change it's bitmapData property on enter frame/timer to animate it.
If you are decided on using the actual After Effects graphics rather than emulating them using an Actionscript 3 particle effect, I'd actually recommend exporting them as video on an alpha channel and then converting that to flv and then hosting them individually and streaming them in via Netstream and placing them on the proper layer via an addchild. If bandwidth isn't a huge concern here, this would be a good method for achieving this effect.
Here is some documentation on Netstream. http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7d4e.html
If this seems like it might achieve the desired result, I can explain further if needed.

Scale Flash desktop app to iPhone/Android phone size

I have several games that were built 800*600 and need to convert them to run on the iPhone.
Are there any "easy" frameworks to convert the application without having to create all new images for Flash/AS3?
I was reading about starling but I don't see any way to easily convert our application witout rewriting a lot of it.
Thanks.
It totally depends on your existing games. If they use a lot of vector graphics and full screen animation, performance will become an issue. But if you use a lot of bitmaps already, and not much animation, you might get away with just porting your games to AIR.
Flash CC has options to export assets to Bitmaps even if they were created using vectors ("Export as Bitmap").
You can optimize performance by using cacheAsBitmap on certain graphics (also look at cacheAsBitmapMatrix) but there you will enter rewrite territory.

Webcam fire Flash effect

Is there any source code available in ActionScript3 that does something like this: http://gskinner.com/blog/archives/2005/11/flash_8_webcam_1.html
http://blog.soulwire.co.uk/code/actionscript-3/webcam-motion-detection-tracking
The link above isn't exactly what you're looking for but similar. You could probably grab the original processing.org IDE which comes with samples, one is a webcam background differencing program, you can probably copy the algorithm from there if you're having trouble coming up with something yourself. Using flash BitmapData methods and tweaking blendModes with a couple of frames can get some interesting stuff going.

Actionscript 3.0 Tween Question

I am currently working on a website for a construction company and I am trying to build a very simple flash intro. I have two images in the falsh intro: a tractor and a picture of clouds in the background.
I am trying to have the clouds appear to float by in the background. It is a very wide image that I am trying to loop through very slowly. It looks pretty cool :) IMO.
For tweening, I have always used TweenLite. The problem I am having is that while the image is moving, it 'blips' and looks pretty choppy. I have adjusted fps and about every other thing I can think of. The only thing that fixes it is when I use Hardware Acceleration (Level 2 - GPU). But this creates all sorts of problems for the HTML page.
My Question Is:
I am just a terrible coder, or would I be better off using Tweener (or something of the sort) or using the native tween engine in flash cs4? Any advice would be great!
Try these:
If the image is in your Library, make sure "Allow smoothing" is checked in your Bitmap Properties (select the image in the Library and go to "Properties" in the Library menu).
Or, if you are loading the bitmap dynamically and using the BitmapData class, make sure you've set the "smoothing" property to "true" on your BitmapData.