ActionScript 2.0 :: Zooming Content In And Out - MX2004?

Apr 28, 2005

I'm working on a personal project and I want to use this type of effect on the content. I want the finished product to have one "zoom()" function defined that will be able to be used on whichever "content" clip that is clicked on. Does that make sense?Here's the code I have that I want to "globalize" to reuse on 9 different "content" clips.

Code:
//ATTACHED TO BUTTON MOVIE CLIP
onClipEvent (load) {
_x = 50;
_y = 50;

[code]....

I forgot to mention that I am going to be loading external SWFs for all nine content panels... if that makes a difference in the coding.

View 1 Replies


Similar Posts:


ActionScript 1/2 :: Zooming In And Then Zooming Out In (Without Scaling The Image)?

Feb 27, 2012

Basically I want to know if there is a way to go from a zoomed in version of something, and then seeing the whole image in another frame. (By pressing a button)

Let's say there's a tree, I would bascially like (upon pressing a button which I can do) to zoom out and see the whole scenery. Is there a way I can do this without actually changing the size of the image?

View 2 Replies

Professional :: Animations: Zooming In And Zooming Out?

May 25, 2011

I look at professional animations and notice the camera-like effects they manage to put into these animations. I'm wondering how I can do the same without having to just enlarge or reduce a movieclip across the stage. Is there any way to add a camera view on your animations or do you just have to bear with Flash's basic necessities?

View 1 Replies

IDE :: Convert MX2004 To CS4?

Feb 1, 2009

I have the attached .fla file that was created in MX2004 but I only have CS4 to work with. Is there a way to convert this so I can use it?

View 2 Replies

Zooming To Certain Map Locations?

Oct 27, 2009

how to zoom into(hence zooming the map outward) set locations on a map, yet only those locations. I have a script which will zoom to your mouse location and also if I set the specific x and y, but still zooms when clicking on any other spot.

how do I zoom to only a set location and nothing else within a map/image.

View 38 Replies

Professional :: Zooming In/out On One MC Of Many?

Jan 11, 2010

I'd like to have my viewers mouse over any of the MovieClips on the scene and using the keyup / keydown have only that MC scale up or down.  The scaling should only effect the moused over MC.Here is what I'm using for the scaling on one MC now...
 
var Listener:Object;Listener = new Object();Listener.onKeyDown = function(){    if (Key.isDown(Key.UP))     {                    container._xscale = container._xscale + 10;            container._yscale = container._yscale + 10;    }     if (Key.isDown(Key.DOWN)) {                    container._xscale = container._xscale - 10;            container._yscale = container._yscale - 10;    } };Key.addListener(Listener);

View 2 Replies

ActionScript 2.0 :: Zooming In And Out A Swf Using AS Or Anything

Aug 2, 2002

I was just working on trying to zoom a flash movie using JS but cant seem to get it and it is driving me nuts any of you guys know how I can zoom in and out on a movie using action script.

View 2 Replies

ActionScript 2.0 :: Zooming In And Out?

Feb 22, 2006

I need some help with creating two buttons that zoom in and out of a movieclip.I have seen some tutorials and tried them, but got really confused.My problem is that the movieclip i want zoomed (in & out) is embedded inside another movieclip, so don't know how to refer to it.

also where should i declare the zoom function?? on the movieclip or on the main timeline?? the buttons that control the zoom in and zoom out are on the main timeline.

View 1 Replies

ActionScript 2.0 :: Convert From MX To MX2004?

Jan 10, 2006

I have a piece of code that works fine using flash player 6 and AS2 but soon I as try to use flash player 7 and AS2 it stops working..

This is my code:

Code:
var cgiThing=new loadVars();
cgiThing.onLoad=function(ok){

[Code]....

View 2 Replies

ActionScript 2.0 :: Duplicating MCs (yet Another One) (MX2004)?

Apr 9, 2006

Whenever I make a code to duplicate anything in a reaction to an action, i get the problem of having my initial duplicated mc destroyed upon re-duplicating (you fire bullets and the one shot before the last always disappears and so).The thing is, if you take kirupa's "How to Fire"-tutorial, download the source and run it, the thing works like a charm. However, even if i copy every last single bit of code and content to a new document, the duplication process acts as described above.In addition, here's a quote from the tutorial "How to Fire" [url]

explain how on earth one would get "_level0.bullet" from something the likes of "trace(this._name)", which, of course, returns the instance name. Which would, in the aforementioned tutorial's case, be, in fact, "bullet". Not "_level0.bullet". He states "It's not the instance name"... Well, what the heck is it then? The result of the trace in question varies relying COMPLETELY upon the given instance name. If you write "Bratwurst" as the instance name, you get "Bratwurst" from the trace, as god is my wittness.

Even if i remove EVERYTHING from the code that even COULD, by the user's will, remove the duped mc, the initial problem remains. You can only fire one bullet at any given time, other(s) disappear.It's most propable that there's just something i've missed completely, and end up making myself looking like an ***, but still.For those who want a code, just take a look at the tutorial (the URL above). Everything's basically the same. I would also appreciate if someone were to try what i've described, which is to copy everything from the tutorial .fla and placing the stuff on a fresh document.

View 1 Replies

IDE :: Making The Leap - MX2004 To CS4?

Mar 29, 2010

I've been using MX 2004 pro for a few years now at a fairly superficial level just for website updates/enhancements, little educational things, and little personal animated birthday cards, etc. I have just recently started learning action script, which I'm getting, slowly but surely.

Anyway, my question is: how much different is CS4 from MX 2004? i.e., am I looking at a huge learning curve? I don't mind huge learning curves when I have lots of time on my hands, but I don't. But I would like to keep my software up-to-date, since I just got a new computer with Windows 7 on it.

View 1 Replies

ActionScript 1/2 :: Web Flash Zooming In/out?

May 27, 2009

I am a really new flash beginner, and I am trying to write a site that can do this scaling in/out effect (Not an image) after when a new file is loaded into the page. I've googled and searched everywhere and couldn't find a possible solution to this.You can see the site, there is a zoom in and moving effect after a button/new page is loaded.
 
Here are the scaling, I am talking about:http:[url]....

View 5 Replies

ActionScript 1/2 :: Zooming To Mc And Not To Stage?

Oct 22, 2009

I had found a script which zooms to your mouse position, but is there a way to adapt this so it only zooms in on the particular mc and not the mouse position?

[Code]....

View 1 Replies

ActionScript 1/2 :: Zooming To Certain X/y Coordinates?

Oct 25, 2009

I've been racking my brain for the last week, and Im trying to use a map to zoom into certain city locations on the map. I believe each city locatio needs to be its own mc on the map, but don't know if I need to zoom into the coordinates of that mc? Here's what I have so far which zooms in on the appropritea x/y coordinates. Does anyone have any advice as how to change this or some other way to zoom into certain locations on a a map?

[Code]....

View 1 Replies

ActionScript 2.0 :: Web Flash Zooming In/out?

May 27, 2009

I am a really new flash beginner, and I am trying to write a site that can do this scaling in/out effect (not on image) after when a new page is loaded into the page.You can see the site, there is a zoom in and moving effect after a button/new page is loaded.

View 2 Replies

IDE :: Setting Boundaries On Zooming Map?

Jun 8, 2009

I am attempting to create a map that has the ability to zoom in and out as well as a click and drag feature.What I need help on is setting boundaries for the map. I can set them for the map when it is zoomed out, but they need to change as the map zooms in. I've been searching lots of forums lately to see if anyone can help, but no luck yet...

View 1 Replies

ActionScript 2.0 :: Zooming In And Out On An Image?

Jul 22, 2004

Is there a way to that users can zoom in and out of an image and even drag/scroll around if the image is larger than the viewing window.I looking for a way to creativly display my portfolio in a limited area.

View 2 Replies

IDE :: Bitmap Resolution & Zooming OUT

May 10, 2011

I am working with some images in my flash file which I would like to have at a high resolution (approx 1280X1024 px or even higher) so that they look good when they take up a full screen, and also when I zoom IN on them.

However, when I import them into flash at this size, they look TERRIBLE when zoomed OUT (eg. to 15%). They look fine in photoshop at this size.

View 4 Replies

ActionScript 2.0 :: OnRelease On Dynamic Mc [MX2004]

Feb 12, 2004

The problem is that I can't get the subItems to work with the onRelease function.

View 1 Replies

ActionScript 2.0 :: Mx2004 Multiple HitTests

Sep 14, 2004

I have 9 static movieclips arranged in a 3 by 3 grid, and 1 movieclip that moves using keypresses (invisible_mc)[code]when a hitTest is registered between the invisible_mc and any of the icon_mc's, The icon_mc goes to and stops on frame 2..else it goes to and stops on frame 1. I have constructed the hitTest as follows.is there anyway to reduce the endless repetition of code? [coe]

View 1 Replies

ActionScript 2.0 :: [MX2004] Referencing One Movie To Another?

Apr 5, 2005

Main.swf has a button which loads Movie.swf into a movie clip 'contents' (as shown in the tutorials). 'contents' is directly over the button, so when you move your mouse in Movie.swf, it still detects the button in Main.swf.I need to know how to make Movie.swf use Main.swf button so that I can disable it while Movie.swf is open, and enable it when Movie.swf is closed.So far my code is 'blank'.MyButton.enable=false;with 'blank' being main.swf. I tried _root, _parent, etc.., but nothing worked.

View 2 Replies

ActionScript 2.0 :: Use The Envelope Transform In MX2004?

Aug 31, 2005

Is there a way to use the envelope transform through actionscript in MX2004?

View 1 Replies

ActionScript 2.0 :: Tweens And OnMotionFinished In MX2004

Feb 15, 2006

I created some code in Flash 8 for a client using MX2004. I used Tween and made a onMotionFinished function. I saved it as a MX2004 file, but when he tries to compile it he gets.[code]

View 2 Replies

ActionScript 2.0 :: Pausing A Slideshow [MX2004]

Mar 31, 2006

I set up a slideshow using this tut' [URL] Awesome by the way, as someone who is an out and out fine/digital artist no matter how hard she tries desperately struggles with scripting, it's really cool to find tutorials like this which show me how things can be done in such a small file size and with such efficiency, I have a lot to learn. Anyhow, sorry I digress, I'll get to the point. XML seems extremely versatile and I'm going to look into it more.

I did both tutorials the one hat lets you step through (photo gallery) and the slideshow one, what I would like is to be able to pause the slideshow if I see an image I would like to look at for a while longer and start again when I am ready to move on.

View 1 Replies

ActionScript 2.0 :: Random Letters In MX2004?

Mar 31, 2007

I'm trying to make 4 movie clips/cycling letters for the lowercase alphabet. 3 random letters and one to stop on an indicated letter, i.e. "a" . I'm trying to make a letter recognition game for a class project, the aim is to have 3 random letters as well as the letter that was in an earlier screen pointed out.

View 1 Replies

IDE :: MX2004 Looping Different Movieclips In One Animations?

Apr 7, 2011

l am trying to finish banner for my daughters web...l am just a mummy and dont have time to take classes etc but l am trying...this is a bannerone animation with few movieclips (already converted to movieclips)l need two of them to continue loopingl have put STOP action but then everything goes to a stilll tried entering layers on top vith actions like continue but its not working

View 1 Replies

ActionScript 2.0 :: Zooming In & Out Of An Image Using Buttons?

Jan 7, 2009

I have an image that is loaded into a scrollpane, which works fine. I have two buttons on the stage that I want the user to be able to click on in order to zoom in or out of the image that is loaded into the scrollpane. I can't seem to get these zoom buttons to work on the movieClip with the image that is loaded into the scrollpane.

Lastly, I don't know if this makes a difference, but this swf file is loaded upon release of another button on the root timeline of another swf.

I tried attaching a simplified version of this file to this message but even zipped I cant get it lower than 380kb. I can email it to anyone if they are interested.

View 1 Replies

ActionScript 2.0 :: MX - Dragging Zooming Locking A MC?

Aug 19, 2009

Being adventurous I've got (all built in AS1) a masked area that you can view an image in. I'm trying to make it so you can zoom it in and drag it around, within the masked area, but the dragging locks it so that you can't drag it to the point where it leaves the edge of the masked area - if you follow. So when you're zoomed in, the iamge is never allowed to be dragged off so far that it's not filling the masked area. I've tried all sorts of code and the following code seemed to work well

Code:
// imageMC = the clip being scaled/repositioned/dragged
limitLeft = 0-Math.round(imageMC._width-maskWidth);
limitUp = 0-Math.round(imageMC._height-maskHeight);
limitRight = 0;
limitDown = 0;
imageMC.startDrag(false,limitLeft,limitUp,limitRight,limitDown);

But since the border size around the image is adjustable (it could be 2, it could be 20) and that eats into the area used to show the image (eg image is offset by imgBorderSize and shrunk by imgBorderSize*2) I tried to factor that into the formulas because once I turned the borders up the above formulas wasn't working right anymore

Code:
// imageMC = the clip being scaled/repositioned/dragged
limitLeft = 0-Math.round(imageMC._width-maskWidth)-(imgBorderSize*2);
limitUp = 0-Math.round(imageMC._height-maskHeight)-(imgBorderSize*2);

[code]....

I also tried to make it so when you zoom in, it zoomed in on the center of the area you can see through the mask, not on the top left - so repositioning is occuring alongside the scaling for the zoom to try and acheive that. Nothing clever, just :

Code:
// ZoomCalc range = 0-100;
// imageMC = the clip being scaled/repositioned/dragged
imageMC._xscale = 100+(2*ZoomCalc); // 100% - 300%

[code]....

When it zooms out however it'd be nice if it didn't snap back to center via the above code, eg if yu're zoomed into bottom left it would stay viewing bottom left as it zoomed out - yeah?If anyone has ANY input to this I'd greatfuly welcome it :/ If I manage to get it working then I have to figure out what my layer above all these layers with clickable buttons don't work as soon as I implemented the dragging of the image layer Is there no way to have buttons on something that is being dragged? ((

View 2 Replies

ActionScript 3.0 :: Zooming In On Panned Image

Feb 7, 2008

I'm panning on an image 2kx2k pixels. Panning is working wonderfully. I added a scrollRect to the image container and test the mouse position. I'm trying to add zoom:
Main Movie -> PanClass Object -> Image
Container -> External Swf.

I have a couple test buttons that simply allow a user to zoom in or out on that image. I figured that by zooming in (adjusting x and y scale) of the external swf that my movie would scale and continue to pan which it does, but it is still panning at the original size of the image. I need it to pan in the same size window as before but with the new scaled dimensions. I've included the panImage function.

View 2 Replies

ActionScript 3.0 :: Keywords Zooming In And Out On Different Places

May 31, 2009

I have 23 keywords in an XML file. In an area of 1600px by 500px there should be zooming in and out (for about 5,6,7 sec which depends on the number of letters) 10 keywords, randomly chosen from the XML file. Each keyword may appear in different spots in the area, it doesn't matter.
 
how to fix this zooming in and out keywords?

View 2 Replies







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