Actionscript 3.0 :: Do A Distortion On A Image - Re-arrange The Pixels In A Video Element
Dec 19, 2009
I want to do a distortion on a image. Something simple, i searched the web for a tutorial but I couldn't find one. What i need to do is to re-arrange the pixels in a video element or in a bitmap element.
View 4 Replies
Similar Posts:
Sep 7, 2008
rotating/scaling images is seemingly a no-go in flash at least when i try it.but still seeing sites as this: [URL]walk with me :
shangai : work : december 2007 : WWF
when you select a picture and zoom in, the transition is so darn smooth, the picture isn't even distorted/pixelated they use 2 versions, the original size, and the bigger size once clicked they switch between the two and scale them. Still it doesn't work well for me. i still have pixel distortion. i tried loadBithmapSmoothed classes, etc, all to no avail.
View 4 Replies
Dec 17, 2004
I have found 2 different Threads about the topic, which worked fine.[URL]... and it seems that it is close to what I am trying to achieve. However, the codes that they came up with don't seem to work with mine. I attached the FLA.Anybody has a solution so when the stage is scaled down smaller than the original image size, the image stops scaling. And the image doesn't distort. The eagle on the intro scales proportionately and the one when you go to campaign section behaves exactly like I would like to.I've found the website here by the way, which was the starting point of my experimentation.
Code:
//stage properties
Stage.align = "TL";
[code]....
View 8 Replies
Sep 12, 2009
I would like to ask if there is a way to distrort a video in flash cs4. Particularly i want to create a custom player to display flv videos and in the background, around the player area, play a distorted video probably blured or faded , short of like ambient light?
View 2 Replies
Jul 16, 2011
Background info: I am using ActionScript 2.0 and Flash CS5I was working on a game and I used photoshop to save a little gif image. I imported it into flash, "broke it apart", turned it into a movie clip, and put this bit of code on it. It rotates the image when the mouse is moved around it.
Code:
onClipEvent (enterFrame) {
// find x and y differences
[code]........
View 11 Replies
Jul 10, 2009
I have been struggling in Flash to find out if advanced bitmap distortion is possible in flash. I am talking about the same distortion effects that Photoshop generates by going to Filter > distort menu. Especially the spherize, Wave and Twirl effects. The displacement map filter introduced in Flash 8 or 9 has this capability. But I don't think it can actually distort the bitmap in Flash. All they do is create a false image and don't actually convert the image.So I want to imitate Photoshop in Flash so that when I have an image in Flash the user would feel like he's using Photoshop filters and twirling or spherizing the image.
View 1 Replies
Mar 9, 2009
I used the Photo Gallery using xml and Flash tutorial and created a nice gallery with thumbnails I increased the size to accommodate a 800x533px size picture however when the images are imported they are distorted to a size that looks to be around 900x400px I am using flash 8.
View 1 Replies
Jul 13, 2007
I have been trying to convert [URL] into as3. I am am very unfamiliar with flex. I have set the buttons for transform and loading the image but its just not working at all.
Here is the image distortion class
Code:
package {
import flash.display.Shape;
import flash.display.MovieClip;
import flash.display.Sprite;
import flash.display.Bitmap;
[Code] .....
View 2 Replies
Dec 21, 2009
I want to develop a player , which shows images.URL...but I am so much confused about the progress bar or scrubber which can be moved or how to arrange with respect to time just like VIDEO Player every image will have to play 10 sec , so if 20 images , so there will be 200 sec.so how i should control this time bar or even when user move the scrubber, it moves to exact image with respect to time
View 3 Replies
Dec 13, 2007
Some images I load dynamically are too big so I would like to scale them to fit the stage.
[Code]...
this returns 0. Why does it return 0 when the image loaded is obviously much larger then 0 pixels. How do I change the width and height of imgCont to a specified dimension.
View 1 Replies
Jun 30, 2006
what the line of code would be-- where having made several buttons, on rollover, scales their respective image. However, on scaling, these images are arranged according to their layers and would therefore be obscured by text or an adjacent image.How could I make it so that everytime I rollover the hotspot, the image will scale and automatically arrange itself to the front of everything? Is there anything to do with its depth and setting its properties?
View 3 Replies
Aug 26, 2011
I imported and .png (bitmap) and converted it to symbol however when I place it on stage and look at it the corners (marker with red, edit: basically all the corners are somewhat incorrect) appear somewhat ugly, however when I zoom in to 200% I see that everything is correct. I'm also sure that when importing the .png image the pixels were correct. Why is it so and how to fix it?
View 2 Replies
Feb 15, 2010
I actually try to do the following: I have loaded an external image in a bitmapdata object and create a bitmap from it which i attach it to a sprite/MovieClip in order to have mouse events on it. Now under the previous logic i loaded two images (let's say circles) of the same size one that has a particular color and is covered by its black foreground circle. When i press left mouse button and hold it down i want while the mouse is moved to erase the foreground circle's pixels and so the background image starting to appear.[code]...
View 1 Replies
Jan 17, 2010
I thought this was going to be easy, and hopefully for someone it is, but I'm having a tough time so thought I'd ask here...
I have an image - say 50 x 30 - 1500 pixels.
I need to scale it so that it keeps it proportion, and takes n pixels - say 20 for example.
View 5 Replies
Mar 24, 2012
so instead of the pixels being dissolved, the pixels being added? :
ActionScript Code:
var Anim:TransitionManager = new TransitionManager(blackbox);
Anim.startTransition({type:PixelDissolve, direction:Transition.OUT, duration:1, easing:None.easeOut, xSections:35, ySections:35});
basically what i would like is the end point to be the start point and the start point the end point.
View 2 Replies
Jun 17, 2009
I have a swf file that loads into my main movie, and within that swf there is a masked image that i would like to scale using zoom in and out buttons and also by using a slider bar.However i cant find any tutorials that will allow me to combine the two.I have used the following code for the buttons. Which seems to work ok but i would like it to be a little smoother. (using speed or some sort of easing??)
ActionScript Code:
zoomPlus.onRelease = function(zoomIn) {
if (test_shirt.shirt._xscale == 400 && test_shirt.shirt._yscale == 400) {[code]....
but for this code it keeps shrinking my initial object down to 10 pixels by 10 pixels..
View 0 Replies
Nov 18, 2009
I have a movie clip called column1_mc. when I click a button I need to move the movie clip in incremental moves consisting of 30 pixels.
column1_mc._y = 30;
Does not work because that is giving a _y coordinate.For example.I need to make the movie clip jump to _y 300 but make 10x30 pixel incremental jumps. Moving 10 times 30 pixel jumps.
View 1 Replies
Aug 9, 2010
Any way to copy the pixels or handle the image from URL "[URL]" in Flash? It will work fine in FLASH IDE but when I look this in browser, then it crashed. I know that its crossdomain Issue. I always get childAllowParent=false after loading. It always crashed when I want to get event.target.content or
addMC.getChildByName(mcName);
I am loading this image from Google Image search API in Flash CS3 Professional and AS3.
View 3 Replies
Nov 16, 2011
I have a Flash fla file that contains a whole lot of images. The majority of each image is composed of transparent pixels with a visual object in there somewhere. Each image at the moment is at {x:0, y:0}.I want to trim away the transparent pixels of the image down to a minimum bounding box, but keep the object at the same global position. This requires shifting the trimmed image to the global position of the object in the untrimmed image.This is not so much a problem, but the fact that the images are all contained in a fla is the problem. The options I see at the moment are:
investigate JSFL, the Bitmap object has a getPixels, this in combination with a selection and delete operation could work save the fla to xfl and enumerate the images and associated xml with something like Ruby + image processing lib
Questions: Does anyone know upfront if this operation is possible in JSFL? Have anyone done much automated processing of xfl files? Is there an off the shelf image processor that can perform this trimming operation?
View 3 Replies
Jul 26, 2011
I'm trying to copy pixels from a loaded image. This code generates no errors but there is a missing link between the bitmapData object and the loaded image.
ActionScript Code:
package
{
[code]....
View 4 Replies
Feb 17, 2010
Is it possible to detect (dynamically) the white pixels of an image and delete them? Actually i have some images that i load on stage but they are square without the actual image be a square sized. So i want to make the hit area exactly the shape of the image and not the whit border they have.
View 2 Replies
Apr 22, 2009
I've seen this being done before and I thought it would be easy, but got stumped when trying to replicate it. I'm trying to create a function in flash which will take dark pixels of an image of hair and lighten it and maybe add colour too... Is that really tough to do or does anyone have an easy way around it? Example: [URL]
View 2 Replies
Jun 13, 2007
I am creating a video gallery off of the demo action script 3, video gallery, that is shown on this site. I have updated the XML file that contains the link to the thumbnails and videos to the appropriate url. When I test the project out, I get the following error:
TypeError: Error #1085: The element type "video" must be terminated by the matching end-tag "</video>". at
fvg::FlashVideoGallery/fvg:FlashVideoGallery::onDataHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchE ventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()
View 2 Replies
Jun 27, 2010
how to grab the transparency (or alpha value) of individual pixels in an embedded or loaded video? We tried copying over a frame of video into a bitmapdata object with transparency enabled. However, even though we can "see through" the video at certain spots (indicating alpha = 0 there), the alpha value comes back as 0xFF for every single pixel in the BitmapData object.Obviously alpha data is being stored inside the embedded video, but how can I actually get that value?
View 0 Replies
Sep 14, 2011
I am trying to load an image of size 6000 × 8192 pixels which cleary exceeds flash platform limitation for an image.
I am trying which doesn't seem to work.
I have had search around the internet and found few components like BitmapDataUnlimited, and BigAssCanvas but I amn't sure if I can use them for displaying a remote image as none of them seem to have a working implemented example and just the class itself.
View 1 Replies
May 26, 2010
element is upcoming cross browser standart for playing videos, while most videos out there right now are in flash format. I am new to tag, so if it is possible a code sample of how to play flash movie with tag would be nice
View 4 Replies
Nov 10, 2009
Flash has an API to control the volume for a Sound object. Can volume be controlled like this currently or is there support planned for <audio> or <video> html5 elements?
View 2 Replies
Aug 17, 2010
I have a Youtube video on my homepage, and now I need a modal to display on certain events.For some reason, even when adding <param name="wmode" value="transparent"> to the Flash object, it still covers the HTML elements (with higher z-index too).I've got it on JSfiddle.I figured maybe an iframe could solve this, but that would require me to make a new page just to put the video on.
View 2 Replies
Aug 20, 2011
I have the following:[code]I want to display a tooltip on the img element - haven't figured this one out - ideas anyone?
View 1 Replies
Jul 14, 2010
Is there anyway to take take a "screenshot", "save" or "capture" the active SWF element on a page as an image? I'd like for users to be able to simply click a button on my page, instead of having to need to manually take a screenshot of the entire page and then crop the image to show only the SWF element.I found a Jquery method, although I am unsure if it could work with SWF files. It basically captures an area of an Image element on the page and allows you to save that as a separate image. What I would need however, is to capture the SWF as the image instead. Note: I do not have access to the SWF code so I cannot achieve this using Actionscript or anything like that
View 2 Replies