ActionScript 3.0 :: Overlaying 1 Bitmap Image On Another On A 3d Sphere?

May 24, 2009

The basic concept: I want to at runtime overlay (or paste or whatever) one bitmap image asset onto another. The original image asset is a texture on a 3d sphere.Example:3D Sphere with earth texture applied to it. Put a cloud on the earth texture and have cloud move along the earth.

Caveats:Can't use any composite materials because I take a serious perf hit. Want to try working only with bitmaps to see if it is faster.I've gotten this far but don't know how to fill rectangle with jpeg file and certainly have no idea where to go from here..earthBitmap= new BitmapData( 256, 256, true); fillRect will only do a color ... I need what fills a rect with jpeg image and how to edit a bitmap on the fly.

View 2 Replies


Similar Posts:


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

IDE :: Two Movieclips Overlaying Each Other?

Sep 12, 2010

So i have two graphics one on top of the other inside a movieclip . I am tweening there alphas and i want the graphic on top to cover the one underneath . I also need to seperately tween them on the timeline so merging them isn't an option .

View 1 Replies

Flash :: AddChild Is Overlaying A MovieClip On The Stage?

Oct 25, 2011

How do I make sure that a movie clip that starts on the stage has a higher zindex then when I addChild and add a linked movieClip from the library.

Really my code is pretty simple

background_image = new Sprite();
main_container.addChild (background_image);

But I have a movieClip "message_box" that I dragged onto the main timeline. When i add the background_image which is the full size of the stage it overlays the "message_box"

I know you can set the childs index but how do I set the "message_box" index?

View 2 Replies

Media Server :: Adding Overlaying Mask On The Live Stream

Dec 28, 2009

Can I add overlaying graphics upon the live stream by server-side ActionScript before publish the stream? For example, suppose in case of video conference, I want to put a mask graphic on peoples face to hide them, and change the mask on the fly by server-side code, such as moving it or making it transparent.

View 1 Replies

Html :: Css Menus Not Overlaying On Top Of Flash Piece / Internet Explorer Only

Jan 20, 2012

The site I'm working on uses the age-old CSS "suckerfish" menus to do drop downs rather than Javascript or some other CSS solution. On some of these pages there are flash pieces, and for Internet Explorer 8 only, the menus get "blocked" by the flash area. After seeing questions related to this issue, i.e. here and here, I tried both wmode="opaque" and wmode="transparent", which solved the problem for Chrome, Opera, and Safari. Firefox worked without any wmode specification.However, IE 8 isn't working with either of these ... the css menus don't overlay the flash. These flash elements don't have a position assigned to them, so assigning a z-index won't help as far as my understanding goes.How do I make this work for IE 8?URL...

View 2 Replies

Google Maps - Overlaying Other Objects In Flash Full Screen Video

Jul 7, 2010

Is there a way to overlay other objects on top of fullscreen video in Flash Player?

i want to put a googlemap over a 'full screen' flash video player, is it possible?

View 1 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 :: Cut Up A Bitmap Image Into Pieces?

Mar 9, 2011

I'm trying to cut up a bitmap image into pieces, and then tween each piece away sequentially. Cutting up the pieces and placing those pieces in an array is where I'm at. But to tween each piece on a timer is where I'm stuck; here's the code:

