bitmap caching

FLASH

    Next

  • 1. scrollpane pain
    I am trying to create a slide show using the scrollpane. I created a movie called mc_gallery that has a scrollpane on the left side of the screen. I added a movie clip inside the scrollpane (called navVertical) that consists of 10 buttons stacked vertically. When the user clicks one of the buttons what I want to happen is to load a picture to the right of the scrollpane ( on the mc_gallery). So I added on (Release) { imagePath2 = "images/hospitality/h1A.jpg"; _parent.updateSlide(imagePath2); } to each of the buttons. I have a function defined on the gallery called updateSlide that uses loadMovie to display a larger jpg image. If I put the raw navVertical on the stage everything works...Click a button and the corresponding image appears. But I canNOT get this same logic to work when the navVertical movie clip is inside of the scrollpane. I would like to call the updateSlide function so that I can do a few other things once the name of the slide is passed to it, but frankly at this point I will settle just to see the large image appear on the right side of the stage when on of the button inside the scrollPAIN is clicked. please advise...
  • 2. text box required
    can anyone help me with a piece of code to stop someone moving on with out having some info into a text box? I have an ok button that is clicked to move on - but i want the user to type something into the text box before they can move on. if they dont type anything then they cannot move on - any ideas?
  • 3. how do I access movie properties
    Hi, I have created a movie clip, dragged an instance onto the stage and name it EMPTY. I then use loadMovie to load an exernal jpeg into EMPTY. loadMovie(currentPainting, EMPTY); I use onClipEvent to set the position of EMPTY. Iwould like to use the height and width of EMPTY to position another object on ain stage, however, I cannot access the height and width of EMPTY except for within EMPTY's clipevent. I've tried accessing the propert with EMPTY._height, and I've tried setting a global variable withinthe clipEvent and then acessing that variable, but to no avail Any idea? .

bitmap caching

Postby zibber » Fri, 01 Jun 2007 03:48:47 GMT

Hi 
 Wondered if someone could give me some advice. I am working ona project where 
a user can pick an avatar and enter chatrooms. The idea is to display the 
avatrs to represent people in the different rooms. Currently there are around 
25 different heads and bodies (which can be mixed andmatched) and 6 different 
images for a character. I currently have a nested movie clip that pulls in info 
form xml and the structure of the clip is something like:

 frame that loads in intial fornt facing head and body into seperate clips
 frame that houses a "walker clip". this contains 4 movie clips one for the 
head and 3 for each frame of walk animation

 Ideally i would like to be able to cache these images so i am not downlaoding 
the same assets over and over. Can someone point me in right direction to 
acheive this? the simpler the better;) I.e would it be as easy as jsut checking 
the runtime bitmap cache on the properties box for each moivie clip? Or is that 
overly optmisitc (namely bitmpa cache shouldt be usedofr animation?) and i need 
to do soemthing more extensive? any help would be great here.

 regards


Re: bitmap caching

Postby dzedward » Fri, 01 Jun 2007 04:01:33 GMT

my_mc.cacheAsBitmap = true;

Re: bitmap caching

Postby zibber » Fri, 01 Jun 2007 04:41:26 GMT

Cheersfor response

but will this work fine even though there will be three animation frames, i read that it coul dbe detremental?

regards

ade

Re: bitmap caching

Postby kglad » Fri, 01 Jun 2007 04:49:07 GMT

the cacheAsBitmap property of movieclips is used to retrieve a movieclip bitmap 
from memory instead of requiring the flash player to (re)render the bitmap 
repeatedly.  that's only helpful in certain situations including (but not 
limited) to a movieclip that's not changing frames.

 if you mean you want to cache some asset so it doesn't need to be repeatedly 
downloaded that happens automatically with flash unless you take steps to 
prevent it and has nothing to do with the cacheAsBitmap property of movieclips.


Re: bitmap caching

Postby zibber » Fri, 01 Jun 2007 14:56:01 GMT

ah ok cheers.

 so...........the way i a have my clips set up so that they load the relevant 
frames in from xml.... I(t literally does an xml call duplicates as many avatar 
holders as needed and then loads int he right body parts) will these loads be 
ignored if those images are already cached? I just want to make sure i reduce 
as much overhead as possbile.

 thanks in advance




Similar Threads:

1.bitmap caching for bitmap movies

hi, i know this sounds silly, but i am a perfectionist. Currently i am 
developing a game and i am planning to increase the engine's performance as 
much as possible. I have a movieclip which has some bitmaps of different 
positions for my character. I wonder if enabling runtime bitmap cache for this 
movieclip increases the rendering performance.

 thanks in advance...

2.use runtime bitmap caching?

what is the property feature "use runtime bitmap caching" used for?  mousing 
over the checkbox gives an explanation, which i understand, but i don't know 
why you would use it.  i think it may help with a problem i'm having too and 
wanted to check with you guys to see what you use it for and the consequences, 
if any, of using it.

 i have movie clips that have images loaded into them from an xml file.  so mc1 
is on the stage, in frame 1, with an instance name of mc1.  in the actions 
layer of this frame, my script loads an image into the clip via an xml file.  
all works fine and good.  now in frame 2 i want to re-position mc1 into the 
same position that mc2 is located.  whenever i copy the instance from the 
previous frame, then manually re-position it.... all is still well, the images 
load fine.  however, whenever i just rename the instance name of mc2 to mc1, 
the image doesn't stay loaded into the clip?  why not?

3.Bitmap caching question

Hello,

 A quick question about caching bitmaps inside of flash, i have a couple of 
layers of bitmap images that are static items on the screen and won't be 
moving. If I add them to a movieclip and enable bitmap caching will this cause 
them to be rendered once by the flash player?

 I understand this functionality works on vectors and then causes them to be 
rendered as a bitmap and then cached does the same happen for raster images?

 many thanks

 Stefan

4.Allow smoothing for stuff created by Bitmap caching

Here's the deal. Normally, when you animate a Bitmap, the motion is very jerky 
due to pixel approximation. To get around this, you choose "allow smoothing" 
for the Bitmap in the Library.

 However, as of Flash 8 we now have Bitmap caching which will basically convert 
your vectors into Bitmaps at runtime. All filters, for instance, do this. The 
result is jerky motion. The fix would be if there's some way to set allow 
smoothing. I haven't found a way.

 Anybody know of any solutions?

5.Bitmap Caching

6. Caching bitmap in flash

7. Draw a bitmap line or a bitmap polygon

8. how can i edit bitmap and save the edited bitmap in flash



Return to FLASH

 

Who is online

Users browsing this forum: No registered users and 85 guest