Zooming Position
I have scrolling image 1500 pixels wide and 300 pixels heigh. Movie size is 300 x 300 so only 1/5 of image width is displayed at time. When I zoom it in (setting xscale and yscale + 2) it zooms from registration point of movie clip (wich is set to center), so if i zoom picture that is scrolled to left, it zooms from right and vice versa. The question is: How do i set that zooming allways appear to be from center of currently displayed part of the image? I guess it is dependancy between current x position , center x position and scaling but i just can't figure it out. What value do i have to add (substract) to current x position to make it work?
FlashKit > Flash Help > Flash ActionScript
Posted on: 07-07-2003, 05:41 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Zooming Position
I have scrolling image 1500 pixels wide and 300 pixels heigh. Movie size is 300 x 300 so only 1/5 of image width is displayed at time. When I zoom it in (setting xscale and yscale + 2) it zooms from registration point of movie clip (wich is set to center), so if i zoom picture that is scrolled to left, it zooms from right and vice versa.
The question is:
How do i set that zooming allways appear to be from center of currently displayed part of the image? I guess it is dependancy between current x position ,center x position and scaling but i just can't figure it out. What value do i have to add (substract) to current x position to make it work?
Retaining Position While Zooming
i have scoured the forums on this. I have an mc on stage (large rectangle). i would like to click anywhere on that mc, and have the mc zoom , BUT, also retain position from where the mouse clicked. i guess the effect i am seeking is as if the registration point is where the mouse clicked, and thus, the mc will zoom in from that point. The zoom is the easy part (xscale=yscale+=10), but i am having trouble with the math that would have the mc reposition left/right/up/down as it zooms in (and then next, out). A hint would be great.
i'm guessing that on the click, i have to mark the _xmouse and _ymouse. Then what?
Zooming In On An Image With Action Script Without Zooming The Entire Frame In
How do I zoom in on "1" image so its like 2x or 3x the normal size, but its only in that frame, like the entire stage wont zoom in, just that image will, and it will stay in a 546 * 281 format ?
Is this understandable?
Another example would be
(My image size is 546 * 281)
You click a button, it zooms in on the image, however everything else on the main frame does not move, just the image zooms in (still staying the same size)
Reset Movie Clip X-position & Y-position Back To Original
Is there a command to reset x-position, y-position and rotation all at once...like reset command?...or would I have to find the original x-positions and y-positions to all elements and hardcode that back....EEEK!!
Many Thanks
Andrea
SoundChannel.position - Trouble Triggering Event Based On .position
I would like to trigger an addChild event when my mp3 reaches a certain point.
My trace statements will only fire if I use <= but not ==
The goal is to add text to the stage when the MP3 has reached one second, what am I missing?
Ultimately there will be several trigger marks I need to hit along the MP3.
ActionScript Code:
var buffer:SoundLoaderContext = new SoundLoaderContext(10000);var welcome:Sound = new Sound(new URLRequest("Intro.mp3"), buffer);var welcomesc:SoundChannel = welcome.play();addEventListener(Event.ENTER_FRAME, playMessage);function playMessage(event:Event):void{trace(Math.floor(welcomesc.position));if (welcomesc.position == 1000) { trace("NOW!!!!!!!"); } else { trace("WAIT-------------"); }welcomesc.addEventListener(Event.SOUND_COMPLETE, soundComplete);}
How To Position Mc_example Depending On Position Of Empty Movieclip?
I have a series of movieclips (graphics) which I want to position in a row.
I know that I can define the position of each movieclip individually by _x and _y. But can I place an empty MC on the stage and define the position of every single MC with _x and _y IN RESPECT TO THE POSITION OF THE EMPTY MC - so that ALL movieclips will change their position when I move the empty mc?
Thanks for helping
Aribert
[F8] Control Position Of Playhead In Movieclip By Position Of A Button
I am fairly new to actionscripting and just need a little help.
I have a bar which has a slideable block on it. When this block is dragged, to the left/right i want it to control the playhead inside another movieclip.
For example, when the block is to the far left, the playhead (of my movieclip) will be at the first frame. When the block is dragged to the right it will play the movieclip at the speed that the block is being moved and when it is at the far right it will be on the last frame of the movieclip. And when the block is dragged to the left it will play the movie backwards at the same speed etc...
It is just like the scrubber bars that are in media players, but instead of playing an actual video, i want to play the movieclip which is of an animation.
How would I do this?
Thanks
Flash Y Position Converted To Browser Scroll Position
I have a Flash movie that makes an fscommand call to the HTML page, and via Javascript, it moves the browser window scroll position down. I need to be able to scroll down to a position that coincides with a Y position on my Flash page, but I can't seem to figure out how to convert coordinates from a Flash Y position to a browser-window vertical scroll position. I hope this makes sense. Does anyone know how to do this? (I have all the code working to do this, except for this coordinate issue. That's the only part I need.)
Example:
Code:
myMC.onRelease = function() {
//Command to Javascript function in html doc
//Scroll down in browser to Y pos specified
//This scrolls down to 1000 position within browser window but
//but does NOT equate to a Y position of 1000 in .swf movie
//even if .swf movie is at 0,0 left & top margins within browser
fscommand("scrollToAnchor",1000);
};
Ultimately, what I am trying to do is simulate anchor points from HTML (not anchor points in Flash to go 'Back'), whereby you have a link at the top of the page, and you click it and it takes you somewhere else lower on the same page. Then you have a link there that says "Back to top", and it takes you back to the top of the page, etc.
Any ideas?
X Position? Y Position? Differs In MovieClips From _root?
Hey!
I'm confused:
I want to move a movieClip that is embedded in another movieClip:
firstMovieClip >> floatingMovieClip
Now, X = 0 IS NOT the upper left corner when I try to direct floatingMovieClip.
When I investigate the movieClip sets it's X = 0 in the middle. But on _root lever, X = 0 is the upper left corner.
Is it supposed to be this silly way?
THanks!
Regards
Help With Tweening From Current Position To Clicked Position
Hi
I have a motion tweening question-
I have a large rotary dial with an arrow on it, around that are 5 buttons. I want to set it up so that when the user clicks any button, the rotary dial will rotate until the arrow is pointing to that particular button. I can't figure out how to make it so that the dial tweens from one position to the other, which is of course dicated by where the user clicks. I also want that dial to stay pointed to that specific button until another one is clicked.
How can I do this?
Thanks!!!
-Steve
Mouse X Position To Control Movie Position?
Hi, my understanding of actionscript is very basic and I'd like some help with writing a very simple script. Basically the x position of the mouse should control the play position of a movie. Do I need something like an event handler (I'm not sure exactly what these do, but I've seen similar scripts that seem to use them).
Reported X Position Doesn't = Actual X Position?
I can't figure this out. I'm loading a serious of pages of images in the same flash document, but all pages after the first one have a lower y position of about the height of one of the images. When I trace their y position they all say 30, when it's clearly more like 150. What's going on here?
Zooming In
I am trying to create a program that will allow me to zoom in on a diagram. I'd like to be able determine the location of the zoomed in area by where I click. Right now I'm adjusting the _height and _width of the movie but it's heading to the upper left hand corner. I'm putting this on an iPAQ and therefore I can't use the right click methods. What can I do?
Zooming
Ok i need some guidance please. I have a flash movie with 8 buttons and and an object ( lets call it a square) What i want to do is when the user clicks on a button i want the square to be zoomed in and stop so some content will be displayed. When the user clicks another button i need it to unzoom and rezoom to a different part of the square. What i cant get figure out is
1. After the first button is clicked it will zoom in, BUT how do i tell it to unzoom then resume to another part? Since each button zooms in to a differnt part of the square the unzoom will just be reverse of the zoom tween. So there are 8 different zooms and unzooms.
Im not sure if i made my problem cleared. Can anyone help?
Scott
Zooming
I have a problem: I want to zoom in and out a map with flash. How can i do this. I have done it with _xscale and _yscale but it does not work correctly. Can Anybody help me?
Zooming In......
What I am trying to do is a Christmas Card for my company. I have a snowman that comes onto the stage and I want to zoom in on his face and get rid of the some of the background. I was wondering if there is a way that I can zoom in on part of the stage and keep it part of my movie?
When I try and create a new image that makes a close up on the snowman's face, it kills the clarity of the image and would be a lot of work.
Any suggestions?
Zooming...
I'm sure most people have seen Flash movies with zooming.... example, an object gets bigger than returns to its original size....
Does anyone know how to do that....
Zooming
Hi all,
I'd like to zoom into an image which has many different layers, some starting in different places.
I'm using the scale tool to give the impression of zooming, however, I can't seem to get all the layers to scale at the same time. I've tried using 'select all' and multi frame editing, neither seems to work. How can I zoom in and then later on Pan around the image?
Thx in advance..
Matthew
Zooming In/out
Hi...to start things off, not only am I a Flash newbie, but also a forum newbie. Yep, I've never posted anything on a forum before...but I figured I'd give it a shake. I'm trying to create a movie in which the camera effect zoom is crucial...the most important instance of this is a scene in which an all-black background zooms out and actually becomes the eye of a stick figure. I can't find a tutorial on how to achieve this zoom-y effect, but I'd be much obliged to anyone who can give me any tips. Thanks ever so much.
-Alex Flash 5
Zooming
I noticed you can zoom in on the menu in flash... is there a way to access this thru Action Script?
the only other way I can think of implimenting zooming in my movie is to scale the movie clips (which I don't wanna do as this means LOTS more as for lots of other movie clips!)
I have a map movie clip, on that map I have duplicate movie clip pointers. If I were to scale the map the pointers need to stay in thier relative positions on the map movie clip.
Any one played with zooming?
Please help me obi-wan you are my only hope...
thanx Spyder
Zooming
I've noticed that some people zoom into certain objects in their movies, and I was wondering whether there was a way to zoom in like this or are they just enlargening the object to make it look like its beeing zoomed in to?
Zooming
is zooming in, just making the picture bigger with tween??
Zooming In And Out A Swf Using AS Or Anything
Hey 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. I know I asked 2 questions in a row please forgive me.
Zooming
I will let you know when it is up and running! It might take me a while to figure it out!!!
I may have some more questions for you if that's OK.
Thanks!!!!!
jenzee
Zooming In And Out
this is probably a beginner question but I have been unable in finding the answer so I was wondering if yall could help...
I am trying to make a movie where I am zoomed in on my subject and then zoom out to reveal the scenery ........how is this accomplished?
Zooming ?
what is the best way to zoom in /out the entire main stage?
i mean centered zoom in/out
i need a button that zoom in everything there is on the stage on press and zoom back out on release
can anybody help ??
thanks
ps i post this on the game forum too
i dont know if this is all right if double posting on 2 different forums is wrong please let me know
thanks
Zooming SWF's
Hello there..
Does anyone know any code which stops people right clicking on your swf.. and zooming in ???
thanks..
How Is This Done - Zooming Etc
Does anyone know how this site intro for the movie "The Hours" was made? www.thehoursmovie.com
It gives the appearance of a video, it zooms, fades to give the impression of motion. How do they do the zooming to closeup of the images? I really like the effect.
If anyone could help/advise - it would be great! I've searched the tutorials but can't find one that shows how to do this.
Thank you.
A Little Help With Zooming Please :)
I'm doing a little animation for my new site creamedgeezer.com, in the animation, can i make it so when you mouse over aquaman, it zooms up on his butt, for disturbing booty shaking action? any help would be much appreciated.
Thanks,
Jeff
Zooming In And Out
Anyone seen www.sofake.com? I've figured out how to zoom in like that, but what I'm having trouble with is zooming back out. How'd they do it?
Thanks,
Chris
Zooming
I am creating an interactive map in flash. I want to be able to zoom in, zoom out and basicly be able to have a user comfortably browse the map. The map is no larger than 4 total 600X800 screens if even that. What are some ideas for implememnting these controls? I have never done something like this but have a decent understanding of flash. I use Flash 5.
Zooming In
Well im in the process of making an awesome movie, but i have come to a halt for one reason, i'm not sure how to zoom in properly.
I no it should be just an easy thing like tweening the image to a larger size or somethin but heres my problem.
I have 4 layers in the scene, one is background, 2 are props and one is my person.
No im wanting to zoom in on my guys face so he can say something, so is there a way to enlarge all the layers at the same time to the same size
Zooming In, Out And Pan
can anyone please help coz ive been trying to figure out how to zoom in, out and pan on an object. visit this site so u could see what am trying to do http://www.customatix.com/static/cat...orfn_home.html
am trying to make something thats similar to this.
Zooming...
Is it possible to zoom to a certain position in the movie, i have a larger image and i want to be zoomed into the logo on it to make it look like its just the logo, then when its loaded(i can do that) make it go to 100% to show that the logo is part of something bigger. Possible?
Zooming In
I created a button, and what I want to do is to have the clip automatically zoom in on that button without prompting the user to move the mouse or click, I just don't know how to do it.
The closest I have come so far is this
zoom.onRollover = function() {
zoom._xscale+=10;
zoom._yscale+=10;
};
Can anyone help?
Zooming
Hi, I'm new to flash and I was wondering if someone could teach me how to zoom in on a scene, I can't seem to find a crop feature, and I was wondering if there was some sort of action script or some button that allows you to zoom in on a scene. Thanks for the help.
Zooming In
(Using Flash MX 2004)
I know when a .swf is viewed on a web page if you right click on that you have the option to zoom. Is it possible to tie this zoom feature into an actionscript command? I want the movie to zoom in when the user presses the up arrow on the keyboard.
Zooming In?
I'm starting a new project thats sort of a visual representation of the last few years of my life. During the preloader, a house is shown in the background. As soon as the play button is pressed, the scene of the house will first pan down to center a window, and it will then zoom in on the window and fade to black, and a scene inside that room will begin. Can anyone tell me how to make the camera zoom? And while we're on the subject, can anyone tell me how to make it fade to black? I think you make a tween and make the frame at the end of the tween just all black, but I'm not sure.
Zooming
I have a vector image with multiple hotspot to which i want to zoom to when they are clicked. I don't want to do it with tweening. Actionscripting is ok but how do i get it do zoom to a specific part of the image and back out to full size? Do I have to change the registration point somehow?
Any help gratefully apreciated.
Zooming
Hello, im having troubles trying to think of a way to zoom into a certain area of the movie.
What i want to do is figure out a way how i can have the main movie (_root) zoom into something, like for a example, zoom into a character in an animation and show him more close up. But with no clicking attached, it does it when it hits a certain frame.
Can you guys help me find out everyway to do this, wether its action scripting or other thanks..
Also I have an example of what i mean here..
What it is, is a background with a flyer on it beside the door, can someone edit it and zoom onto that flyer? Thanks I will appreciate it.
-Electro
Zooming Map
i have sheached the boards and tutorials on this and can't find any thing like what i want. what i am trying to do is where ever the user clicks on the movie clip it will zoom in on that area and on the second click it will zoom out. i have got the zooming working and i have my area of interest centered in the screen but its just the getting the clip to ease between the zoom out pos and zoom in pos. i have have attach my fla so you can see where i am at
code:
onClipEvent (load) {
scale = 0;
lastScale = -1;
scaleSpeed = 10;
homeX = _x;
homeY = _y;
maxScale = 300;
}
onClipEvent (enterFrame) {
_parent.tellClipsToMove ();
//
if (scale) {
_xscale += (scale * scaleSpeed);
_yscale += (scale * scaleSpeed);
if (scale == 1) {
_x = homeX - (Click_x * (_xscale / 100)) + (Stage.width / 2);
_y = homeY - (Click_y * (_yscale / 100)) + (Stage.height / 2);
} else if (scale == -1) {
_x = homeX;
_y = homeY;
}
}
if (_xscale == 100 || _xscale == maxScale) {
scale = 0;
}
}
on (release) {
Click_x = _xmouse;
Click_y = _ymouse;
crosshair._x = _xmouse;
crosshair._y = _ymouse;
if (lastScale == -1) {
scale = 1;
lastScale = 1;
} else {
scale = -1;
lastScale = -1;
}
}
Zooming
any one know how to do a zooming effect
Zooming
Hey all Iv been trying to make a Flash Cartoon for a while and i have got stuck. The thing is i got this guy falling from the sky and i want to make it look as if he's moving realy fast but can't seem to get right i'v seen several movies were they use black lines wizzing past the guy to show he's moving fast but when i try to replecate it it looks crappy. Can anyone help?
Cheers for any help
Zooming In
If you have ever been here:
http://www.macromedia.com/cfusion/sh...2650&loc=en_us
then you've pretty much got an idea of what I want to do.
I'm making a square-tile perspective game, like Disgaea, Final Fantasy Tactics, etc. I want to allow the players to zoom into this world I've created via duplicating movie clips, etc. but I want it to center on whatever tile they are targeting.
So... how could I do that? Is it possible to address all movieclips that I've created so that I could just change everything's x and y to center on the targeted movieclip? If that were the case, then I would need to make everything exactly the size I want it to appear on people's screens...
Or is it possible to zoom in to the stage, and change the displayed area so that it show a magnified version of a section of the stage, centered on the tile they have selected. If that were the case, then I would populate the stage, with everything relative to each other, then I could zoom in and they'd appear nice, large, and fill the screen.
Either way, or neither way, help with this would be greatly appreciated.
Zooming Map?
I need to make a zooming map. I will take an aerial photo of a college campus, and as the person mouses over the photo and stays in one place, it zooms in on the area.
I don't know what FLA to use. Can someone please point me in the direction of one, like give keywords to put in the FLA finder, etc? thanks!
Hi-Res Zooming
I'm hoping this is a simple question, so here goes . . .
I have a hi-res aerial and would like to zoom in on a particular part of the aerial. Sounds simple, right? Well, when I zoom in the graphic loses it hi-res and everything gets pixelated. What am I not doing correctly?
I have tried doing a frame by frame with 12 different aerials and it's too choppy. Any suggestions?
HawksQuest
Zooming In?
I have noticed on several flash movies that the camera seems to zoom in on a animation. How is this done? Is it just a resizing tween? That seems to be close to impossible to do when your dealing with the background and other sprites as well
|