Flash - Bitmap Caching Or Using PNG?

Dec 14, 2009

In Flash what would be wiser? To use a PNG or import the vector and cache it as bitmap?

View 1 Replies


Similar Posts:


ActionScript :: Flash - Bitmap Caching Vs Image Asset Performance

Mar 14, 2011

i've created a full spectrum color wheel Sprite object that is composed of 1440 vector triangles, or slices if you will. since i want to animate the color wheel, i've activated the display object's cacheAsBitmap property. however, caching the vector as a bitmap does not increase performance during animation it remains slow, jumpy. importing a PNG screenshot of the color wheel into the library with lossless compression, converting it to a Sprite, and rotating this new image asset performs great during animation. why does an uncompressed PNG image asset import out perform the same vector image with cacheAsBitmap property set to true?

View 1 Replies

Professional :: Internal Workings Of Bitmap Caching?

Aug 28, 2011

1.  I've read that when Bitmap Caching an object, if the objects you are caching are bitmaps that all point to the same bitmapData object, than only one instance is cached and used by the GPU.  However, if the bitmap contains a scale, does this hold true, or is a new bitmap cached for each object because of the new scale?  I'm pretty sure its the second one, just checking.
 
2.  When using cacheAsBitmapMatrix, I've seen examples setting the matrix to identity, and setting it to the concatenated matrix of the bitmap object.  Can someone explain the difference between the two approaches?  I would assume setting it to identity doesn't scale it up or down when caching is as stated in the documentation:
 
"The matrix transformation you apply to the cacheAsBitmapMatrix property is applied to the display object as it isrendered into the bitmap cache. Thus, if the transform contains a 2x scale, the bitmap rendering is twice the size of thevector rendering. The renderer applies the inverse transformation to the cached bitmap so that the final display looks the same."
 
But if this bitmap is nested in a sprite that moves throughout the scene, will the bitmap still move with it?  Or will I need to update the matrix's x/y everytime I update the sprite's x/y.  If this problem exists, does using the concatenated matrix get around it.
 
3.  Finally, I have seen some sites state that more gpu memory is used when cacheAsBitmapMatrix (such as an additional copy of the texture being pushed into the gpu), but I was under the impression that this would just rotate and scale the texture in memory using openGL matrices.  Why would more gpu memory be used when cacheAsBitmapMatrix is set?
  
My understanding is that when designing for mobile, if the graphic isn't too large, and the object doesn't contain nested animating objects, the best approach is to cacheAsBitmap and cacheAsBitmapMatrix on the object to ensure it won't be pushed to the gpu each frame, but feel free to correct me if I'm wrong.  Adobe states "Always set the cacheAsBitmapMatrix property whenever you set cacheAsBitmap to true in content created for mobile devices."

View 4 Replies

ActionScript 2.0 :: Graphics Run A Lot Smoother Than Movieclips With Bitmap Caching On?

Aug 15, 2008

I have this RPG-like screen where you have a character walking through.. the forest or something.. and the thing is.. it's lagging.. LOTS..On that scene.. there are quite a lot of Tree graphics and grass graphics.. I've tested this and apparently graphics run a lot smoother than movieclips with bitmap caching on..Also.. My character has lots of different hair styles all put into one movieclip.. and i thought that by removing them all.. and just have a attachMovie() script to pull in the appropriate hairstyle clips.. it would go faster..but apparently it doesn't seem to of made much difference..what other ways can i reduce the lag on flash?

View 1 Replies

ActionScript 3.0 :: Click On Another Greeting The Original Greeting Still Plays In Ie - Swf Caching Or XML Caching?

Dec 30, 2009

I have this PHP page that lists several people. When someone clicks on one of the people they are sent to another PHP page that has their video greeting in a .swf embedded into the page. This works by the php writing the path to the greeting video to the xml file that the .swf loads and plays.

Well in firefox it works perfect, but in IE when they try to click on another greeting the original greeting still plays. Its like the swf is caching the first greeting and refresh of the page does nothing to alleviate this. Is this a problem with the swf caching? or XML caching? or am I totally clueless?

[Code]...

View 1 Replies

Disable Flash Caching?

Dec 24, 2010

I have a flash application and I want my users not to be able to do caching in their flash players.I couldn't find the code that disables the option of caching for them.Does anyone have the line I need to add (and where) which will disable the flash caching?

