ActionScript 3.0 :: Bitmap Grab Of Lower Layers / Image Transformations Of Stage?

Jul 20, 2009

I have a number of display objects drawing to the stage, including bitmaps, graphics/shapes, and text. What I want to do is put a layer on top of this that "grabs" or copies the image resulting from all the rendered objects below it.That is, I want to get a bitmap object that contains an image of the all the rendered objects beneath it in the display list. Consider it as taking a screen grab of the stage.The ultimate goal is to be able to then apply transformations on this bitmap, giving the appearance of transforming all the objects that draw under it.Is there a way to get such a bitmap? Or if not, is there a way to apply an image transformation (e.g. rotation, etc.) to the stage after a bunch of objects are drawn onto it?

View 4 Replies


Similar Posts:


Making A Rollover Image Appear On Top Of ALL Other Layers (from Lower)

Jan 16, 2011

I have an image contained within a slideshow with a rollover attached to it, when you click the image a larger image within the same movie clip appears. This layer is below my navigation layers for my website so when I click on the image it is below some of the navigation layers and logo. Is there a way to make this appear on top of all of the other layers without actually moving the layer up. I'm using Flash CS3 and Actionscript 3.0.

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

ActionScript 3.0 :: Get An Object To Increase In Size The Lower It Goes Down The Stage And Decrease In Size The High It Moves Up The Stage?

Dec 29, 2009

I'm trying to get an object to increase in size the lower it goes down the stage, and decrease in size the high it moves up the stage.

It only needs to increase or decrease by a small amount. Basically, it's for a game character. To ad realism to his movements, it would be nice to have this feature.

This is where i'm up to so far:

Code:
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;

[code]....

I think I need something like:

if (object moves up)
decrease
else if (object moves down)
increase

View 6 Replies

ActionScript 2.0 :: Place Fadeout At The End Of The Music And Make The Sound Lower And Lower?

Dec 22, 2006

I have used the script below to load the mp3 file, but I couldn't do what I used to when I imported the mp3file to stage and I did it there. Is there a way to place fadeout at the end of the music and make the sound lower and lower, is there a way to apply something like that via Action Script?

mySound=new Sound();
mySound.loadSound("sommeu.mp3",true);
mySound.start(0,0);

View 2 Replies

ActionScript 2.0 :: Grab The Instance Name Of Something On Stage, Set It To A Variable Then Remove It?

May 17, 2011

im trying to grab the instance name of something on stage, set it to a variable then remove it.

iv tried:

Actionscript Code:
var something = object1something.removeMovieClip();

that works. problem is im setting variables at runtime depending on a user click.tried this too..

Actionscript Code:
var myvar;object1.onRelease = function() {myvar = this._name;}

tracing this out reveals that it is actually _level0.object1.also tried adding the string "_level0." + object1. still dosen' work.what im trying to do is click on objects. store there instance names into an array then remove them all when i do something else. such as press space.

View 1 Replies

Smoothly Fade Images Together Or Lower An Image Opacity?

Sep 16, 2009

I'm about to put my fist through the screen when trying to smoothly fade images together or lower an image opacity. The alpha is all the same throughout the tween. If I slide the alpha down on one keyframe, the entire tween's opacoty lowers instead of changing over the tween timeframe. I've resorted to using mask wipes.
 
Is there anyway to fade an image into another one or lower the opacity on a jpg? I'm stuck and can't figure it out. When I drop my image into the stage, it's a bitmap. There is no option to change it to a movie clip.I think when I create a tween, it allowed me to make a movie clip, I switched the graphic to a movie clip, but the alpha still didn't work.

View 3 Replies

Professional :: Image Layers - Icons Are Dragged BEHIND The Image Uploaded

Sep 26, 2011

I have a script that loads an image and inside this swf document, I have a few icons such as glasses, hats, etc.. However, when I try to drag and drop these icons over the uploaded picture, the icons are dragged BEHIND the image uploaded.

View 3 Replies

