ActionScript 2.0 :: Zoom From Middle Of Selected Screen?

Mar 2, 2010

I have a map that uses a control to zoom in on it, but when it zooms it always uses the registration point to scale the image(map). This registration point is always located at the center of the image(map). There are 4 stages of zoom and each one then re-zooms at the center of the image(map).

I need this to zoom relative to the center of the users viewport area.

I am not able to attach the file here due to it being over 500K, it is 1.54MB, so have uploaded the CS3/AS2 file here: [URL]

View 0 Replies


Similar Posts:


ActionScript 2.0 :: Navigational Menu - Selected Button In Middle Of Screen

Apr 23, 2005

I'm trying to create a navigational menu, What I have it 7 buttons on the top of the screen. When a button is selected it moves to the middle of the screen and all the other buttons slide over one, filling the empty space. If a second button is clicked the current one in the middle of the screen moves to the end of the line (position 7).

View 2 Replies

ActionScript 2.0 :: Make A Box Come From Off Screen Then Bounce Back And Forth And Then Come Settled Down In The Middle Of The Screen?

Oct 24, 2002

I want to make a box come from off screen then bounce back and forth and then come settled down in the middle of the screen. It can be random bouning intervels or a set amount.

View 6 Replies

Actionscript 3 :: Set Object In Middle Of The Screen In Flash ?

Sep 6, 2011

I am new in flash developer. I want to set my frame at the center of the screen interdependent of screen size. but we are working on full screen view (means stage.scaleMode = StageScaleMode.EXACT_FIT).Logically I want one background image at back side, which cover all part of the screen, and on that background image I want to set my frame image at center of screen with fix size of (1000 X 750 px).

View 1 Replies

Flex4 :: Placing Flex-component In Middle Of Screen

Sep 6, 2011

When using BasicLayout (i.e. absolute positioning) - what is the best approach to place a Flex component in the center of the application?In the test case below I'm using x="{width/2}" but this gives me at least 2 problems:How do I account for the component dimensions (the ProgressBar in the test case)?Is the binding {width/2} a good idea to use? Wouldn't it send unnecessary DATA_CHANGE events in some cases?And finally I wonder, how this all applies to full screen applications using StageScaleMode.SHOW_ALL - because currently my application is aligned to the top-left in the full screen mode and there is a white dead zone on the right of it. (Which is at least a change from pure Flash/AS3 behaviour, where the full screen content is displayed in the center of the screen and 2 dead zones on the left and right).[code]

View 2 Replies

Actionscript 2.0 :: Flash Full Screen Align Middle?

Dec 30, 2008

trying to get my SWF to fullscreen a movie clip and center it on the screen. I have been working with this for a few days now and havent gotten very far. Here is the code I am working with