View 1 Replies

IDE :: Flash Caching An Image?

Oct 12, 2009

I am doing a flash that getting images from Database. Here is my problem, if I dont close my flash, Whenever I update the images in Database, flash doesnt update the image at the same time. (if I have the image at frame 1, then i go to frame 2, then i update Database, now i go back to frame 1 again, the image is not updated.) It seems like the Loader is caching the image. How can I update my image? Anybody knows why?

View 5 Replies

ActionScript 1/2 :: Flash Caching On Windows 7?

Sep 30, 2009

Just to warn everyone using Windows 7 that in some cases Flash uses code that seems to be cached. At a certain point in time I knew my code was OK, but still it did not work correctly. I started looking at my trace results and suddenly discovered that it outputted code that was not in my sourcefile anymore.

To solve it, I renamed all AS files and then everything worked fine again.

View 2 Replies

Flash :: Flex 3 And Player Caching?

May 7, 2010

i pass text strings from a configuration file into my Flex app, one of the strings i pass in is a mailto link which i use to allow users of my app to send me feedback. I recently needed to change this link however when i updated the link in my config file the change did not happen instantly in my Flex app. In fact i had to clear my cache (both browser and flash player) before the change showed up. This of course is fine for me but how can i be sure that users of the application also get the updated content? Is there a way to force a refresh of data loaded into my swf on other users browsers?

Finally is this an issue with my browser cache or the Flash player cache? Does the flash player only keep such data, like my email address, in memory while the app is in use and then clear once it is closed or does it cache this data for the next time the user wants to use the app?

View 1 Replies

Flash Seems To Be Caching Crossdomain.xml File?

Oct 27, 2010

I have updated the crossdomain.xml security settings for my site - but it seems that the older version is being cached in both IE and Chrome.I've checked the headers sent by the server and it's not sending any cache control headers that would be forcing the browsers to be caching crossdomain.xml.

In an attempt to get around the issue I've also linked to my crossdomain.xml file in an iframe on the site. This hasn't worked though and flash still seems to be using the old security settings.

View 2 Replies

Flash :: Creating AMF Files For Caching?

May 3, 2011

I would like to create some AMF files for caching on a server.

I am wondering if the best approach is to reconfigure BlazeDS to create these files so it spits out local files?

Or if is possible to use as3 itself to create the files.

View 1 Replies

Flash :: Handle Manual .swf Caching?

Jul 8, 2011

I have a .swf in my rails application, located here:

/public/bin/editor/Editor.swf

It works fine, with one flaw, it gets cached often, so when we release a new version we are usually needing to tell the customers to clear their cache when they experience issues. My question is, how could I force the .swf to break cache when I release a new version? Something like:

/public/bin/editor/Editor.swf?timestamp=124158512132

I tried the above, but it did not seem to work.

View 2 Replies

As3 :: Flash - How To Disable Image Caching

Aug 12, 2011

I have a web application developped using as3. The problem is that these application loads some image files, and add my watermark to them.What is happening is that these images are being cached by the browser, allowing the users who know how to access the tmp folder, to get these files, without my watermark.Adding the watermark previously to the image, is not an alternative for me, due the fact that when the a premium user is logged in the watermark is not added.How can I disable the caching?

View 3 Replies

Flash :: Caching Flv Data In Flex?

Sep 9, 2011

I am developing an eLearning application in Flex which shows flv movies hosted on a webserver. If the app has many simultaneous users the download demand is quite high because a lot of users need to download the (same) movie(s). Is there a way I can precache this data in my flex client like storing it in the browsercache or something so that for later sessions the bandwidth demand is less high?

View 1 Replies

ActionScript 3.0 :: Flash Caching An Image?

Oct 12, 2009

I am doing a flash that getting images from Database. Here is my problem, if I dont close my flash, Whenever I update the images in Database, flash doesnt update the image at the same time. (if I have the image at frame 1, then i go to frame 2, then i update Database, now i go back to frame 1 again, the image is not updated.) It seems like the Loader is caching the image. How can I update my image?

View 3 Replies

ActionScript 3.0 :: Possible To Prevent Flash From Caching?

Jan 27, 2009

When Im loading an xml document, it's as if flash caches this document, and uses that cached version all the way (disregarding how many times I open and close the app) ... well, that's so until I open the xml file inside the browser (IE) and ctrl-F5 to refresh; that's when flash starts getting the updated xml. What's up with that? Is there a way to prevent flash from caching??