Moving Multiple Layers To Top Of The Stage?

Aug 13, 2009

I purchased a flash home page template that had menu buttons at the top that I decided not to use. I removed the buttons, but now there is a 125 pixel blank horixontal space at the top of the stage. I tried resizing the horizontal size of the stage hoping the artwork would move up and eliminate the blank area, but the stage sizes from the bottom up. The layers get cutoff at the bottom and the blank space is still at the top.

The movie is quite complex with many layers and 450+ frames. Have attached the swf file to illustrate how the top of the stage is empty after I removed the menu buttons. Is there any way to get all of the layers to move up by 125 pixels so that they fill in the blank space without having to do each layer one at a time?

View 2 Replies

Increasing The Size Of The Stage And Moving All Layers

Dec 18, 2009

I'm widening the stage of a existing FLA, is it possible to widen the stage and to reposition all the layers of the FLA so they move in relation to the widing of the stage. Or do I have to reposition all of the layers individually?

View 1 Replies

IDE :: Adding More Layers To Interactive Image Pan?

Feb 27, 2009

I am trying to achieve something like this: [URL]

I have successfully gone through and executed the Interactive Image Pan tutorial you have on here. However I am looking to add more of a sense of depth, so would like some images in the "foreground" to scroll by faster (than the background) as the cursor is moved.

To accomplish this I have made the foreground image cover a much bigger width than the background, as it makes sense to me that this would make it scroll faster, using the same code as the background.

So my question is what code do I need to add to the original code to make the foreground image scroll too? It's a MC called fg_mc. Here's the original code for quick reference:

Code:
this.onMouseMove = function() {
constrainedMove(bg_mc, 4, 1);
};

[Code]....

View 7 Replies

Professional :: Zoom-in On Stage And Creating Scale Dependant Layers?

Jul 19, 2010

I've learned how to link XML to my FLA and have it populate info boxes. Its easy to do this at the state level but I'd now like to do this for all the counties in the US.I'd like to be able to mouse over a state and get information pertinent to each state (this I know how to do).  When one clicks on the state, they'll then fly-in to a more zoomed level where they can see county-level information.Should I build this so that clicking on a state simply loads a new FLA specific to that state and its counties? This seems easy but clunkyIt seems smarter to have all the info in one FLA. When you click on a state, you'll zoom into that states level and then have the ability to click on counties and get their infoDoes anyone have suggestions as to what I should learn next to start making this thing scalable (i.e. how to click on a state and zoom-in)?

View 6 Replies

ActionScript 2.0 :: Matrix Transformations On Textfields?

Sep 1, 2006

I have some problems with doing Matrix transformations on a MovieClip with a Textfield. As soon as I make a matrix transformation the textfield of the movieclip disappears. And I can not get it back.

View 1 Replies

ActionScript 3.0 :: BitmapData.draw() And Displayobject With 3D Transformations?

Dec 17, 2009

I have a sprite with some objects in it which are transformed in 3D (positioned and rotated). The objects form a coneshape in such a way that the objects that make up the back are hidden.When I use that sprite as a source for the bitmapData.draw() it is drawn from another viewpoint so it seems. In my case the copy is viewed slightly from the bottom and right.
 
Bottomline:Does anyone know of a way to duplicate the image of a sprite which contains 3D manipulated graphics?

View 2 Replies

Actionscript :: Get Transformations From Transformation Matrix In Flash?

Sep 1, 2010

I have transformation matrix properties (a,b,c,d). How to calculate scaleX, scaleY, scewX, scewY and rotation angle from those values?

When only one type of transformation is applied, I can figure out that:

scaleX = a
scaleY = d
scewX = c
scewY = b
rotation = arccos(a) or -arcsin(c)

But when multiple transformations are applied at once I don't know how to calculate those values.

I need to do this outside of flash so I can't use any flash helper methods.

View 1 Replies

Graphics - Can Flash Perform Complex 'wrap' Transformations

Dec 12, 2011

