Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Bitmap Resize Problem



I am creating a bitmap from stage, attach it to a movieclip, but when i resize the movieclip the bitmap is not smoothed, I've put the smooth variable to true in draw command from bitmap and in the attachBitmap command. What am i doing wrong ?I hope you understand my problem ? please helpThank you



Adobe > ActionScript 1 and 2
Posted on: 04/14/2007 01:20:48 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Resize Bitmap, Then Draw(Bitmap) To A Separate BitmapData, Doesn't Work Right...?
Hey everyone,

So, I'm loading a jpg into a BitmapData variable, which is liked to a Bitmap variable, then I resize the Bitmap variable.

Every 10 secs it unloads the current bitmap and loads a new one.

But I want to draw the resized bitmaps to a separate BitmapData Variable, except when I try and do that it draws it in the original size... ? Why doesn't it draw the new resized version?

Any ideas?

Resize A Bitmap?
Oh man, this is really getting to me. Ive searched long and hard, and nothing is helping me. Or Im searching wrong. Either way... Im trying to make a simple painting app where you can paint on top of your own images. So I load an image from the server, and make it into a bitmap:

(1) var image:Bitmap= Bitmap(loader.content);
Then I paint it onto a canvas using the beginBitmapFill method...

(2) paintCanvas.graphics.beginBitmapFill(image.bitmapD ata);
paintCanvas.graphics.drawRect(0,0,400,300);
paintCanvas.graphics.endFill();
However, the image loaded from the server is 640x480, and doesnt all fit into my small 400x300. How can I resize it a bitmap, so just before point 2 above???

TIA, jamie

Bitmap Wobble (on Resize)
Greetings -

