Actionscript 3 :: Transparent Jpeg Images In Flash
Jan 2, 2010
I have two images on my flash stage (A camera image and a scenery image) The idea is that the camera is in front of the scenery. The problem is although both images are on my stage the camera is completely transparent and looks wrong . How can I set the cannon image transparency so that it is a solid image on top of the background image.
In Flash, via the authoring environment, you can put bitmaps in your movie that are compressed with JPEG but still support full alpha transparency, something JPEG does not support out-of-the-box. Is there a way to achieve the same when embedding bitmaps via the Flex [Embed] tag?
Ever since I got the hang of AS3 and discovered FlashDevelop, I pretty much abandoned fla.Back in the days, before switching to it, lack of alpha channel support by the .jpg format was a non issue, since Flash IDE allowed to embed png images in the library and apply lossy jpeg compression to them while retaining their transparency data.Programmatically, however, I'm only able at the moment to embed either flat jpegs, or lossless, consequently unacceptably large, transparent pings. (Indexed gif is not practical in the context/nature of the pictures to be embedded.*)
Is there a way to "JPEG-ize" pings at compile time using only code? Perhaps there are some parameters to follow [Embed(source = 'transparent.png')... that are not known to me? Obviously, I'm aware of such acrobatics as loading/embedding a external swf published from Flash IDE containing the bitmaps, or storing the alpha channels separately, ets but I wonder if this can be done elegantly to satisfy code purism.While GIF is great for storing pixel art, icons and whatnot, for smooth/soft images using way over 256 colors, its quality/compression ratio is rather unfavorable. Additionally, it only supports 2-bit transparency i.e. aliased edges.
Can a wmode-transparent SWF have any effect on the graphics of the webpage that it appears on?Specifically, I'd like to create two effects - a draggable lens and a "heatwave/water ripple" effect, both of which affect html-based text and graphics which are on the webpage.
While it's fairly easy to do this by taking a screenshot of the page and importing it, I was wondering if there's a more dynamic solution, such as by somehow grabbing a bitmap image of what's beneath the SWF...
I am trying to improve the quality of the slideshow displayed on this website[url]... My knowledge of flash is pretty limited. I know how to create the slideshow, I'm just not sure how to maximize the quality and keep the file small. The original was created as a .wmv and then converted to .flv. I have heard that creating the slideshow in flash using vector images is the way to get the best quality. So, my questions are:
1. How do I convert a jpeg to a vector image? Can I do this in photoshop?
2. How do I convert the .swf file to .flv without losing quality?
how to have 4 or 5 images continuing or looping at the top of a web page, no thumb nails just the images changing. This is the site I'm working on [URL], you better see what I'm trying to do.
I am only perfect with basics of AS3 and flash. I need AS3 code or a basic example/tutorial for loading of .jpeg images into flash from database.I had searched through google, but, any of the example won't match. If anyone has their ideas, atleast send me the algorithm for your idea, so that i can try by implementing the idea. I think, once again when I open this topic, i will be getting my requirement.
I have a combo-box on the stage with a few items in the combo-box and also have corresponding JPEG/PNG image files. I need to display the appropriate image onto the stage based on the selection of the item in the combo-box. So, please I need ActionScript code or procedure to handle this using Event-Handling mechanism of MouseEvent.
I am using this code Code: loadMovie(filename1.swf,_root.location1); To load an external swf into my movie. That external swf is a 'loader' for some JPEG images.
The external swf (filename1.swf) contains four empty movie clips, and this code Code: loadMovie("IS.JPG",inviteb); loadMovie("PLS.JPG",placeb); loadMovie("RSS.JPG",rsvpb); loadMovie("TYS.JPG",thankyoub); loadMovie("main.jpg",main);
The idea here is that (filename1.swf) can be placed in any directory with images bearing those names, then be called upon to display the images in that directory into my flash page. The problem is that it doesn't load the images. I am sure it is because it doesn't know what container to load them into, because of the nesting. But I don't know what location to use.
I have tried Code: _root.main _level0.main _level0.location1.main _root.location1.main but none of those work.
to the first frame of the movie which contains an empty mc "imagenes_mc" which should load a diferent JPEG each time someone gets into the website.
Thing is: ON my published swf nothing happens with that code and on the output windown i get "1120: Acess of undefined property mages_mc" and also "1180: Call to a possible undefined method random"
I have an XML file that loads in JPG images great, but if I try to load either a PNG or GIF instead of a JPG - it simply does not load at all.Does ActionScript & Flash not allow for transparent files, or even these formats of images to be brought in via XML file?BTW:I used this tutorial, step 1-9, and all works well but if I change the images to my personal PNG - the only thing that displays is the preloading bar as if the file just doesn't want to file/load the image. The text does come in though.
I have an AS3 swf which users can upload jpg images to my EC2 instances which sit behind and Elastic Load Balancer. The jpg images are converted into bytearray data and sent using URLLoader.load(URLRequest)I make 2 calls when uploading, one to upload a large version, then another to upload a thumbnail version. A PHP script to which the bytearray data is uploaded converts this to a file using file_put_contents($destination,$GLOBALS["HTTP_RAW_POST_DATA"])Is it possible to combine these two requests into a single request which contains both the bytearray data for the large and thumbnail images and 'split' the HTTP_RAW_POST_DATA to create 2 files at the server. This would be better than uploading the bytearray for the large version then using something like ImageMagick to resize the resulting image into a thumbnail which I realise is another option.
I am trying to import this transparent text with drop shadow but everytime I try to save it as a .gif or .png the quality is horrible. I've played around with the settings.
This is probably an easy task for most of you, but how do i get a transparent image to fade to a background image in Flash? I have several transparent product images (.png or .gif) and a patterend background. I import my .png or .gif image and convert it to a symbol. I drag the symbol on my layer but as soon as i add a keyframe, the product image background turns white and loses it's transparency!
what i want to do is to preload some images, then multipy them on my scene ( the files are transparent png containing clouds ) the problem is that when i copy the bitmap data to create a new cloud, i loose transparency, and i can't get WHY here's my code
My flash piece loads an external image depending on the XML that gets pulled in. The problem is that it sits in with a busted *** calendar that won't let me z-index until the wmode = invisible. When I change it from "window" (aka default) to "invisible" my external images do not load in but the stage assets remain. So external images appear in window mode. Do not appear in invisible / opaque mode.
I imported a video into flash and have a transparent photoshop layer to create an iPod skin. The video works fine, but I cannot get the "stage" to be transparent so that you do not see the flash background color behind the iPod skin.
I've read in the forums and have followed the instructions here from Adobe. If you look at my code, I have
I am creating a map in flash cs4 with all the countries on it. I used photoshop for creating the map and separated countries. Now I imported all pngs in Flash and I want to give Mouse CLICK event and Mouse Hover on all pngs, but as the transparent pixels are overlapping the other states, it is getting difficult. So, I converted all pngs in movieclips and now then I broke up pngs. Now I want to delete all pixels having alpha 0 using eraser tool, as per the borders. And I have to do it manually for individual countries. So is there a way to remove transparent pixels from the bitmap data?
I have two png's that kind of look like paint brush strokes. they have some transparency in them that lets the stage colour bleed through a bit.
I am adding two of these images to the stage in AS 3. One adds quite fine - looks as expected. The second one however doesn't have any transparency other than around its edges. What i mean is it looks more like GIF than a PNG. Rough around the edges, no transparency "inside" the image itself (where there should be)
i have tried re-creating the image (yes it IS a PNG) which did nothing. I ensured the library item is not being treated as a JPEG. I also even tried externally calling the PNG to see if that made a difference. Unfortunately it did not.
why this second PNG doesn't seem to have a transparency set?
Im using Adobe Flash CS3 PRO. I don't know what's wrong..when I try to import photos into the stage the photos get resized.My photographs are 550px by 413px. I set my stage to the same size. Then I go to import to stage. I click import as a sequence. All the photos are appear smaller on the stage. They are only about 200px.I am basicaly trying to import a sequence of photographs for my stop motion animation.
I am trying to take a variable sent from flash, and save it to a spot on my web server using PHP, I have NO idea how to do this, and I can't seem to find code that works anywhere on the web
I have downloaded the source file for the Export JPEG with Flash/PHP sample from http:[url].... . What this script does is it lets you print the flash screen you have using the new flash.display.BitmapData class.I was able to run it on my server however I also want to be able to save the jpg image that it generates on a folder on my server. What I did is I added a an image file name in the imagejpeg() function
imagejpeg($img, "filename.jpg", 90);
The image is being saved on my server however, now the image is not being displayed on the browser. Both on IE and Firefox.
automatically replacing a flash file with a jpeg, for non flash users.
I also am looking for some scrpt which tells users if they haven't got a/the correct flash plug in. My site uses a flash 5 file as well as flash mx 2004.
Could somebody give a hand with this? I am trying to export a flash image to jpeg. I can do it but the image is cropped when I open it in photoshop. This is the original image (is is an screenshot and not exported with flash): And this is the image exported with flash (as you can see it is cropped on the right): [URL] Why is the second image cropped?
I want to allow a user to create a comic page layout in Flash which would allow them to upload JPEGs into the comic page layout then the Flash interface would allow them to move them around and add speach bubbles.
I would then like these to be uploaded to my web server and the whole thing converted to a JPEG. What would be involved to achieve this?
We are attempting to convert a flash frame into a JPEG without using the Flex SDK or other adobe tools. Right now, we have a flash file that passes binary data over to a .cfm page, which uses the following code to change the headers:
<cfset var = GetHttpRequestData()> <cfcontent type="image/jpeg"> <cfheader name="Content-Disposition" value="attachment; filename=#url.name#">