ActionScript 2.0 :: Zooming To MovieClip Not Stage
Oct 2, 2009
Based off this script:
onClipEvent (mouseDown) {
zoom = true;
dir = 1;
if (dir == 1) {
pt = {x:_root._xmouse, y:_root._ymouse};
}} onClipEvent(mouseUp) {
[Code] .....
How would I go about zooming based on the mc you select rather than your point on the stage?
View 0 Replies
Similar Posts:
Oct 16, 2009
I have movie clip(1) on the stage, all I want to do is using another movie clip(2) as a button that when you click zooms the movie clip(1) bigger, then clicking movie clip(2) again takes it back to the original place.
_root.zoom.onEnterFrame = function() {
if (mouse_over_zoom) {
_root.zoom.nextFrame();
} else {
_root.zoom.prevFrame();
}};
I tried _parent and it will not let me save the file as flash 8 anymore.
View 0 Replies
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
Nov 4, 2009
I have a full screen movieclip, in which there are 5/6 buttons that can be draggable around the stage.Now, when i click on a button, a series of images appear at the side of it.What i want to do is to zoom in and center the stage on the photo if i click on it (something that you can see here: ml under the "projets" button, try and click one photo).It may seem tricky since you can actually drag and move the buttons, but logically it is not since i can retrieve the button position (and i place the photos inside it, so the distance between the button._x and the photo._x is in some way retrievable).
Anyway what i'm finding really tricky is the method to zoom and move the stage camera in order to center the photo.i thought of using the transition tweens on the _root in order to change the _xscale and _yscale to zoom, and the _x and _y to move itBut from here i have two problems: how can i determine the right amount of zoom if the stage is in full screen (so with all resolutions possible), and how much the _x and _y properties change after the zoom is done (because it seems to me that after changing the _xscale and _yscale of the _root, it changes the _x and _y values in it, in a way in which i have to add even 2000 pixels in order to center it)
View 2 Replies
Nov 4, 2009
I have a full screen movieclip, in which there are 5/6 buttons that can be draggable around the stage.Now, when i click on a button, a series of images appear at the side of it.What i want to do is to zoom in and center the stage on the photo if i click on it (something that you can see here: http:[url]....... under the "projets" button, try and click one photo).
It may seem tricky since you can actually drag and move the buttons, but logically it is not since i can retrieve the button position (and i place the photos inside it, so the distance between the button._x and the photo._x is in some way retrievable).Anyway what i'm finding really tricky is the method to zoom and move the stage camera in order to center the photo.i thought of using the transition tweens on the _root in order to change the _xscale and _yscale to zoom, and the _x and _y to move it.
But from here i have two problems: how can i determine the right amount of zoom if the stage is in full screen (so with all resolutions possible), and how much the _x and _y properties change after the zoom is done (because it seems to me that after changing the _xscale and _yscale of the _root, it changes the _x and _y values in it, in a way in which i have to add even 2000 pixels in order to center it
View 1 Replies
Mar 4, 2010
[URL]you will see moving "?" marks here how to do this with action, i want the position should be random every time and should continuous,
View 1 Replies
Sep 6, 2005
Would anyone have any tutorials on how to create a multi stage zooming menu like in the following demo links?
[URL]
Is this done with actionscript or manually tweening several clips? I can't quite seem to get my head around zooming in and out of several layers. I am currently looking into the Laco tween class as a possible solution, but I was hoping that someone might already understand how to achieve this effect.
View 1 Replies
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
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
Jul 11, 2011
How do you make a movieclip move horizontally from the start of the stage to 3/4 of the stage. Stage size is 700 px by 600 px i want just one row in the middle of the stage. i want that movieclip to disappear right after it reach the end of the 3/4 mark.
View 1 Replies
Feb 27, 2006
i saw a thread while ago .. that always position a movieclip in the middle of the stage even if the stage or window resize any1 can point me to it
View 3 Replies
Aug 18, 2009
I can't access a variable on a the stage from within a movieclip thats placed on the stage.
View 4 Replies
Oct 16, 2011
what I'm trying to do is accessingsnapText = scrollPane.source.textSnapshot;from an external swf. I've tried:
trace("-->: "+scrollPane.source.textSnapshot.getText(0, 1000));
trace("-->: "+myLoader.content.textSnapshot.getText(0, 1000));
trace("-->: "+mc.textSnapshot.getText(0, 1000));
[code].....
View 3 Replies
May 4, 2011
I have the scenario below. I have a movieclip on the stage (root). Inside this movieclip I have a frame with the action below:
_root.MCHappy.visible = false;
_root.MCSad.visible = false;
_root.MCNormal.visible = true;
I cant get this working with AS3. How is the correct way to do that inside a MovieClip with AS3?
View 6 Replies
Jan 18, 2009
I am making a site and have a component on the stage that is put there dynamicly through AS 2.0. When I F5 or Ctrl F5 it seems that the actionscript is read allover again?Only the script that is situated in the specific label. What if I have script in that label that creates a news reader. I f12 and the news reader is there I jump to another label with the menu. when i jump back to the home label the news reader does not appear on the stage. after a f5 or ctrl f5 it does.Do I have to attach the movieClip in each label to assure a the dynm-movieClip script is on stage for the ctrl f5 issue?
View 0 Replies
Nov 15, 2004
know how I can resize the stage to match the size of an external graphic/movieclip which is loaded into an empty movieclip,
View 3 Replies
Sep 1, 2009
I have a movieclip on the stage(lets call that selection movieclip) that once a button is clicked is going to open another movieclip(call this slideshow) I am trying to remove the selection movieclip when you launch the slideshow movieclip.
Error:
ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
at flash.display:isplayObjectContainer/removeChild()
at mc_work/clickHandler3()
[Code]...
View 9 Replies
Feb 8, 2006
how to load a movieclip into a blank movie clip all in the same movie?!
View 4 Replies
May 18, 2010
On the stage I have a movieclip called mc_back. I also have a movieclip on the stage called mc_content. Now, inside mc_content I have a bunch of code and some of it adds, or should add, an EventListener to mc_back as well as a a function that works when mc_back is pressed.
So basically, all code is written inside mc_content and some of it needs to interact with mc_back.
how to target mc_back from inside mc_content. Using stage.mc_back or root.mc_back doesn't work and Google should be my friend, but in this particular problem, it's acting more like my enemy.
View 8 Replies
Jan 29, 2011
how to cal movieclip from stage to the movielcip which present in another movieclip
View 4 Replies
Apr 23, 2010
How do you align a dynamic movie clip position with another movie clip which is in the root stage? I tried to get the mc in root x,y position, but the starting point of the class that loads the dynamic MC does not seems to be accurate. (Meaning at the root stage, the x,y is 0,0 but at the dynamic class, its somewhere like 100,20 for the browser area (and it actually vary base on the browser size))
**the other classes I used to run the custom classes below, I have it added this MC to stage
var blocker:stageBlocker=new stageBlocker();
this.stage.addChild(blocker);
Below is the dynamic MC. Should I not add it to its own "stage"?
public class stageBlocker extends MovieClip {
private var blocker:MovieClip= new MovieClip();
public function stageBlocker():void {
[Code].....
View 1 Replies
Jan 15, 2010
I am trying to cast a String (from an array of strings generated by a for loop) which is referencing a MovieClip already on the stage.
[Code]...
View 4 Replies
Apr 10, 2010
How can i attach a movieClip into another movieClip that is already on the stage (using the attachMovie method) and randomly place them.
View 6 Replies
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
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
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
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
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
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
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