package
{
import flash.display.*;

[code]....

View 6 Replies

Flex :: Load More Then One Image In Bitmap?

Oct 8, 2010

i can't download more then one image from url

function processXML(e:ResultEvent):void
{
myXML = e.result as XML;

[Code].....

View 1 Replies

Create An Image Control From Bitmap?

Apr 12, 2011

I need to create an Image control from a Bitmap because I have an ItemRedender to use in a List control.

I'm trying to show a list of images (Bitmaps) in a List control and I couldn't by now.

View 2 Replies

AS3 :: Instagram-like Image (bitmap) Filters?

Oct 12, 2011

I'm wondering if there is some library (or maybe tutorial?) which can produce Instagram-like color tweaks for Bitmap/BitmapData objects in AS3. Color Matrix/ColorMatrixFilter will not be probably able to achieve such as results or yes?

View 1 Replies

ActionScript 3.0 :: Replacing A Mc With A Bitmap Image?

Nov 16, 2010

I am trying to replace a movie clip image with a bitmap image and now the code to fire the image(missile) doesn't work. I get these errors:1119: Access of possibly undefined property dx through a reference with static type flash.display:Bitmap.1119: Access of possibly undefined property dy through a reference with static type flash.display:Bitmap

package {
import flash.display.MovieClip;
import flash.events.Event;

[code]....

View 1 Replies

ActionScript 3.0 :: Image Loader To Bitmap

Apr 10, 2012

I'm loading a list of urls of pics from an fql query, then loading those urls with the loader class using this function:_loc is a MovieClip that holds the picture,[code]In onMyPictureLoaded I would like to get the bitmapdata out of loader.content and scale the image (smooth it too) that way, and then reattach it to the _obj MovieClip, but I'm having trouble reattaching that new bitmap to the object.It seems the problem is more to do with events and not having the ability to pass information (_loc, for example) from:loader.contentLoaderInfo.addEventListener(Event.CO MPLETE,onMyPictureLoaded); to the onMyPictureLoaded function.

View 11 Replies

ActionScript 3.0 :: Bitmap Screenshot Of Dragged Image?

Nov 17, 2010

I have an masked image that is externally loaded onto my stage that the user can drag and position.I then need to be able to record or save where and how the user has positioned the image by either -taking a bitmap copy of where the user has positioned the image (my first and easiest thought of how to do this) -or is it possible to get X and Y co ordinates of where they have positioned it I have a movie currently set up but when the user clicks 'save and continue' it takes a copy of the original position of the image - not from where you have last dragged it to?Full code and attached fla file below

Code:

stop();
//--------------
// Loader
//--------------
var imageP1:Loader = new Loader();

[code]....

View 1 Replies

Professional :: Using Bitmap For Texturing Vectorial Image

Feb 21, 2011

How can I use a bitmap tile for texturing a vectorial image ?

View 2 Replies

ActionScript 3 - Possible To Distort Bitmap Image In Flash?

May 10, 2010

What I would like to do is to take a loaded GIF file as a Bitmap and then distort it by stretching and shrinking parts of it, so it would look like it got squished up against the screen. I'm pretty sure that there's no easy way in Flash to go beyond scaling and shearing, but I wonder if there might be some simple techniques to accomplish this kind of effect. By the way, I've also thought of pre-deforming the images in GIMP and saving them there, but I can't find a simple way to do it without learning their scripting language.

View 1 Replies

Actionscript 3 :: Set Bitmap Image In Canvas Background?

Nov 18, 2010

I have image as Bitmap:

var bitmapImage:Bitmap=getDefaultImage();

I need to set this bitmap as canvas backgroundImage.

I find method myCanvas.setStyle("backgroundImage",url); But i dont need url. Whent i do this:

myCanvas.setStyle("backgroundImage",bitmapImage); I have an error.

How to set bitmap image in canvas background?

View 1 Replies

Actionscript 3 :: Itarating Each Pixel Of A Bitmap Image

Mar 11, 2011

Is it possible to iterate each pixel of a bitmap image? Eventually what I'm trying to achieve is that I need to get the coordinate values of each pixel of a bitmap image and change the color of those pixels according to their coordinate values. As I see it, I need to use the getPixels() method but I still did not understand exactly what I should do.

View 3 Replies

Actionscript 3 :: Image - Slice A Bitmap Into Tiles

Aug 9, 2011

I have the Bitmap data from a Loader object and I would like to slice it up into 32x32 squares to use as tiles. What is the most efficient way to do so?

View 2 Replies

Flex :: Display An Image Using A Bitmap As Source?

Aug 25, 2011

I would like to display an Image using a Bitmap as source. I've looked at many websites and most suggest something akin to this but somehow it still doesn't work....img1 works fine... But img2 doesn't load for some reason.

private function onComplete(event:Event):void{
bytes = event.target.data;
img1.source = _bytes; /*this last bit works*/[code]....

View 1 Replies

Actionscript 3 :: Change Bitmap Image In Flash?

Nov 15, 2011

I've been tasked to write a chat engine in actionscript3 (AIR) and every chat message has an image of the poster associated with it. So I have 5 chat messages on the screen at any one time but it will be obvious that the images associated with message e.g. #1 changes all the time because the last person posting is different.

What I believe is wrong is to use the .addChild method every time I need to replace the image because it will just keep creating more stuff on the stage. What I tried to do is the code below but it refuses to update the image. The way I thought it should work[code]...

View 1 Replies

ActionScript 3.0 :: Bitmap Image & Shape Object Into One?

Feb 11, 2009

I have an image, that will be dynamically loaded. I have some graphics drawing tools with which a user can draw something, which is saved on a shape object. Now what i want to make the uploaded pic & drawing pic into one pic. Actually it will be better if i can draw on the uploaded pic.

View 1 Replies

ActionScript 3.0 :: Image Loader With PNG Bitmap Mask?

Aug 27, 2009

I'm trying to create a AS3 image loader with the possibility of a PNG (transparent) mask...

Tried and searched for hourse, but I won't get it right...

View 9 Replies

ActionScript 3.0 :: Array - Explode A Bitmap Image

May 11, 2010

I want to explode a bitmap image. so I created some Array but I can not go ahead. Her is the code:

[Code]...

ok when i say Tweener.addTween(arrayOfBitmaps[i]. the animation is just made from the last part o fthe array and not by the whole group.

View 1 Replies

ActionScript 3.0 :: Bitmap Image Flickering When Animated

Sep 3, 2010

I've put together an example of the problem I am having and I've also attached my 2 x 2 image I'm using. The image is linked with the class name of ContentTexture which is referenced in my code below:

ActionScript Code:
import com.greensock.TweenLite;
import com.greensock.easing.*;
import caurina.transitions.*;
import fl.transitions.Tween;
import fl.transitions.easing.*;
[Code] .....

I've tried using different tweening engines (greensock's TweenLite, Tweener, and flash's built in Tweening engine) so I think it's more of a general flash issue...maybe a bug? I'm using Flash CS4 on a PC and I've tried 24fps and 30fps with no difference. Is this a rendering issue/flash bug? or is there another setting I'm missing?

View 4 Replies

ActionScript 3.0 :: Bitmap Screenshot Of Dragged Image

Nov 17, 2010

I have an masked image that is externally loaded onto my stage that the user can drag and position. I then need to be able to record or save where and how the user has positioned the image by either

-taking a bitmap copy of where the user has positioned the image (my first and easiest thought of how to do this)
-or is it possible to get X and Y co ordinates of where they have positioned it

I have a movie currently set up but when the user clicks 'save and continue' it takes a copy of the original position of the image - not from where you have last dragged it to. Full code and attached fla file below:

Code:
stop();
// Loader
var imageP1:Loader = new Loader();
var request:URLRequest = new URLRequest('XXXXXXX/image.jpg');
imageP1.load(request);
addChild(imageP1);
[Code] .....

View 0 Replies

ActionScript 3.0 :: Bitmap Object - How To Scale Image

Jul 30, 2009

When I created a Bitmap object from drawling the pixels of an image and then scale that Bitmap too large (or even too small) the image disappears or in some cases distorts in what appears to be random pixels barfed all over my screen.

In order to show you this I have made an example: [URL]
(click the plus button any more than 8 times and poof! the bitmap disappears)
And source: [URL]
(Flash CS4)

View 3 Replies

ActionScript 3.0 :: Create An Bitmap Image Cache

Sep 21, 2009

I'm trying to create an bitmap image cache. What it needs to do is to store an image in a cache and then retrieve that image.

[Code]...

View 2 Replies

ActionScript 3.0 :: No Errors But Can't See Sphere

Nov 22, 2009

Code:
package {
import flash.display.Sprite;
import org.papervision3d.cameras.Camera3D;

[Code].....

I've imported the correct folder in my Edit->Prefences->ActionScript 3.0 settings. I've instantiated an object and it compiles, and I'm not getting any errors but, nothing shows up on the screen.

View 1 Replies







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