Flash & PNG problem
- Started
- Last post
- 15 Responses
- subfactor
I have a png image that puts round pixelated corners on the stage of the flash movie. I imported the PNG from a fireworks file and turned off smoothing.
For some reason when i export the pixels arent accurate and it looks odd. anyone know of a quick fix?
- fate0
subfactor, I've had that problem before, just try re-importing under a new name, make sure the positioning is all whole numbers for x and y, be SURE to check that the MC it may be in isn't resized at all..open up the transform panel and check it for 100% and 100%.
- subfactor0
thanks for the help. the image is 100% at the 0x0 position and it isnt in a MC.
would it help if it was in a MC? and should i break it up
- Mick0
Is the PNG the fireworks file? If so, try export it as a PNG via the optimize settings
- subfactor0
yo it is.. i will try that
- Jnr_Madison0
Sometimes leaving a 2px transparent border around the image helps too.
- subfactor0
nope didnt help.
the stuff is only around the edges so i really has no room for error.
ive noticed that there is a row 1px deep missing on the bottom of the image and a 1px row added to the top.
- Jnr_Madison0
Post the fla if you still can't get it.
- subfactor0
im just gonna go with round borders made out of vectors. thanks for all the help guys.
- abstrakt0
if you can use vectors, then do it. much better.
BUT, to fix that problem, when you turn your PNG graphic into a symbol, set the registration point to bottom-right. that will usually fix it. macromedia has known about problems with shifting pixels for years and they haven't/can't fix it. i hate that company.
- myobie0
make it an MC always, then it should work
if not then move it down a pixel and over a pixel and see if that works...
images are weird in flash
- runDMB0
Jnr Madisons fix will work. Just add 2pixels of clear space around the image and export it as PNG 32 from fireworks. Bring it into flash and position it where you like as long as the co-ordinates are whole numbers.
- Jnr_Madison0
Yep, it does work. I had to do it with every single png I used in the last flash site I worked on.
- abizzyman0
does dropping the alpha to 99% work?
... also... i've resized the image (the actual graphic inside the clip) once it's been imported. I'll make that image 2 pixels wider and taller (ie. 100 x 100 = 102 x 102) and then place the MC on the stage and resize that to 100 x 100. Weird? yep... but it seems to work too.
- Jnr_Madison0
Yeah, I do the 99% too.
- donal0
i have the answer! set the images position to minus values within the movie clip. EG if the image is 200x200 set the position to -200,-200
et voila