Possible Duplicate: How can I bend a a display object? Is it possible to use Flash to do more complex 3D transformations?I already found out 3D rotations are possible. Additionally I also need some warp transformation in order to 'wrap' an image around a bottle.

View 1 Replies

Actionscript 3 :: Combine Convolution Matrices To Apply Several Transformations At Once?

Dec 20, 2011

Theoretically it should be possible to combine transformation or color matrices, through addition or multiplication (I'm lame when it comes to such math). Is it possible?

View 1 Replies

ActionScript 2.0 :: Have 3 Different Color Transformations Apply To An MC Called MyPic?

Oct 22, 2009

I have figured out how to have 3 different color transformations apply to an MC called myPic. I am trying to figure out how to reverse those changes on rollOut. This is what I have so far. Do I need to use delete this.onEnterFrame? I tried but got errors.

Code:
chip1_mc.onRollOver = function() {
this.onEnterFrame = function() {
myColor = new Color(myPic);
myColorTransform = new Object();

[code]....

View 3 Replies

Actionscript 3 :: Custom Image Format To Store Multiple Images (layers)?

Dec 13, 2011

what is best method to store multiple images (layers) , so user can read(load) again and continue work.

currently doing this - each layer is stored as png file. with one text file contain all layers name etc

create one big png file, put all data in it as tiles. read tiles while loading..

create some custom format.

ideally, i wanted to implement c. but i need some guidance about where to start from.my mind always tells me that, logically it should be simple as..

psudo code

layer 1 name, layer1 resolution

layer 1 png data (using png encoder for my bitmapData)[code]....

View 1 Replies

ActionScript 2.0 :: Action Scripted Layers Always Act As Top Layers?

Sep 10, 2005

the snow effect always acts like the top layer, ok what i mean is, i have 3 layers, (1)toplayer= a car, (2)middle= snow, (3)low= background.I want to make the snow to be seen behind the car...i hope you understand what i mean , whenever i put the code from the link above it acts as the top layer and appears in front of everything.

View 4 Replies

IDE :: Putting Bitmap Data To The Stage?

Dec 16, 2009

I have made a little drawing program for my daughter, and I have worked in the ability to save and load images that you have made. It's a simple line drawing thing, but she's 3, and it works.Whatand I'm still new with Flash and AS3) is that I can "addChild" to put the jpeg on the stage, but it's on (or over top of) the drawing area. That means that when I start to draw, I don't really add to the picture, instead, it's drawing behind it. I used the line drawing tutorial as the basis for this little app, the basic code is :

Code:
public function DrawMain(){
graphics.lineStyle(theLine,0x000000); //default to black lines

[code]....

View 2 Replies

ActionScript 3.0 :: Smooth Bitmap That's On The Stage?

May 26, 2010

I've been looking around for hours now, and I can't find a simple solution to what I thought would be an simple task.

I have an image already on the stage. I've put it in a movieClip and named it "myImage". So there is no dynamic loading, imports, or listeners.

Is it possible to enable bitmap smoothing from here?

View 2 Replies

Professional :: Bitmap Does Not Display When Copy Onto Stage

Feb 9, 2011

I am trying to paste a bitmap (any bitmap) onto the stage. I just get the box outline on the stage. I have imported several basic bitmaps into the library. I tried dragging and copying and pasting but I always just get the outline. I don't know if it means it can't be pasted or there is a setting to display it. If I copy the same bitmap and paste into word for instance I do see the image.

View 3 Replies

ActionScript 3.0 :: Display The Bitmap That Exported In The Stage?

Sep 30, 2009

i just wanna know how I display a bitmap that I exported for action scriptinially i tried this

var myBitmap:NameOfTheClass = new NameOfTheClass(40, 40);
addChild(myBitmap);

i got a error saying that is not possible to implicitly convert a BitmapData to a displayObject (or samething like that) so a changed the base class of the exported bitmap to flash.display.Sprite, but didn't work, the same error was generated.

View 1 Replies

ActionScript 3.0 :: Creating Bitmap Representation Of Stage?

Nov 21, 2009

So, I want to create an effect such that each frame I :
1 ) create a bitmap representation of the stage.
2 ) reduce the bitmap's alpha to .75
3 ) remove any currently existing bitmap from stage
3 ) add new bitmap to stage.