I've always just worked arround this issue - but thought i'd bring it up as a topic (specifically - it's interfereing with a project im currently working on) - maybe someone has a great way of working arround it, or minimizing it.

______________

Bitmap Wobble:
This sometimes happens when adjusting the scale of a bitmap on the stage -flash seems to poorly interpolate the image as scale change is happening, causeing the bitmap to ripple. Sometimes this is very apparent (and is always annoying) ...

- Publishing the file with 100% jpeg quality seems to help = but that is obviously not a great solution.

- Using PNGs instead of PSDs also seems to help... but im still confused why it happens...

- I thought that it might be caused by trying to scale an image beyond it's native pixel dimensions - but that hasn't seemed to help either.

Any thoughts or suggestions on the subject would be great.


b{[]}x

Bitmap Auto-resize
hi,
in fact i used fr-ode's full-browser image code. but i dont want to generate full browser images. i want to build a structure like http://www.koendemuynck.com/

as you see in site, photos scaling automatically when you resize the window. can anybody write me a statement for this? here is the fr-ode's code which distroyed by me

thank you...
/genizah


Code:
Stage.scaleMode ="noScale";
Stage.align = "LT";
//fscommand("fullscreen", "true");
import flash.display.*;
function loadBitmapSmoothed(url:String, target:MovieClip) {
var bmc:MovieClip = target.createEmptyMovieClip(
"bmc",
target.getNextHighestDepth()
);

var listener:Object = new Object();
listener.tmc = target;

listener.onLoadProgress = function(target:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void {
percent = Math.round((bytesLoaded/bytesTotal)*100);
pText.text = percent+"%";
}

listener.onLoadInit = function(mc:MovieClip) {
mc._visible = false;
pText._visible=false;
var bitmap:BitmapData = new BitmapData(
mc._width,
mc._height,
true
);
this.tmc.attachBitmap(
bitmap,
this.tmc.getNextHighestDepth(),
"auto",
true
);
bitmap.draw(mc);

// set size and position on load


oran=target._height/target._width;

if(Stage.height> target._height+target._height/2) {
img_prop = target._width/target._height;
target._height = 650;
target._width = target._height*oran;
target._y = 0;
target._x = 0;
} else {
img_prop = target._height/target._width;
target._width = Stage.width-600;
target._height = target._width*img_prop;
target._y = 0;
target._x = 0;
}
};

var loader:MovieClipLoader = new MovieClipLoader();
loader.addListener(listener);
loader.loadClip(url, bmc);
}
_root.createEmptyMovieClip("bg_con", 0);
loadBitmapSmoothed("salla.jpg", bg_con);


// set size and position on resize
var stage_listener:Object = new Object();
stage_listener.onResize = function():Void {
if(Stage.height> bg_con._height+bg_con._height/2) {
img_prop = bg_con._width/bg_con._height;
bg_con._height = 650;
bg_con._width = bg_con._height*img_prop;
bg_con._y = 0;
bg_con._x = 0;
} else {
img_prop = bg_con._height/bg_con._width;
bg_con._width = Stage.width-600;
bg_con._height = bg_con._width*img_prop;
bg_con._y = 0;
bg_con._x = 0;
}
}
Stage.addListener(stage_listener);

Anti-aliasing A Image After Resize Using Bitmap Smoothing And The JPGEncoder Class
I'm trying to find a way to remove aliasing from an Image I'm shrinking to 25% of it's original size. I'm trying to use the JPGEncoder class from the Adobe lib package and Bitmap smoothing but it looks like it's just making an image from a sceenshot of the aliased image retaining all of it's distortions

heres what I got so far

any ideas?

PS. I'm using the caurina tweener class to rescale the image.

ActionScript Code:
import com.adobe.images.JPGEncoder;
import caurina.transitions.Tweener;
import flash.system.LoaderContext;

var image:Sprite = new Sprite();
addChild(image);

var loader:Loader = new Loader();
var bitmap:Bitmap;
var context:LoaderContext = new LoaderContext(true);

loader.load(new URLRequest("http://shop.mermadebaubles.com/images/il_430xN.12742074.jpg"), context);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, playImage);
image.addChild(loader);

function playImage(e:Event):void{
bitmap = Bitmap(e.target.loader.content);
bitmap.smoothing = true;
image.addChild(bitmap);
Tweener.addTween(image, {scaleX:.25, scaleY:.25, time:1, delay:1, transition:"easeout", onComplete:snapIcon});
loader.contentLoaderInfo.removeEventListener(Event.COMPLETE, playImage);
}

function snapIcon():void{

trace(image.height, image.width);
var bmd:BitmapData = new BitmapData(image.width, image.height);
bmd.draw(image);
var myEncoder:JPGEncoder = new JPGEncoder(100);
var myCapStream:ByteArray = myEncoder.encode (bmd);
var nloader:Loader = new Loader();
nloader.loadBytes(myCapStream);
loader.scaleX = 1;
loader.scaleY = 1;
image.addChild(nloader);

}

CopyPixels While Moving Bitmap When Overlay Layer Has Bitmap Effects Bug?
hi,

Wanted to create a walking character, using a large image of all this character postures as resource.

Did this:
1. Created a new Bitmap with its BitmapData
2. Created an EnterFrame event listener to this Bitmap where:
a. I move the Bitmap to the right
b. I change the character posture by copying pixels from the large image to the characters BitmapData

Works fine...

But then I've added another layer (sprite) on top of this bitmap.
Added a glow filter to this layer (sprite) and got the following bug:
The character (Bitmap) is leaving trails as it moves... as if Flash doesn't clean after it...

Please see attached files - it's all there, short and clear.

Basically, the pseudo code looks like this:
--------------------------------------------------------------------------------------------------------------
var __sourceBmpData:SourceBmpData = new SourceBmpData(72, 128);// SourceBmpData is a linkage name to an image on the library
var __imgBmpData:BitmapData = new BitmapData(24, 32, true, 0x00000000);

var __imgBmp:Bitmap = new Bitmap(__imgBmpData);
this.addChild(__imgBmp);

// add event listener
__imgBmp.addEventListener(Event.ENTER_FRAME, Walk);

// bug layer
var bug_mc:Sprite = new Sprite();
this.addChild(bug_mc);

var glow:GlowFilter = new GlowFilter();
glow.color = 0xFF0000;
bug_mc.filters = [glow];

// enter frame
private function Walk(event:Event):void {
__imgBmp.x = 32 + __posX * 12;
__imgBmpData.copyPixels(__sourceBmpData, new Rectangle((__posX % 3) * 24, 32, 24, 32), new Point(0, 0));

__posX++;
}

--------------------------------------------------------------------------------------------------------------

Is it a bug or am I doing somthing wrong?

Thanks,
EZ

CopyPixels While Moving Bitmap When Overlay Layer Has Bitmap Effects Bug?
hi,

Wanted to create a walking character, using a large image of all this character postures as resource.

Did this:
1. Created a new Bitmap with its BitmapData
2. Created an EnterFrame event listener to this Bitmap where:
a. I move the Bitmap to the right
b. I change the character posture by copying pixels from the large image to the characters BitmapData

Works fine...

But then I've added another layer (sprite) on top of this bitmap.
Added a glow filter to this layer (sprite) and got the following bug:
The character (Bitmap) is leaving trails as it moves... as if Flash doesn't clean after it...

Please see attached files - it's all there, short and clear.

Basically, the pseudo code looks like this:
--------------------------------------------------------------------------------------------------------------
var __sourceBmpData:SourceBmpData = new SourceBmpData(72, 128); // SourceBmpData is a linkage name to an image on the library
var __imgBmpData:BitmapData = new BitmapData(24, 32, true, 0x00000000);

var __imgBmp:Bitmap = new Bitmap(__imgBmpData);
this.addChild(__imgBmp);

// add event listener
__imgBmp.addEventListener(Event.ENTER_FRAME, Walk);

// bug layer
var bug_mc:Sprite = new Sprite();
this.addChild(bug_mc);

var glow:GlowFilter = new GlowFilter();
glow.color = 0xFF0000;
bug_mc.filters = [glow];

// enter frame
private function Walk(event:Event):void {
__imgBmp.x = 32 + __posX * 12;
__imgBmpData.copyPixels(__sourceBmpData, new Rectangle((__posX % 3) * 24, 32, 24, 32), new Point(0, 0));

__posX++;
}

--------------------------------------------------------------------------------------------------------------

Is it a bug or am I doing somthing wrong?

Thanks,
EZ

Can't See A Bitmap Under A Mask When Moving The Bitmap With Elastic Motion
The um... title... kinda said it all. I have a mask. I have a bitmap under the mask. I want to move the bitmap around with elastic motion so I put it in an MC and cut and pasted some functions.

I can see it moving fine when i delete the mask. And I can see it masked fine when I delete the functions. But when both are there I just get emtpy space.

Is there something I don't know but shoud about elastic motion and masks or is there something ****y going down and I probably need to post the FLA?

Thanks all,
-damnit.

Stretch Bitmap-filled Object W/o Stretching Bitmap?
I've got a bitmap-filled rectangle I'm using as a background. I'd like to resize the rectangle dynamically without stretching the bitmap, ie the bitmap needs to tile.

I can do it with BitmapData using the tile option, but it's really slow. Is there an easier way to do this that I'm missing?

How Can I Edit Bitmap And Save The Edited Bitmap In Flash
hi all

It would be appreciated if any one let me know how to edit bitmap which is imported in flash using xml and save the edited bitmap back to xml in flash.

Is it posible to save the bitmap data in flash?


thanks in advance

Draw A Bitmap Line Or A Bitmap Polygon
I need to create a flash/flex/ActionScript3 program that allows user to draw lines and polygons with legends. The legends are provided as bitmap. I'm thinking that I have to use bitmapfill to do the work. Is this the best approach?

As the line may change the direction, I will need the bitmapfill to change direction following the direction of the line. What is the best way to do this? Any example out there?

For polygons, can we use bitmapfill to fill irregular shapes?

Thanks,
-Maggie

Bitmap Font Text Drawn To Bitmap
Is there a way to write a bitmap font right into the bitmap being desplayed?

Mabey better worded:
myBitmap.draw(image, t) draws a picture is there a way to draw text?

I'm stuck even if its just a work around in some way I would like to know... (the current work around i have in my head is writing it in a movieclip turning that into bitmap data and drawing it... esentially creating a prototype answering my question... but a built in way would be easier probably).

Draw A Bitmap Line Or A Bitmap Polygon
I need to create a flash/flex/ActionScript3 program that allows user to draw lines and polygons with legends. The legends are provided as bitmap. I'm thinking that I have to use bitmapfill to do the work. Is this the best approach?

As the line may change the direction, I will need the bitmapfill to change direction following the direction of the line. What is the best way to do this? Any example out there?

For polygons, can we use bitmapfill to fill irregular shapes?

Thanks,
-Maggie

How To Edit Bitmap Which Is Imported In Flash Using Xml And Save The Edited Bitmap Back To Xml In Flash.
hi all

It would be appreciated if any one let me know how to edit bitmap which is imported in flash using xml and save the edited bitmap back to xml in flash.

Is it posible to save the bitmap data in flash?


thanks in advance

How To Edit Bitmap Which Is Imported In Flash Using Xml And Save The Edited Bitmap Back To Xml In Flash.
hi all

It would be appreciated if any one let me know how to edit bitmap which is imported in flash using xml and save the edited bitmap back to xml in flash.

Is it posible to save the bitmap data in flash?


thanks in advance

Resize Flash Movie, Make HTML Page Also Resize?
Hi All Flashkitters

I'm trying to do something that I believe is probably pretty simple and I'm guessing it involves some Javascript along with the Actionscript.

It's like on Fantasy Interactive's website, when you click on different sections of the site, the Flash container movie resizes, and makes the HTML page also resize vertically, to be able to scroll the content. Does anyone know how to acheive this? Its a handy function, I'd love to master it. It opens a big door for building flash sites that can hold real content.

So, anyone can point me in the right direction, I am greatful to.

Dynamic Resize Issue: Resize From Corner, Not Center
Okay. So I just got this little slide show I'm doing to load the next image (i'm still working on making it loop, so if anyone wants to help me with that, too feel free!)

As each new picture is loaded in the slideshow, I have a border that automatically resizes to fit it. Right now it's resizing from the center, is there any way to make it expand out from the top right corner instead of the center (since the orientation of the pictures are different, it looks a bit unnatural for what I'm doing)

Here is the code for my actions layer and if anyone can take a look and tell me what I need to change/add to make this work, I appreciate it!!


Code:
#include "mc_tween2.as"
space = 10;
photo_mc._alpha = 0;
MovieClip.prototype.loadPhoto = function(photo){
photo_mc._alpha = 0;
this.loadMovie(photo);
_level0.onEnterFrame = function(){
// modified the total and loaded so as to round it up
// to smaller number.
var total = Math.round(photo_mc.getBytesTotal()/1024);
var loaded = Math.round(photo_mc.getBytesLoaded()/1024);
if (total != 0 && loaded>=total){
var w = photo_mc._width + space;
var h = photo_mc._height + space;
border.resize(w, h);
delete this.onEnterFrame;
}
}
};
MovieClip.prototype.resize = function(w, h){
//the higher the slower the resize of the border
var speed = 6;
this.onEnterFrame = function(){
this._width += (w - this._width)/speed;
this._height += (h - this._height)/speed;
if( Math.abs(this._width-w)<1 && Math.abs(this._height-h)<1){
this._width = w;
this._height = h;
photo_mc._x = this._x - this._width/2 + space/2;
photo_mc._y = this._y - this._height/2 + space/2;
photo_mc.alphaTo (100, 0.5, "linear")
delete this.onEnterFrame;
}
}
};
image_mc.onLoad = setInterval( nextImage, 7*1000 )
;
-SD

SWF Resize On Browser Resize Causes Nav Buttons To No Longer Work.
Hello. I have a full browser width/height resizing swf. I can't figure out why, but the navigation rollover states no longer work after resizing the browser. My rollovers are handled by a button class linked to each nav button movie clip within the library. Other things of note. I am using the 3 frame AS3 preloading technique which holds all my assets in its own movie clip on frame 3.

My document class only really handles preloading. And a class for all my assets, acting as the "real" doc class is linked to that MC on frame 3.

Here is the URL to the problem:

http://spiritservices.mindgrabmedia.com/stmary/

Thanks in advance.

On Stage Resize, Resize Multiple Copies Of An Object Help
Hey everyone, I'm having some troubles figuring out the code for this. I have 12 button objects that are being created evenly across the stage, and I would like to have them resize on a stage resize event.

Here is my code so far:


Code:

//--------------------------------------
// CONSTRUCTOR
//--------------------------------------
public function BasicFullScreen(){

initVideo();
createButtons();
stage.addEventListener(Event.RESIZE, resizeHandler);

}


//Create Buttons
private function createButtons():void{

for(i==0;i<12;i++){
//trace(i);
button = new MovieClip();
button.graphics.beginFill(000000);
button.graphics.drawRect(0,0,(stage.stageWidth/30),(stage.stageHeight));
button.graphics.endFill();
button.x = (stage.stageWidth/12)*i+(stage.stageWidth/40);
button.y = 0;
button.alpha = .5;
addChild(button);

}

}

private function resizeHandler(event:Event):void {
//What to put in here?
}
I'm not sure what to put in the resizeHandler function to resize all the button objects.

Thanks for any help,

Matt