View 2 Replies

IDE :: Preventing Flash Player Caching

Sep 8, 2009

edit: Resolved; my ActionScript function for parsing the mySQL results didn't correctly interpret a recently modified column, and the corrupted new output happened to be identical to the old output.

I have created an application that accesses a PHP/mySQL database, but it caches old information.

I used the workaround from Adobe's website, where I append '+ new Date().getTime()' to the URLRequest String, but the application continues to use the old data.

When I trace the URLRequest String and C&P it into a browser window, however, I receive the correct data.

View 2 Replies

ActionScript 3.0 :: Browser Caching In Flash

Oct 21, 2010

I have a Flash file that is linked to 14 xml files using the E4X method. To keep the network activity to a minimum, I have it set up so that the xml files don't load until the relevant button is clicked (rather than have them all load at the beginning). I've been told I could further reduce network activity by using something called browser caching. There seem to be methods called "conditional HTTP" and "304 caching" but I can't really find a coherent tutorial on how to add this to the code.

View 5 Replies

Professional :: Loading/Caching Flash Movies?

Feb 6, 2010

Using Actionscript 2, I'm a bit new to all the scripting stuff.I have a loader loading a couple of flash movies like this:loadMovieNum("sound.swf", 1);loadMovieNum("logo.swf", 2);loadMovieNum("mainmenus.swf", 3);Those 3 movies I need to go to the main section of the site. However, I would like the loader to also load the remaining movies needed to further navigate the site, but without displaying them now  Kind of like 'caching' the rest of the site, so when the access is needed, there's no load time.

View 9 Replies

ActionScript 3.0 :: Prevent Flash From Caching Loaded Images?

Sep 15, 2010

How do I prevent Flash from caching loaded images?

In my app a user make a change to an image and saves it back to the server as the same name. Flash then reloads the section and the new image should be reflected. However, it is not. The image looks fine on the server and is updated on the server...

View 3 Replies

Flash :: Child SWF Is Caching Even Though Browser Cache Is Disabled

Dec 17, 2010

I've got a parent SWF that loads in a couple child SWFs. Even though my browser cache is cleared -- it's disabled, in fact -- reloading, or even restarting, the browser doesn't trigger the newest version of the child SWFs to load into the parent SWF. I can even delete the SWF off the FTP server, and it still gives me the last version that was up there.

What's caching the child SWFs, and how do I force them to refresh on my end? I'm not too concerned about the end user, because once the site development is over, the SWF files won't change very often. (They're all loading in XML files that have the cache disabled via PHP cache control and expires headers.)

I'm primarily using Firefox on PC and Mac, but it seems to do the same thing on IE/PC and Safari/Mac. The PC is using my ISP's DNS, and the Mac is using OpenDNS... not sure if that has anything to do with it. The site is hosted on Rackspace Cloud.

View 1 Replies

ActionScript 2.0 :: Prevent A Flash Movie From Caching A XML File?

Dec 8, 2005

I made a gallery with an XML file but the problem is that after viewing it on the web and modifying the XML I don't see any difference...it's like I never even modified it...I'm guessing it's because the browser reads the XML file from the cache...how can I make the flash movie read the XML from the web every time it loads?

View 4 Replies

ActionScript 3.0 :: Flash - Stop The Browser Caching The Old Version?

Oct 28, 2010

I put a swf file on a website, then I made some changes and replace the old version. However, some browsers seem to have some kind of cache to remember the last swf file, they only show the old version instead of the new one. What can I do to stop the browser caching the old version?

View 9 Replies

ActionScript 2.0 :: Stop Caching Of Files Loaded By Flash?

Nov 21, 2004

When not cacheing an HTML page, any movies or anything you load INTO that flash file through loadMovie or loadVars still gets cached... I use senoculars script to prevent this...

[URL]

and 2) Yes you can stop the cacheing of your page...

[URL]

Use this information wisely my friend

i came across this post by lostinbeta to stop cacheing, but the link for the one to stop cacheing files loaded through loadMovie and loadVars doesn't work. know how to get to it, or what the as was?

View 1 Replies

Flash :: Use The CS4 Tool's On A Bitmap Image After Tracing The Bitmap Image And Applying My Settings?

Aug 7, 2009