Code: Select allgoFullScreen = function(){
if(Stage["displayState"] == "normal"){
_root.MPVideo._x = 0;

[code]....

View 2 Replies

Button Open Menu - Shape Pops Up In The Middle Of The Screen

Jul 29, 2009

this is hard to explain, but I can't find out how to make it so when I press a button, a menu pops up in the middle. How would this work for an online game? Since I don't want it to go to the next frame, how could this be done? when I push the button, a shape pops up in the middle of the screen.

View 4 Replies

Make An Animation Where A Dice Roles From The Left Of Screen Towards The Middle

May 8, 2010

1. I would like to make an animation where a dice roles from the left of screen towards the middle. Bit like this: I am thinking an animation, then put it on a path (not sure how to do this, but I know it can be done.) I have heard that swift3d could help me here, if so, give me a heads up. I could also make it an animation and make it bounce on the spot and use the inflash camera and draw back the distance to seem as if it is moving forward. Basically the main problem is how do I make the animation of the cube?

View 6 Replies

ActionScript 3.0 :: Fluid Positioning - Align MovieClip To Middle Of Screen

Mar 1, 2009

I'm new to AS 3.0 and I don't get this fluid thing fully. Everything works fine when I want my movieclip to align to the middle of the screen but when I try to make a button (or any movieclip) always align to bottom right I can't figure out how. Here's my AS, how do I make the "ball_mc" align bottom left?

import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
stage.addEventListener(Event.RESIZE, resizeListener);
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
[Code] .....

Here's an example of how I want my movieclip to get placed, (like the "fullscreen" button): [URL]

View 2 Replies

ActionScript 2.0 :: Zoom In Section Of Screen

Feb 23, 2009

Does anyone know a way in code to zoom in a section of the screen like looking through a scope?i want to add this to my game:URL...

View 1 Replies

IDE :: Zoom In And Out On A Section Of The Screen With A Button?

Aug 24, 2009

I made an animation and I would like to zoom in and out on a section of the screen with a button. Or a make a magnifying glass effect in a certen area. Is there a way I can do this with code or do I have to re-animate that part bigger?

View 1 Replies

Javascript :: Simulate User Keypress To Zoom Screen?

Jul 18, 2011

Is there any way of simulating a keypress of Ctrl+'+' (to zoom in the page) without any user interference?

Is it possible to do it using Flash?

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

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 1/2 :: SOS: Change Color Of Selected Menu Item Button If Selected

May 19, 2010

I have a menu with many sub menus. I need to change the color of the selected button and then move on to the sub menu. My menu is horizontal and now it's not obvious the path that you follow.

View 2 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

Flex :: Disable Selected Columns In A Datagrid In It For Selected Rows?

Nov 6, 2009

Is there any way to disable a few columns for a particular row in flex datagrid?

I have a datagrid with about 10 or more columns, say for example a few column names are: Item Id, Item Name, Item Status and VerifiedState. Initially I want the column Verified State to be disabled.

Now When the value of the column, Item Status is Review Passed for a particular row, I want the column VerifiedState to be enabled and editable. Is that possible in Flex datagrid.

View 2 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

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 2.0 :: Activate Zoom And Then Zoom In / Out

Apr 14, 2009

I need to have a button to be clicked for the zoom effcet to be activated, then when the mouse hovers over an image it should zoom to 200%. I have 40 images which I'd like to have this effect by.Also when the cursor is over the image is it possible to make the change the cursor to a magnifying glass?

View 1 Replies

ActionScript 2.0 :: Zoom/Pan UI Won't Center On Zoom In?

Jul 8, 2009

I'm developing a full screen zoom/pan UI. Everything is working great, except I can't get it to center on the correct point when zooming in.

You can view what I have here: [URL]

The numbers in the top-left corner are the navigation, and the white boxes represent the individual sections.

I have a large container movieclip that fills the entire page. Inside of that movieclip (site) I have all of my individual section movieclips (section1-section6). I'm also using a dynamic registration point class to dynamically set the registration point of the "site" movieclip to the current selected section, so that the zoom in/out is centered on that section.

When a user clicks on a navigation item, I first reduce the _xscale and _yscale of "site" to 80, when that is complete I move _x and _y to the position of the selected section's movieclip. When that is complete, I set the _xscale and _yscale back to 100. Right now, it is not zooming in centered, so I have a final step where I correct the _x and _y position after zooming back in.

If I don't zoom in/out I can successfully pan the movieclip and center on the correct section. I believe the problem is that I am moving the _x and _y to the position of the "site" movieclip as if it is at 100%, but since it is at 80% it is not moving to the correct position. I tried to fix this by giving the _x and _y coordinates as:

endX = endX / 100 * 80;

Which made it a little better, but still not centered. I have a feeling that there may be a fundamental flaw in my approach to this.

For some reason the forum won't let me attach my .zip, so I posted it online, as well: [URL]

My code below, in case you don't want to download the file:

Code:
tile._alpha = 0;
currentSection = section1;
//** Set Stage **//

[Code]....

View 1 Replies

ActionScript 2.0 :: Several MCs To Zoom In On Mouse Over And Zoom Out

May 9, 2004

How to make several MCs to zoom in on mouse over and zoom out to it�s original scale on mouse out??? all this with actionscript and with some ease (elasticity) to make the motion more natural?

View 2 Replies

ActionScript 2.0 :: Zoom Activation And The Zoom In / Out?

Apr 14, 2009

I need to have a button to be clicked for the zoom effcet to be activated, then when the mouse hovers over an image it should zoom to 200%. I have 40 images which I'd like to have this effect by.Also when the cursor is over the image is it possible to make the change the cursor to a magnifying glass?

View 3 Replies

ActionScript 2.0 :: Edit Movie When Right Click The Movie / Wont Show All Things Like 'zoom In' / 'zoom Out'

May 23, 2002

how do you edit a movie so that when you right click the movie...it wont show all the things like "zoom in" or "zoom out"???

View 2 Replies

ActionScript 2.0 :: Make Banner's "zoom In And Zoom Out" On A Movie?

Aug 6, 2003

i have visited a very good flash site..I gotta give credit for their dedication and their work as well. [URL] I wonder, how they put all those animation in a banner with that small size of file ? I mean banner's size is not big at all. My other question is that, how do you make it "zoom in and zoom out" on a movie..Like on those banners. Do they binding all the layers to make it a movie then resize it on the movie or what?

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 3.0 :: Can't Show The Selected Textfield In The TileList Items By Default The TileList Items Are Selected

Feb 1, 2012

I have placed TextFileds inside TileList Compontent. When i try to select the TextField it can't show the selected Textfield in the TileList items by default the TileList items are selected.Finally i need to select the TextFields.
 
Here is my code: 
 
import fl.controls.TileList;    import fl.data.DataProvider;    import flash.display.Sprite;    import flash.events.Event;
function TileListExample() {            var dp:DataProvider = new DataProvider();            var totalEntries:uint = 3;            var i:uint;            for(i=0; i<totalEntries; i++) {                dp.addItem( {  source:getTf(), scaleContent:false}

[code]....

View 5 Replies







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