Actionscript 3 :: Duplicating A PNG Image Causes Loss Of Transparency

Nov 10, 2011

I am using LoaderMax to load an external PNG and display it in many places so I use the following code to duplicate the image:

[Code]....

View 2 Replies


Similar Posts:


Flex :: Loss Of Image Quality When Zooming In Mobile Application?

Jul 11, 2011

i have a mobile application that i am creating in Adobe Flex (Flash Builder 4), and i am trying to create a zoom function. The one i have works, but the point is to be able to more easily read words that are in the image (the images are .jpg files). The images are 2550x3300 originally, but as soon as you zoom, the image quality reduces drastically, and nothing is readable.

[Code]...

View 2 Replies

ActionScript 3.0 :: Duplicating An Image Loaded - Clone Image?

Oct 2, 2009

How should I go about cloning an image loaded form the server and adding it to the end of the first image loaded? Would I use bitmap clone? My attempts with this failed[URL]

Code:
//Creates new image loader
var imageLoader:Loader;

[code].....

View 1 Replies

Bring In An Image With Transparency In Flash CS4?

Oct 21, 2009

What's the best way to bring in an image with transparency in Flash CS4?I have a logo in Photoshop that looks great on a black background.  But when I bring it in as a GIF or PNG in Flash, the edges get really jagged.Is there a preferred way to import this so the edges are smooth?

View 2 Replies

ActionScript 3.0 :: Image Transparency And HitTestPoint?

Jun 26, 2011

I'm not sure this is even possible, but does anyone know how to get the hitTestPoint function to ignore transparency for a MC containing a png image?

View 1 Replies

ActionScript 3.0 :: Transparency In A Loaded JPEG Image?

Oct 10, 2008

