ActionScript 2.0 :: Smoothing Bitmap Dynamically Loaded Through XML

Nov 8, 2009

Trying to set the smoothing of a dynamically loaded, through XML, JPEG set to true using AS2. I've seen an example of that would do this with this code:

createEmptyMovieClip("myMC",getNextHighestDepth()) ;
loadBitmapSmoothed("mypic.jpg",myMC);

In my code I'm loading a series of products from an XML file. Each bit of information for each product gets loaded into a seprate array. I have a 'zoomy box' image, which loads an image, but at 200%, which I want to smooth...

The code:
nZoompic1[i] = (childs.childNodes[EEE].childNodes[i].childNodes[18].firstChild.nodeValue);
What the syntax would be for getting it to work?

View 4 Replies


Similar Posts:


ActionScript 2.0 :: Allow Smoothing For Dynamically Loaded Images?

Aug 18, 2009

as you surely know, setting a picture in your library to "allow smoothing" makes it high quality while resizing, rotating, etc with it on the scene.

Now I'd like to know how to set this to a picture you externally load while playing, cause obviously you can't set its parameter "allow smoothing" to true in the library, it'll never be in your library...

I found one thing that draws a bitmap, copies the pict, etc, but it's very slow at usage. I need something faster but the quality of the image must be perfect.

View 5 Replies

ActionScript 3.0 :: Smoothing On All Dynamically Loaded Bitmaps?

Jan 6, 2011

I want somehow to apply smoothing for all dynamically loaded PNGs in my flash file. I have flash file that loads a lot of different images, and there are a lot of flash files like that, so I don't have an option to set smoothing on every bitmap by hand.

I was wondering, if there's perhaps some way to change smoothing to all instances of Bitmap class.

View 4 Replies

ActionScript 3.0 :: Allow Smoothing For Dynamically Loaded Image?

Apr 7, 2008

in flash there is a setting to 'allow smoothing' for images that are imported. how can i do this in AS3 so that the images i dynamically load are smoothed (because when i scale them they look bad).

View 4 Replies

ActionScript 3.0 :: Image Smoothing On Dynamically Loaded Images?

Jul 28, 2009

I bought and installed a component and now the place I got it from is not giving support and their site has been pulled. The issues is that I can't figure out how to convert the loaded images into bitmaps in order to apply smoothing. Can someone look at the code in the attached .fla and give me a heads up as to where to add i

View 8 Replies

ActionScript 2.0 :: Dynamically Smoothing Loaded Images (Child MC)

Nov 19, 2011

I'm trying to make smoothing for images which loaded with loadclip(). I found function for smoothing and it works but only for movieclips located in _level0, for example _level0.mc, but I want to smooth children MC, for example _level0.parent_mc.children_mc and then image just disappears. Smoothing function:

here = this; // trace(here) == _level0
bg_smooth = function (bg):Void {
var bg_depth:Number = bg.getDepth();
var bg_name:String = bg._name;
var bg_parent = bg._parent;
[Code] .....

Also tried to write _level0.parent_mc['children_mc'] instead of parent_mc.children_mc and to make here == _level0.parent_mc - still no luck. If I remove bg_smooth (element) on load complete then all works fine but of course smoothing disabled.

View 1 Replies

ActionScript 3.0 :: Smooth A Dynamically Loaded Bitmap From Another Domain

Oct 14, 2009

I've tried a bunch of options but can't seem to smooth a dynamically loaded bitmap from another domain. I've come to believe this is impossible without a cross domain file. Is it possible or not possible?

I keep getting:

SecurityError: Error #2123: Security sandbox violation: LoaderInfo.content: http://....swf cannot access http://...png. No policy files granted access.
at flash.display::LoaderInfo/get content()
at Main/showLogo()

So outside of putting a crossdomain.xml file out there, any options?

View 2 Replies

ActionScript 2.0 :: Smoothing A Bitmap?

May 11, 2010

i have made a bitmap over a menu and the only problem is that I made a scale and a rotation over that bitmap and it gets distort and I don't know why, because I use this:

ActionScript Code:
attachBitmap(b, 2, "always", true);

when i attach the bitmap.

View 9 Replies

ActionScript 2.0 :: Bitmap Smoothing In Flash?

Oct 18, 2010

I'm doing a simple bkend admin using php for the client to upload images to be displayed on their flash website. ideally if they upload at the correct size, no problem, but sometimes they don't. So my problem comes in when the uploaded images are very big. When they are scaled down, the smoothing makes no difference at all.

I was wondering if there is a work around?

Code:
import flash.display.*;
loadMcListener.onLoadinit = function(){
var bitmap = new BitmapData(mc._width,mc._height,true,0x000000);

[Code].....

View 1 Replies

ActionScript 3.0 :: Implement Bitmap Smoothing?

Aug 3, 2010

I would like to use the smoothing function for my code here below.This is just a slideshow gallery that resize the photos at 100% full page with scaling proportions.=

2 - Another problem issue: this has a little movement effect that moves the photo when the mouse moves. To do this i scaled the images at 110% but it looks a bit streched here.

Code:
// import tweener
import caurina.transitions.Tweener;
import flash.events.Event;[code]....

View 3 Replies

ActionScript 3.0 :: Control The Bitmap Smoothing Levels?

Jan 1, 2011

Can I control bitmap smoothing levels, or is it strictly on and off (true, false)?

View 1 Replies

ActionScript 3.0 :: Bitmap Smoothing Not Working On A 3D Object?

Nov 9, 2011

I'm using the regular 3D API of flash player 10 and i'm rotating on the Y axis a sprite which contains my bitmap. Although the bitmap.smoothing property is set to true, the bitmap is far from smooth.

View 8 Replies

ActionScript 3.0 :: Flash Player 10 3D - Bitmap Smoothing?

Jun 16, 2011

I'm creating an aerial view style game with the flash player 10 built in 3D, but Some of my sprites are very small, like 32x32 pixels, and when they are placed into the 3D world they become very blurry.

Is there a way to prevent flash player from smoothing the objects?

View 0 Replies

ActionScript 2.0 :: Fullscreen Gallery & Bitmap Smoothing?

Dec 1, 2008

I need fullscreen gallery and the bitmap smoothing thing. I tried to combine the gallery code and the bitmap code I found in this thread. Well, it's a xml based fullscreen gallery and it works fine but without smoothing . okay, i hope anybody can help - here is an extract of the gallery code:

[Code]...

View 2 Replies

ActionScript 3.0 :: Bitmap Smoothing With Image Loader Woes

Dec 2, 2009

I set up this sample movie clip in the hopes to figure out a problem I'm having:[code]In the above code, I can add the contents of myImageLoader to myMovieClip with no issues and it resizes as expected (and consequently artifacts appear). With the final two lines of code, apparently myBitmap is not being loaded with the contents of myImageLoader.content which will cause the final line to fail with the following error:Code:TypeError: Error #1009: Cannot access a property or method of a null object reference.at loadImageTest_fla::Main Timeline/frame1()I understand the error, I just don't get why the contents are not being loaded into the bitmap object.

View 1 Replies

ActionScript 2.0 :: Flash8 Bitmap Smoothing For External Pngs?

Apr 20, 2010

I'm having a helluva time trying to figure out the syntax for smoothing of dynamically loaded png's. It's such an easy function for as3, but seems very complicated in as2.

Actionscript Code:

import mx.utils.Delegate;import mx.transitions.Tween;import mx.transitions.easing.*;var numOfItems:Number;var radiusX:Number = 100;var radiusY:Number = 40;var centerX:Number = Stage.width / 4;var centerY:Number = Stage.height / 2;var speed:Number = .001;var perspective:Number = 3;var home:MovieClip = this;theText._alpha = 0;var tooltip:MovieClip =

[code]....

View 5 Replies

Flash :: AS3 Bitmap Object Not Smoothing At Low Scale Values

Feb 7, 2012

What I am doing now is loading a .png image with a Loader object. After loading the file I cast the loaderInfo's content to a bitmap and set the smoothing value to true. This works without a problem until I reach a ScaleX and ScaleY value less than 0.5.

For example, if I have a 1000x1000 object, scaling it down to 200x200 causes the bitmap smoothing to no longer work.[code]...

View 1 Replies

ActionScript 3.0 :: Bitmap Smoothing On A Graphic Already Placed Inside A MovieClip?

Feb 19, 2009

I have searched several threads, and no answer has been found to apply a bitmap smoothing to an image already inserted inside a movie clip on stage (not dynamically loaded). Any suggestions on what to do to apply smoothing to an image inside a clip? Trying to come up with an answer as I am getting a funny fuzz around a logo that I'd like to see disappear. It appears clean and crisp within the png file, but not in the compiled swf.

View 4 Replies

AS3 :: Flash - Bitmap Object Not Smoothing At Low Scale Values?

Dec 9, 2003

getting a bitmap to apply smoothing properly after being scaled very small.What I am doing now is loading a .png image with a Loader object. After loading the file I cast the loaderInfo's content to a bitmap and set the smoothing value to true. This works without a problem until I reach a ScaleX and ScaleY value less than 0.5.

For example, if I have a 1000x1000 object, scaling it down to 200x200 causes the bitmap smoothing to no longer work.I can reproduce the problem using all of the following Sizing methods:

Change the scaleX and scaleY properties on the bitmap. Directly change the height and width properties of the bitmap. Add the bitmap as a child of another sprite and change the scaleX and scaleY properties of the sprite. Add the bitmap as a child of another sprite and change the height and width properties of the sprite. Creating a new BitmapData object with a matrix scale and then drawing the original BitmapData onto it.I've also tried some other workarounds that I found when searching, such as:setting the scaleX of the image to 1.001 or 0.999 forcing the height and width of the Bitmap object to be even numbers.

Below is some sample code for reproducing the problem. (I am running this locally so I have a copy of testimage.png in my bin-debug folder)

public class MainObj
{
public var comp:UIComponent;
public function MainObj()

[code]....

View 2 Replies

ActionScript 3.0 :: Bitmap Smoothing + Papervision (unrelated, But Merged Into 1 Post)?

Nov 6, 2009

i have a question and a unfortunate problem to report. First my question is how do I apply smoothing to a rotating bitmap asset that is in the flash timeline, (i.e.: not dynamically loaded), I don't like it all jaggy like that. Is there a way I can apply bitmap smoothing to a movieclip with a bitmap in it without going through all the rigamarole of loading the asset eternally? Bonus points for something super simple like MovieClip.forceSmoothing (I need this in AS3).

And unfortunate issue: I have a problem in Papervision. I think it might be a bug, where a plane object with an externally loaded BitmapAssetMaterial makes the computer chug like mad when the plane is viewed edge on or very close to edge on (I am using transparent PNGs). They display fine otherwise.

[Code]...

View 0 Replies

ActionScript 3.0 :: Smoothing Multiple Images Dynamically?

Sep 8, 2011

I have a loop which is trying to load a folder full of images into my scene, the images are going to be scaled to roughly 80% of their original size (they get scaled back to 100% so they need to stay at their current size) the loop will always get the right amount of images for the images in the folder so there isnt going to be any problems about it not not finding or loading pictures etcWhen i have tried doing it recently I have my loop load my images, once the image has finished loading it calls a function which takes the data and adds it to a bitmap, which is then smoothed. The problem seems to be it only adds one of the images to the stage when its done, does anyone know the specific way of adding a large amount of images to the stage, do you have to add all the images to a list and then run the bitmap smoothing on each item in the list?

View 13 Replies

ActionScript 3.0 :: Smoothing Images Loading Dynamically?

Feb 17, 2009

i m loading images dynamically from a folder and i want when they show on the stage they retain their quality for that purpose i use 2 things first is

stage.quality = StageQuality.BEST;

and the second is with bitmap class after loading the images in loader i write..

PHP Code:

Imageload.load(new URLRequest ("images\"+xml.images[k]));var image:Bitmap = Imageload.content as Bitmap;image.smoothing = true; 

[Code]....

View 3 Replies

ActionScript 3.0 :: The Right Way To Allow Smoothing For Loaded .jpg's?

Jun 25, 2009

I'm loading an external .jpg and moving it across stage.if I was to do this with a .jpg already in the Library, the movement would look much better if I manually activated "allow smoothing" from the .jpg's properties.so I'm trying to do the same for the loaded picture.what I've done so far is loading the picture, wait until it's completely loaded and then convert the content of the loader to bitmap and setting the smoothing property of this bitmap to true....OR, this is what I'm trying to do.here's my code:

Code:
var _loader:Loader;
var _loaderArray:Array = [];

[code]......

View 3 Replies

ActionScript 2.0 :: Loaded Images Allow Smoothing?

Nov 18, 2009

How do I turn that on with actionscript when I load several images in my flashmovie?

View 4 Replies

ActionScript 2.0 :: Loaded Movie Smoothing?

Jun 5, 2007

I have made a noticeboard that loads jpegs dynamically. Problem is that if I need to resize the noticeboard the jpegs are no longer smooth or even readable.I've already posted about using the new force smoothing in CS3 but it seems to have no effect.Here are the examples of the noticeboard at 100% and then resized.

Original size
Shrunk down

As you can see the notices degrade pretty quickly.Here is the actionscript that generates the notices:

Code:

myNv.sendAndLoad("noteboardread.php", myNv, "POST");
myNv.onLoad = function () {
var x:Number = 0;

[code].....

However, it still doesn't seem to be smoothing the jpegs - is there anything else that can be done to make these more readable.

View 2 Replies

ActionScript 2.0 :: Flash8 Smoothing Loaded Images?

Mar 10, 2010

Okay, so this little peice of code works perfectly. The author of this code has set the code up so it loads the file you want, and scales it to 150% and rotates it 15 degrees, the problem is, I cant see where in the code you can set what to scale it by or rotate,

Actionscript Code:
]_global.smoothImageLoad = function(imgURL, targetMovie) {var i=0do { i++ } while (eval("_root.smoothImageLoadTemp"+i) != undefined)tmc = _root.createEmptyMovieClip("smoothImageL� _root.getNextHighestDepth())tmc.createEmptyMovieClip("ti", tmc.getNextHighestDepth())tmc.tm = targetMoviewith(tmc) {tmcl = new MovieClipLoader()tmcl.onLoadComplete = function() {ti.onEnterFrame = function() {pixelData = new [code]....

View 2 Replies

Flash :: Allow Smoothing In Externally Loaded Images?

Mar 5, 2010

In Flash, I can go into the properties of an image in the library and check 'allow smoothing' to enable resampling when the image is scaled or rotated.

How can I achieve the same effect for images loaded dynamically by the SWF from an external URL?

View 2 Replies

ActionScript 3.0 :: Any Way To Resize Bitmap Dynamically

Jul 28, 2009

Is it possible to change the Bitmap size Dynamically in As3..Which is created from the movieClip .
var myBitmapData:BitmapData=new BitmapData(450,282);
myBitmapData.draw(my_mc);
Now I need the same bitmap of 620X225. How to resize the bitmap without modifying the movieClip height and width.

View 8 Replies

ActionScript 3.0 :: Covert Bitmap To MovieClip Dynamically?

Jul 29, 2008

How to convert a bitmap into a movieclip through AS3?

And I don't mean attaching the bitmap to a movieclip via addChild() but rather making the actual bitmap a movie clip so it can behave like a button (be clickable, draggable, etc...)

View 4 Replies

Actionscript :: Capturing Canvas Bitmap With Dynamically Placed Elements

Jul 6, 2010

I'm attempting to find overlap between elements on a flex canvas, an adaptation of Url...The attempt here is to place some text and figure overlap with previously placed text. [code]do not seem to capture the elements placed on the canvas dynamically. [code]

View 1 Replies







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