Resize Bg On Browser Resize While Maintaining Image Proporti
im using the following code to resize background images on browser resize:

Code:

var listener:Object = new Object()

bg_mc.width = Stage.width;
bg_mc.height = Stage.height;

listener.onResize = function(){

bg_mc.width = Stage.width;
bg_mc.height = Stage.height;

}
Stage.addListener(listener);


the problem i'm having is that my background image does not maintain proportion on resize. so, when i resize my browser to a width of 100px, the entire width of my background image is compressed into the 100px area.

is there some additional code i can add to the snippet above to maintain the proportions of my background image on resize?

thanks,
brandon

How Can You Resize A Stage And Have Flash Resize The Objects As Well?
Is there any way you can resize your stage in Flash and either have it keep the objects all cenetered or have it compensate for the objects and adjust them accordingly?

This tends to be a problem when I start a new file and then forget I want the stage to be much bigger.

Any help is appreciated...

How To Dynamically Resize Clips With Resize Handles
Hi Guys
was wondering if someone could help me figure out a way how to free transform objects on stage. I saw it in action at
http://www.myholidaysweater.com/

Objects can be uniform scaled, rotated with the handle when you click on the objects.

its a very cool feature.
Any tip greatly appreciated

adrian

Q: Resize Textfield Width And Height On Resize
Does anyone know if it is possible to resize a text field dynamically when I change the size of my Flash? I want the text to do what html does on a page when you resize it. Would this be possible? Any help would be appreciated. Thanks!

Faster Option Than Bitmap Smoothing? Or Speed Up Bitmap Smoothing?
Hey,

Is there any way to speed up bitmap smoothing? or to achieve the same effect with something less processor intensive? Or maybe a way to reduce the amount that it smooths or something. Btw, when I say speed up I mean less processor intensive.

In the project I'm currently working on the image must be rotated and scaled smoothly to 1.5 times it's starting size. If there is any different way to achieve a smooth-ish image please let me know. Even if it's really complicated, if it's at all faster I want it hear it.

How I'm currently doing it is I load in the images (jpg) from an XML file, create a bitmap take the bitmap data from the loaded jpg and enable smoothing. Then I add that bitmap to a movieclip and then I do my stuff from there. It's a complex photo viewer. It all works, but I need to make it work using less resources.

Any ideas are MUCH appreciated! Thanks

Better To Use A Bitmap, Or MovieClip Containing The Bitmap?
Just wondering -- I have a background image that doesn't really change. Should I just add it to the stage as a bitmap, or create a movieClip that holds the bitmap and add that instead?

Thanks!

Bitmap To Bitmap Rendering (AS 2.0)
There doesn't seem to be a way to render a region of one bitmapData to another bitmapData. Is this a large flaw or is there something I'm missing? I'm currently creating a complex game, and this has been puzzling me. I know about the draw command, but say I want to take a convex polygon region of one bitmapData object and paste that region of pixels to another. How would I do that. I am familiar with the idea that I can draw to a movieclip using the moveTo and lineTo, then just draw to a desired bitmapData, but that extra third party transfer of pixels is very useless and a tad CPU intensive for my liking.

I've even gone as far as trying to implement my own system using get and set pixel, but that is rather pointless as the code runs far to slow, unlike the optimized functions flash uses.

I was just wondering if one of the developers could fix this problem (if it really does exist). I thought flash CS3 would fix this simple concept, but they didn't. I don't use movieClips when I program my games, so using them for something this trivial leads me to believe that the developers didn't foresee the use of bitmap region to bitmap much.

Has anyone else noticed this before? Any fast fixes or workarounds?





























Edited: 05/14/2007 at 06:20:42 PM by Sirisian

Bitmap To Bitmap Rendering
I know the .draw command can be used between two bitmaps to render a rotated or regular bitmap, however I can't think of a way to render a convex polygon region from one bitmap to another. Rendering to the root you'd use the beginBitmapFill and the moveTo and lineTo, but those only work on a MC or the root. Copying just a region from one bitmap to another doesn't seem to have a way. Anyone know how?

Trace Bitmap Vs Bitmap
Hey guys quick Flash concept question. Does have regular bitmaps in your site in Flash bog down the site? I mean will the site run smoother if everything is ocnverted to vector using trace bitmap? In my case, it's not big pictures or anything, it's small little buttons or whatnot, but I would like to know if it is worth losing a bit of the bitmap quality to trace it.

Thanks!
-brad-

I Cant Resize Windows And Stop Resize.
I'm going mad here! - I know this is probably really simple but i have a flash movie and i want the links to pop up in a new window of a defined size - i also want to turn off resize and get rid of the toolbar and scrollbar.

If anyone can help me Id be really grateful! :-)

Thanks - Dan (dan@introspection.f2s.com)

Resize Movieclip BG Per Stage Resize
I'd like to have a movieclip that scales in the background per the resize of the browser. I'd also like to have menu 200 pixels to the left of the stage width. How would I set it up in AS3? Thanks

ReSize Doesnīt Resize Automatic But Why?
Hey.

Iīm kinda stuck.
have a look: reSizse sucks right now

my problem is that you canīt see the hole background untill u manually resize the browser window. i just canīt figure out why it doesnīt work.

maybe itīs beacuse itīs late, maybe beacuse iīm getting sick or maybe beacuse I just suck at this.

please help anyone?

u can download fla file n everything right HERE

tnx in adv

//Mo

Resize Mc On Stage Resize
Hi,

I'd like to resize a movie clip via a percentage of the available screen size, so that when the stage is scaled, the movie clip responds accordingly. - Any help greatly appreciated.

Ben

Help Me Its Possible Way I Can Resize My Swf? Its 14mb, I Want To Resize To 5mb
I created a series of animation of pics with backgound music on it. It has also
buttons which they could change the background music. It works well but it was 14 mb,
The purpose of this animation was to embed it to my webpage. Uploading it to my site is already a pain in the ***, but my concern is for the viewer that they could easily view this animation of mine.

Now my question is. Can I possibly resize my swf considering its 14 MB, resizing it to atleast 5 MB without changing the quality? Help me masters, coz I'm still a newbie in flash

Stop Resize In A RESIZE
hey...there's a open source running around somewhere...
with a resize setup for loading a JPG into a empty MC...
and there's a border that resizes to that image once it's loaded..
it's even tweened to scale smoothly... (below)

problem 1:
it's a bit hefty for the eye... but it works sweet...
but i'd like to manage to work some Zigo tweens into it...
i was wondering if anyone has the super powers to
figure out how to recode it so the resizing is done through
those easing classes and tween and them through fuse...
problem 2:
i modded the resize... inside the border...this little crop box i created...
i added movie clips that are looping through a doTween setup...
so instead of lines defining the border (which will be resized according to which jpg or png is loaded) ... i have movie clips running up and down each of the total 4 sides...

but when they resize....it stretchs the in a very ugly way...
it's like in design class when the type teacher said...
don't stretch the type...i was reaffirmed why...cuz it looks like crap.

is there a way to resize a movie clip...
and have the movie clips running inside that movie clip stay constrained? ; to remove unproportional scaling?

Code:

spacing = 50;
containerMC._alpha = 0;

MovieClip.prototype.loadPic = function(pic){
   _root.containerMC._alpha = 0;
   this.loadMovie(pic);
   _root.onEnterFrame = function(){
      var t = containerMC.getBytesTotal(), l = containerMC.getBytesLoaded();
      if (t != 0 && Math.round(l/t) == 1){
         var w = containerMC._width + spacing, h = containerMC._height + spacing;
         border.resizeMe(w, h);
         delete _root.onEnterFrame;
      }
   }
};
MovieClip.prototype.resizeMe = function(w, h){
   var speed = 5;
   this.onEnterFrame = function(){
      this._width += (w - this._width)/speed;
      this._height += (h - this._height)/speed;
      if( Math.abs(this._width-w)<1){
         this._width = w;
         this._height = h;
         _root.containerMC._x = this._x - this._width/2 + spacing/2;
         _root.containerMC._y = this._y - this._height/2 + spacing/2;
         _root.containerMC._alpha = 100;
         delete this.onEnterFrame;
      }
   }
};

can someone take a crack at this? it's giving me allergies...
thanks in advance!

anybody run into any flash chat rooms where people can have live feedback and pass some flash nerdtalk? cuz i'm way down for that.

22/m/actionscript,tokyo

Why The Bitmap ?
Please tell me : How to antialias in bitmap using Flash tweening.
I used FlashMX to import some bitmap in *.jpg. In 1 frame it's very good but in a tweening it's very bad.
Thank you for helping me.
Hoang

Bitmap
can you save a bitmap fill?

[CS3] Bitmap To Mc
hi

I know I can convert a mc to a bitmap with "cacheAsBitmap".
Now I am wondering how I can convert a bitmap to a mc.

I have a black and white bitmap, which I created from a vide still.
now I would like to convert the white area of this bit map to an mc,
so that I can used it for hitTest etc.

Thank you.

[CS3] Bitmap To Mc
hi

I know I can convert a mc to a bitmap with "cacheAsBitmap".
Now I am wondering how I can convert a bitmap to a mc.

I have a black and white bitmap, which I created from a vide still.
now I would like to convert the white area of this bit map to an mc,
so that I can used it for hitTest etc.

Thank you.

Bitmap To Mc
hi

I know I can convert a mc to a bitmap with "cacheAsBitmap".
Now I am wondering how I can convert a bitmap to a mc.

I have a black and white bitmap, which I created from a vide still.
now I would like to convert the white area of this bit map to an mc,
so that I can used it for hitTest etc.

Thank you.

Bitmap To Mc
hi

I know I can convert a mc to a bitmap with "cacheAsBitmap".
Now I am wondering how I can convert a bitmap to a mc.

I have a black and white bitmap, which I created from a vide still.
now I would like to convert the white area of this bit map to an mc,
so that I can used it for hitTest etc.

Thank you.

Bitmap Stu
hi. i am working with flash mx today. i created a string of bitmap images, all with a transparent color over them. i saved the string of bitmaps into one long file "string1". the idea was to have a motion tween of this long string of bitmap images... sort of like a tiker tape on the stock exchange. it looks great in the editing window, but when i hit F12, it is just a multichromatic mess moving by me. What did i do wrong?

thanks.

How He Did It With Bkg Bitmap
hi

example:
http://www.anteprima.com
(please click on the english version)

If you know please let me know how they did with the bkg bitmap.
its resizing and centering but filling the whole win without distortion

Bitmap Shifting
Ok, so I just finished doing a photoshop template for a flash website.

I saved the background, and then isolated an element that is over the background and saved it in another file.
When I try to put them on top of eachother in Flash, I've realised that the images shifted and aren't the same anymore, they don't merge like they should. They seem stretched even though they have the same width and height. I tried to save/import in bmp, png, jpg, copy merged/paste in flash, nothing works.

The only way I've found was to retouch one of the two images in photoshop until everything fitted.

I honestly hope there is a better way to solve this.. (maybe saving it in swf in Fireworks?)

thanks for your help guys

Bitmap Mask?
A very simple question:

Can i use a bitmap image as a mask layer in Flash 5?
After abit of experimentation i realised that it can't be done... am i right? Hopefully not....

Shifting Bitmap
Has anyone had the problem of a shifting bitmap after you tween the alpha state?
For some reason it shifts one pixel, but only on certain computers. Agh!

Thanks!

Trace Bitmap?
When you import a bitmap image....then MODIFY> TRACE BITMAP the image....can you get rid of the bmp file that is in the library?...cause bitmaps add up in file size. Once you do a trace..you should have a vector image..which is WAY smaller correct?. I wouldl like to start messing with this type of feature...can anybody answer these questions...or give tips on this type of stuff?

-whispers-

Vectorized Bitmap
Hi

I've recently learned how to vetorize my .bmp image with a few simple clicks (as taught by my book). But now what? I don't know what to do with the vector on my Flash stage. What use do I have for it if it looks like a Flash animation/cartoon, rather than the original bitmap I imported? What's the intention of vectorizing a bitmap image? ...do I use it as a photo-realistic graphic within my Flash(after playing around with it more) or do I use it as a cartoon image in Flash? I'm stumped. Please help.

Bitmap Confusion - Please Help
Would someone please give me the lowdown on using bitmaps?

The site I'm working on will require the display of lots of bitmaps (images previously created in Photoshop, etc.)

I want the entire site to be produced in Flash, or at least I thought I did. Is tracing bitmaps the way to go--or should I incorporate (I guess) a frames-based setup for the display of the bitmaps, seperately?

I see websites with tons of what appear to be traced bitmaps, often full-screen displays (i.e., http://www.heavy.com). How do they pull this off?

What is the darn secret to using bitmaps??? Can someone please point me to a page(s) that addresses this, with tips?

MUCHO THANKS

zievfret

Copyright Đ 2005-08 www.BigResource.com, All rights reserved