ActionScript 3.0 :: Bitmaps Disappear When Scaled?

Sep 22, 2009

I've imported 29 bitmaps into my library (gifs, each one 1728x1152, size ranges from 4-14kb, in each case the vast majority of the image is transparent). I add each one to the stage in the following manner:

var img1Data = new img1(1728,1152);
var img1Map = new Bitmap(img1Data);
containerMC.addChild(img1Map); // MovieClip to which all of the bitmaps are added

[code]......

View 12 Replies


Similar Posts:


ActionScript 3.0 :: First Bitmaps Start To Disappear?

Jul 22, 2009

I'm having an issue where after 24 bitmaps are placed inside a sprite, the first bitmaps start to disappear. When the last added Bitmaps get removed from the display list, the older ones start to reappear. Go here and check it out: http:[url].... draw 24 dots or whatever with the pencil tool (the only one that draws to a bitmap). You should notice that the 24th dot will cause the 1st one to disappear. Undoing (which simple removes the top bitmap/sprite) causes the 24th one to be removed (which is correct) but the 1st one also reappears which means its still there just not visible .Here are the relevant methods:

Code:
private function nextShape() : void {
newShape = new Sprite();
newShape.mouseEnabled = false;[code].....

View 11 Replies

ActionScript 3.0 :: Comparing And Matching Bitmaps Against An Array Of Saved Bitmaps

Jul 31, 2009

I'm trying to figure out the best way to compare a single bitmap against perhaps an array of saved bitmaps to see how close of a match it may be to any one of the bitmaps stored in the array. Right now I'm running a for loop that uses the bitmapData.compare() method to try to compare to see how much of a variance there is but... to be honest I'm at a loss as to how to use the resulting data to do so. Does anyone know of any good method to accomplish what I am trying to do? Forget looking at my code it's a waste of time because simply, it's not working.

View 4 Replies

Flex :: Know If An Image Needs To Be Scaled Down Or Not?

Jul 15, 2010

I'm trying to create in Flex a Tile view that shows some images that a user has. The images don't have the same size, some are small and some are big.

What I'm trying to do is to use a List and create an ItemRenderer that has an Image property which displays the user images (the images are passed to the source property of the Image Object), I want the big images to scale down to the size of the tile so I set the 'scaleContnet' property of the Image Object to true, but this causes the small images to scale up to the size of the tile, this is not the behavior I want.

all the images are Embeded into Class objects and are passed as arguments to the ItemRenderer, how can I know in the ItemRenderer if I need to set the 'scaleContnet' property of the Image Object to true (for big images) or false (for small images)?

View 2 Replies

ActionScript 3.0 :: Loading FLV Gets Scaled Down?

Aug 31, 2009

Loading in an FLV. Partly works but the video shows up around half the size of the original. I've poked around endlessly with the Adobe Media Encoder and I've checked and double-checked the size of the orginal video before I encode. why its being scaled down like this?

[Code]....

View 2 Replies

ActionScript 3.0 :: Scaled Text Gets Cut Off?

Nov 8, 2010

I am currently using Flex SDK 3 for an enterprise application. We have enabled scaling in the application so that it fits the window. This works great, except for one problem. Text inside of components can get cut off depending on how big/small the application gets scaled. Specifically, I am talking about the Button component and the TabBar component. When text inside a button gets cut off, it actually displays a "..." instead of the missing characters. Which is funny, because often times the missing characters would have taken up less space. The text in the tabs, on the otherhand, just gets cut off arbitrarily.

View 0 Replies

ActionScript 2.0 :: MC Not Stretch When Scaled?

Jan 11, 2006

is their a scale function or class so that when i strech a movieclip (while editing in flash and while running the swf) that the clips specific contents do not stretch to the clip legnth but they "stick" to the clip edge? like:

Code:
Xmovieclip._x = _parent._width - Xmovieclip._width;

but Xmovieclip doesnt scale when its parent is scaled.

View 2 Replies

IDE :: Quality Of Images When Scaled Down

Mar 6, 2009

I have a movie which is 1250 by 750. That is the largest it is ever going to be however I scale it down when viewed on smaller screen. The vector stuff and text scales fine, but the jpegs and pngs look very pixelated. Is there a scalemode I can set for these images that allow them to scale more cleanly?

View 1 Replies

IDE :: Imported Images In Scaled Swf?

Apr 9, 2009

've been building some website in pure flash with as2, where index.html is only a 100%x100% swf movie without any marginsi didn't expect there was supposed to be a gallery but oh well. our client decided that he wants to have some gallery in his flash website. this of course wouldn't be a problem if the swf weren't scaled but it unfortunately is so everytime it loads an image it is, of course, sacled up/down which produces a really ugly pixelated image (because nobody would want to have his gallery images scaled up 2 times)if i knew there was going to be a gallery, i would export it into html with "match movie" dimensions and dynamically reposition all the objects in the swf but i didn't. and i don't have time to rebuild the damn site againso i'm asking, is there any option for a loaded image that it would not get scaled up/down while the swf(browser window) is? or a variable that tells at how much % is the movie scaled in the browser?(so i could re-scale the images inside flash) i know there is probably not but i'm really desperate

View 1 Replies

Scaled Flash Will Not Scroll In Firefox Or IE?

Jul 6, 2009

for some reason my site will not scroll in firefox or IE. i've got it set at 100%x100% with no scale. I want it to be able to scroll down to show the rest of the site but instead it just gets cut off. i've tried setting the overflow to scroll but all that does is show the scroll bars it does not make them functional.

View 1 Replies

Professional :: Pixelated Images When Scaled Down

Mar 27, 2008

I have scaled down some JPG's in flash and they look fine but when I publish to a SWF they look pixelated. I've read other threads and done what is suggested i.e. Smoothing on or off, JPG's instead of PNG's and quality at 100% with no success. I know that Flash isn't a resolution based application and bitmaps are but the images look fine in the Flash IDE.

View 6 Replies

Actionscript 3 :: Flash Movie Being Scaled Without Asking?

Feb 25, 2010

I've been developing a web based pure ActionScript-3 (no MXML involved) videogame using FlashDevelop, and have had no real surprises so far. I've recently tried moving my project over to the trial (but fully functional) of Intellij-Idea and have found that while the .swf produced by Intellij still functions, it has somehow been scaled up so that all elements are twice the size. This is without me having made any code changes at all.

I am aware of stage.scaleMode, but am not using it in my code.I want to stress that I am not talking about any attributes of the HTML wrapper which normally presents the .swf, as this behaviour is evident even when I load the bare .swf into my browser.The only variables I can think of here are the parameters passed to the Adobe flex compiler - but I've looked through the available parameters and haven't seen anything likely.

View 3 Replies

Flash :: Use HitTestPoint When A Movie Is Scaled?

Oct 20, 2010

Google says that[code]...

is the way to test for the mouse being over a DisplayObject. This works if my movie is displayed at 100% scale. But if maximise my browser window so the Flash movie changes scale, it all goes to pieces.

View 1 Replies

Actionscript 3 :: Get Scaled Height And Width?

Apr 6, 2011

I have a s:Group with few fixed size components in it, these are lets suppose 200x300, 300x150 etc Now if i resize s:Group with resizeMode=Scale, (scale down). and try to read the scaled down size of these child components but they still has the same old height and width.

how can i get width and height after scaling down the parent group?

View 2 Replies

ActionScript 3.0 :: Vectors Become Pixelated When Scaled?

Nov 16, 2009

I'm trying to scale down some vectors but when i do they become pixelated. So I tried putting then in a container and scaling down the container, but pixelation still occurs.can anyone tell me why this is happening and a possible work around?Here is the function from my class:

private function addItems():void
{
addChild(itemsContainer);

[code].......

View 3 Replies

ActionScript 3.0 :: Flip A Bitmap That Is Scaled?

Mar 2, 2012

How do I flip or reverse horizontally a bitmap? I found online that people recommend that you do scaleX = -1 but my bitmap is scaled to 0.7 and therefore when I do *= -1 it doesn't always reverse the image, instead I get a moonwalk effect.

View 6 Replies

Actionscript 3.0 :: Vectors Become Pixelated When Scaled

Nov 16, 2009

I'm trying to scale down some vectors that have a z position set (other than zero) and they are becoming pixelated. So flash is obviously bitmapping the vectors.

Does anyone know of a work around to stop the pixelation?

Here is the function from my class:

private function addItems():void
{
addChild(itemsContainer);
// make the items.

[Code].....

View 1 Replies

ActionScript 2.0 :: Fullscreen But Non-scaled Movieclips?

Mar 16, 2006

i'm trying to get an effect in flash for the web where my swf in my html page is sitting centrally, but still has elements coming in at the edge of the page as parts of the site, refer to the source of the following site The source html defies my first assumption that the butterflies on the intro page were in a seperate swf. But it also states that the swf is set to display with 100% width & height which is confusing meAlso take a look at the main part of the site, it has elements coming in from the edge of the page. Its like some parts of the swf scale but others dont, anyone know whats going on there? i'm really curious and would like to build something similar!

View 13 Replies

ActionScript 3.0 :: Quality Of Images When Scaled Down

Mar 6, 2009

I have a movie which is 1250 by 750. That is the largest it is ever going to be however I need to scale it down when viewed on smaller screen. The vector stuff and text scales fine, but the jpegs and pngs look very pixelated. Is there a scalemode I can set for these images that allow them to scale more cleanly?

View 2 Replies

ActionScript 3.0 :: Images Incorrectly Scaled On Loader?

May 22, 2009

the loader class isnt loading images to their correct scales.they are always stoo short in width. is there a work around for this? it may be a common issue. im using AS3 for this.

View 1 Replies

ActionScript 3.0 :: Mc Position Inside A Scaled MovieClip?

Jan 24, 2010

I have a mc on stage. I want to add a new mc inside it and position it at the bottom of the mc.

The code works fine when the container mc is 100% scaled, but when I scale it, the mc inside positions wrongly.

Heres my code:

PHP Code:

// Lage scroller:var o0LbScroll:Object = getChildByName("o0LbScroll");o0LbScroll.oppKnapp = new scrollKnapp;o0LbScroll.nedKnapp = new

[Code].....

View 1 Replies

ActionScript 3.0 :: Allow Only Parts Of Percentage-scaled Swf To Scale?

May 18, 2010

Is there an easy way to prevent particular elements in a percentage-scaled SWF from scaling? I want to make a liquid Flash interface in which only the content scales with the browser window, and the navigation elements remain a constant size.

View 4 Replies

ActionScript 3.0 :: Get Scaled Copy Of BitmapData Of An Image?

Apr 6, 2011

For the class  spark.components.Image
 
I can access the bitmapData object  (readonly) (unscaled). I know the scaling factors of the Image.
 
How  can I get a scaled version of the bitmapData?

View 3 Replies

Web Development :: Scaled Image Not Saving When Cropped In AS3

Jun 6, 2011

When I try to save a cropped image that I have scaled, my save function ceases to work, but works perfectly fine when the image is not scaled.

Here's my code:
var loada = new Loader();
loada.load(new URLRequest("img_one.jpg"));
loada.x = 205;
loada.y = 110;
loada.cacheAsBitmap = true;
[Code] .....

View 1 Replies

ActionScript 3.0 :: Get Rid Of Bad Pixelation On Slowly Scaled Images?

Jun 28, 2009

I'm currently working on a new gallery for my artwork, and I got it working just the way I like it, except for one major problem!see, I want the images to scale up slowly while music is playing, it's a really beautiful effect...but I keep getting a pixellated moire pattern that is pretty much ruining the artwork. I've searched for an answer to this, but no avail( the closest I came is something about bicubic sampling. for me at all?[URL]

View 2 Replies

ActionScript 2.0 :: Rectangle Moving While _width Is Scaled

Jan 25, 2010

I'm trying to draw a rectangle with as2 the to strech it's wirdth. It seems to work but something strange is happening while the rectangle is streched it is slwloy lmoving across the scene .

[Code]...

View 3 Replies

ActionScript 3.0 :: Scaled Movie Clip Is Blurry

Jul 20, 2011

Alright check this out. i supplied link to image but it was deleted by this forum )

When i scale my movie clip in the game it's blurry. But while i look at it in flash cs (zoomed in ) it looks allright.

View 5 Replies

ActionScript 2.0 :: No Scale On A Movie Clip Within 100% Scaled .swf?

Dec 27, 2005

I have a quicktime video at 620x480 that I would like to keep sharp and clean with no pixelation or video grain. Unfortunately, the client would like the rest of the movie to scale to 100% (the movie is a flash projector file and is not browser based). I'm aware of full browser flash option when the stage is set to "noScale", but is it possible to have a clip that loads into a scaled projector at fixed resolution? So far my approach is this:small flash projector file to "embed" flash player. This would be at 100% scale mode. Then I would have the video clip load into the main projector clip (as a .swf). The external clip (video) would be set to "noScale" mode. Would this adhere or would the noScale be overruled by the projector scale mode?

View 4 Replies

ActionScript 2.0 :: Scaled Animation Slows Framerate?

Jun 16, 2006

I have a 3D animation done with swift3D and imported in flash. If i don;t scale it, works fine... but if i do (to fit the page - full screen), the framerate drops like a brick.

View 1 Replies

ActionScript 2.0 :: Centering Nested Scaled Movieclip?

Apr 17, 2009

i have a movieclip(content_mc) that contains 4 movieclips(img1, img2, img3, img4) of different widths within it. The content_mc has been scaled to the browser using _xscale and _yscale. so if i want to center img1 on the screen the math WITHOUT content_mc being scaled would look like this

Code:
Stage.width/2-(content_mc._width - content_mc.img4._width - content_mc.img3._width - content_mc.img2._width - content_mc.img1._width/2)

but being the fact that it's scaled...it returns the original _width values of the nested movieclips. How do i get the values of the new, scaled widths?

View 2 Replies







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