ActionScript 2.0 :: Make A Scope Zoom On Keypress?

Apr 4, 2009

I've been working on a sniper game which is coming out terrific. But to make it better, I need to get this Zoom to work. What I'm trying to do is whenever SPACE is held down it will seem as I am zooming into the background, and whenever its released it will go back to its original zoom.

I've tried _x & _y scaling but I dont know what I'm doing wrong.

I have my scope's instance name as "scope", and the background as "bg1".

View 1 Replies


Similar Posts:


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 :: Loadvar And Scope Variable - Array Seems Set To Null Or Out Of Scope

Jul 1, 2004

I add this actionscript code on the first frame. Variables are loaded but. The question is below the code.

[Code]...

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

ActionScript 3.0 :: Top-level Scope From Static Scope Conundrum

Apr 2, 2010

I have a Debug class I've written, and I'd like to include a static trace() method in there, unfortunately I have no idea how to then access global / top level trace as effectively I've blocked it with the local static scope.[code]

View 4 Replies

ActionScript 3.0 :: Make Something Trigger Once On Keypress?

Nov 27, 2009

the CTRL button in this game is doing two things:if movieclip is visible, then turn it off.if movieclip is not visible, then turn it on.however, if i hold the CTRL button pressed, it will trigger over and over, turning the movieclip on and off on and off on and off and so on.how should i fix this problem?[URL]

View 3 Replies

ActionScript 3.0 :: Make A Button React To Keypress?

Oct 17, 2011

I've got this piece of code which is basically a start button that reacts to being clicked on. I'd like to change that into starting the function by pressing Enter on the keyboard. I'm having trouble figuring it out since the code is already in a function. How do I make it react to keypresses?

[Code]...

View 1 Replies

ActionScript 2.0 :: Make A Keypress Sctipt For Example When Key A Is Down Trace

Jul 12, 2004

i have mx 2004 and would like to know how to make a keypress sctipt for example when key a is down trace ("whatever")

View 1 Replies

ActionScript 2.0 :: Make Function Calls From Within The OnMotionFinished Scope?

Oct 19, 2006

Can I make function calls from within the onMotionFinished scope? See example belowe. Also tried by using the Delegate class...

var a_handler:Object = new Tween(params);
a_handler.onMotionFinished = function(){
test();
}
var test:Function = function():Void {
trace("hello");
}

View 1 Replies

ActionScript 3.0 :: Make A Map With Pan And Zoom?

Mar 14, 2010

I need to make a map with pan and zoom in as3 . I searched for a long time and haven't found a tutorial or something. All I have found are a few examples in as 2, like :

[URL]

View 5 Replies

ActionScript 1/2 :: Make Zoom And Pan Img?

Mar 23, 2010

am just try to make zoom and pan img so unfortunately i can't complete it [URL]

View 1 Replies

Make Wrapped Text Zoom In?

Jul 21, 2010

I have wrapped text in a box I'd like to do a "zoom-in" effect on.  It is 3 lines long in the box.  I don't want to make the font size bigger and bigger because that will change the way it wraps.  Do I have to "break apart" the layer until it's outlined?  I'd rather leave the text editable.

View 3 Replies

ActionScript 3.0 :: How To Make A Zoom Interface Like This

Jan 16, 2012

I am new to actionscript 3.0 and I want to make an application similar to the picture above where it has features (pointed by arrows) like those navigation thumbnail and the zoom scroll

View 4 Replies

ActionScript 3.0 :: Make A Map To Zoom Around The Center Of The Stage?

Jan 21, 2009

up/down/right/left) except for zooming around the center of thestage. Let me explain, the user can drag the map in any directionany number of times but whenever they zoom in/out whichever pointof the map is in the center of the viewable area should always stayin the center.So for example I have several zones in my map, like Zone 1,Zone 2, Zone 3, etc. Let's say the user wanted to examine Zone 1more closely so they move the map in such a way that Zone1 nowappears in the center of the viewable area. I want when they zoomin/out Zone 1 to always remain in the center.

So I have the Map as a movie clip symbol and as a buttonsymbol. In Scene 1 of my Flash document I've inserted the Map movieclip and inside of the movie clip I have the Map button. In Frame 1of the layer where my map is I have the code for moving and zoomingin/out. Here is what it looks like below.

View 1 Replies

Make An Image Zoom In When Mouse Rollsover?

Aug 19, 2009

I have 9 images on my stage laid out like a photo collage. Would like to create a user action that when their mouse rollsover an image that image zooms in, when the user moves mouse to next image, it does the same for each 9 images. Is this possible? As mentioned I am a Big Newbie to Flash, only have taken one online class,

View 11 Replies

ActionScript 3.0 :: Pan And Zoom Movieclip - Make A Bounding

May 17, 2010