Use the flash CS4 tool's on a bitmap image after tracing the bitmap image and applying my settings?

View 10 Replies

Professional :: Stop Caching URLLoader Accesses In Flash Development Environment?

Feb 25, 2010

I'm loading an external XML file when in the Flash development environment. ActionScript 3.0 (CS3) accesses the XML file using URLLoader. Everything is fine until I have to make changes to the XML file. When testing the Flash application while in the development environment, it does not see the changes I made to the XML file, because the URLLoader is somehow caching the results. Thus, the XML file looks exactly the same. This is very frustrating. Is there any way I can blow out this cache so that URLLoader is forced to load the XML file? Currently, I either have to re-start the Flash environment or change the name of the XML file.

View 7 Replies

Caching - Clearing Server Cache So That Flash Gallery Will Update Itself With New Images?

Jun 25, 2011

I have a website [URL] there is a flash gallery, every time I have to clear magento cache and browser cache to display my new images but now I've made few changes in swf file that before the smaller bars are not left aligned now there are both. In my local system the new swf file shows exact number of images in the smaller bars but in server they are not showing in full numbers.

I don't know what to do as I've cleared every cache that I can. I've read some where that put version number in your swf file so that brower can check if its new then it will download new but in magento how to do that. As the swf file contents are in cms pages home page content and they have done as :

<script src="{{skin url='js/flashobject.js'}}" type="text/javascript"></script>
<div id="flashcontent"
class="a-center"><a
href="http://www.adobe.com/go/EN_US-H-GET-FLASH">

[code]...

how to version the swf file and how to clear cache.

View 1 Replies

ActionScript 3.0 :: Bitmapdata.hitTest - Bitmap 'emptyBitmap' With Bitmap Data Created

Feb 3, 2009

I'm cutting my teeth in actionscript 3 on a game that has a character running through a world. So, I have set up my Hit Testing by using the bitmap data hit test method, since I figured my world is going to be destructible - it'd be nice to update the level and then redraw it and have the character interact with the new change. (That works beautifully) I am however; a bit confused as to how I have my hit Testing set up. I've been messing around with it, and it works for now - but I'm not sure why.. currently, I have a character set up by using a class I built and using a series of animations I created. So, this character has a walking and falling animation, etc. This is a movie clip.

Then there's a bitmap 'emptyBitmap' with bitmap data created - however; I never really added this as a child to the character. This is sized to the dimensions of my character. My level is created as a movielip, then it's drawn to a bitmap - when the level movieclip is changed, the bitmap redraws, and that's how this updates.

[Code]....

View 1 Replies

ActionScript 3.0 :: Use The BitmapData Property Of A Bitmap And Pass It To The Constructor Of A New Bitmap Object?

Aug 20, 2009

I know the topic of "duplicating" movieclips is a hot issue with the new virtual machine. Luckily, I understand the implications. I only am [currently] interested in duplicating a Bitmap. See, I load an image from an URL using 'flash.display.Loader.load', which is a non-blocking operation in Flash Player.However,I may use multiple copies of the loaded image (which is reported to be a Bitmap, naturally) in the display list at the same time.Hence, I naturally do not want to load the image from an URL every time, because I don't want to wait for a non-blocking call to complete. Nor do I need to - I mean one copy is already loaded, so it should be possible to just "duplicate" it, right?

My idea is to do use the bitmapData property of a Bitmap and pass it to the constructor of a new Bitmap object. I have not tried the following in action, but I want to hear whether any of you did and if the following would not work, what would:

Code:

var original_bitmap: Bitmap;
var copy_of_original_bitmap: Bitmap = new Bitmap(original_bitmap.bitmapData);

LiveDocs mention that the BitmapData being passed to a Bitmap constructor is "being referenced", which to me might suggest it cannot be used twice? There is also the BitmapData::clone() method, which I am not sure is applicable here or not.I know this is a lot of talk instead of just trying this out, but I test so much Flash Player code daily just to see "what works" (which should be documented instead by Adobe),

View 4 Replies

Flex - Function To Redraw Bitmap On Sprite Without Passing In Said Bitmap?

Feb 22, 2011

If I have a BitmapData that's already been drawn onto a Sprite. Is there a way to redraw the BitmapData onto a Sprites Graphics object without having to invoke beginBitmapFill and passing in the same BitmapData?

View 1 Replies







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