If I'm correct in my thinking, this should effectively create the illusion that the stage is fading over time, as every time you call bitmapData.draw() the bitmap will be set at .75 alpha. This *should* mean that when I apply .75 alpha to the new bitmap that it should effectively result in a new image that is .75 * .75 alpha (.56), then on the next frame again it should be lower still (.42), and on... .31, .23, .17, and so on... But it seems that what's *actually* happening is that the new bitmap always *looks* like it's .75 alpha every frame.

ActionScript Code:
import flash.events.*;
import flash.display.*;
// draw a black box...
this.graphics.beginFill(0x000000);
this.graphics.drawRect(0,0,100,100);
this.graphics.endFill();
[Code] .....

Additionally, I've tried using stage.invalidate and doing parts of this in an Event.RENDER handler, but it didn't work either...

View 7 Replies

ActionScript 3.0 :: Bitmap Cache Only What Is Visible On Stage

Jan 5, 2011

Now this one wouldn't be tricky at all if the vector graphic background I wish to cache wasn't nested. Unfortunately it is.

-stage
-- container
----- animated layer
----- bitmapCacheContainer
----- background

This is the hierarchy for the display list. The animated layer is slowing to a bad chug on the heavier backgrounds. This is due to the fact that when zoomed in on the container layer, the automatic cacheAsBitmap functionality in the flashplayer is caching a HUGE image, which takes a fair chunk of memory.

I have started dev on this, and this is my process.

Create a new bitmap object to hold the snapshot.

Code:
if( stage.stageWidth > container_mc.width ){
_width = stage.stageWidth;
}

[Code].....

Has anyone tried this before, or can anyone see any schoolboy errors here that I am missing.

View 0 Replies

Actionscript 3.0 :: Error Position Bitmap On Stage

Aug 6, 2010

Good guys do not espresei fine, next I have a gallery-shaped grid, when I click on one of the thumbs hold containing the thumbs up to widen the thumb be selected in proportion to the screen, the problem is that if I do that he usually gets caught, then did the following when you click unconsecrated thumb I create a bitmap with the dimensions and position of the holder, so I can make the scale until the ratio of the screen and not get caught, but there comes another bug if I click thumb that at some or the x or y is equal to 0 goes to my bitmap somewhere or walks out the screen

[Code]...

View 1 Replies

ActionScript 3.0 :: Load It Into BitmapData Then Into Bitmap Then Onto The Stage?

Jul 16, 2010

What i want to do is get a png from my library load it into bitmapData then into bitmap then onto the stage.I don't even have enough success here yet to have code to post. Please for the LOVE of Mike!

View 5 Replies

Distorting A Bitmap Image?

May 27, 2009

Okay, I know this is a stupid question but, if you bring in a jpg or png image and either convert it to a graphic or a movie clip, or just leave it as an image, is there a way to distort the image other than scaling, rotating and skewing it. For example, I want to change the perspective of an image the way I do in photoshop.Let's say the image is a house, in photoshop, you can take the house and make it look like a trapezoid shape, you know, wider at the bottom than at the top  Is there a way to do this using flash tools? Envelope distorting, if you break the image apart doesn't really work.

View 1 Replies

ActionScript 3.0 :: Drag Some Bitmap Area On Main Stage

May 12, 2010

I am trying to distort a bitmap, I mean, I have this bitmap in the main stage and I want to drag a section to. I don't know, maybe drag the eye of the character in the picture but I want all the bitmap to react or at least the closest region of the point I am dragging. Is that possible? I know the drawTriangles() that is been use to gave this 3D effect, but I need something different.

View 3 Replies







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