ActionScript 3.0 :: Specify Rectangular Region Zoom Into Video

Jul 3, 2009

If it's possible to zoom into a video? For example specify a rectangular region in the video and zoom in.

View 1 Replies


Similar Posts:


Flex :: Determine If A Series Of Points (or Polygon) Is Within A Rectangular Region?

May 20, 2011

I have been looking at posts about determining if a point lies within a polygon or not and the answers are either too vague, abstract, or complex for me. So I am going to try to ask my question specific to what I need to do.I have a set of points that describe a non-straight line (sometimes a closed polygon). I have a rectangular "view" region. I need to determine as efficiently as possible whether any of the line segments (or polygon borders) pass through the view region.

I can't simply test each point to see if it lies within the view region. It is possible for a segment to pass through the region without any point actually inside the region (ie the line is drawn across the region).Here is an example of what I want to determine (red means the function should return true for the set of points, blue means it should return false, example uses straight lines and rectangles because I am not an artist).

Another condition I want to be able to account for (though the method/function may be a separate one), is to determine not just whether a polygon's border passes through the rectangular region, but whether the region is entirely encompassed by the polygon. The nuance here is that in the situation first described above, if I am only concerned with drawing borders, the method should return false. But in the situation described here, if I need to fill the polygon region then I need the function to return true. I currently do not need to worry about testing "donut" shaped polygons

Here is an example illustrating the nuance (the red rectangle does not have a single vertex or border segment passing through the on-screen region, but it should still be considered on-screen):For the "does any line segment or polygon border pass through or lie on screen?" problem I know I can come up with a solution (albeit perhaps not an efficient one). Even though it is more verbose, the conditions are clear to me. But the second "is polygon region on screen?"PS I have a function for determining line intersection, but it seems like overkill to use it to compare each segment to each side of the on-screen region because the on-screen region is ALWAYS a plain [0, 0, width, height] rectangle.

View 2 Replies

ActionScript 2.0 :: Fullscreen Video But Not Zoom Controls?

Jun 30, 2008

I am creating a full screen FLV player and I am using the

Stage["fullScreenSourceRect"] = new Rectangle();

method. The problem is, when I go to fullscreen my video controls are zoomed in as well making them a bit pixelated. I have seen some players like the one on

[URL]

where they achieve full screen video and still keep the controls the same size.

View 3 Replies

Actionscript 3 :: Zoom Property, For Regular Video Instance?

Mar 7, 2011

I notice that there is a zoom property on the new StageVideo class...is there something similar for the regular video object in Actionscript 3.0?

View 1 Replies

ActionScript 3.0 :: Disable Function - Zoom In And Zoom Out By Clicking Button?

Feb 7, 2012

I want to make a scope wich can zoom in on button click and go back to previous stage (zoom out) also by clicking a button.Now i made it work for zooming in (when i click my button it zooms) but when i want to zoom out everything i tried didn't work .Here is the code:

//button for zoom in
zoom.addEventListener(MouseEvent.CLICK,glassMove);
function glassMove(event:MouseEvent):void{[code]..............

View 1 Replies

ActionScript 2.0 :: Continuous Zoom - Change The Code To Zoom In At The Same Amount?

Jun 7, 2004

i've made a button that zooms into a movie clip on a rollover, but it on moves it a certain amount each time you rollover the button. code below:

on (rollOver){
_root.Mypic._width += 5;
_root.Mypic._height += 5;

}
wot i want it to do is to continue zooming in for as long as the mouse is over the button, is there anyway i can change the code to zoom in at the same amount but do it continuously until the mouse is moved off the button. Also is there anyway that i can set it so that the zoom stops at a certain percentage, i.e. it only zooms in so much and then stops. What i mean is that the user can zoom in but the picture will only zoom in to say 200% of the original size.

View 14 Replies

ActionScript 2.0 :: Telescope-camera - Move Around The Scene And Zoom-in Or Zoom-out?

Dec 14, 2005

I am working on flash application TELESCOPE or Camera. My goal is to move around the scene and zoom-in or zoom-out I found that if I move scene, I have to move registration point, because I always want to zoom in the centre of my ocular. So far application works fine only if I move, zoom-in and than before I move any further, zoom-out! But when I move, zoom-in (not fully), move again and zoom-in again, the second zooming doesn't appear on desirable registration point

View 1 Replies

Actionscript 3 :: Zoom In Zoom Out Loop In Certains Buttons?

Dec 15, 2011

I have this code for my effect to zoom in and zoom out in certains buttons

canada.addEventListener(MouseEvent.MOUSE_OVER, canadaover);
function canadaover(event:MouseEvent):void
{[code]....

the problem is when u reach certain corner of the button it kinda gets into a loop, any ideas how can i fix this?

View 2 Replies

Button In A Different Shape Than Rectangular?

Aug 2, 2009

is it possible to make button in a different shape for example i have a figure that i cut from image on a transparent background an i was wonder if it is possible to make that person in to a button but just that person not the transparent background.

View 1 Replies

Hide Mouse Only In A Certain Region Of File?

Apr 18, 2010

I really enjoy flashing (I just do it for fun) but I'm very slow (read:dumb) when it comes to scripting.

Currently I want to create a site where in a region (the green textblock) your cursor disappears, gets replaced by an ecliptic mask and instead of the normal textblock, you see another textblock (red in the picture above) with hopefully hilarious changes to the original text with said mask when I'm done. When you move outside of the textblock(picture, whatever) to hit the link at the end of the page, your mousecursor reverts to the one you always have and is not hidden and replaced by the mask anymore.

I got the two textblocks done, it works fine. But for the life of me i don't know how to code that the mouse cursor is ONLY hidden in the region where the text is and not everywhere.

My script looks like this so far:

_root.maskee.setMask(_root.glass.masker);startDrag (glass, true);
Mouse.hide();

View 4 Replies

Actionscript 3 :: Is There An Equivalent To C#'s #region Directive

Apr 11, 2010

Just started coding in AS3 with FlashDevelop and coming from a C# background, I would like to know if there's something equivalent to the #region directive in AS3? The #region directive in C# essentially allows an IDE e.g Visual Studio to collapse or expand a section of code to improve readability. With #region directives, you can split codes in sections e.g constructors, properties, public/private methods to aid others perusing your code.

[Code]...

View 1 Replies

ActionScript 2.0 :: Can't Seem To Define A Certain Region For The ClickTAG

Feb 12, 2010

I'm designing a Flash Ad that requires a specific clickTAG.

ActionScript Code:
//
this.onMouseDown = function() {
var fo:LoadVars = new LoadVars();
fo.send(_root.clickTAG, "_top", "POST");
}

I want to implement user initiated sound, but I can't seem to define a certain region for the clickTAG. Also I'm using AS 2.0 I know the clickTAG won't take me to the proper location, but I uploaded it to my website to test the audio.[URL]I've attached 3 images or you can just go to my website and see it (click the link above).I tried placing an invisible movie clip over the location I want the clickTAG to work and attached the ActionScript to the mc.When I scroll over the audio button it changes, but when I click it, instead of playing the audio it just tries to go to the URL.I also tried using a button, but that didn't work either.

View 0 Replies

ActionScript 2.0 :: Detecting Region According To IP Address

Feb 6, 2006

I have a swf that has a world map divided into 3 regions...ASIA, AMERICAS, EUROPE... I need the appropriate region highlighted according to the users IP. I can use ASP file to detect the IP.
1.My problem is to get the IP from the AS Page to SWF File. &
2.Determine which region does this ID belongs too..

View 5 Replies

Android :: If Its Zoom In Or Zoom Out On Flex / Air TransformGestureEvent

May 13, 2011

Using flex / air 2.6 working on an Android device, I am using a canvas with a TransformGestureEvent for zoom in on a map. The listening of the efect is working ok, but I canīt seem to find the information on wether the user intended zoom in or zoom out (fingers getting closer or getting apart).I expected the intention of the gesture to be identifiable with the offsetX and offsetY properties of the event, as you will do on a swipe gesture event. But I always get 0 for both properties, no matter how I do the gesture in the device.How can I know if the fingers getting closer or getting apart in a gesture zoom event?

View 1 Replies

ActionScript 2.0 :: Zoom In Zoom Out Double Click

Oct 26, 2009

i had a flash file, and the image was dynamically loaded in a movieClip. when i double click the image it will zoom max. and another double click it will retain its best fit.

View 0 Replies

ActionScript 3.0 :: Flash - Invisible Hover Region?

Aug 17, 2010

I need an event to fire when the mouse enters a certain area. There will be two of these areas on each side of an image that will be changing every couple of seconds (so both hover regions will be changing with it). (They will make a button appear to advance or go back an image.)I'm sure there are a few ways to do it, but what is the best way to get this to happen?I could try a mouse listener for the whole thing and test if it's within the coordinates but that seems gross...

View 4 Replies

ActionScript 3.0 :: Hide Intersecting Region Of MovieClip

Oct 27, 2011

So I've been working on a Character class for platformer/ generic side-view style games. The problem is that i might need bits of characters to appear to go through other characters (i.e. char 1 grabs char 2 and runs char 2 through with weapon) the problem with this is that the characters' parts are contained in movieclips to run code on them holding them together and keeping me from having to position them just perfectly every frame in the IDE. it seems I have four choices:

1) Completely reprogram the display list -not practical

2) just hide the area of the movieclip that is intersecting with the other character

3) break apart the characters and merge them into an "interaction manager" movieclip

4) just give up.

I don't have the skills for option 1. Option 3 is ok i guess, but i'd rather try option 2 first. My biggest problem is that i have no idea how i would go about selecting just the intersecting part of the movieclip without reprogramming some part of the display list. If anyone can understand this, please give me something to point me in a direction.

View 1 Replies

ActionScript 3.0 :: Non-Rectangular Buttons With Images?

Feb 11, 2009

is it possible to create a non-square "button" in flash cs4 programmatically using as3?

Using a xml document, i'm trying to be able to retrieve a png file with transparency, and have said transparent area's be not clickable.

Long story short, I'm creating a map with a bunch of clickable areas. These areas are non-rectangular and I need them to not obscure other area's which would be in their rectangle. I need this to be done programmatically since the area's are going to be dynamic as is the data attached to them.

fyi: I have a fairly good grasp of OOP, so don't be afraid to post up complex instructions.

View 8 Replies

ActionScript 3.0 :: Fit Bitmap To Non Rectangular MovieClip?

Nov 27, 2009

I'm loading bitmaps dynamically using AS3 and I'd like to fit/tile them within a movieclip. (like a texture but in 2D)

However, my movieclip is not rectangular and everything I tried resulted in the texture getting out of the boundaries of my movieclip and being displayed as a big rectangle.

View 5 Replies

ActionScript 2.0 :: Using A Non Rectangular Drag Boundary?

Jan 17, 2007

When you call startDrag on a Sprite/MovieClip/whatever, you can specify a rectangle which the object in question will stay within.

Eg... startDrag(false, rect1); where rect1 is of type :Rectangle

how you would go about constraining the dragging to an arbitrary shape, say a triangle or a circle rather than a rectangle?

I figure I could just have a Timer calling a function to check the whole time but that doesn't seem particularly nice.

View 1 Replies

ActionScript 2.0 :: Capture A Region Of The Image With A Mouse Click?

Feb 7, 2012

i have an image, on that image is a box moving with the mouse, i need to pretty much capture a region of the image with a mouse click - kinda like a snapshot.

View 9 Replies

ActionScript 3.0 :: Find A Qualified Flash Developer In My Region?

Apr 14, 2009

My organization is looking for someone with heavy Flash/AS experience for an upcoming project. How do I go about finding people with the right qualifications?

View 2 Replies

ActionScript 2.0 :: Loading Html Window Into Movieclip Region?

Sep 17, 2009

if it is possible to load basic html web pages (like text) into a movie clip, or at least use actionscript to set the bounding box of the new window to have the same border region as the original movie clip (such as 600x400 pix at x+100, y+150, for example).

Alternatively, is there a method in which I could load several large scale text files into a region of a movie clip, without having to create endless .as files filled with thousands of

+ "
" +blah+" "+blah+" "+blah+" "+blah+" "+blah+" "+blah+" "+ "
" +...

View 2 Replies

ActionScript 3.0 :: GetColorBoundsRect That Can Only Search In Specific Region Of The Specified Location

Jul 30, 2011

Well, I am working on motion detection in AS3.

I already understand how it works, now in this swf what happen is there are filters added to the video(output) to make the motions color white. I will put the files here.

The swf is inside the bin folder. (this is made by soulwire) Here is his site/blog

[URL]

I am trying to mod it to improve it. Well you can study code if you want to

But what I want to do with getColorBoundsRect is:

- Having only one source to detect the color "WHITE". But having multiple "getColorBoundsRect" detecting white on that ONE source but on DIFFERENT regions.

Lets say this M1(colorboundsrect) will only detect the first part of the source) and M2 will be detecting on another region of SAME source.


1 source, but multiple getColorBoundsRect on different regions of that 1 source

View 0 Replies

Actionscript 2.0 :: Letting The User Capture A Region Within The Stage?

Mar 2, 2009

what I'm trying to do is allow the user to pick a section of the stage, click, and have the region defined be copied and show up on the other side of the stage. It may be better explained to think of it like a camera game. The player has cross hairs, can move the square (which tracks the mouse) around the stage, and click to capture that square's pixel information, store it to a new movieclip and display it on another area of the stage.

I've found many resources online about capturing BitmapData, including capturing from embedded FLV videos, but I haven't seem to be able to find anyone who has created something like this which captures from a moving region. However, I have seen it done before in a game that is no longer online from PBSkids.org.

Here is what I have so far. Right now, when I click the movieclip loads all white pixel data and I'm not sure why.

[flash=]import flash.display.BitmapData;
import flash.geom.Rectangle;
import flash.geom.Point;
stop();

[Code].....

View 1 Replies

ActionScript 3.0 :: Memory - Use Copypixel To Copy A Region From This Tile Map

Oct 25, 2009

I am going to start using copypixel and I wonder if I am understanding the concept well. I am having doubts about memory use. This is my question: If I have an external image (tile map) I loaded , each time I use copypixel to copy a region from this tile map, I am using additional memory or only the map is located in memory? In my application I need to copy a bitmap region from a tile map to a variable (var 1) and then copy another region from this var 1 to a second one (var 2). My concern is to increase the use of memory.

View 5 Replies

ActionScript 3.0 :: Change Shape Of This Rectangular Bounding Box?

Feb 18, 2010

I have a movie clip which contains a circular image, and by default Flash CS4 gives it a rectangular bounding box. This is a problem however because I am using this movie clip as a button, so the rollover area includes the entire rectangular bounding box and not just the circular image. How can I change the shape of this rectangular bounding box?

View 2 Replies

ActionScript 1/2 :: HitTest For Rectangular MC Over Irregular Shape

Jan 15, 2010

In my app, a user must drag and release a rectangular mc object (rectx) over an irregular shape within another mc object (irregx). There are 13 rect/irreg pairs. Each obj shares an AS2 file that checks whether rectx is over irregx, and proceeds _only_ if the check is true. The script uses hitTest, on mouse release, to grab the number (x) of the rectx being dragged and checks whether it's over irregx. Right now, the check comes back true when rectx is _anywhere_ inside irregx's bounding box whether it's over the actual image or not.

I've noticed that, when the (unpressed) mouse rolls over any irregx, it's oblivious to irregx's rectangular bounding box. It only reacts when it reaches the edge of the irregular shape inside, toggling from arrow to hand at the image edges. Since the mouse knows where the irregx image boundary is, is there a simple way to tap the mouse's 'eyesight' to verify whether rectx is over the correct irregx shape (meaning not just within the bounding box, within the shape inside it)? This can't be that hard.

View 6 Replies

Flex :: Crop Image Using A Non-rectangular Shape?

Oct 30, 2009

I've been following this tutorial to crop images in flex: [URL]

At the heart of its cropping is using a method called "copyPixels". However, this method takes as one of its arguments a rectangular shape for its crop region. Are there other strategies I can use to crop it not using a rectangle.

I am going after letting the user specify the region that should be cropped using a series of points.

View 1 Replies

ActionScript 3.0 :: Getting The Average Pixel Value Of The Rectangular Area Behind A Mc?

Nov 28, 2009

I have a vector movie-clip of a cat. Behind it, there is a picture of a park. The picture of the park takes up the entire stage, but the cat is only 32x16. How could I use BitmapData to sample all pixels (of everything, not just the park) within the cat's bounding box (but not including the cat itself in the samples (so like the cat is invisible); also 4 pixels wider in each direction, so it would effectively be 40x24) and then return the RGB average (in hexidecimal) so that I can set a masked transparent mc in front of the cat to that value?

Basically, so it looks like the color of the cat's surroundings affect its tint, to crudely simulate global illumination in 2d.

View 1 Replies







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