I'm made a map and I want to zoom in and out. The second thing I want is to make a bounding around my MovieClip.

[Code]...

This is my code so far and I can zoom in and out but I can keep going and going. I want that he stops after 200% or something and when he is 100% you cant zoom out more. Also I want a bounding so I cant move the MovieClip outside his own stage height and width.

View 9 Replies

ActionScript 2.0 :: [FMX] Make A Movie Clip Zoom In And Out?

Dec 18, 2002

can someone put some code together to let me be able to make a movie clip zoom in and out at random intervals

View 1 Replies

ActionScript 3.0 :: Make A Movie Clip Zoom In On Play?

Nov 21, 2010

I simply have a rectangle vector image of a landscape and I want it to zoom in when I play it...and I guess stop at a certain point. Not a clicking function or roll over, just when I start up my swf file or go to that specific scene I want it start zooming (gradually, not fast either)

View 6 Replies

Professional :: Make The Camera Zoom As An Animation Plays?

Aug 10, 2011

make the camera zoom as an animation plays from an entire body shot to a closeup of the head?

View 3 Replies

Actionscript 3 :: Make A Zoom In And Out Of Movieclip When Certain Event Is Activated

Mar 30, 2012

i'm trying to make a zoom in and out of a movieclip when certain event is activated, anyone knows a way of doing this? i tried with mc.scaleX++ or mc.scaleY++ (i tried with mc.scaleX+10000) but nothing happened.[code]

View 1 Replies

ActionScript 2.0 :: Elastic Zoom - Make The Motion More Natural?

May 9, 2004

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

View 2 Replies

ActionScript 3.0 :: Modifying Click And Zoom 3D Carousel - Make It Rotate

Jul 29, 2009

I trying to make a modification to Lee Brimelow's "Click and Zoom 3D Carousel". What I want to do is make it rotate about every three seconds to the next image (without any mouse interaction). I tried using the timer but didn't really get all that close.

Here is Lee's original code:
Code:
package {
import com.gskinner.motion.GTween;
import com.leebrimelow.utils.Math2;
import com.theflashblog.fp10.SimpleZSorter;
import fl.motion.easing.Exponential;
import flash.display.Loader;
[Code] .....

View 8 Replies

ActionScript 2.0 :: Transition Between The Zoom Sizes To Make A Fluid Motion?

Dec 7, 2007

I have a 2 buttons and the mouse wheel enabled with zoom functionality. Generally this is the AS:

[code]...

this works fine and dandy, but its not so smooth...is there a way to transition between the zoom sizes to make a fluid motion or maybe with an easing effect.can this be done with actionscript or is this more of a shape tween thing?

View 2 Replies

ActionScript 3.0 :: Make An Image Gallery With Pan And Zoom Effect On Mouse Over

Jun 6, 2010

i am trying to make an image gallery with pan and zoom effect on mouse over ... Now what i want is exactly like the below website .. [URL] & see the website. out here have a look and tell me what script they had used here if u want i can pay for the script

View 12 Replies

ActionScript 3.0 :: Make A Zoom Method For Entire Flash Movie?

May 19, 2011

I'm in the process of making complicated multiplayer games and i want to make a 'zoom in-scroller' feature (simply to give the illusion of a bigger world where i can put more stuff in it). What I need is the equivilent of launching your .swf, right clicking on the stage, and "zoom in" (but obviously in actionscript code).

I've been searching online for the solution and all i can find is a bunch of noobs describing how to zoom in on a movieclip, but they arent really zooming at all, they're just blowing up and shrinking the individual movieclips.

The biggest problem with this of course is when i add objects to the stage, thier (x, y) spawn dosent scale with the stage.scaleX, so the placement spirals the game out of control.Anyways, my stage is a 1200x by 600y dimension; the stage has player movieclip (var player1) with assosiated move functions (W A S D controls). I need a zoomed in interface centered on the moving player (lets just say a 600x by 300y box). And finally this zoom-in should not affect anything going on in the original 1200x600 stage, such as spawn locations, collision detections and so on.

View 5 Replies

Actionscript :: Zoom Effect And Make A Component Visible At The Same Time Flex 3?

Feb 10, 2011

I want to introduce a canvas component by zooming from a height & width of 0.0 to 1.0. I want the component to be invisible until the zoom begins and then for it to be visible when it begins zooming.

However, if I bind the zoom effect to a showEffect trigger on the component and then make the component visible, it will first show the component at its regular size for a split second before it begins the zoom effect. If I combine the zoom effect and setting the component visible together in a parallel, it will also flash the component at its regular size for a split second before the zoom. If I make the component visible when the zoom effect starts through its effectStart event, it still does it. Does anyone know how to make it visible only when the zoom effect begins so that it doesn't flash the component at its regular size for a split second before the zoom effect?

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

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







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