ActionScript 3.0 :: Zoom/move An Image, Which One Should Choose?

Dec 4, 2009

I want to zoom/move an image.

I found there are many ways to do that:

1. to use an Image control , change the x, y, widith,height . Or to call move method.

2. to use zoom/move effect.

3. to create a custom control, using BitmapData and apply the specific metrix.

how to use these methods and what's the difference.

View 1 Replies


Similar Posts:


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 2.0 :: Get The Move And Zoom To Be Smooth So The Users Can See It Move Across The Screen Then Gradually Get Bigger?

Apr 11, 2004

tutorial where when you click on a movie clip it moves to a certain location on the page and then zoom in and makes it a certain size. Also i want it to move back to its original location if you click it again.I want the move and zoom to be smooth so the users can see it move across the screen then gradually get bigger.

View 5 Replies

ActionScript 2.0 :: Choose A Quote To Display And Move The Quotes List To A Text File?

Sep 14, 2006

I am using this random code below to choose a quote to display and I want to move the quotes list to a text file, can point me in the right direction I cant seem to get it to work.

Code:

quotes = [Fish are the last to recognize water.","I am my brains publisher.", "Every tool carries with it the spirit by which it has been created.","Curiosity is the mother of intelligence.","Thinking is drawing in your head.","A person without imagination is like a teabag without water.","Realism is a corruption of reality.","Its always better to be looked over than to be noverlooked.","The hardest thing to see is what is in front of your eyes.","The soul has no secrets that conduct does not reveal.","Creativity is the defeat of habit by originality.","Those who cannot remember the past are condemned to repeat it.","If you want to get lucky... it pays to get ready" ,"Realism is the corruption of reality","I'd give my right arm to be ambidextrous.","Music is noise submitted to order by wisdom.","God...invented the giraffe,the elephant,the cat.He has no real style.He just goes on inventing things.","The person you love is 72.8% water."]

qNum = Math.floor(riddles.length*Math.random());
partThree = quotes[qNum];
mainTxt = """+partThree+""";

View 5 Replies

ActionScript 3.0 :: Application Build - Choose And Apply Background Image

Nov 3, 2009

I am making a basic app but am not sure where to start. This is what I want to accomplish in 3 steps:

1. The user has an option to choose 1 of 6 images for the background.
2. The user uploads an image that meets requirements
3. The uploaded image is skewed/scaled and placed on top of the background image in the appropriate place.

I am trying to get this project done asap. There is a flow chart attached.

View 5 Replies

ActionScript 2.0 :: Move Zoom Slider Remotely

Jul 15, 2010

I have a zoom slider, code is in red. I have buttons on stage (site39_mc). The zoom slider can be moved manually, that works fine. I need for site39_mc to move slider to 100% scale, no matter where it is currently located. The zoom slider goes from 50% to 200%.Trying to use the code below I get an error._root.slide_mc.onClipEvent(load){ The error is asking for a field name after the "." I keep looking at it, and this is proper reference. URL...This is the site where I am trying to use this code. To see what I mean, click on a gold polygon on map. The map will snap to 100% and center on polygon. But the zoom slider stays at 75% til you manually move the slider.[code]

View 2 Replies

ActionScript 2.0 :: Move Zoom Slider Remotely?

Nov 19, 2009

I have a zoom slider, code is in red. I have buttons on stage (site39_mc). The zoom slider can be moved manually, that works fine. I need for site39_mc to move slider to 100% scale, no matter where it is currently located. The zoom slider goes from 50% to 200%.Trying to use the code below I get an error._root.slide_mc.onClipEvent(load){ The error is asking for a field name after the "." I keep looking at it, and this is proper reference. [URL]This is the site where I am trying to use this code. To see what I mean, click on a gold polygon on map. The map will snap to 100% and center on polygon. But the zoom slider stays at 75% til you manually move the slider.

Code:

stopAllMCs = function(){
map_mc.site39_mc.gotoAndStop(1);
map_mc.site40_mc.gotoAndStop(1);
};

[code]....

View 2 Replies

ActionScript 2.0 :: Scale Too Say 150% And Move To A Different X Y Position And Zoom

Apr 19, 2004

how i could create a function to do the following:- I have a mc and when you click on it i want it to scale too say 150% and move to a different x y position, then when you click on it again i want it to go back to its original size and position.

View 4 Replies

ActionScript 2.0 :: Setup The Zoom And Move For The Site?

Jan 12, 2004

[URL] setup the zoom and move for their site. When I try to do it, everything [eventually] ends up in the right spot, but it seems to "start" the scale at the middle and then after its completed the zoom, it moves the x and y values. I can't seem to get them to do both at the same time.

View 8 Replies

ActionScript 3.0 :: Scale All MCs & Move Closer Together As Zoom Effect?

Sep 6, 2011

i'm making a game where a ship moves from a random starting position to a target but I want to be able to zoom in & out (its a plan view) so would therefore need some way of scaling all MCs on stage equally & move them closer together when zooming out.. how I might do this? I thought maybe putting everything within 1 MC possibly?

View 1 Replies

ActionScript 2.0 :: Move Icon1 To Center Of Stage After Zoom Map?

Jun 20, 2007

I have a point in MC (map/map1/icon1), I want to move icon1 to center of stage after zoom map.

View 4 Replies

ActionScript 2.0 :: Code To Move Zoom Slider, Remotely?

Jul 10, 2010

I have zoom code here

Code:
onClipEvent(load){
scrollMin = _root.range._x+_root.range._width // minimum _x value possiible for scrollbar
scrollMax = _root.range._x // maximum _x value possiible for scrollbar

[code]....

Do I have to copy and paste all of the slider code into the frame where my btns are? _root.srchMC.dataMC.site1_btn.onPress...

View 2 Replies

ActionScript 3.0 :: Zoom And Move The Viewing Area Around On The Site Layout?

Mar 13, 2009

I'm trying to create a site where all of its sections are laid out side by side and the user can zoom into each section to check it out, just like this site: [URL]I have the actionscript that allows the user move the viewing area around, but im not sure how to incorporate the zooming into it. What I need might be something different entirely. Here's that:

on (release) {
_root.motionx = -950;
_root.motiony = -700.0;
_root.motionScale = 100;
}

View 2 Replies

ActionScript 2.0 :: Tween Class - Move To Screen Area And Zoom Nav

Feb 11, 2006

I'm trying to achieve a simplified version of the move to screen area and zoom nav similar to: [URL]. I've read and completed the macromedia tweening tutorials [URL] and gained overview of tween class etc., So, I created an example (credit :sophistikat) using the macromedia tween class:

Code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
myBtn.onRelease = function () {
//first move to center in one second witih no delay
main_mc.tween("_x", 50, 1, "easeinoutElastic");
main_mc.tween("_y", 50, 1, "easeinoutElastic");
// and in 2 seconds scale closer
main_mc.tween("_xscale", 150, 1, "easeinoutElastic", 2, true);
main_mc.tween("_yscale", 150, 1, "easeinoutElastic", 2, true);
}

The script in layer 1, the bt in layer 2 and the main_mc in layer 3 - all correctly 'instanced'. But not working - the main_mc isn't moving and then zooming in when btn is clicked.

View 3 Replies

Zoom In And Zoom Out Of Image?

Aug 11, 2011

i want to zoom in on an image by clicking one particular region and zoom out by clicking again. how can i achieve this.

View 6 Replies

ActionScript 2.0 :: Pan And Zoom An Image ?

May 27, 2003

i've created a vector-based map of Spain, and i'd like to be able to zoom into certain areas of it.the map is positioned behind a mask, so only a certain portion of it is visible.

i've also created nine buttons, each of which should reposition and scale the map according to a set of predetermined target parameters (manipuilating the _x, _y, _xscale, _yscale properties). i can get the map to pan to its new location so long as i don't zoom in (scale) as well. whenever i have to pan AND scale, the x,y coordinates end up grossly off-mark. do i need to first scale and then pan? or vice versa? anyone know of any tutorials on this topic?

View 3 Replies

Flash - Zoom Out On Image?

Mar 22, 2011

I'm looking to zoom in on an image: Example: Picture of a church. Zoom in as far as possible on the church tower.Then it needs to slowly zoom out, so you have time to guess which church it could be. Example: Slowly zooms out, revealing more and more of the picture.

View 2 Replies

ActionScript 3.0 :: Zoom In On An Image

Dec 2, 2009

I'm trying to achieve what i thought was a fairly simple effect in a slide show situation, but it's proving to be elusive. I would like to slowly zoom in on an image, giving the illusion of movement or animation. An example of what I'm trying to do is on this site's main slide show. [URL] This looks pretty simple and i suspect they are using the EaseIn transition, but when I try to use that, it brings the image in from nothing to full. I need to start from large size and then zoom in.

View 3 Replies

IDE :: Flash Image Pan & Zoom?

Jul 11, 2011

i need like this [URL]

View 2 Replies

ActionScript 1/2 :: Smooth Zoom In And Out Of An Image?

Aug 10, 2010

I would like to zoom in and out of images like this

[URL]
 
Actionscript 1 and or 3?

View 1 Replies

ActionScript 3.0 :: Zoom Into Image On Click?

Oct 27, 2011

I have an image which I have converted to a movieclip.  I have added a click event to it, and when clicked, I am trying to zoom into the image at the point it was clicked.  I have tried following some code but ended up in a mess.

var scaleFactor:Number = 0.8;
var minScale:Number = 0.25;
var maxScale:Number = 2.0;
men.addEventListener(MouseEvent.CLICK, menOver);

[Code]....

At the moment, it doesnt zoom in automatically (have to keep clicking).  Also, it currently zooms out. 
 
Really, the effect I am after is like a camera pan and zoom.

View 2 Replies

Flash :: Zoom In / Out An Jpg Image With Actionscript?

Jul 27, 2010

Is that kind of job easy to do in flash?

View 1 Replies

Actionscript 3 :: Pan&Zoom Over A Captured Image With Cam?

Mar 26, 2012

I have an issue with zooming gesture in iOS over AIR. Here is the code (an excerpt):

package
{
import flash.display.DisplayObject;
import flash.display.Sprite;

[code]....

Where, the app, basically captures an image using the iphone's device and then should scales (zoom), but doesn't...

View 1 Replies

ActionScript 3.0 :: Image Zoom Then Pan Constrain

Jul 30, 2009

I have some script that loads an external image into the UILoader that also has a mask created based on loaded image width and height, which also centers on stage. That works great. On user click somewhere within the loaded image, the image then scales from that mouse position out.
i.e.: if I click top left corner image scales from that point out, center, left, right... etc. using the tween. That works great.

On mouse move image then pans reverse to mouse position. i.e.: I move mouse left image pans right, move mouse up image pans down, top left corner image pans down bot right...etc. Also using tween. This is where it becomes tricky. The image does pan, however it does not pan completely to left, right, up, down, diagonally and so forth. once mouse reaches boarder of mask the image pan stops, unless mouse is way outside boarder.

Then that creates another problem where the image now pans so much that it goes past the boarder and almost out of sight. Ideally when mouse moves to masked boarder, panned image should be at its image boarder then stop. Constrained within the masked boarders.

Code:
var myImagePanTween;
function moveImageTween(e:TweenEvent = null):void {
var CurrentMouseX=mouseX;
var CurrentMouseY=mouseY;
[Code] .....

I think there should be away to include a constraint within the Tween, as well calculate the image size so that when mouse reaches boarder the image should be panned to its width/height, up, down, corners ect.. within the mask. Make sense?

View 1 Replies

ActionScript 2.0 :: How To Zoom In An Image The Same Size

Jan 31, 2003

how to zoom in an image the same size and move.... for example, [URL] on the site menu.

View 4 Replies

ActionScript 2.0 :: Zoom In Part Of An Image?

Jun 18, 2008

How do i zoom in to a part of an image?? At the moment i have this

[Code].....

View 8 Replies

ActionScript 2.0 :: Create An Image Zoom And Pan?

Apr 2, 2009

I have to create an image zoom and pan. The problem is that I have to set some boundaries for my pan to stop when the image is finished. Here is my source code.

[URL]

View 3 Replies

ActionScript 2.0 :: Xml Load Image Zoom?

Nov 24, 2010

I have been trying to set the loaded image x and y to -180 in order to centre xml loaded images(they're 360 x 360). The reason for this is to add a zoom effect but i can't seem to apply this zoom effect to the centre of the loaded image(s). It scales to 0,0. I need to either set 0,0 to be the centre of the image or scale to 180,180. I'm currently testing this on 1 of 16 images. Hope this makes sense.

PHP Code:
var thumbsXML:XMLXML();thumbsXML.ignoreWhitetrue;thumbsXML.onLoadunction(success:Boolean) { if (!success) trace("XML Data not Found or Error on

[code].....

View 2 Replies

ActionScript 3.0 :: Image Zoom Mouse (stage 400 W 400 H) (image 2000 W 2000 H)?

May 10, 2010

mouse (stage 400 w 400 h) (image 2000 w 2000 h) How do I zoom in my travels.

View 2 Replies

ActionScript 2.0 :: Zoom And Pan Image Viewer - Alignment In MC?

Dec 1, 2009

I am recently making a website in flash cs3 using flash actionscript 2. I have currently put a zoom&pan image viewer into one of the website pages to use as a map viewer. However once pasted into a empty movie clip it seems to be displaying a whole lot of white space once fully zoomed out and the image being only around a 1/4 of the assigned area. I am thinking its something to do with the alignment. I have also attached the swf file, for quick view. The image can be found if you enter corporate in the first window then venue in the side menu.
Link > [URL]
The movieclip is labelled "map".

View 1 Replies







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