Im quite new to the ActionScript scene so apologies if thisquestion has already been answered elsewhere. I am creating a 2dshooting game, and Im loading multiple images of various enemiesfrom several jpg files, but when I display these on screen heimages have a big black square round them. Now when I amprogramming in another language such as OpenGL, if I wanted to getrid of this I would enable an alpha blending function and set 100%transparency for the black colour which I want to hide. So I loadthe jpeg file and store it in a BitmapData variable, and then Icopy this into a new BitmapData variable with transparency enabledand set to 0x00000000 (fully transparent black). I thought thiswould solve my problem butt no joy. My code is shown below:public class GraphicsLoader extends Sprite {

public var loader:Loader; // The bitmap loader
public var bmp1:Bitmap;
public function GraphicsLoader(path:String)

[code].....

View 4 Replies

Export Flash Image To Illustrator : Bad Colors And No Transparency?

May 15, 2008

I've tried to export my vector work from Flash to Illustrator. The result is bad : colors have faded and transparent colors became opaque. It is a shame that Flash doesn't provide a correct export function to
Illustrator now that Flash and Illustrator are both Adobe's softwares.

View 1 Replies

Flash :: Change MovieClip Transparency As A Single Image?

Aug 27, 2010

Here is my code:

var menu = new Menu ();
menu.x = 0;
menu.y = 0;[code]...........

This works, but transparency varies for each element MovieClip separately, but I would like that would have changed the whole MovieClip transparency as a single image.

Menu(); is generated from XML.

View 2 Replies

ActionScript 2.0 :: Duplicating Dynamically Loaded Image?

Feb 27, 2006

I'm building an image gallery which creates thumbnails by sizing down the original images and once you click on one of them it duplicates itself and displays on top with full scale. I searched the web and everybody say duplicating dynamically loaded image can not be done and only solution is to reload the image. And because they are cached when they were first loaded it shouldn't take much time to get loaded. Also I heard that there is way to force the browser to cathe the image...

View 2 Replies

ActionScript 3.0 :: Force The Tint To Cover The Entire Image, Including The Transparency?

Oct 13, 2010

I am using TweenMax to animate a PNG with some transparency. With TweenMax, I add a tint to the animation.

When the tint is applied, it obviously only tints the non-transparent part of the bitmap.

Is there any way to force the tint to cover the entire image, including the transparency?

View 1 Replies

ActionScript 3.0 :: WMV To FLV Without Quality Loss?

Jan 28, 2009

is there anyway to convert a WMV movie to a FLV file with out loosing video quality ?

View 1 Replies

ActionScript 3.0 :: FPS Loss With Fade?

Sep 16, 2010

In my game I am making, when the character dies, I call a MC with a 1.5 second fade. It goes from alpha 1 to alpha 0 within the 1.5 seconds. It drops the FPS drastically from 40 FPS to average of 15 FPS. what I could use instead, so I don't lose FPS?

View 1 Replies

ActionScript 3.0 :: Loss Of Reference Of Singleton?

Jun 28, 2011

What is the possibility of a singleton reference to be lost. Well I created a swf singletonpara a store containing some sound features of the software that I created and it's one time or another error saying that the reference is null

View 5 Replies

ActionScript 1/2 :: Profit And Loss Calculator

Dec 20, 2011

I'm trying to get a Profit and Loss calculator working in ActionScript 2.The red text in the yellow highlighted cells is what the user can change. They click a calculate button and the number of total value for lemons * Unit cost is supposed to be updated.[code]When the calculate button is pressed

View 2 Replies

Actionscript 3 :: Pausing On Loss Of Focus?

Jun 4, 2011

I'm working on a Flash mobile game. If the app loses focus (a call comes in for example) I need the game timer to stop until focus is restored. Here is my current code but I'm getting a "Argument count mismatch error" onDeactivate(). Expected 0, got 1.

Here is the related code, I think:

addEventListener(Event.ACTIVATE, onActivate);
addEventListener(Event.DEACTIVATE,onDeactivate);
public function onActivate():void {

[Code].....

I'm getting the error when testing in flash and I close the window.

View 1 Replies

ActionScript 1/2 :: Import Video From .mov - .flv - Audio Loss?

Jun 16, 2009

I have 3 .mov files I am trying to import to the stage.  Each time I bring them in all goes well.  When I test my swf they lose the last 25%~ of the audio no matter what codec I use audiobitrate etc. 

View 1 Replies

Split DVR F4v File Without Loss Clients From Broadcast?

Feb 3, 2010

We have implement a DVR solution, but a problem remain how can I split DVR f4v file without loss clients from broadcast?

It's possible to split file if reach a limit such as 40Gb and create a new file without cuts in broadcast?

View 1 Replies

Professional :: Loss Of Bold Text In Cs5 From A Cs3 File?

Jul 6, 2010

I opened up a file that was created in cs3 flash with cs5 flash and we have some text that is bold in our actionscript code. now when i load that file with cs5 the bold text drop's out of bold and is just plain text. Does anyone know if there is a quick fix for this because what was there before the <b></b> is not working now.

View 1 Replies

Actionscript 3 :: Catching Memory Loss In Flash?

Apr 14, 2011

It seems to mee that my app eats too much memory. Is there a way to control memory usage in flash? Amount of movie clips in memory? amount of textfields?

View 3 Replies

Flash :: Packet Loss Calculate In Flex

Feb 21, 2012

How I can calculate packet loss from Flex.

View 1 Replies

Flash :: Packet Loss Calculate In Flex?

Feb 21, 2012

How I can calculate packet loss from Flex.

View 1 Replies

ActionScript 3.0 :: Motion Tween Pic Resolution Loss

Jan 29, 2009

I have a pic that I want to use a simple motion tween for where I scale the pic and move it slightly. My problem is that scaling the pic inside of flash makes the resolution of my pic very crappy. Is there any way to use a motion tween and scale my pic without losing the resolution and without having to import the pic frame by frame from photoshop?

View 1 Replies

ActionScript 3.0 :: Strange Vector Loss Of Data

Mar 4, 2011

I tried to write a function that inserts values into a Vector. After writing my first function, I started to notice some strange results. Sometimes, the Vector appeared to lose values for no reason. My original code looked like this:

[Code]...

View 0 Replies

Professional :: 3D Tween Causes A Loss In Visual Quality Of The Movieclip?

Apr 15, 2010

Has anyone noticed how the 3D tween causes a loss in visual quality of the movieclip?  For example, if I have text within a movieclip, and then put a 3D tween on that movieclip, the text becomes almost blurry (even when the tween is complete).  Then if I take the 3D tween off the movieclip, the text goes back to being perfectly clear.  It's not just text though; its any content with a 3D tween on it; text is just the most noticable.  Is anyone else dealing with this?
 
Is there something that I'm missing, like a quality setting on 3D tweens?
 
P.S. there aren't any blur filters on the movieclip.  I checked

View 3 Replies

Media Server :: Detect Packet Loss Or Other Quality Metrics For Inbound Streams?

Aug 5, 2011

So we're trying to come up with a way to automatically assess the "quality" of streams published to an FMS. So far, I've come down to 3 different statistics:

* Round-trip ping time to client (using the Client.ping() method and Client.getStats().ping_rtt.

* A home-grown jitter calculation that compares the deviation between wallclock and media time for an inbound stream, e.g., I get N+/-M seconds of media over a period of N seconds of wallclock time. How big is M on average? (uses Stream.time and Date.getTime()).

* How much packet loss are we getting?

For this third metric, I have the client sending up period reports containing tuples of <media_time, cum_bytes_sent>, where media_time is provided by NetStream.time and cum_bytes_sent is provided by NetStreamInfo.byteCount. I'm then comparing these samples to a similar set of samples obtained on the server via Stream.time and Client.getStats().bytes_in. Unfortunately, these two data sources do not seem to be measuring exactly the same thing. While they are close to each other, the received bandwidth (e.g., measured by the server) always seems to exceed the sent bandwidth (measured by the client) by a small amount (e.g., 0.5% to 2%) on a clean network.
 
The goal of this whole exercise is to enable to server to automatically detect when a client is having problems (either network or local CPU). Among other things, this will trigger us to tell the client to try sending a lower-bitrate stream.

So, my questions:
 
* Is there a method for me to reliably calculate (or obtain) a packet loss factor?  With something like RTP, I could simply look for holes in sequence numbers, but I don't see any APIs that would give me that sort of information via FMS (our inbound streams are usually RTMFP).

* If there isn't a way for me to get a clean packet loss factor, is there another quality metric I should be looking at?

View 12 Replies

Actionscript 3 :: Maintaining Textarea UIscrollbar Position On Loss Of Focus In Flash Embed

Oct 18, 2010

I'm using Flash CS4. Everything functions as it should when CS4 previews the swf after compiling it. However, after embedding the flash item in a webpage, if the textArea loses focus within the flash piece, the textarea's built-in UIscrollbar resets to the very top. Here's the kicker: if I add a FOCUS_OUT event listener to the textArea to store the current scrollbar value, I find that the scrollbar value has been reset to minimum even before the FOCUS_OUT event is triggered! WTF? I think this is occurring because the textArea's htmlText propery is dynamically populated. Adobe AIR has advanced methods for handing HTML, but not simple AS3, oh no. How obnoxious. What can be done?

View 1 Replies

Flash :: Data Integration - Data Text - Format Loss With IE

Apr 11, 2007

I have a website that is all flash. I have a main file that loads in the nav and then the nav loads in the designated .swf file for each section. So there are several sections(.swf's) with lots of text taken from a database and inserted into the swf file from
an XML file. If I click in between sections, and go back to the original section of text the formatting is lost. This is only in Internet Explorer 7- this does not happen in Firefox or on the Mac.

View 4 Replies

ActionScript 2.0 :: MC With Png Transparency?

Oct 31, 2009

I'm creating a DressUp kind of game using only external .png files for items (such as dresses, hair styles, bags etc).Some of my image files have transparent space left/right of the drawing itself. What I want to do, is set the hitArea of that certain movieclip (which contains the .png file) only to the visible area (to the actual drawing). This would be a fairly easy job if all the items had have the same size, but sizes are different from item to another.Taking the attached image, the grey area should not respond to mouse events.

View 1 Replies

PNG Encoder 24Bit With Transparency?

Mar 6, 2009

s there any way to make PNG 24Bit transparent Image from MovieClip? I tried google a lot, but didn't found any transparent Method.

View 6 Replies

Imported PNG Transparency Lost?

Jul 17, 2009

I created an image in Photoshop that included a gradient layer fading from transparency to a foreground color (in this case, black). I saved this image as a PNG file and imported the file onto my Flash stage. The gradient appears on the image as expected when viewing the stage in the Flash editor, however, when I test the movie, the gradient no longer appears.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved